Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Modifying LiveCD kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
d135-1r43
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2005
Posts: 129

PostPosted: Sat Aug 12, 2006 1:52 pm    Post subject: Modifying LiveCD kernel Reply with quote

I've sucessfully installed gentoo using the GTK installer. This wizzard configured my kernel quite well, but now I want to modify some modules. Where is the config file for this generated kernel? How do I build a new kernel from gentoo-sources based on the old configuration?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Aug 12, 2006 2:27 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Kernel & Hardware.
Kernel question, so moved here.

I think genkernel --menuconfig all would do the trick (not being a genkernel user myself).
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Cyberwizzard
Apprentice
Apprentice


Joined: 02 Apr 2004
Posts: 244
Location: Norway

PostPosted: Sat Aug 12, 2006 2:29 pm    Post subject: Reply with quote

The config can be found in /proc/config.gz, copy this to a directory and run gzip -d config.gz. You will now have the config file, copy this to .config in the /usr/src/linux/.config and you're set.

One minor thing: I have the issue that I don't want to rebuild the genkernel from a difference kernel version (got a thread explaining why) so if you're in the same position you're as stuck as me. On the other hand if you don't care, simply grab the latest gentoo-sources and hop .config in there and fire up genkernel :)
Back to top
View user's profile Send private message
d135-1r43
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2005
Posts: 129

PostPosted: Sat Aug 12, 2006 3:00 pm    Post subject: Reply with quote

Ok, thanks. Copying the config went fine.

But what about the modules? The installer wizzard has not add anything to /etc/modules.autoload.d/kernel-2.6. But there are many modules loaded. Where is the config file that specifies which modules will be loaded? Why is /etc/modules.autoload.d/kernel-2.6 empty?
Back to top
View user's profile Send private message
Cyberwizzard
Apprentice
Apprentice


Joined: 02 Apr 2004
Posts: 244
Location: Norway

PostPosted: Sat Aug 12, 2006 3:58 pm    Post subject: Reply with quote

Genkernel simply tries to work out which modules have hardware in there (or vice versa :)) - so it will auto probe to get all the modules in. I assume that if you add modules after the initram file has been made you can still get them to load by using coldplug. On the other hand if its a module like a disc driver you'd better rebuild genkernel to include the module in the boot image.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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