Chapter 3. rebuilding redboot, Introduction, Rebuilding redboot using ecosconfig – Comtrol eCos User Manual

Page 179: Rebuilding redboot

Advertising
background image

Chapter 3. Rebuilding RedBoot

Introduction

RedBoot is built as an application on top of eCos. The makefile rules for building RedBoot are part of the eCos
CDL package, so it’s possible to build eCos from the Configuration Tool, as well as from the command line using
ecosconfig.

Building RedBoot requires only a few steps: selecting the platform and the RedBoot template, importing a platform
specific configuration file, and finally starting the build.

The platform specific configuration file makes sure the settings are correct for building RedBoot on the given
platform. Each platform should provide at least two of these configuration files:

redboot_RAM.ecm

for a RAM

mode RedBoot configuration and

redboot_ROM.ecm

or

redboot_ROMRAM.ecm

for a ROM or ROMRAM mode

RedBoot configuration. There may be additional configuration files according to the requirements of the particular
platform.

The RedBoot build process results in a number of files in the install

bin

directory. The ELF file

redboot.elf

is

the pricipal result. Depending on the platform CDL, there will also be generated versions of RedBoot in other file
formats, such as

redboot.bin

(binary format, good when doing an update of a primary RedBoot image, see

the

Section called Update the primary RedBoot flash image in Chapter 4

),

redboot.srec

(Motorola S-record format,

good when downloading a RAM mode image for execution), and

redboot.img

(stripped ELF format, good when

downloading a RAM mode image for execution, smaller than the .srec file). Some platforms may provide additional
file formats and also relocate some of these files to a particular address making them more suitable for downloading
using a different boot monitor or flash programming tools.

The platform specific information in

Chapter 5

should be consulted, as there may be other special instructions

required to build RedBoot for particular platforms.

Rebuilding RedBoot using ecosconfig

To rebuild RedBoot using the ecosconfig tool, create a temporary directory for building RedBoot, name it according
to the desired configuration of RedBoot, here RAM:

$ mkdir /tmp/redboot_RAM

$ cd /tmp/redboot_RAM

Create the build tree according to the chosen platform, here using the Hitachi Solution Engine 7751 board as an
example:

Note: It is assumed that the environment variable ECOS_REPOSITORY points to the eCos/RedBoot source
tree.

$ ecosconfig new se7751 redboot

U CYGPKG_HAL_SH_7750, new inferred value 0

U CYGPKG_HAL_SH_7751, new inferred value 1

U CYGHWR_HAL_SH_IRQ_USE_IRQLVL, new inferred value 1

U CYGSEM_HAL_USE_ROM_MONITOR, new inferred value 0

75

Advertising