beautypg.com

If y, Ions in, Drivers – Avago Technologies MegaRAID SAS 9240-4i User Manual

Page 35

background image

LSI Corporation

- 35 -

MegaRAID SAS Device Driver Installation User Guide

June 2014

FreeBSD Driver Installation

Installing the FreeBSD OS on Storage Managed by a MegaRAID Controller (Primary Storage)

6.

Perform the following steps at the loader prompt:

a.

To disable the mpt driver, type the following commands and press Enter.

set hint.mpt.0.disable=1

set hint.mpt.1.disable=1

NOTE

Disabling the mpt driver is not required when you use a custom ISO
image because the mpt driver will not exist if the custom image was
created correctly. A custom ISO is required only for the OS versions
that need it as a prerequisite, as described at the start of this section.

b.

To load a new driver from a diskette drive, type either of the following two commands and press Enter.

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

load disk0:mfi.ko

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

load disk0:mrsas.ko

NOTE

If you have multiple units or devices for the OS installation, and the
unit or device that you want to use for the installation is not disk0;
change disk0 to the appropriate number, such as disk1 or disk5.
The lsdev command lists all of the devices from which you can load
the driver. If you use a USB flash drive, you might need to insert the
flash drive before booting so that it can be accessed in this step.

7.

To continue the installation procedure, type the following command, and press Enter.

boot

8.

Install the FreeBSD OS, including the kernel source.

It is very important to include the kernel source files.

9.

Remove both the FreeBSD installation disk from the CD/DVD drive, and the diskette from the diskette drive (or the
USB flash drive, if used), and reboot.

10. On bootup, repeat step

4

through step

7

.

11. Upon boot, continue with the instructions in

Section 6.6.1, Updating the Kernel with the New Driver Source

, for a

statically linked module.

6.4.3

Creating a Custom ISO Image to Exclude the mfi and mpt Drivers

You must create a custom ISO image that excludes mfi drivers and mpt drivers if you install the FreeBSD OS on storage
managed by a MegaRAID controller as primary storage, which is described in

Section 6.4, Installing the FreeBSD OS on

Storage Managed by a MegaRAID Controller (Primary Storage)

. You must use this procedure if you must exclude the

mfi driver from the kernel because of the problem described in

Section 6.4.1, Issues Concerning the LSI mpt Driver

and the Outdated LSI mpt Driver

. In this procedure, the mpt driver is also excluded so that it is not attached to the

MegaRAID controller during the OS installation to primary storage. If the mpt driver attaches to the MegaRAID
controller, any drives attached to the MegaRAID controller will not be found during the OS installation process.

Because different versions of the FreeBSD OS have different make files, drivers, build procedures, and so on, the easiest
way to create a custom ISO image for a specific version of the FreeBSD OS is to install the version of the FreeBSD OS
that is needed for the ISO image. The procedure outlined in this section works for all supported versions of the
FreeBSD OS (currently, versions 8.2, 8.3, 8.4, 9.0, and 9.1). Some steps are different for FreeBSD version 9.0 or later, and
are noted.