beautypg.com

Avago Technologies MegaRAID SAS 9341-4i User Manual

Page 34

background image

Avago Technologies

- 34 -

MegaRAID SAS Device Driver Installation User Guide
June 2015

FreeBSD Driver Installation

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

driver module. With the newly created FreeBSD kernel ISO, you can complete the installation and boot your FreeBSD
system through a MegaRAID virtual drive using the Avago's FreeBSD driver solution.

To exclude the mfi(4) driver if the FreeBSD OS has this issue, see

Section 6.4.2, Creating a Custom ISO Image to Exclude

the mfi (4)

.

After you create a custom FreeBSD Installation disk with the new FreeBSD kernel custom ISO image and you have the
mrsas driver diskette ready, perform the following steps to install the FreeBSD OS. The procedure describes how to
load the FreeBSD kernel driver module to enable boot device support and how to compile the current drivers into the
kernel from source files.

As a prerequisite, you need an OS Installation CD for the FreeBSD 9.x or FreeBSD 10.x OSs (i386 or amd64). Use the CD
that you created using the instructions in

Section 6.4.2, Creating a Custom ISO Image to Exclude the mfi (4)

.

NOTE

This procedure is specific to versions of the FreeBSD OSs for which a
compiled module is available. For other versions of a FreeBSD OS for
which a compiled module is not supplied by Avago, you must compile
your own module from source files.

Section 6.6.2, Compiling and

Loading the Driver as a Module by Using kldload (Dynamically
Loadable Module)

.

Perform the following steps to install the FreeBSD OS on storage managed by a MegaRAID controller:

1.

Disconnect all SCSI, ATA, and SAS devices in the system, except for the CD/DVD drive, and the hard drives that are
connected to the MegaRAID controller.

2.

Create the RAID virtual drives on the MegaRAID controller using WebBIOS or Preboot CLI.

3.

Insert the FreeBSD Installation disk into the CD/DVD drive, and boot from it.

4.

At the FreeBSD boot menu, select Escape to loader prompt (option 2 in the FreeBSD 9.x OS, and option 3 in the
FreeBSD 10.x OS).

5.

Insert the diskette containing the

mrsas.ko module for the specific version of the FreeBSD OS into the diskette

drive.

If you use a USB flash drive, you might need to insert the drive before booting so the drive can be seen in the next
step. If so, make sure to boot from the CD/DVD drive and not from the USB drive.

6.

Perform the following steps at the loader prompt:

a.

To load a new driver from a diskette drive, type the following commands 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.

OK 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.