beautypg.com

Avago Technologies MegaRAID SAS 9341-4i User Manual

Page 38

background image

Avago Technologies

- 38 -

MegaRAID SAS Device Driver Installation User Guide
June 2015

FreeBSD Driver Installation

Updating Drivers in the FreeBSD System

4.

Unpack the compressed

mrsas driver source file and move the sys/dev/mrsas directory to the

/usr/src/sys/dev/mrsas directory.
a.

Enter the

# cp -r /sys/dev/mrsas

/usr/src/sys/dev/command.

b.

Enter the

# cp -r /sys/modules/mrsas

/usr/src/sys/modules/ command to copy the sys/modules/mrsas directory to the
/usr/src/sys/modules/ directory.

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 file name. For example:

# cp GENERIC MYKERNEL

b.

Open your current configuration file (

GENERIC, MYKERNEL, SMP, or PAE, or custom configuration), with vi

or another editor. For example:

For a dynamically loadable module, comment out the following lines by typing

# at the start of the line:

For the mrsas driver, comment out the following line by typing

# at the start of the line, if it exists:

#device mfi # LSI MegaRAID SAS

#device

mrsas

# LSI MegaRAID SAS2

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

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

c.

Save your changes.

NOTE

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

d.

In the

/usr/src/sys/conf/ file, perform the following steps for the mfi driver or the MegaRAID SAS

driver, depending on which driver you use:

For the mrsas driver, make sure that the following entries are present:

dev/mrsas/mrsas.c

optional mrsas

dev/mrsas/mrsas_cam.c

optional mrsas

dev/mrsas/mrsas_ioctl.c

optional mrsas

dev/mrsas/mrsas_fp.c optional mrsas

dev/mrsas/mrsas_linux.c optional mrsas

NOTE

Make sure if a new

*.c file is added, then entry for that should be

added in the same manner as above.Each line is an entry in this file.
Make sure a newly added entry is on a new line.

e.

Save your changes.

f.

To compile the kernel, go to the

/usr/src directory, type the following commands if your current

configuration is MYKERNEL, and press Enter.

# cd /usr/src