GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After working with several linux distro's I'm coming back to gentoo always.
But when I install gentoo I have to make my own config so the kernel works.
I have asked several times help on the kernel subforum.
But my question is :
how can I learn to build my own kernel ?
Roelof
Last edited by charlie_lab; 08-15-2010 at 10:53 AM.
2 things...
1. how do you have your partitions set up
2. did you have the file system type built into the kernel or as a module?
IF you have a ext4 partition as / and it's not built into the kernel, the kernel can't read it and you get that error...(substitute ext4 for any other partition)
If you're uncomfortable configuring your own kernel I recommend starting with a seed: http://kernel-seeds.org/ and then just keep trying until you get one that works the way you like. Building kernels is one of those things that you learn best by simply doing it. Don't be afraid if you box doesn't boot on the first attempt. Just remount, rechroot, and rebuild the kernel to try again.
If you're uncomfortable configuring your own kernel I recommend starting with a seed: http://kernel-seeds.org/ and then just keep trying until you get one that works the way you like. Building kernels is one of those things that you learn best by simply doing it. Don't be afraid if you box doesn't boot on the first attempt. Just remount, rechroot, and rebuild the kernel to try again.
Regards,
Alunduil
Yes, completely agree. Kernel-seeds are great for learning about the kernel (and to install). Pappy McFae (the man behind the seeds) is also responding to specific kernel questions on the kernel seed threads on the gentoo forums on gentoo.org.
Whenever I build a kernel from source, after the initial downloading and unpacking of the archive the kernel source came in, I run "make oldconfig" to mimic the currently-running kernel.
After that, I just whittle down the things I don't need.
The errors about not being able to find the root device are common and they can occur for one of many causes.
The truly important pieces that you will need in your kernel are the modules that will give you access to your root file system. That's basically the driver for your IDE or SATA chipset and the driver for the fs itself (ext3, reiserfs or whatever else). These need to remain accessible to your kernel while the fs can't still be seen at boot time, that means that you either link those statically into the kernel ('*' option in menuconfig) or you put them inside an initrd if you use that kind of thing.
Provided you have that sorted out, all you need is to configure your bootloader correctly, usually by editing /boot/grub/grub.conf
Gentoo linux is a very well documented distribution. You should read the Gentoo Handbook. Anyway, you just should learns your computer hardware, and you will know how to configure your Gentoo kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.