LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2004, 06:04 PM   #1
seanro
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
Newbie kernel compile problem


Hello

After spending 15 years of my life fighting with Windows, I'm starting out in the Linux world!

I love what I've seen so far. One problem though:

I'm on Slackware 9.1 trying to compile the 2.4.22 kernel.

I've followed the instructions to a T:

make mrproper
make menuconfig
make dep
make clean
make bzImage
make modules
make modules_install

Copy the new kernel into /boot and add to lilo.conf

When I reboot with the new kernel, I get the following:

kmod: failed to exec /sbin/modprobe -s -k block-major-8, errno = 2
VFS: Cannot open root device "801" or 08:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 08:01

And the system hangs. The "root" option in my lilo.conf is correct.

Any suggestions for this noob?

Thanks!
 
Old 02-05-2004, 06:13 PM   #2
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
Do not compile IDE or IDE chipset support as a module. You need it compiled directly into the kernel or else it can't read your disk or root filesystem... which is why it can't read modules.
 
Old 02-05-2004, 07:08 PM   #3
seanro
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
One strange thing: I noticed that after I ran make mrproper, the .config file was deleted. When I went into make menuconfig (with a new configuration being taken from the existing kernal I assume) the settings were not the same as in the original .config file (processor family was different, HIMEM support was set, etc).

Using the original .config file, I triple checked to make sure that IDE, SCSI, and RAID support were compiled into the kernel (my CDROM is IDE, hard drives SCSI raid).

Went through the compile routine again and BANG... the same problem!

Anyone else gotten this?
 
Old 02-05-2004, 07:46 PM   #4
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Did you run lilo after installing the new kernel and after the modification of lilo.conf ?

And it is not strange your .config file is gone after running 'make mrproper', that's expected behaviour. It will clean your kernel-source tree including config files. But there is no need to run 'make mrproper' first. The make clean after make dep is good enough.
 
Old 02-06-2004, 01:53 AM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
To add to rotvogel's comments - any changes you make to /etc/lilo.conf will not take effect until you rerun the lilo program, which you can do by running this command: /sbin/lilo

After that, reboot and lilo should display a menu listing the different choices you've got on your PC. Overall, the steps you are describing for the 2.4.xx compile sound correct to me. If you still have problems, please post your lilo.conf -- J.W.
 
Old 02-06-2004, 11:04 AM   #6
seanro
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Ok I finally got it fixed!

I had compiled SCSI and RAID support into the kernel, but the SCSI host adapter was being compiled as a module.

I'm on a Dell PowerEdge 1750 with PERC 4/Di RAID. I did a little research on the web and found out the MegaRaid driver is compatible. Compiled that in and... it works!

Thanks for the help... your posts definitely guided me in the right direction!
 
  


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
newbie Kernel compile problem begining Linux - Newbie 11 08-05-2005 02:12 AM
another newbie with Kernel compile problems tinyredpea Linux - General 7 10-10-2004 06:20 PM
compile kernel help for newbie gazza Linux - Software 0 07-07-2004 06:37 PM
newbie wants to compile new kernel taoweijia Linux - Newbie 2 01-30-2004 12:37 PM
kernel compile for newbie directory problem mipia Slackware 13 07-04-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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