Chapter 4. updating redboot, Introduction, Load and start a redboot ram instance – Comtrol eCos User Manual

Page 183: Updating redboot

Advertising
background image

Chapter 4. Updating RedBoot

Introduction

RedBoot normally resides in an EPROM or, more common these days, a flash on the board. In the former case,
updating RedBoot necessitates physically removing the part and reprogramming a new RedBoot image into it
using prommer hardware. In the latter case, it is often possible to update RedBoot in situ using Redboot’s flash
management commands.

The process of updating RedBoot in situ is documented in this section. For this process, it is assumed that the target
is connected to a host system and that there is a serial connection giving access to the RedBoot CLI. For platforms
with a ROMRAM mode RedBoot, skip to

the Section called Update the primary RedBoot flash image

.

Note: The addresses and sizes included in the below are examples only, and will differ from those you will see.
This is normal and should not cause concern.

Load and start a RedBoot RAM instance

There are a number of choices here. The basic case is where a RAM mode image has been stored in the FIS (flash
Image System). To load and execute this image, use the commands:

RedBoot> fis load RedBoot[RAM]

RedBoot> go

If this image is not available, or does not work, then an alternate RAM mode image must be loaded:

RedBoot> load redboot_RAM.img

Entry point: 0x060213c0, address range: 0x06020000-0x060369c8

RedBoot> go

Note: This command loads the RedBoot image using the TFTP protocol via a network connection. Other
methods of loading are available, refer to the

load

command for more details.

Note: If you expect to be doing this more than once, it is a good idea to program the RAM mode image into the
flash. You do this using the fis create command after having downloaded the RAM mode image, but before
you start it.

Some platforms support locking (write protecting) certain regions of the flash, while others do not. If your
platform does not support locking, simply ignore the fis unlock and fis lock steps (the commands will not be
recognized by RedBoot).

RedBoot> fis unlock RedBoot[RAM]

... Unlock from 0x00000000-0x00020000: ..

79

Advertising