beautypg.com

Avago Technologies MegaRAID SAS 9240-4i User Manual

Page 36

background image

LSI Corporation

- 36 -

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)

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

#device mpt # LSI-Logic MPT-Fusion

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.

If the make command fails immediately, the system source code might not be installed correctly. You can install
the source code using the sysinstall utility. Within the sysinstall utility, select the source code from
within the Distributions selection.

4.

For FreeBSD OS version 9.0 or later, the generic kernel must be built in a separate command. Previous versions do
not require this step. If you are building the kernel for version 9.0 or later, enter the following commands before
continuing; otherwise, you can skip this step.

# cd /usr/src

# make buildkernel TARGET=<arch>

Where <arch> is the architecture for the desired ISO image.

5.

Issue the following commands to build the ISO image.

The make command can take several hours to complete. See the second note after this step if you are building
the kernel for FreeBSD OS version 9.0 or later.

# cd /usr/src/release

# make release BUILDNAME=FBSD_<version>-CUSTOM \

CHROOTDIR=/usr/MyCustomBuild \

EXTSRCDIR=/usr/src \

TARGET=<arch> \

NOPORTS=1 \

NODOC=1 \

MAKE_ISOS=1