beautypg.com

Avago Technologies MegaRAID SAS 9240-4i User Manual

Page 31

background image

LSI Corporation

- 31 -

MegaRAID SAS Device Driver Installation User Guide

December 2012

Chapter 6: FreeBSD Driver Installation

Updating Drivers in the FreeBSD System

b.

Move the *.c and *.h files to /usr/src/sys/dev/driver_name (which is mfi for the mfi driver and
mrsas for the mrsas driver).

c.

Move the Makefile to the /usr/src/sys/modules/driver_name (which is mfi for the mfi driver and
mrsas for the mrsas driver).

For example, to unpack the compressed driver source file and move the Makefile for the mfi driver, enter the
following commands and press Enter:

# cd /usr/src/sys/dev

# tar -xf mfi.tgz

# mv mfi/Makefile /usr/src/sys/modules/mfi/

To unpack the compressed driver source file and move the Makefile for the mrsas driver, enter the following
commands and press Enter:

# cd /usr/src/sys/dev

# tar -xf mrsas.tgz

# mv mrsas/Makefile /usr/src/sys/modules/mrsas/

5.

Go to /usr/src/sys/i386/conf if you are running a 32-bit version of the FreeBSD OS, or

/usr/src/sys/amd64/conf

if you are running a 64-bit version of the FreeBSD OS, and perform the

following steps:

a.

Copy the GENERIC configuration file to another filename. For example:

# cp GENERIC MYKERNEL

b.

Open your current configuration file (GENERIC, MYKERNEL, SMP, or PAE, or custom config), with vi or
another editor. For example:

# vi MYKERNEL

c.

Comment out the following lines by typing # at the beginning of the line:

#device cbb # cardbus (yenta) bridge

#device mpt # LSI-Logic MPT-Fusion

For a dynamically loadable module, comment out the following line by typing # at the beginning of the line:

#device mfi # LSI MegaRAID SAS

For the mrsas driver, comment out the following line by typing # at the beginning of the line, if it exists:

#device mrsas # LSI MegaRAID SAS2

For a statically linked module, make sure the following lines are not commented out:

For the mfi driver, make sure the following line is not commented out:

device mfi # LSI MegaRAID SAS

For the mrsas driver, make sure the following line is not commented out:

device mrsas # LSI MegaRAID SAS2

If you do not have a MegaRAID 92XX or earlier controller installed in your system, make sure to comment out
the following line:

#device mfi # LSI MegaRAID SAS

d.

Save your changes.

NOTE Each line is an entry in this file. Make sure a newly added entry is on a new line.