User guide

Getting Started
ARM DUI 0224I Copyright © 2003-2010 ARM Limited. All rights reserved. 2-25
3. The command used to program the image depends on the type of image:
To program the ELF image into flash, use the following command line:
flash> WRITE IMAGE elf_file_name NAME name FLASH_ADDRESS address
The entry point and load address for ELF images are taken from the image
itself.
To program a binary image into flash, use the following command line:
flash> WRITE BINARY image_file_name NAME name FLASH_ADDRESS address1
LOAD_ADDRESS address2 ENTRY_POINT address3
flash>
Note
name
is a short name for the image. If the
NAME
option is not used at the command
prompt,
name
will be derived from the file name.
4. The image is now in flash and can be run by the Boot Monitor. At the prompt,
type:
flash> RUN name
2.6.8 Using a boot script to run an image automatically
Use a boot script to run an image automatically after power-on:
1. Create a boot script from the Boot Monitor by typing:
> CREATE myscript.txt
; put any startup code here FLASH RUN file_name
2. Press Ctrl-Z to indicate the end of the boot script and return to the Boot Monitor
prompt.
3. Verify the file was entered correctly by typing:
>TYPE myscript.txt
The contents of the file is displayed to the currently selected output device.
4. Specify the boot script to use at reset from the Boot Monitor by typing:
>SET BOOTSCRIPT myscript.txt
5. Set S6-1 ON to instruct the Boot Monitor to run the boot script at power on.
6. Reset the platform. The Boot Monitor runs and executes the boot script
myscript.txt
. In this case, it relocates the image
file_name
and executes it.