LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't mkinitrd for Kernel 2.6.11.6 (when compiling) (https://www.linuxquestions.org/questions/linux-newbie-8/cant-mkinitrd-for-kernel-2-6-11-6-when-compiling-308905/)

LordOfer 04-02-2005 06:21 AM

Can't mkinitrd for Kernel 2.6.11.6 (when compiling)
 
This is the first time I compile a kernel. I did everything tutorials say (configured, make dep, clean, modules, modules_install, bzImage...).
I am using grub as a boot loader, so I needed to create an .img file like this:
mkinitrd /boot/initrd-2.6.11.6.img 2.6.11.6
(and there realy is a "2.6.11.6" directory in /lib/modules).
But I get the error: "No dep file found for kernel 2.6.11.6"
and no .img file is created.

Why do I get this error, and how do I solve it?
Is it possible that it happence because I didn't configure things properly, and included some essential things as models? Is there any other way to create the neede .img file?

thanks for your help
:) :study: :)

macemoneta 04-02-2005 09:43 AM

You need to run:

depmod -a 2.6.11.6

before you run mkinitrd.

btmiller 04-02-2005 11:13 AM

Also, if you compile all the stuff your kernel needs to boot directly in (i.e. not as a module) you don't need to bother with an initrd. This is always what I do because it makes the process simpler.

LordOfer 04-02-2005 11:20 AM

Thanks for you help guys
 
it helped a lot :)


All times are GMT -5. The time now is 01:10 AM.