Special redboot commands – Comtrol eCos User Manual

Page 204

Advertising
background image

Chapter 5. Installation and Testing

Download the ROMRAM mode image of RedBoot via ethernet:

RedBoot

>

load -b %{FREEMEMLO} redboot_primary_ROMRAM/redboot.srec

or using serial Y-modem protocol:

RedBoot

>

load -mode ymodem -b %{FREEMEMLO}

(Use

the

terminal

emulator’s

Y-modem

upload

command

to

send

the

file

red-

boot_primary_ROMRAM/redboot.srec

.)

When

the

image

has

been

downloaded,

program

it

into

flash:

Address offset = 0x00ff8000

Entry point: 0x00008040, address range: 0x00008000-0x0002da80

RedBoot

>

fi cr RedBoot

An image named ’RedBoot’ exists - continue (y/n)? y

* CAUTION * about to program ’RedBoot’

at 0x60000000..0x6003ffff from 0x00100000 - continue (y/n)? y

... Erase from 0x60000000-0x60040000: ..

... Program from 0x00100000-0x00140000 at 0x60000000: ..

... Erase from 0x61fe0000-0x62000000: .

... Program from 0x01f5f000-0x01f7f000 at 0x61fe0000: .

Now reset the board. You should see the RedBoot banner.

Special RedBoot Commands

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

the

Section called Executing Programs from RedBoot in Chapter 2

). The exec parameters used for the AAED2000 are:

-b <

addr>

Location Linux kernel was loaded to

-l <

len>

Length of kernel

-c

"params"

Parameters passed to kernel

-r <

addr>

’initrd’ ramdisk location

-s <

len>

Length of initrd ramdisk

The parameters for kernel image base and size are automatically set after a load operation. So one way of starting
the kernel would be:

RedBoot

>

load -r -b 0x100000 zImage

100

Advertising