为centos的新内核安装火箭raid卡的驱动。How to get Rocket Raid 2310 drivers to work with Linux Centos 5 latest kernel 2.6.18-92.1.10.el5
********* STEPS DONE TO INSTALL ROCKET RAID 2310 DRIVERS FOR LINUX KERNEL *************
*Note I both either compiled my rocket raid driver rr2310_00.ko or downloaded it from
http://www.highpoint-tech.com/USA/bios_rr2310.htm
Step 1.
cd to /lib/modules/`uname -r`/extras/ OR /lib/modules/`uname -r`/updates/ depending on where your module .ko file is located. In my case the raid module rr2310_00.ko was located in the updates dir
Step 2.
run this command (actually a bunch of commands) from the bash shell
cd /tmp; mkdir x; cd x; cat /boot/initrd-
In my case "initrd-
"initrd-2.6.18-8.1.8.el5xen.img", the newly compiled kernel version so I ran the command:
cd /tmp; mkdir x; cd x; cat /boot/initrd-2.6.18-8.1.8.el5xen.img | gunzip | cpio -idv
Step 3.
From the last command your pwd or "present working directory" should be "x"
go to the lib dir and see if you find the .ko driver/module in there. If you see it then something else is preventing you from booting into the new kernel. If not then continue reading
Step 4.
Copy the .ko file to the /lib/modules/
Step 5.
Run command depmod -a 2.6.18-8.1.8.el5xen; mkinitrd
In my case I ran the command
depmod -a 2.6.18-8.1.8.el5xen; mkinitrd initrd-2.6.18-8.1.8.el5xen.img 2.6.18-8.1.8.el5xen
**Note
after running this command make sure to COPY THE NEWLY CREATED
***Please Note
In my case
Step 6.
Remove the temporary x dir
rm -rf /tmp/x/
Step 7.
Rerun the command
cd /tmp; mkdir x; cd x; cat /boot/initrd-
In my case "initrd-
"initrd-2.6.18-8.1.8.el5xen.img" (check your /boot dir), the newly compiled kernel version so I ran the command:
cd /tmp; mkdir x; cd x; cat /boot/initrd-2.6.18-8.1.8.el5xen.img | gunzip | cpio -idv
Step 8.
Check the lib directory and confirm that the .ko file is now present in the initrd. It should be. If it is not then you missed a step, wash and repeat (repeat the steps again).
Step 9.
Once confirming that the .ko file is present in the initrd you can rm -Rf /tmp/x and you can now reboot into your latest kernel build using the raid module from your previous bootable kernel. Congratulations.
*****These instructions no longer work with kernel versions > 2.6.18-92.1.10.el5 on Centos 5
转载请注明来自suibing的博客 http://www.suibing.com
文章作者:suibing
本文地址:http://www.suibing.com/377.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!
