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 33

background image

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.