Updating BIOS, Firmware, and Flash Configuration

Table 1 lists the commands used for updating BIOS, firmware, and flash configuration.

Table 1  Updating BIOS, Firmware, and Flash Configuration

Command

IOC

IOP

ROC

Description

flash

Update or backup flash image.

flashrw

Read flash contents (in bytes), or write a pattern byte to flash offset, or compare flash contents with the pattern (for testing purposes).

flash

Use flash to update or backup the flash image.

The syntax for the flash command (including all required and optional parameters) is as follows:

flash -a <update|backup|erase> -f <file> -i <adapter id> -t <bios|firmware|config|bin> -p <pd> [-h].

Table 2 describes the required and optional parameters for the flash command.

Table 2  Command Parameters: flash

Syntax

Description

Required Parameters

-a <update|backup|erase>

Use one of the following options to select the action:

   update (update flash image)

   backup (backup flash image)

   erase (erase flash configuration page)

-f <file>

Use to specify full path name of file to be updated or backed-up.

-i <adapter id>

Use to specify controller/adapter ID.

-t <bios|firmware|config|bin>

Use one of the following options to select image type.

   bios (BIOS image)

   firmware (firmware image)

   config (controller configuration page file)

   bin (firmware binary file)

Optional Parameter

[-h]

Use to display help text for the flash command.

Example

flash -a update -f c:\bios.bin -i 0 -t bios

Update BIOS image for controller 0 using image file c:\bios.bin

flashrw

Use flashrw to perform the following operations:

    Read flash contents (in bytes).

    Write the pattern byte to flash offset.

    Compare flash contents with the pattern (for testing purposes).

The syntax for the flashrw command (including all required and optional parameters) is as follows:

flashrw -a <read|write|compare> [-s <flash address offset>] [-c <byte count>] [-p <pattern>] [-h]

Table 3 describes the required and optional parameters for the flashrw command.

Table 3  Command Parameters: flashrw

Syntax

Description

Required Parameter

-a <read|write|compare>

Use one of the following options to select the action:

   read
Read flash data (in bytes) starting from the offset address.

   write
Write specified pattern to the bytes starting from the offset address.

   compare
Compare flash data with pattern starting from the offset address.

Note: The default flash offset of 0 bytes is used if it is not explicitly specified using the parameter [-s <flash address offset>].

Optional Parameters

[-s <flash address offset>]

Use to specify the flash address offset (in bytes).

Note: If this parameter is not included in the command line, CLI uses the default flash offset of 0 bytes.

[-c <byte count>]

Use to specify the byte count.

Note: If this parameter is not included in the command line, CLI uses the default byte count of 1 byte.

Note: The maximum byte count is equal to the size of the flash memory (in bytes).

[-p <pattern>]

Use to specify the hex pattern for write and compare actions.

[-h]

Use to display help text for the flashrw command.

Examples

flashrw -a write -s 10 -c 2 -p 0x00

Write 0x00 to flash offset 10 and offset 11.

flashrw -a read

Read and display all flash data.