Updating megaraid_sas driver on Ubuntu

Michael Blinn mblinn at peopleplaces.org
Mon Apr 14 11:05:34 CDT 2008


Following are the commands that worked for me to update the megaraid_sas 
driver for Ubuntu. I'm currently running Ubuntu's packaged kernel 
2.6.24-16-generic so I built my module using the 2.6.24 kernel source. 
I'm not very familiar with Debian, but I can only assume there will only 
be minor changes to the below.

sudo aptitude install ncurses-dev kernel-package
sudo apt-get build-dep linux-source-2.6.24 fakeroot
sudo apt-get source linux-image-2.6.24-16-generic
cd linux-2.6.24/
sudo cp /boot/config-2.6.24-16-generic .config
# Download the raw /drivers/scsi/megaraid/* files from here 
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=tree;f=drivers/scsi/megaraid;h=675f42ebee8df6b54f92e03b4414df63c6dd7139;hb=HEAD 
and put them INTO the drivers/scsi/megaraid/ directory, replacing the 
previous files. Leave Kconfig.megaraid untouched.
sudo make menuconfig    # just exit from menuconfig
sudo vi Makefile  # Set EXTRAVERSION = -16
sudo make-kpkg --rootcmd fakeroot --initrd --append-to-version=-generic 
kernel-image
# Wait a long time for the kernel and modules to build #
sudo cp 
/lib/modules/2.6.24-16-generic/kernel/drivers/scsi/megaraid/megaraid_sas.ko 
/megaraid_sas.ko.original
sudo cp drivers/scsi/megaraid/megaraid_sas.ko 
/lib/modules/2.6.24-16-generic/kernel/drivers/scsi/megaraid/megaraid_sas
sudo update-initramfs -u
# Reboot into your same 2.6.24-16-generic kernel and you should be able 
to /sbin/modinfo megaraid_sas and see version: 00.00.03.16-rc1

G'luck,
 Michael Blinn

-- 
 

CONFIDENTIALITY NOTICE:
This message, and any attachments that may accompany it, 
contain information that is intended for the use of the 
individual or entity to which it is addressed and may 
contain information that is privileged, confidential, or 
otherwise exempt from disclosure under applicable law.
If the recipient of this message is not the intended
recipient, any disclosure, copying, or other use of this
communication or any of the information, which it
contains is unauthorized and prohibited.  If you have
received this message in error, please notify the
original sender by return mail and delete this message,
along with any attachments, from your computer.
Thank you.  



More information about the Linux-PowerEdge mailing list