LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 08-15-2010, 10:42 AM   #1
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Rep: Reputation: 30
kernel install question


Hello,

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.
 
Old 08-15-2010, 11:02 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
What would you like to learn? I'm no guru of the kernel-building world, but I have compiled many a kernel, successfully.
 
Old 08-15-2010, 11:05 AM   #3
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello Indienic.

How to compile a kernel on my computer.

I also compiled several kernel but always a kernel panic because of not finding the root partition.

Roelof
 
Old 08-15-2010, 12:15 PM   #4
MrChilly0
Member
 
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Rep: Reputation: 23
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)
 
Old 08-15-2010, 12:23 PM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
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
 
Old 08-16-2010, 07:56 AM   #6
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Quote:
Originally Posted by alunduil View Post
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.

Mons
 
Old 08-16-2010, 11:06 AM   #7
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
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.
 
Old 08-16-2010, 11:25 AM   #8
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke

Thanks for the tips.

Roelof
 
Old 08-17-2010, 02:05 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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
 
Old 08-17-2010, 02:12 AM   #10
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
I think everything's well documented in Gentoo:

Gentoo Linux Documentation -- Configuring the Kernel
Gentoo Linux Documentation -- Compiling the Linux kernel
Gentoo Linux Documentation -- Gentoo Linux Kernel Upgrade Guide
 
Old 08-17-2010, 09:58 AM   #11
CiScOh4x0r
LQ Newbie
 
Registered: May 2005
Location: England
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
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.

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel install question slack 12 somae Slackware 7 07-15-2007 06:41 PM
kernel install question pingvina Linux - Software 5 02-16-2006 07:52 AM
Can someone help me install CDemu? kernel question bastupungen Linux - Software 7 08-02-2004 11:34 AM
Ok, dumb question. If I install a Mandrake kernel RPM, where does it install to? Kramer Linux - General 6 01-13-2004 09:39 PM
Kernel Souce - install question PerpetualBurn Linux - Newbie 8 06-03-2003 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 07:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration