Additional commands – Comtrol eCos User Manual

Page 190

Advertising
background image

Chapter 5. Installation and Testing

1. Instruct RedBoot to initialise the boot PROM:

RedBoot> fi init

2. Write the previously loaded redboot.prom image into the boot PROM:

RedBoot> fi write -f 0x80000000 -b 0x91020000 -l 0x00020000

3. Check that RedBoot has written the image:

RedBoot> dump -b 0x91020000

RedBoot> dump -b 0x80000000

Barring the difference in address, the two dumps should be the same.

4. Close the JTAG software and power-cycle the board. The RedBoot banners should be displayed again over the

serial port, followed by the RedBoot prompt. The boot PROM-based RedBoot will now be running.

5. Power off the board and unjumper ST18 to write-protect the contents of the boot PROM. Then power the board

back up.

6. Run the following command to initialise the system flash:

RedBoot> fi init

Then program the system flash based RedBoot into the system flash:

RedBoot> load -r -b %{FREEMEMLO} redboot_FLASH.bin

RedBoot> fi write -f 0x84000000 -b %{FREEMEMLO} -l 0x00020000

NOTE: RedBoot arranges the flashes on booting such that they always appear at the same addresses, no
matter which one was booted from.

7. A similar sequence of commands can be used to program the boot PROM when RedBoot has been booted

from an image stored in the system flash.

RedBoot> load -r -b %{FREEMEMLO} /tftpboot/redboot_ROM.bin

RedBoot> fi write -f 0x80000000 -b %{FREEMEMLO} -l 0x00020000

See

the Section called Persistent State Flash-based Configuration and Control in Chapter 2

for details on

configuring the RedBoot in general, and also

the Section called Flash Image System (FIS) in Chapter 2

for

more details on programming the system flash.

Additional Commands

The exec command which allows the loading and execution of Linux kernels, is supported for this architecture (see

the Section called Executing Programs from RedBoot in Chapter 2

). The exec parameters used for ASB2305 board

are:

86

Advertising