LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-21-2006, 07:06 PM   #1
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 21

Rep: Reputation: 0
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.
 
Old 12-22-2006, 03:00 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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;

http://thomer.com/linux/migrate-to-2.6.html
http://www.fearthecow.net/index.pl?s...st&page=kernel

And yes you need to run an smp kernel to use both CPU's, the configuration of the kernel should allow for this.
 
Old 12-25-2006, 12:01 PM   #3
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks for the help mate,

However i already have all of the stuff installed and up to date.

I tried compiling kernel 2.6.19-1 the other day but im still getting the following error when trying to create the ram disk:

"No module aic7xxx found for kernel 2.6.18.1"

Can anyone tells me what causes this error and how i can get around it?

Thanks
 
Old 12-25-2006, 08:45 PM   #4
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 21

Original Poster
Rep: Reputation: 0
Update:

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.

Thanks in advance.

Jim
 
Old 12-26-2006, 08:30 AM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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;

http://www.digitalhermit.com/linux/K...ild-HOWTO.html

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.

Good Luck
 
Old 12-26-2006, 06:29 PM   #6
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks for the advice mate.

Can u tell me more about changing the OS?
Do u mean scrap red hat and more to another distro?

What distro would u recommend using thats easier to compile 2.6? And is generly better than rathat.

What are the advantages of changing to a diff os than upgrading the kernel on red hat.

Or do u mean scrap linux altogether? If so i dont want to use Microsoft. Want to stay with unix or linux.

Or would i be best staying with a 2.4 kernel?

Thanks for the help.

Jim
 
Old 12-27-2006, 08:58 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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.

http://www.centos.org/
https://www.scientificlinux.org/
http://fedora.redhat.com/

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.
 
Old 12-28-2006, 05:40 PM   #8
jim_cliff11
LQ Newbie
 
Registered: Jan 2004
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks for the advice and help Lenard.

I downloaded and installed Fedora 6, however i am having very strange problems with that now Its driving my crazy.

My Fedora thread is viewable at:

http://www.linuxquestions.org/questi...d.php?t=514429
 
  


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
"Successful install" results in "Boot device not found" slackr007 Fedora 2 06-21-2005 04:05 PM
"Successful install" results in "Boot device not found" slackr007 Linux - Newbie 2 05-31-2005 08:02 PM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 09:15 PM
No aic7xxx module found for kernel redhat_zephyr Linux - Software 4 03-17-2004 08:10 AM
Compiling a kernel module results in "insmod" version mvega Linux - General 2 07-30-2003 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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