The mfi (4) – Avago Technologies MegaRAID SAS 9341-4i User Manual

Page 35

Advertising
background image

Avago Technologies

- 35 -

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)

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

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

You must use this procedure if you are installing the FreeBSD OS on Storage Managed by a MegaRAID Controller
(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 need to exclude the mfi driver from the kernel from

the kernel because it may conflict with mrsas(4).

This procedure is leveraged from the following locations:

A FreeBSD article, FreeBSD Release Engineering, Section 3 Release Building, by Murray Stokely.

See,

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/index.html

FreeBSD Handbook, Chapter 9 Configuring the FreeBSD Kernel, Section 9.5 Building and Installing a Custom Kernel.

See,

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html

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 9.2.0, 9.3.0, 10.0.0 and 10.1.0). Some steps are different for FreeBSD version 9.2 or later, and
are noted.

Perform the following steps to create the custom ISO image.

1.

Install the required version of the FreeBSD OS on an available disk that is not attached to a MegaRAID controller.

During installation, you must install all of the system source code. You might need a network connection to
download the source code that is used to build the ISO image. The CD or the DVD that is used to install the OS
might already contain the source code, depending on the type of installation that is on the CD or the DVD.
Otherwise, you can use the

sysinstall utility to download the source. The installed OS is used only to build the

custom ISO, and then it is no longer required.

2.

Boot to the disk with the new FreeBSD OS, and then change to the

/usr/src/sys/<arch>/conf directory,

where

<arch> is either i386 or amd64, depending on what type of architecture the ISO image is for.

You must edit the generic kernel configuration file in this folder so that the mfi and mpt drivers are not installed
when the new custom ISO is built. The mfi and mpt lines can be removed or commented out by adding

# before

device, as shown in the following examples:

#device

mfi

# LSI MegaRAID SAS

NOTE

The preferred method to use when you edit the generic configuration
file is to copy it to another file, and then create a kernel using this new
kernel configuration file. However, using that method here would
require a more complex procedure and is unnecessary.

3.

Issue the following commands to build the tools and the other items that are required to build the ISO image. This
command can take several hours to complete.

# cd /usr/src

# make buildworld TARGET=<arch>

where

<arch> is the architecture for the ISO image to be created.

Advertising