Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Configuration can be fun!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
filmore
n00b
n00b


Joined: 16 Jan 2004
Posts: 18

PostPosted: Thu Jan 29, 2004 4:15 pm    Post subject: Kernel Configuration can be fun! Reply with quote

To spice up your time spent tinkering with kernel configs, you may want to try a few of these commands (from the /usr/src/linux directory):

Code:
vi .config

Directly editing the kernel configuration. You are either hardcore, or looking for where they moved the config option for some driver

Code:
make oldconfig

An oldie, rediculous to use unless you have a previous .config file as a base. This option prompts you yes,no,module,help for every option not already set in .config

Code:
make menuconfig

My prefered method of Kernel configuration. Brings up a nice ncurses, menu-based interface to the configuration. Easy to use and requires only a console.

Code:
make xconfig

This is basically an X-windows version of menuconfig. It's a little bit cumbersome because it opens up tons of new windows and has lots of buttons.

Code:
make gconfig

A proper GUI to kernel configuration. This mode has a nice tree layout for all the options. It still has a few kinks to work out, but looks like a promising route for future configuration. Give this one a try if you've never seen it.
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Thu Jan 29, 2004 6:07 pm    Post subject: Re: Kernel Configuration can be fun! Reply with quote

filmore wrote:
Code:
make gconfig

A proper GUI to kernel configuration. This mode has a nice tree layout for all the options. It still has a few kinks to work out, but looks like a promising route for future configuration. Give this one a try if you've never seen it.


8O That has a lot of potential.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sat Jan 31, 2004 4:18 am    Post subject: Reply with quote

From http://bang.dhs.org/if/raif/2001/msg07014.html:

Quote:
----------------------------------------------------------------------------
Welcome to CML2 Adventure, version 1.6.1.
You are in a maze of twisty little Linux kernel options menus, all
different. The main room. A sign reads `Linux Kernel Configuration
System'. Passages lead off in all directions.


> n
The arch room. A sign reads `Processor type'.
A passage leads upwards.


Choose your processor architecture.
A brass lantern is here.
There is a row of buttons on the wall of this room. They read:
X86, ALPHA, SPARC32, SPARC64, MIPS32, MIPS64, PPC, M68K, ARM, SUPERH,
IA64, PARISC, S390, S390X, CRIS
The button marked X86 is pressed.
> take lantern
Lantern: taken.


Now that's what I call fun kernel configuration! Just take good care you're not eaten by a grue :wink:
Back to top
View user's profile Send private message
snakattak3
Guru
Guru


Joined: 11 Dec 2002
Posts: 468
Location: Seattle

PostPosted: Sat Jan 31, 2004 6:34 am    Post subject: Reply with quote

DiskBreaker wrote:
From http://bang.dhs.org/if/raif/2001/msg07014.html:

Thats freaking hilarious. Gonna have to try that next time I get bored.
_________________
Ban Reality TV!
Adopt an Unanswered Post
Back to top
View user's profile Send private message
TinheadNed
Guru
Guru


Joined: 05 Apr 2003
Posts: 339
Location: Farnborough, UK

PostPosted: Sat Jan 31, 2004 1:46 pm    Post subject: Reply with quote

Has anyone got the CML2 Adventure stuff to work? I downloaded from tuxedo.org and installed it into my kernel tree, but the Makefile entries all depend on "symlinks" which isn't defined and removing that make it compile some rules and then fail to save them.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Feb 01, 2004 2:20 am    Post subject: Reply with quote

Well, I tried it and basically got it working with 2.6.1 kernel tree, but it gives dozens of error messages for unknown config options upon starting, which likely is because cml2 has not been updated in a while and it looks pretty much that it has been discontinued. Real kernel configuration is impossible, but it is a good joke anyway and would have been a really cool easter egg if cml2 had been chosen for the 2.6 kernel :lol: (Well at least Emacs has a built-in adventure game.... M-x dunnet).

Anyway, here is how I did it: Download CML2 2.3.0 at http://www.catb.org/~esr/cml2/cml2-2.3.0.tar.gz, unpack and run
Code:
install-cml2 /usr/src/linux-2.6.1

Then change into kernel directory, edit Makefile and remove "symlinks" from the advent: target by changing
Code:
advent: symlinks rules.out

to
Code:
advent: rules.out

and then
Code:
make advent


Let's see...
Quote:
Welcome to CML2 Adventure, version 2.3.0.
You are in a maze of twisty little Linux kernel options menus, all different.
The main room. A sign reads `Linux Kernel Configuration System'.
Passages lead off in all directions.

> take lantern
Lantern: taken.
The main room. A sign reads `Linux Kernel Configuration System'.
Passages lead off in all directions.

> sw
The buses room. A sign reads `System buses and controller types'.
A passage leads upwards.

Specify the buses, disk controllers, and internal interconnection standards
that you want your kernel to support.
There is an option named ISA here.
There is an option named PNP here.
There is an option named SERIAL here.
There is an option named PCMCIA here.
There is an option named HOTPLUG_PCI here.
There is an option named WATCHDOG here.
> take pnp
PNP: taken.
> drop lantern
Lantern: dropped.
> up
The main room. A sign reads `Linux Kernel Configuration System'.
Passages lead off in all directions.

It is very dark. If you continue, you are likely to be eaten by a grue.
> e
The system_type room. A sign reads `Type of system'.
A passage leads upwards.

Selecting one of these system types will help cut down on irrelevant
questions.

Normally the configurator initially assumes you are building for a
generic desktop, workstation, or server system (that is, one with all
the expansion slot types(s) conventional for your system).

If you select building for a laptop or PDA, the configurator will
assume that your machine has no expansion capability other than
through hotplug buses including PCMCIA, USB, and FireWire, and
suppress some expansion options.

If you select building for a single-board computer, the configurator
will additionally suppress some laptop support options.

The answer to this question matters only in the Intel, Power PC, and
Motorola 68K trees. Other ports only support only one of these system
types.
There is a row of buttons on the wall of this room. They read:
GENERIC, LAPTOP, SINGLE_BOARD
The button marked GENERIC is pressed.
It is very dark. If you continue, you are likely to be eaten by a grue.
> up
The main room. A sign reads `Linux Kernel Configuration System'.
Passages lead off in all directions.

It is very dark. If you continue, you are likely to be eaten by a grue.
> se
The parport room. A sign reads `Parallel port support'.
A passage leads upwards.

There is an option named PARPORT_OTHER here.
There is an option named PARPORT_1284 here.
It is very dark. If you continue, you are likely to be eaten by a grue.
> up
The main room. A sign reads `Linux Kernel Configuration System'.
Passages lead off in all directions.

It is very dark. If you continue, you are likely to be eaten by a grue.
> sw
*CHOMP*! You have been eaten by a slavering grue. Game over.


Have fun,
DiskBreaker
Back to top
View user's profile Send private message
b1nd3n14l
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2003
Posts: 80

PostPosted: Sun Feb 01, 2004 5:53 am    Post subject: Reply with quote

For me its...

make menuconfig

If it aint broke, dont fix it!
_________________
Later...Gator...

First ever Gentoo Install: June 5th , 2003
Registered User #12078 at http://counter.li.org
Back to top
View user's profile Send private message
RealityMage
Apprentice
Apprentice


Joined: 15 Dec 2003
Posts: 151

PostPosted: Sun Feb 01, 2004 10:43 pm    Post subject: Reply with quote

b1nd3n14l wrote:
For me its...

make menuconfig

If it aint broke, dont fix it!


Yeah, I hear you. Menuconfig still rocks. Gconfig still seems a bit cumbersome... with all that clicking and stuff. Nothing beats the speed of arrow keys and such.

I don't understand our obsesssion with point-and-click. It takes a long time to move the mouse and stuff...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum