flash

The flash command provides for programming, erasing and copying flash memory areas.

Format

The format for the command is:

flash [-q] [-e arg] [args ...]
where:

<none>

gives a list of available flash areas and types

-q

gives a list of available flash areas and types

-e base_addr

erases the flash area on that base address.

base_addr size from_addr

writes the flash base_addr memory for size bytes using from_addr memory starting point.

Each area in the flash devices will be identified, and is dependant on the system implementation.

These areas are useable for storage or for bootable images.
The -q (Query) option will list each system dependent flash ROM area. The base address and size is listed, along with each flas area configuration, sector size (if supported) and the actual Flash device Manufacturing ID value (if reported). Example:

PMON> flash -q
Available FLASH memory 
Start Size Width Sectorsize Type ff000000 00800000 8*8 00040000 i28F160 fff00000 00080000 1*8 00010000 Am29F040 PMON>

The -e (Erase) option code calculates the sector from the flash address you enter, and the number of sectors are the size divided by sectorsize (rounded up).

See Also:

The boot -f (from FLASH) command. It allows boot loading from one of several several flash areas.


Navigation: Document Home | Document Contents | Document Index