View previous topic :: View next topic |
Author |
Message |
d135-1r43 Tux's lil' helper

Joined: 14 Apr 2005 Posts: 129
|
Posted: Sat Aug 12, 2006 1:52 pm Post subject: Modifying LiveCD kernel |
|
|
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 |
|
 |
nixnut Bodhisattva


Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sat Aug 12, 2006 2:27 pm Post subject: |
|
|
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 |
|
 |
Cyberwizzard Apprentice

Joined: 02 Apr 2004 Posts: 244 Location: Norway
|
Posted: Sat Aug 12, 2006 2:29 pm Post subject: |
|
|
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 |
|
 |
d135-1r43 Tux's lil' helper

Joined: 14 Apr 2005 Posts: 129
|
Posted: Sat Aug 12, 2006 3:00 pm Post subject: |
|
|
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 |
|
 |
Cyberwizzard Apprentice

Joined: 02 Apr 2004 Posts: 244 Location: Norway
|
Posted: Sat Aug 12, 2006 3:58 pm Post subject: |
|
|
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 |
|
 |
|