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 |
● |
● |
● |
Update or backup flash image. | |
● |
● |
● |
Read flash contents (in bytes), or write a pattern byte to flash offset, or compare flash contents with the pattern (for testing purposes). |
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.
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 |
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.
Syntax |
Description |
Required Parameter |
|
-a <read|write|compare> |
Use one of the following options to select the action: read write compare 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. |