
Arcom Embedded Linux Technical Manual RedBoot
For example, the following command creates an image table entry named ‘application’:
RedBoot> fis create -f 0x00002000 -l 0xfe000 -b 0x200000 -e 0x200000 -n application
This does not update the image itself. The image resides from offset 0x00002000 to
0x00100000 in Flash and has a memory address and entry point of 0x200000.
More commonly, only the –f and –l options are required. For example to create an
image named ‘kernel’ at offset 0x200000 in Flash with length 0x100000.
RedBoot> fis create -f 0x200000 -l 0x0x100000 kernel
The image data and other parameters are taken from the preceding load command.
Updating a single FIS image
Once the image has been loaded into RAM you can use the fis create command to
update it. The location of the image in RAM and the size is remembered from the last
load command. For example, to update a partition named ‘filesystem’, enter the
following (assuming you have already loaded the image into RAM as described
previously):
RedBoot> fis create filesystem
Loading a Flash image into RAM
An image that is stored in the Flash can be loaded into RAM using the fis load
command. By default the image is loaded to the RAM address stored in the partition
table entry (supplied by the –r or –b parameters to fis create). The RAM address can
be overridden using the –b parameter. For example, to load the image named ‘kernel’
into RAM at the address given by the Memory Base property in the partition table entry:
RedBoot> fis load kernel
To load the image named ‘kernel’ to the base of available memory instead of the
address stored in the partition table:
RedBoot> fis load –b %{FREEMEMLO} kernel
Unlocking the Flash
Some Flash devices require the Flash to be unlocked before writing. The fis unlock
command is therefore provided on boards with these devices. This command takes
either a Flash offset to start unlocking from (using the –f parameter) and a length in
bytes to unlock (using the –l parameter), or the name of an existing Flash image to
unlock.
To unlock the entire Flash enter the following (where FLASH_SIZE is the size in bytes
of the Flash device):
RedBoot> fis unlock –f 0x0 –l <FLASH_SIZE>
To unlock a FIS partition named ‘filesystem’:
RedBoot> fis unlock filesystem
© 2006 Arcom Issue G 62
Kommentare zu diesen Handbüchern