Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-16-2005, 09:12 AM   #1
LQ Newbie
Registered: Jun 2005
Location: India
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
Error compiling kernel in FC4

Hi all,

I'm trying to compile the new kernel (which I downloaded from in my FC4. I managed to compile them successfully in the first few attempts (usually with minimum modifications to the default configuration). But the resultant modules were too many and the system was a bit too slow for my taste. I decided to trim it down to speed up the operation, by selecting only the modules which (I think) were quite enough for my configuration. After the xconfig, make bzImage, make modules && make modules_install went fine (though I did notice many warnings). After that I issued the following command:

/sbin/mkinitrd /boot/initrd-

But I got the following error:

Error: No module piix found in kernel, Aborting.....

What could be the feature that has to be enabled (or disabled) to rectify this error? I tried changing the configurations many times (without trying to make them bloated), but the error remains the same. Or is the error due to something else?

I would love to have some advice on this matter.

Old 08-17-2005, 01:23 PM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187
Probably the simplest thing to do would be to eliminate the initrd ("initial ram-disk") altogether. If you do need one, then make install should build it. But you really do not need one, and really do not want one.

Since this is the newbie forum, let me briefly explain what initrd's are, why we have them and what they do...

This file is a complete disk-image, directories and all, usually compressed. When the system boots, this disk-image is loaded into memory (usually by the boot-loader), decompressed, and made available as a tiny, mounted, disk. The kernel searches for and executes a single command-file off of this disk, which usually runs under the auspices of a microsocopic special-purpose shell called nash. What this command-file is supposed to do is to perform any tasks that need to be run before the "real" kernel can boot. This is where the pre-boot menus of a rescue-disk come from. It's also where modules for SCSI support or ext3 filesystem support can be loaded, before the kernel starts, so that the kernel can start.

Unless a particular action must be performed so that the kernel can finish starting, such as loading a certain disk-device driver or filesystem handler, you don't need an initrd. Linux does not have to have one. Once the system is up-and-running, there are plenty of other opportunities to get a kernel-module loaded.

If you are building your own kernel, you know what it needs to boot on your hardware, and you can simply insert that support directly into the kernel itself. This does not have to include "everything." I'm not saying "don't modularize anything." Once the core kernel is up and running, with the kernel module-loader daemon running and all of that, you're free to load whatever modules you wish in order to complete the startup sequence. All that must be resident are the device-drivers and filesystems that you must use to access those devices that are required at boot-time.

Also... with 2.6 the kernel-module conventions have changed considerably anyhow. I'm not fully schooled on how they affect initrd's, but the solution is the same: avoid the issue.

Last edited by sundialsvcs; 08-17-2005 at 01:33 PM.


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 kernel 2.4 in FC4 ilyushin Linux - Newbie 7 08-09-2005 02:30 AM
2.2.26 Kernel Compiling error arurank Linux - Software 2 08-06-2005 06:56 PM
Error while compiling the kernel macburton Linux - Software 6 12-23-2004 10:04 PM
Error while compiling kernel jeffreybluml Linux - Newbie 11 06-10-2004 01:32 PM
Error in compiling kernel solitarygod Linux - General 2 06-02-2004 11:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:25 AM.

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