LinuxQuestions.org
Register a domain and help support LQ
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 04-02-2005, 07:21 AM   #1
LordOfer
LQ Newbie
 
Registered: Jul 2004
Location: Israel
Distribution: Fedora 2
Posts: 21

Rep: Reputation: 0
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: :)
 
Old 04-02-2005, 10:43 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You need to run:

depmod -a 2.6.11.6

before you run mkinitrd.
 
Old 04-02-2005, 12:13 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
Old 04-02-2005, 12:20 PM   #4
LordOfer
LQ Newbie
 
Registered: Jul 2004
Location: Israel
Distribution: Fedora 2
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks for you help guys

it helped a lot
 
  


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
Trouble compiling kernel, mkinitrd step shrndegruv Linux - Software 3 01-23-2005 01:57 AM
what mkinitrd flag to use when compiling kernel for suse 9.1 feetyouwell Linux - Software 0 11-15-2004 11:41 AM
kernel 2.6.6 mkinitrd problem ziox Linux - Software 0 07-13-2004 08:48 PM
mkinitrd problems (compiling new kernel) qsir1 Linux - Software 5 03-01-2004 10:40 AM
mkinitrd problems when compiling DropHit Red Hat 15 12-24-2003 07:41 PM


All times are GMT -5. The time now is 02:52 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