Flash management, Additional config options, Additional commands – Comtrol eCos User Manual

Page 249: The section called additional config, Options

Advertising
background image

Chapter 5. Installation and Testing

The Atlas Developer’s Kit CD contains an srec2flash utility. The source code for this utility is part of
the

yamon/yamon-src-01.01.tar.gz

tarball on the Dev Kit CD. The path in the expanded tarball is

yamon/bin/tools

. To use srec2flash to convert the S-record file:

$ srec2flash -EL -S29 redboot.srec >redboot.dl

The Atlas/Malta Developer’s Kit CD contains an srecconv.pl utility which requires Perl. This utilty is part of
the

yamon/yamon-src-02.00.tar.gz

tarball on the Dev Kit CD. The path in the expanded tarball is

ya-

mon/bin/tools

. To use srecconv to convert the S-record file:

$ cp redboot_ROM.srec redboot_ROM.rec

$ srecconv.pl -ES L -A 29 redboot_ROM

The resulting file is named

redboot_ROM.fl

.

Flash management

Additional config options

The ethernet MAC address is stored in flash manually using the fconfig command. You can use the YAMON setenv
ethaddr
command to print out the board ethernet address. Typically, it is:

00:0d:a0:00:xx:xx

where

xx.xx

is the hex representation of the board serial number.

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 MIPS boards

are:

-b <

addr>

Location to store command line and environment passed to kernel

-w <

time>

Wait time in seconds before starting kernel

-c

"params"

Parameters passed to kernel

<

addr>

Kernel entry point, defaulting to the entry point of the last image loaded

Linux kernels on MIPS platforms expect the entry point to be called with arguments in the registers equivalent to
a C call with prototype:

145

Advertising