beautypg.com

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

Page 43

background image

LSI Corporation

- 43 -

MegaRAID SAS Device Driver Installation User Guide

June 2014

FreeBSD Driver Installation

Updating Drivers in the FreeBSD System

5.

To load the kernel driver module, type the following commands, depending on which driver you use, and
press Enter.

For the mfi driver, type the following commands and press Enter.

# cd /usr/src/sys/modules/mfi

# kldload -v ./mfi.ko

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:

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

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

NOTE

Back up the old module in case you want to revert back to it.

For the mfi driver, enter the following line in the /boot/loader.conf file:

mfi_load="YES"

For the mrsas driver, enter the following line in the /boot/loader.conf file:

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.

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.

Perform the following steps to update the MegaRAID driver with a kernel driver module under 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.

Change the directory to the location with the extracted driver.

4.

To copy the driver into the /boot/kernel directory, perform the following steps, depending on which driver
you use.

For the mfi driver, type the following command, and press Enter.

# cp mfi.ko /boot/kernel

For the mrsas driver, type the following command, and press Enter.

# cp mrsas.ko /boot/kernel

Make sure that the module version (32-bit or 64-bit) matches the FreeBSD version. If the versions do not match, a
kernel panic might occur.