Section 6.6.2, compiling and, Dynamically loadable module) – Avago Technologies MegaRAID SAS 9341-4i User Manual
Page 39
Avago Technologies
- 39 -
MegaRAID SAS Device Driver Installation User Guide
June 2015
FreeBSD Driver Installation
Updating Drivers in the FreeBSD System
# make buildkernel KERNCONF=MYKERNEL
g.
To install the new kernel, type the following commands if your current configuration is MYKERNEL, and
press Enter.
# make installkernel KERNCONF=MYKERNEL
The new kernel is copied to the
/boot/kernel directory. The old kernel is moved to the
/boot/kernel.old directory.
6.
Reboot your system to use the new kernel.
When the system reboots, the new kernel driver module loads automatically.
6.6.2
Compiling and Loading the Driver as a Module by Using kldload (Dynamically Loadable
Module)
To use a driver module in case Avago does not supply a driver module for your version of the FreeBSD OS, use the
procedures in this section. If you want to install only an Avago-supplied module, see
MegaRAID Kernel Driver Module in the FreeBSD OS
NOTE
You can use
kldload to load the driver as a module only if your boot
drive is attached to the mother board and is not managed by the
MegaRAID controller.
Perform the following steps to compile the driver as a module:
1.
Boot to the FreeBSD OS.
2.
Obtain driver source files; see
Section 6.2, Obtaining Avago FreeBSD Drivers
3.
Make sure your kernel is prepared for the dynamically loadable module described in
Kernel with the New Driver Source
4.
To build the driver module, type the following command, depending on which driver you use, and press Enter.
— # cd /usr/src/sys/modules/mrsas
# make clean
# make
These steps create the driver
mrsas.ko module in the /usr/src/sys/modules/mrsas directory.
5.
To load the kernel driver module, type the following commands and press Enter.
— # cd /usr/src/sys/modules/mrsas
# kldload -v ./mrsas.ko
6.
To load the driver automatically during bootup, but still be linked dynamically, perform the following steps,
depending on which driver you use:
— To copy the MegaRAID SAS driver into the boot folder, type the following command, and press Enter.
# cp /usr/src/sys/modules/mrsas/mrsas.ko /boot/kernel/mrsas.ko
NOTE
Back up the old module in case you want to revert back to it.
— Enter the following line in the
/boot/loader.conf file:
mrsas_load="YES"
- MegaRAID SAS 9341-8i MegaRAID SAS 9361-4i MegaRAID SAS 9361-8i MegaRAID SAS 9380-8e MegaRAID SAS 9240-4i MegaRAID SAS 9240-8i MegaRAID SAS 9260-16i MegaRAID SAS 9260-4i MegaRAID SAS 9260-8i MegaRAID SAS 9261-8i MegaRAID SAS 9270-8i MegaRAID SAS 9271-4i MegaRAID SAS 9271-8i MegaRAID SAS 9271-8iCC MegaRAID SAS 9280-16i4e MegaRAID SAS 9280-4i4e MegaRAID SAS 9280-8e MegaRAID SAS 9286-8e MegaRAID SAS 9286CV-8e MegaRAID SAS 9286CV-8eCC MegaRAID SAS 9380-4i4e MegaRAID SAS 8204ELP MegaRAID SAS 8204ELP (Channel) MegaRAID SAS 8204XLP MegaRAID SAS 8204XLP (Channel) MegaRAID SAS 8208ELP MegaRAID SAS 8208ELP (Channel) MegaRAID SAS 8208XLP MegaRAID SAS 8208XLP (Channel) MegaRAID SAS 8300XLP MegaRAID SAS 8308ELP MegaRAID SAS 8344ELP MegaRAID SAS 84016E MegaRAID SAS 84016E (Channel) MegaRAID SAS 8408E MegaRAID SAS 8480E MegaRAID SAS 8704ELP MegaRAID SAS 8704ELP (Channel) MegaRAID SAS 8704EM2 MegaRAID SAS 8704EM2 (Channel) MegaRAID SAS 8708ELP MegaRAID SAS 8708ELP (Channel) MegaRAID SAS 8708EM2 MegaRAID SAS 8708EM2 (Channel) MegaRAID SAS 8880EM2 MegaRAID SAS 8880EM2 (Channel) MegaRAID SAS 8888ELP MegaRAID SAS 8888ELP (Channel) MegaRAID SAS 0260CV-8i MegaRAID SAS 0260DE-8i MegaRAID SAS 0260DE-8i (Channel) MegaRAID SAS 9265-8i MegaRAID SAS 9280DE-8e MegaRAID SAS 9280DE-8e (Channel) MegaRAID SAS 9285-8e MegaRAID SAS 0260CV-4i