LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06: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, 09: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: 344Reputation: 344Reputation: 344Reputation: 344
You need to run:

depmod -a 2.6.11.6

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

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 11:20 AM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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