mkinitrd results in: "No module aic7xxx found for kernel 2.6.18.1"
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mkinitrd results in: "No module aic7xxx found for kernel 2.6.18.1"
Hi guys,
Im trying to upgrade to kernel 2.6.18-1 on my server, however im having problems.
The server has a raid 0 setup on it and im sure this might be effecting my kernel instllation. Currently installed is the standard 2.4 kernel which runs fine with no problems.
Anyway......
Once ive made and configured the kernel and copied it to the /boot directory with system.map i then use the command "mkinitrd /boot/initrd-2.6.18-1.img 2.6.18.1". When ever i try this command i get the following message appear "No module aic7xxx found for kernel 2.6.18.1".
Ive done abit of research and found alot of people have said compile the FS, SCSI and RAID modules into the kernel that way you wont need the initial ramdisk.
So i started again and compiled all the support for my hardware inc the above into the kernel itself so i dont need a ramdisk. Then i used the "make" command followed by "make modules". Copied the kernel and system.map to boot, then used "make modules_install" command and finally added the new kernel to the menu.lst which looks like:
title Red Hat Linux (2.6.18-1)
root (hd0,0)
kernel /bzImage-2.6.18-1 ro root=LABEL=/
title Red Hat Linux (2.4.20-8smp)
root (hd0,0)
kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/
initrd /initrd-2.4.20-8smp.img
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
Now when reboot from the 2.6 kernel i get a kernel panic:
"kernel panic - not syncing : VFS: unable to mount root FS on unknown-block (0,0)"
Im unsure of what to do to fix this, ive tried recompiling the kernel a few times and starting from scratch. If i use modules for the scsi and try to make an initrd i get the No module aic7xxx error. Whereas if i compile everything into the kernel i get the kernel panic.
What is causing this problem as i didnt have it before when upgrading my other machine to 2.6.18-1?
How can i get round the problems and install the kernel successfully?
Any help appriciated!
Cheers.
Jim
Ps. The server has a dual CPU setup running, would i need a special kernel especially for running 2 CPU's? Could this effect it?
Last edited by jim_cliff11; 12-21-2006 at 07:26 PM.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
It takes a lot more then building a new 2.6 kernel you also have to install and upgrade some packages. Here are a couple of old links to guide you along this process;
Ok all, i managed to get a ram disk created by copying the aic7xxx.ko module to aic7xxx.o and ips.ko to ips.o. I then ran the normal mkinitrd command and it was made. However after rebooting i got a "Module insmod: QM_MODULES: ERROR /bin/insmod exited abnormally!" error message.
Then i did a few more hours research and realised that i needed the new modutils which dosnt actually exist anymore and has been replaced by a new package called module-init-tools. So i downloaded the latest version of that and installed it.
I then remade the ram disk and rebooted only to be greeted with "insmod: error inserting '/lib/aic7xxx.o': -1 unknown symbol in module" and the same error for ips.o.
After all these errors the same kernel panic appeared on boot saying that VFS root could not be loaded or something, i cant remember quite how it went now.
I cant understand why the modules wont load on startup even with updating to module-init-tools. Im really stuck and unfortunatly im back to square 1!
I would really appriciate anyone who could help me out with this.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
You really should consider upgrading the OS instead of attempting to build a 2.6 kernel for a large number of reasons. The renaming kernel modules is not an acceptable way to fix the booting problem, it does not work. You are in need of additional packages to build a 2.6.18.1 kernel like udev and other packages.
Please review the ~/linux-<version number>/Documentation/Changes file for the requirements to build the kernel and this link;
To build a kernel for the Red Hat family the steps in order are, yes this does differ from the kernel rebuild guide(the link above) but they work rather well;
make mrproper
make menuconfig
make
make modules_install
make install
Spend the time required while using the 'make menuconfig' command to configure the kernel to meet your hardware requirements, the default configuration will not work and using an old 2.4 configuration will not work either (far to many changes in the kernel series for this to work). You might want to use 'make oldconfig' before the 'make menuconfig' command to get you started in the configuration.
FYI: you have prebuilt Red Hat Linux 9 kernels judging by;
Quote:
title Red Hat Linux (2.4.20-8smp)
root (hd0,0)
kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/
initrd /initrd-2.4.20-8smp.img
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
Which are not really standard kernels except for Red Hat Linux 9.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
No, I am not suggesting you scrap Linux just the defunct Red Hat Linux 9. Nobody supports it any longer and Red hat ended support over three years ago.
If staying with the Red Hat family, fedora Core is the replacement series for the old Red hat Linux series. CentOS, Scientific Linux and others are freely available 100% binary compatible 'clones' of the Red Hat Enterprise Linux series.
All the latest versions are 2.6 kernel based, Fedora Core 5/6 is 2.6.18 kernel based while CentOS and SL are currently 2.6.9 based. Red Hat will be releasing RHEL5 shortly which is based on the 2.6.18 kernel and the work done on FC6/7 and the 'clones' will have releases shorty afterwards. Support for the RHEL series is in years while support for the Fedora Core series is in months (18-24).
If you want to stay with the 2.4 kernel series and have support available then look at CentOS, SL or the other 'RHEL3 clones' that are available.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.