RedBoot supports the DgbSer
serial port and the built in ethernet port for communication and downloads.
The default serial port settings are 115200,8,N,1. RedBoot runs from and supports
flash management for the system flash region.
The following RedBoot configurations are supported:
Configuration
Mode
Description
File
ROM
[ROM]
RedBoot running from the board's flash boot
sector.
redboot_ROM.ecm
RAM
[RAM]
RedBoot running from RAM with RedBoot in the
flash boot sector.
RedBoot is installed using the code download facility built into the
Atlas board. See the Atlas User manual for details, and also the Atlas download
format in the Section called Atlas download format.
In order to download RedBoot to the Atlas board, it must be converted
to the Atlas download format. There are different ways of doing this depending
on which version of the developer's kit is shipped with the board.
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 yamon/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 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.
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:
void Linux(int argc, char **argv, char **envp);
RedBoot will place the appropriate data at the offset specified by the
-b parameter, or by default at address 0x80080000, and will set the
arguments accordingly when calling into the kernel.
The default entry point, if no image with explicit entry point has been loaded and
none is specified, is 0x80000750.
The data
passed to the ISR is pulled from a data table (hal_interrupt_data) which immediately follows the interrupt vector table. With
25 interrupts, the data table starts at address 0x80000464 on atlas.
An application may create a normal C function with the above prototype
to be an ISR. Just poke its address into the table at the correct index and
enable the interrupt at its source. The return value of the ISR is ignored
by RedBoot.