LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2004, 01:19 AM   #1
dataangel
Member
 
Registered: Aug 2004
Posts: 51

Rep: Reputation: 15
Compiling the Kernel, config hell.


I've now tried to compile the kernel several times across several distros. Despite following instructions to the letter it never ever ever works correctly. It always compiles, but something always goes wrong when booting -- it can't mount the root fileystem (even though it's compiled directly into the kernel), or it can't use DMA mode (even though my chipset and DMA support are both compiled into the kernel), or it can't load certain modules (sometimes that I've told it compile and sometimes that I haven't).

I'm chalking this up to the instructions being old. All of the guides on the net for example have told me to "make dep" which when I do the kernel tells me is no longer needed, so I'm guessing what I'm looking at is out of date.

Now here's the strange thing -- I can copy the config file from the /boot folder that comes with the distro, and use it without any modifications and I still get boatloads of problems (even though the exact same kernel should be produced!).

Where can I find an up to date guide for compiling the kernel? Where can I find one up to date specifically for my distribution (FC2)?
 
Old 09-05-2004, 01:47 AM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Are you talking a 2.6 kernel? You have the latest modutils?

If so, the 2.6 kernel (to me) is a breeze. Easier than 2.4 kernels. Make dep is no longer needed.

make xconfig
make bzImage
make modules
make modules_install
copy the kernel to /boot, edit lilo, etc

Like you say, you want the root filesystems compiled into the kernel. Read every option in the config carefully. I make light kernels with just the stuff I need.

Obviously the config stage is the key one and sometimes it's trial and error til you get a feel for it. Look out for things like automatic module loading, filesystems, nls & codepages, scsi support (for usb devices), and so forth.
 
Old 09-05-2004, 02:22 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Hmmm ... are you using an initrd and not getting that set up right. If you are compiling support for everything directly in, you shouldn't need one (but this perhaps is why you are having trouble with distro config files -- a lot of distros use initrds). I've never had that many problems following the procedure amosf followed, even with rc or mm kernels with weird stuff turned on, it all seems to work OK. It would help if you tried again and posted exact problems.
 
Old 09-05-2004, 03:12 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I'm currently runing 2.6.9-rc1-bk6 and been switching to 2.6.9-rc1-mm3 for some testing and there is some weird stuff there but they compile and run okay - so you 'shouldn't' have too many problems compiling a kernel, esp a stable one like 2.6.7 or 2.6.8.1

But as above I don't use any initrd, so maybe that is a prob in your case...
 
Old 09-05-2004, 10:24 PM   #5
dataangel
Member
 
Registered: Aug 2004
Posts: 51

Original Poster
Rep: Reputation: 15
How would I set things up so I didn't need initrd? Which distributions don't rely on it out of the box?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
compiling an old kernel using a new config file? slinky2004 Linux - General 5 10-06-2005 11:40 AM
kernel compiling problem: can I use 2.4 .config file with 2.6 ? Xavius Slackware 15 01-07-2005 03:51 PM
Lilo config for compiling new kernel problem Zaskar Debian 4 07-31-2004 02:11 PM
kernel compiling and config problems c31c Linux - Newbie 6 04-27-2004 12:49 PM
use of .config file while kernel compiling rvijay17 General 4 04-03-2003 05:06 PM


All times are GMT -5. The time now is 02:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration