LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2005, 04:13 AM   #1
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
Problem compiling my first kernel


Hi,
I am new to kernel compilation. I have never compiled a kernel before.
Today I said I must learn how to compile my kernel (who knows when I need it )

1) I downloaded the kernel from kernel.org (2.4.29)
2) a) make menuconfig
b) make dep
c) make bzImage
d)make modules
e) make modules_install
3) cp the new compiled kernel vmlinuz-2.4.29 in /boot
4) configure the boot manager (grub) to user the new compiled kernel.


I am using RedHat 9.
The problem is that when I boot with my new kernel I get the following error:

no socket drivers loaded
VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
kernel panic: VFS: Unable to mount root fs on 00:00


Does anyone know what I did wrong?
For my old kernel I also use initrd /boot/initrd-2.4.20-8.img

How I get a good initrd image for my new kernel? Where can I get it from? Do I need it? Can anyone explain me what is this initrd*.img

thanks
 
Old 02-17-2005, 04:17 AM   #2
tisam
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian unstable,2.6.10
Posts: 15

Rep: Reputation: 0
What about :
cp /usr/src/linux<version>/System.map /boot/System.map<version>
mkinitrd -o /boot/initrd-<version> /lib/modules/<version>
?
 
Old 02-17-2005, 04:55 AM   #3
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Original Poster
Rep: Reputation: 30
There is no initrd<version_of_my_new_compiled_kernel>.img in the boot directory. There is only an initrd_version_of_my_old_kernel.img.

Where can I get the initrd<version_of_my_new_compiled_kernel>.img?
 
Old 02-17-2005, 05:27 AM   #4
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
tisam already told you. It's the 2 lines between "What about:" and "?".
And you shouldn't delete the old image nor its grub entry until you're not sure the new one is working as it should.
 
Old 02-23-2005, 10:59 AM   #5
mulholland
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
for solving the panic :unable to mount root fs, try to recompile the kernel 2.4.29
by including ""initalise from RAM"" in BLOCK DEVICES in the menu as a module.This might work.
 
Old 02-23-2005, 11:00 AM   #6
mulholland
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
for solving the panic :unable to mount root fs, try to recompile the kernel 2.4.29
by including ""initalise from RAM"" in BLOCK DEVICES in the menu as a module.This might work.
plz reply to logtushar@rediffmail.com if this works.
 
  


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
Problem compiling Kernel 2.6.10 AJones Linux - Software 2 02-12-2005 05:37 AM
problem compiling kernel :( djh Slackware 13 11-14-2004 07:45 PM
Kernel compiling problem [2.6.8.1]! Corallis Slackware 8 09-05-2004 04:55 PM
Kernel compiling problem IRIGHTI Slackware 2 10-19-2003 03:19 PM
problem for compiling kernel bush Linux - General 3 05-16-2003 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 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
Open Source Consulting | Domain Registration