Users Guide

Table Of Contents
Broadcom DRVLin-UG128-100
10
Emulex Drivers for Linux User Guide
To update the firmware using the sysfs command, perform the following steps:
1. Before you update the firmware, procure the model name of the adapter.
cat /sys/class/scsi_host/<host_no>/modelname
2. Modify the firmware file name to the model name.
3. Copy the firmware file to /lib/firmware with the model name.
cp <firmware_file>.grp /lib/firmware/
4. Run the following command and note the value for lpfc_log_verbose. You must echo the same value to
lpfc_log_verbose after firmware activation.
cat /sys/class/scsi_host/host<X>/lpfc_log_verbose
5. Set the driver parameter lpfc_log_verbose=0x8.
echo 0x8 > /sys/class/scsi_host/host<X>/lpfc_log_verbose
6. Download the firmware to the adapter.
echo 1 > /sys/class/scsi_host/<host_no>/lpfc_req_fw_upgrade
7. Check the dmesg log to determine the appropriate reset action.
8. Depending on the features available in the new firmware, the firmware update requires either a firmware reset or a PCI
bus reset.
To perform a firmware reset, issue the following command:
echo fw_reset > /sys/class/scsi_host/host<X>/board_mode
To perform a PCI bus reset, perform the following steps:
a. Run the following command and note the value for
lpfc_enable_hba_reset. You must echo the same value to
lpfc_enable_hba_reset after firmware activation.
cat /sys/class/scsi_host/host<X>/lpfc_enable_hba_reset
b. Enable HBA reset on the adapter.
echo 2 > /sys/class/scsi_host/host<X>/lpfc_enable_hba_reset
c. Set all ports of the adapter offline.
echo offline > /sys/class/scsi_host/host<X>/board_mode
NOTE: For HBAs with more than one port, run this command for each host (port) entry.
d. Reset the PCI bus of the adapter.
echo pci_bus_reset > /sys/class/scsi_host/host<X>/board_mode
e. Set all ports of the adapter online.
echo online > /sys/class/scsi_host/host<X>/board_mode
NOTE: For HBAs with more than one port, run this command for each host (port) entry.
9. Enter the value of lpfc_enable_hba_reset procured in Step a.
echo <original_value> /sys/class/scsi_host/host<X>/lpfc_enable_hba_reset
10. Enter the value of lpfc_log_verbose procured in Step 4.
echo <original_value> /sys/class/scsi_host/host<X>/lpfc_log_verbose