Section 6.6.3, updating the, Megaraid kernel driver module in the freebsd os – Avago Technologies MegaRAID SAS 9240-4i User Manual
Page 33

LSI Corporation
- 33 -
MegaRAID SAS Device Driver Installation User Guide
December 2012
Chapter 6: FreeBSD Driver Installation
Updating Drivers in the FreeBSD System
b.
For the mrsas driver, type the following commands and press Enter.
# cd /usr/src/sys/modules/mrsas
# make
These steps create the driver driver_name.ko module in the /usr/src/sys/modules/driver_name directory.
5.
To load the kernel driver module, type the following commands, depending on which driver you use, and press
Enter.
a.
For the mfi driver, type the following commands and press Enter.
# cd /usr/src/sys/modules/mfi
# kldload -v ./mfi.ko
b.
For the mrsas driver, type the following commands and press Enter.
# cd /usr/src/sys/modules/mrsas
# kldload -v ./mrsas.ko
6.
To load the driver automatically during bootup, but still be linked dynamically, perform the following steps,
depending on which driver you use:
a.
To copy the mfi driver into the boot folder, type the following command, and press Enter.
# cp /usr/src/sys/modules/mfi/mfi.ko /boot/kernel/mfi.ko
b.
To copy the mrsas driver into the boot folder, type the following command, and press Enter.
# cp /usr/src/sys/modules/mrsas/mrsas.ko /boot/kernel/mrsas.ko
c.
For the mfi driver, enter the following line in the file /boot/loader.conf:
mfi_load="YES"
d.
For the mrsas driver, enter the following line in the file /boot/loader.conf:
mrsas_load="YES"
6.6.3
Updating the MegaRAID Kernel Driver Module in the FreeBSD OS
This section describes how to update the MegaRAID driver with a kernel driver module in the FreeBSD OS.
Perform the following steps to update the MegaRAID driver with a kernel driver module in the FreeBSD OS:
1.
Download and extract the driver.
See
Section 6.2, Obtaining LSI FreeBSD Drivers
, for instructions.
2.
Back up any critical data before you update the MegaRAID driver.
3.
If your OS kernel is not a customized one, make sure your kernel is prepared for the dynamically loadable module
described in
Section 6.6.1, Updating the Kernel with the New Driver Source
4.
Change the directory to the location with the extracted driver.
5.
To copy the driver into the /boot/kernel directory, perform the following steps, depending on which driver
you use.
a.
For the mfi driver, type the following command, and press Enter.
# cp mfi.ko /boot/kernel
NOTE Back up the old module in case you want to revert back to it.
NOTE Make a backup of your original driver before updating the MegaRAID driver in case you need to revert
back to it. However, you cannot revert back to the original driver if you are booting from that unit.
- MegaRAID SAS 9240-8i MegaRAID SAS 9260-16i MegaRAID SAS 9260-4i MegaRAID SAS 9260-8i MegaRAID SAS 9261-8i MegaRAID SAS 9270-8i MegaRAID SAS 9271-4i MegaRAID SAS 9271-8i MegaRAID SAS 9271-8iCC MegaRAID SAS 9280-16i4e MegaRAID SAS 9280-4i4e MegaRAID SAS 9280-8e MegaRAID SAS 9286-8e MegaRAID SAS 9286CV-8e MegaRAID SAS 9286CV-8eCC MegaRAID SAS 8204ELP MegaRAID SAS 8204ELP (Channel) MegaRAID SAS 8204XLP MegaRAID SAS 8204XLP (Channel) MegaRAID SAS 8208ELP MegaRAID SAS 8208ELP (Channel) MegaRAID SAS 8208XLP MegaRAID SAS 8208XLP (Channel) MegaRAID SAS 8300XLP MegaRAID SAS 8308ELP MegaRAID SAS 8344ELP MegaRAID SAS 84016E MegaRAID SAS 84016E (Channel) MegaRAID SAS 8408E MegaRAID SAS 8480E MegaRAID SAS 8704ELP MegaRAID SAS 8704ELP (Channel) MegaRAID SAS 8704EM2 MegaRAID SAS 8704EM2 (Channel) MegaRAID SAS 8708ELP MegaRAID SAS 8708ELP (Channel) MegaRAID SAS 8708EM2 MegaRAID SAS 8708EM2 (Channel) MegaRAID SAS 8880EM2 MegaRAID SAS 8880EM2 (Channel) MegaRAID SAS 8888ELP MegaRAID SAS 8888ELP (Channel) MegaRAID SAS 0260CV-4i MegaRAID SAS 0260CV-8i MegaRAID SAS 0260DE-8i MegaRAID SAS 0260DE-8i (Channel) MegaRAID SAS 9265-8i MegaRAID SAS 9280DE-8e MegaRAID SAS 9280DE-8e (Channel) MegaRAID SAS 9285-8e