1832204 Members
2571 Online
110039 Solutions
New Discussion

Upgrade kernel

 
hangyu
Regular Advisor

Upgrade kernel

I want to upgrade the RH kernel , I have downloaded the kernel src rpm file , could advise what I need to do after install the rpm ? I can't startup the server with the new kernel , it seems the new kernel can't detect the hardware , what do I need to setup ? thx
10 REPLIES 10
Muthukumar_5
Honored Contributor

Re: Upgrade kernel

what is the error you are getting on rebooting machine with new kernel?

hth.
Easy to suggest when don't know about the problem!
Alessandro Pilati
Esteemed Contributor

Re: Upgrade kernel

Hangyu,
have a look to these documentations:

http://www.redhat.com/support/resources/howto/kernel-upgrade/kernel-upgrade.html

http://www.redhat.com/support/resources/howto/kernel-upgrade/s1-before-upgrade.html

Ensure you have followed all the steps.
And post us a more detailed explanation of the error.

Regards,
Alex
if you don't try, you'll never know if you are able to
HugoAlmeida
Trusted Contributor

Re: Upgrade kernel

You must compile your new kernel to reflect your hardware. By default the linux kernel will include a lot of hardware, most of them you don't need. However there is a chance that some of your hardware is not enabled by default.
Stuart Browne
Honored Contributor

Re: Upgrade kernel

Umm, why are you downloading a SRC RPM?

Why not just install the pre-compiled RPM, which does all the leg-work for you?

The SRC RPM has the kernel-source, not a compiled kernel.
One long-haired git at your service...
Ivan Ferreira
Honored Contributor

Re: Upgrade kernel

As Stuart said, you need to download the kernel-version.rpm file, not the kernel-version.src.rpm.

If you download the kernel-version.rpm file, install it using:

rpm -ivh kernel-version.rpm

If you download the kernel-version.src.rpm, you need to explode the source tree and then run the kernel compilation process.

cd /usr/src/kernel-version/
make mrproper
cp /boo/config-version .config
make dep
make clean (depending of the version)
make bzImage
make modules
make modules_install
make install
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
hangyu
Regular Advisor

Re: Upgrade kernel

I hv already install the binary rpm , but it seems not detect the existing hardware , could suggest what can i do ? thx
Ivajlo Yanakiev
Respected Contributor

Re: Upgrade kernel

If you work with old kernel ?
You should be work without any problem with new one.
If you install kernelxxx.rpm it will add new kernel and will add new option into your boot manger.
You no need to do make .......
VEL_1
Valued Contributor

Re: Upgrade kernel


If u used GRUB, check /etc/grub.conf file whether the new kernel & image is specified.
And also check the /boot file for the new kernel & image file.

Eg:

# ls -l /boot/initrd-2.6..img
-rw-r--r-- 1 root root 146469 Aug 4 2004 /boot/initrd-2.6..img

# ls -l /boot/vmlinuz-2.6.
-rw-r--r-- 1 root root 1122186 Mar 14 2003 /boot/vmlinuz-2.6.

Check the grupb.conf file for entries of new kernel.

hangyu
Regular Advisor

Re: Upgrade kernel

thx replies,

the error when reboot the new kernel as below,

ERROR: /bin/insmod exited abnormally!

Loading mptbase.o module


Hint: insmod errors can be caused by incorrect module parameters, including invalid
IO or IRQ parameters

could suggest what is the problem when upgrade the server ? thx
peterchu
Super Advisor

Re: Upgrade kernel

could suggest how to make the system detect/know the hardware ? thx