Newbie kernel compile problem
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:
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?
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.
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?
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.
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.
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!
|All times are GMT -5. The time now is 01:44 AM.|