<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- permission is obtained from the copyright holder. -->
|
<!-- permission is obtained from the copyright holder. -->
|
<HTML
|
<HTML
|
><HEAD
|
><HEAD
|
><TITLE
|
><TITLE
|
>MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Atlas Board</TITLE
|
>MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Atlas Board</TITLE
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
<META
|
<META
|
NAME="GENERATOR"
|
NAME="GENERATOR"
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
"><LINK
|
"><LINK
|
REL="HOME"
|
REL="HOME"
|
TITLE="eCos Reference Manual"
|
TITLE="eCos Reference Manual"
|
HREF="ecos-ref.html"><LINK
|
HREF="ecos-ref.html"><LINK
|
REL="UP"
|
REL="UP"
|
TITLE="Installation and Testing"
|
TITLE="Installation and Testing"
|
HREF="installation-and-testing.html"><LINK
|
HREF="installation-and-testing.html"><LINK
|
REL="PREVIOUS"
|
REL="PREVIOUS"
|
TITLE="IA32/x86 x86-Based PC"
|
TITLE="IA32/x86 x86-Based PC"
|
HREF="x86pc.html"><LINK
|
HREF="x86pc.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Malta Board "
|
TITLE="MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Malta Board "
|
HREF="malta.html"></HEAD
|
HREF="malta.html"></HEAD
|
><BODY
|
><BODY
|
CLASS="SECT1"
|
CLASS="SECT1"
|
BGCOLOR="#FFFFFF"
|
BGCOLOR="#FFFFFF"
|
TEXT="#000000"
|
TEXT="#000000"
|
LINK="#0000FF"
|
LINK="#0000FF"
|
VLINK="#840084"
|
VLINK="#840084"
|
ALINK="#0000FF"
|
ALINK="#0000FF"
|
><DIV
|
><DIV
|
CLASS="NAVHEADER"
|
CLASS="NAVHEADER"
|
><TABLE
|
><TABLE
|
SUMMARY="Header navigation table"
|
SUMMARY="Header navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TH
|
><TH
|
COLSPAN="3"
|
COLSPAN="3"
|
ALIGN="center"
|
ALIGN="center"
|
>eCos Reference Manual</TH
|
>eCos Reference Manual</TH
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="x86pc.html"
|
HREF="x86pc.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="80%"
|
WIDTH="80%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
>Chapter 5. Installation and Testing</TD
|
>Chapter 5. Installation and Testing</TD
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="malta.html"
|
HREF="malta.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"></DIV
|
WIDTH="100%"></DIV
|
><DIV
|
><DIV
|
CLASS="SECT1"
|
CLASS="SECT1"
|
><H1
|
><H1
|
CLASS="SECT1"
|
CLASS="SECT1"
|
><A
|
><A
|
NAME="ATLAS">MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Atlas Board</H1
|
NAME="ATLAS">MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Atlas Board</H1
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN6659">Overview</H2
|
NAME="AEN6659">Overview</H2
|
><P
|
><P
|
>RedBoot supports the DgbSer
|
>RedBoot supports the DgbSer
|
serial port and the built in ethernet port for communication and downloads.
|
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
|
The default serial port settings are 115200,8,N,1. RedBoot runs from and supports
|
flash management for the system flash region.</P
|
flash management for the system flash region.</P
|
><P
|
><P
|
>The following RedBoot configurations are supported:
|
>The following RedBoot configurations are supported:
|
|
|
<DIV
|
<DIV
|
CLASS="INFORMALTABLE"
|
CLASS="INFORMALTABLE"
|
><A
|
><A
|
NAME="AEN6669"><P
|
NAME="AEN6669"><P
|
></P
|
></P
|
><TABLE
|
><TABLE
|
BORDER="1"
|
BORDER="1"
|
CLASS="CALSTABLE"
|
CLASS="CALSTABLE"
|
><THEAD
|
><THEAD
|
><TR
|
><TR
|
><TH
|
><TH
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>Configuration</TH
|
>Configuration</TH
|
><TH
|
><TH
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>Mode</TH
|
>Mode</TH
|
><TH
|
><TH
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>Description</TH
|
>Description</TH
|
><TH
|
><TH
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>File</TH
|
>File</TH
|
></TR
|
></TR
|
></THEAD
|
></THEAD
|
><TBODY
|
><TBODY
|
><TR
|
><TR
|
><TD
|
><TD
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>ROM</TD
|
>ROM</TD
|
><TD
|
><TD
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>[ROM]</TD
|
>[ROM]</TD
|
><TD
|
><TD
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>RedBoot running from the board's flash boot
|
>RedBoot running from the board's flash boot
|
sector.</TD
|
sector.</TD
|
><TD
|
><TD
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>redboot_ROM.ecm</TD
|
>redboot_ROM.ecm</TD
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>RAM</TD
|
>RAM</TD
|
><TD
|
><TD
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>[RAM]</TD
|
>[RAM]</TD
|
><TD
|
><TD
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>RedBoot running from RAM with RedBoot in the
|
>RedBoot running from RAM with RedBoot in the
|
flash boot sector.</TD
|
flash boot sector.</TD
|
><TD
|
><TD
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>redboot_RAM.ecm</TD
|
>redboot_RAM.ecm</TD
|
></TR
|
></TR
|
></TBODY
|
></TBODY
|
></TABLE
|
></TABLE
|
><P
|
><P
|
></P
|
></P
|
></DIV
|
></DIV
|
></P
|
></P
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN6688">Initial Installation</H2
|
NAME="AEN6688">Initial Installation</H2
|
><P
|
><P
|
>RedBoot is installed using the code download facility built into the
|
>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
|
Atlas board. See the Atlas User manual for details, and also the Atlas download
|
format in <A
|
format in <A
|
HREF="atlas.html#ATLAS-DOWNLOAD-FORMAT"
|
HREF="atlas.html#ATLAS-DOWNLOAD-FORMAT"
|
>the Section called <I
|
>the Section called <I
|
>Atlas download format</I
|
>Atlas download format</I
|
></A
|
></A
|
>.</P
|
>.</P
|
><DIV
|
><DIV
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><H3
|
><H3
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><A
|
><A
|
NAME="AEN6692">Quick download instructions</H3
|
NAME="AEN6692">Quick download instructions</H3
|
><P
|
><P
|
>Here are quick start instructions for downloading the prebuilt RedBoot
|
>Here are quick start instructions for downloading the prebuilt RedBoot
|
image.</P
|
image.</P
|
><P
|
><P
|
></P
|
></P
|
><OL
|
><OL
|
TYPE="1"
|
TYPE="1"
|
><LI
|
><LI
|
><P
|
><P
|
>Locate the prebuilt files in the bin directory: <TT
|
>Locate the prebuilt files in the bin directory: <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>deleteall.dl</TT
|
>deleteall.dl</TT
|
> and <TT
|
> and <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>redboot.dl</TT
|
>redboot.dl</TT
|
>.</P
|
>.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Make sure switch S1-1 is OFF and switch S5-1 is ON. Reset
|
>Make sure switch S1-1 is OFF and switch S5-1 is ON. Reset
|
the board and verify that the LED display reads <TT
|
the board and verify that the LED display reads <TT
|
CLASS="COMPUTEROUTPUT"
|
CLASS="COMPUTEROUTPUT"
|
>Flash DL</TT
|
>Flash DL</TT
|
>.</P
|
>.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Make sure your parallel port is connected to the 1284 port
|
>Make sure your parallel port is connected to the 1284 port
|
Of the Atlas board. </P
|
Of the Atlas board. </P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Send the <TT
|
>Send the <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>deleteall.dl</TT
|
>deleteall.dl</TT
|
> file to the
|
> file to the
|
parallel port to erase previous images:
|
parallel port to erase previous images:
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>$ <TT
|
>$ <TT
|
CLASS="USERINPUT"
|
CLASS="USERINPUT"
|
><B
|
><B
|
>cat deleteall.dl >/dev/lp0</B
|
>cat deleteall.dl >/dev/lp0</B
|
></TT
|
></TT
|
></PRE
|
></PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
>
|
>
|
When this is complete, the LED display should read
|
When this is complete, the LED display should read
|
<TT
|
<TT
|
CLASS="COMPUTEROUTPUT"
|
CLASS="COMPUTEROUTPUT"
|
>Deleted</TT
|
>Deleted</TT
|
>.</P
|
>.</P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Send the ROM mode RedBoot image to the board:
|
>Send the ROM mode RedBoot image to the board:
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>$ <TT
|
>$ <TT
|
CLASS="USERINPUT"
|
CLASS="USERINPUT"
|
><B
|
><B
|
>cat redboot.dl >/dev/lp0</B
|
>cat redboot.dl >/dev/lp0</B
|
></TT
|
></TT
|
></PRE
|
></PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
>
|
>
|
When this is complete, the LED display should show the last
|
When this is complete, the LED display should show the last
|
address programmed. This will be something like: <TT
|
address programmed. This will be something like: <TT
|
CLASS="COMPUTEROUTPUT"
|
CLASS="COMPUTEROUTPUT"
|
>1fc17000</TT
|
>1fc17000</TT
|
>. </P
|
>. </P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Change switch S5-1 to OFF and reset the board. The LED display
|
>Change switch S5-1 to OFF and reset the board. The LED display
|
should read <TT
|
should read <TT
|
CLASS="COMPUTEROUTPUT"
|
CLASS="COMPUTEROUTPUT"
|
>RedBoot</TT
|
>RedBoot</TT
|
>. </P
|
>. </P
|
></LI
|
></LI
|
><LI
|
><LI
|
><P
|
><P
|
>Run the RedBoot <B
|
>Run the RedBoot <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>fis init</B
|
>fis init</B
|
>
|
>
|
and <B
|
and <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>fconfig</B
|
>fconfig</B
|
> commands to initialize the flash.
|
> commands to initialize the flash.
|
See <A
|
See <A
|
HREF="atlas.html#ATLAS-ADDITIONAL-FCONFIG-OPTIONS"
|
HREF="atlas.html#ATLAS-ADDITIONAL-FCONFIG-OPTIONS"
|
>the Section called <I
|
>the Section called <I
|
>Additional config options</I
|
>Additional config options</I
|
></A
|
></A
|
>, <A
|
>, <A
|
HREF="flash-image-system.html"
|
HREF="flash-image-system.html"
|
>the Section called <I
|
>the Section called <I
|
>Flash Image System (FIS)</I
|
>Flash Image System (FIS)</I
|
> in Chapter 2</A
|
> in Chapter 2</A
|
>
|
>
|
and <A
|
and <A
|
HREF="persistent-state-flash.html"
|
HREF="persistent-state-flash.html"
|
>the Section called <I
|
>the Section called <I
|
>Persistent State Flash-based Configuration and Control</I
|
>Persistent State Flash-based Configuration and Control</I
|
> in Chapter 2</A
|
> in Chapter 2</A
|
> for details. </P
|
> for details. </P
|
></LI
|
></LI
|
></OL
|
></OL
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><H3
|
><H3
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><A
|
><A
|
NAME="ATLAS-DOWNLOAD-FORMAT">Atlas download format</H3
|
NAME="ATLAS-DOWNLOAD-FORMAT">Atlas download format</H3
|
><P
|
><P
|
>In order to download RedBoot to the Atlas board, it must be converted
|
>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
|
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. </P
|
on which version of the developer's kit is shipped with the board. </P
|
><P
|
><P
|
>The <I
|
>The <I
|
CLASS="CITETITLE"
|
CLASS="CITETITLE"
|
>Atlas Developer's Kit</I
|
>Atlas Developer's Kit</I
|
> CD contains an <SPAN
|
> CD contains an <SPAN
|
CLASS="APPLICATION"
|
CLASS="APPLICATION"
|
>srec2flash</SPAN
|
>srec2flash</SPAN
|
> utility. The source code for this utility is part
|
> utility. The source code for this utility is part
|
of the <TT
|
of the <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>yamon/yamon-src-01.01.tar.gz</TT
|
>yamon/yamon-src-01.01.tar.gz</TT
|
> tarball
|
> tarball
|
on the Dev Kit CD. The path in the expanded tarball is <TT
|
on the Dev Kit CD. The path in the expanded tarball is <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>yamon/bin/tools</TT
|
>yamon/bin/tools</TT
|
>. To use
|
>. To use
|
<SPAN
|
<SPAN
|
CLASS="APPLICATION"
|
CLASS="APPLICATION"
|
>srec2flash</SPAN
|
>srec2flash</SPAN
|
> to convert the S-record file:
|
> to convert the S-record file:
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>$ <TT
|
>$ <TT
|
CLASS="USERINPUT"
|
CLASS="USERINPUT"
|
><B
|
><B
|
>srec2flash -EL -S29 redboot.srec >redboot.dl</B
|
>srec2flash -EL -S29 redboot.srec >redboot.dl</B
|
></TT
|
></TT
|
></PRE
|
></PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
>
|
>
|
The <I
|
The <I
|
CLASS="CITETITLE"
|
CLASS="CITETITLE"
|
>Atlas/Malta Developer's Kit</I
|
>Atlas/Malta Developer's Kit</I
|
> CD
|
> CD
|
contains an <SPAN
|
contains an <SPAN
|
CLASS="APPLICATION"
|
CLASS="APPLICATION"
|
>srecconv.pl</SPAN
|
>srecconv.pl</SPAN
|
> utility which requires
|
> utility which requires
|
Perl. This utilty is part of the <TT
|
Perl. This utilty is part of the <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>yamon/yamon-src-02.00.tar.gz</TT
|
>yamon/yamon-src-02.00.tar.gz</TT
|
>
|
>
|
tarball on the Dev Kit CD. The path in the expanded tarball
|
tarball on the Dev Kit CD. The path in the expanded tarball
|
is <TT
|
is <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>yamon/bin/tools</TT
|
>yamon/bin/tools</TT
|
>. To use <SPAN
|
>. To use <SPAN
|
CLASS="APPLICATION"
|
CLASS="APPLICATION"
|
>srecconv</SPAN
|
>srecconv</SPAN
|
> to convert the S-record file:
|
> to convert the S-record file:
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>$ <TT
|
>$ <TT
|
CLASS="USERINPUT"
|
CLASS="USERINPUT"
|
><B
|
><B
|
>cp redboot_ROM.srec redboot_ROM.rec</B
|
>cp redboot_ROM.srec redboot_ROM.rec</B
|
></TT
|
></TT
|
>
|
>
|
$ <TT
|
$ <TT
|
CLASS="USERINPUT"
|
CLASS="USERINPUT"
|
><B
|
><B
|
>srecconv.pl -ES L -A 29 redboot_ROM</B
|
>srecconv.pl -ES L -A 29 redboot_ROM</B
|
></TT
|
></TT
|
></PRE
|
></PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
>
|
>
|
The resulting file is named <TT
|
The resulting file is named <TT
|
CLASS="FILENAME"
|
CLASS="FILENAME"
|
>redboot_ROM.fl</TT
|
>redboot_ROM.fl</TT
|
>.</P
|
>.</P
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN6746">Flash management</H2
|
NAME="AEN6746">Flash management</H2
|
><DIV
|
><DIV
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><H3
|
><H3
|
CLASS="SECT3"
|
CLASS="SECT3"
|
><A
|
><A
|
NAME="ATLAS-ADDITIONAL-FCONFIG-OPTIONS">Additional config options</H3
|
NAME="ATLAS-ADDITIONAL-FCONFIG-OPTIONS">Additional config options</H3
|
><P
|
><P
|
>The ethernet MAC address is stored in flash manually using the <B
|
>The ethernet MAC address is stored in flash manually using the <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>fconfig</B
|
>fconfig</B
|
> command. You can use the YAMON <B
|
> command. You can use the YAMON <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>setenv
|
>setenv
|
ethaddr</B
|
ethaddr</B
|
> command to print out the board ethernet address.
|
> command to print out the board ethernet address.
|
Typically, it is: <TABLE
|
Typically, it is: <TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>00:0d:a0:00:<TT
|
>00:0d:a0:00:<TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
>xx:xx</I
|
>xx:xx</I
|
></TT
|
></TT
|
></PRE
|
></PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
> where
|
> where
|
<TT
|
<TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
>xx.xx</I
|
>xx.xx</I
|
></TT
|
></TT
|
> is the hex representation of the
|
> is the hex representation of the
|
board serial number.</P
|
board serial number.</P
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN6756">Additional commands</H2
|
NAME="AEN6756">Additional commands</H2
|
><P
|
><P
|
>The <B
|
>The <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>exec</B
|
>exec</B
|
> command which allows the
|
> command which allows the
|
loading and execution of Linux kernels, is supported for this architecture
|
loading and execution of Linux kernels, is supported for this architecture
|
(see <A
|
(see <A
|
HREF="executing-programs.html"
|
HREF="executing-programs.html"
|
>the Section called <I
|
>the Section called <I
|
>Executing Programs from RedBoot</I
|
>Executing Programs from RedBoot</I
|
> in Chapter 2</A
|
> in Chapter 2</A
|
>). The
|
>). The
|
<B
|
<B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>exec</B
|
>exec</B
|
> parameters used for MIPS boards are:</P
|
> parameters used for MIPS boards are:</P
|
><P
|
><P
|
></P
|
></P
|
><DIV
|
><DIV
|
CLASS="VARIABLELIST"
|
CLASS="VARIABLELIST"
|
><DL
|
><DL
|
><DT
|
><DT
|
>-b <TT
|
>-b <TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
><addr></I
|
><addr></I
|
></TT
|
></TT
|
></DT
|
></DT
|
><DD
|
><DD
|
><P
|
><P
|
>Location to store command line and environment passed to kernel</P
|
>Location to store command line and environment passed to kernel</P
|
></DD
|
></DD
|
><DT
|
><DT
|
>-w <TT
|
>-w <TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
><time></I
|
><time></I
|
></TT
|
></TT
|
></DT
|
></DT
|
><DD
|
><DD
|
><P
|
><P
|
>Wait time in seconds before starting kernel</P
|
>Wait time in seconds before starting kernel</P
|
></DD
|
></DD
|
><DT
|
><DT
|
>-c <TT
|
>-c <TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
>"params"</I
|
>"params"</I
|
></TT
|
></TT
|
></DT
|
></DT
|
><DD
|
><DD
|
><P
|
><P
|
>Parameters passed to kernel</P
|
>Parameters passed to kernel</P
|
></DD
|
></DD
|
><DT
|
><DT
|
><TT
|
><TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
><addr></I
|
><addr></I
|
></TT
|
></TT
|
></DT
|
></DT
|
><DD
|
><DD
|
><P
|
><P
|
>Kernel entry point, defaulting to the entry point of the last image
|
>Kernel entry point, defaulting to the entry point of the last image
|
loaded</P
|
loaded</P
|
></DD
|
></DD
|
></DL
|
></DL
|
></DIV
|
></DIV
|
><P
|
><P
|
>Linux kernels on MIPS platforms expect the entry point to be called with arguments
|
>Linux kernels on MIPS platforms expect the entry point to be called with arguments
|
in the registers equivalent to a C call with prototype:
|
in the registers equivalent to a C call with prototype:
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>void Linux(int argc, char **argv, char **envp);</PRE
|
>void Linux(int argc, char **argv, char **envp);</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></P
|
></P
|
><P
|
><P
|
>RedBoot will place the appropriate data at the offset specified by the
|
>RedBoot will place the appropriate data at the offset specified by the
|
<TT
|
<TT
|
CLASS="PARAMETER"
|
CLASS="PARAMETER"
|
><I
|
><I
|
>-b</I
|
>-b</I
|
></TT
|
></TT
|
> parameter, or by default at address 0x80080000, and will set the
|
> parameter, or by default at address 0x80080000, and will set the
|
arguments accordingly when calling into the kernel.</P
|
arguments accordingly when calling into the kernel.</P
|
><P
|
><P
|
>The default entry point, if no image with explicit entry point has been loaded and
|
>The default entry point, if no image with explicit entry point has been loaded and
|
none is specified, is 0x80000750.</P
|
none is specified, is 0x80000750.</P
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN6788">Interrupts</H2
|
NAME="AEN6788">Interrupts</H2
|
><P
|
><P
|
>RedBoot uses an interrupt vector table which is located at address 0x80000400.
|
>RedBoot uses an interrupt vector table which is located at address 0x80000400.
|
Entries in this table are pointers to functions with this protoype: <TABLE
|
Entries in this table are pointers to functions with this protoype: <TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>int irq_handler( unsigned vector, unsigned data )</PRE
|
>int irq_handler( unsigned vector, unsigned data )</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
>On an atlas
|
>On an atlas
|
board, the vector argument is one of 25 interrupts defined in <TT
|
board, the vector argument is one of 25 interrupts defined in <TT
|
CLASS="COMPUTEROUTPUT"
|
CLASS="COMPUTEROUTPUT"
|
>hal/mips/atlas/<TT
|
>hal/mips/atlas/<TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
>VERSION</I
|
>VERSION</I
|
></TT
|
></TT
|
>/include/plf_intr.h</TT
|
>/include/plf_intr.h</TT
|
>: <TABLE
|
>: <TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>#define CYGNUM_HAL_INTERRUPT_SER 0
|
>#define CYGNUM_HAL_INTERRUPT_SER 0
|
#define CYGNUM_HAL_INTERRUPT_TIM0 1
|
#define CYGNUM_HAL_INTERRUPT_TIM0 1
|
#define CYGNUM_HAL_INTERRUPT_2 2
|
#define CYGNUM_HAL_INTERRUPT_2 2
|
#define CYGNUM_HAL_INTERRUPT_3 3
|
#define CYGNUM_HAL_INTERRUPT_3 3
|
#define CYGNUM_HAL_INTERRUPT_RTC 4
|
#define CYGNUM_HAL_INTERRUPT_RTC 4
|
#define CYGNUM_HAL_INTERRUPT_COREHI 5
|
#define CYGNUM_HAL_INTERRUPT_COREHI 5
|
#define CYGNUM_HAL_INTERRUPT_CORELO 6
|
#define CYGNUM_HAL_INTERRUPT_CORELO 6
|
#define CYGNUM_HAL_INTERRUPT_7 7
|
#define CYGNUM_HAL_INTERRUPT_7 7
|
#define CYGNUM_HAL_INTERRUPT_PCIA 8
|
#define CYGNUM_HAL_INTERRUPT_PCIA 8
|
#define CYGNUM_HAL_INTERRUPT_PCIB 9
|
#define CYGNUM_HAL_INTERRUPT_PCIB 9
|
#define CYGNUM_HAL_INTERRUPT_PCIC 10
|
#define CYGNUM_HAL_INTERRUPT_PCIC 10
|
#define CYGNUM_HAL_INTERRUPT_PCID 11
|
#define CYGNUM_HAL_INTERRUPT_PCID 11
|
#define CYGNUM_HAL_INTERRUPT_ENUM 12
|
#define CYGNUM_HAL_INTERRUPT_ENUM 12
|
#define CYGNUM_HAL_INTERRUPT_DEG 13
|
#define CYGNUM_HAL_INTERRUPT_DEG 13
|
#define CYGNUM_HAL_INTERRUPT_ATXFAIL 14
|
#define CYGNUM_HAL_INTERRUPT_ATXFAIL 14
|
#define CYGNUM_HAL_INTERRUPT_INTA 15
|
#define CYGNUM_HAL_INTERRUPT_INTA 15
|
#define CYGNUM_HAL_INTERRUPT_INTB 16
|
#define CYGNUM_HAL_INTERRUPT_INTB 16
|
#define CYGNUM_HAL_INTERRUPT_INTC 17
|
#define CYGNUM_HAL_INTERRUPT_INTC 17
|
#define CYGNUM_HAL_INTERRUPT_INTD 18
|
#define CYGNUM_HAL_INTERRUPT_INTD 18
|
#define CYGNUM_HAL_INTERRUPT_SERR 19
|
#define CYGNUM_HAL_INTERRUPT_SERR 19
|
#define CYGNUM_HAL_INTERRUPT_HW1 20
|
#define CYGNUM_HAL_INTERRUPT_HW1 20
|
#define CYGNUM_HAL_INTERRUPT_HW2 21
|
#define CYGNUM_HAL_INTERRUPT_HW2 21
|
#define CYGNUM_HAL_INTERRUPT_HW3 22
|
#define CYGNUM_HAL_INTERRUPT_HW3 22
|
#define CYGNUM_HAL_INTERRUPT_HW4 23
|
#define CYGNUM_HAL_INTERRUPT_HW4 23
|
#define CYGNUM_HAL_INTERRUPT_HW5 24</PRE
|
#define CYGNUM_HAL_INTERRUPT_HW5 24</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
>The data
|
>The data
|
passed to the ISR is pulled from a data table (<TT
|
passed to the ISR is pulled from a data table (<TT
|
CLASS="COMPUTEROUTPUT"
|
CLASS="COMPUTEROUTPUT"
|
>hal_interrupt_data</TT
|
>hal_interrupt_data</TT
|
>) which immediately follows the interrupt vector table. With
|
>) which immediately follows the interrupt vector table. With
|
25 interrupts, the data table starts at address 0x80000464 on atlas.</P
|
25 interrupts, the data table starts at address 0x80000464 on atlas.</P
|
><P
|
><P
|
>An application may create a normal C function with the above prototype
|
>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
|
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
|
enable the interrupt at its source. The return value of the ISR is ignored
|
by RedBoot. </P
|
by RedBoot. </P
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN6797">Memory Maps</H2
|
NAME="AEN6797">Memory Maps</H2
|
><P
|
><P
|
>Memory Maps RedBoot sets up the following memory map on the Atlas board.
|
>Memory Maps RedBoot sets up the following memory map on the Atlas board.
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>Physical Address Range Description
|
>Physical Address Range Description
|
----------------------- -------------
|
----------------------- -------------
|
0x00000000 - 0x07ffffff SDRAM
|
0x00000000 - 0x07ffffff SDRAM
|
0x08000000 - 0x17ffffff PCI Memory Space
|
0x08000000 - 0x17ffffff PCI Memory Space
|
0x18000000 - 0x1bdfffff PCI I/O Space
|
0x18000000 - 0x1bdfffff PCI I/O Space
|
0x1be00000 - 0x1bffffff System Controller
|
0x1be00000 - 0x1bffffff System Controller
|
0x1c000000 - 0x1dffffff System flash
|
0x1c000000 - 0x1dffffff System flash
|
0x1e000000 - 0x1e3fffff Monitor flash
|
0x1e000000 - 0x1e3fffff Monitor flash
|
0x1f000000 - 0x1fbfffff FPGA</PRE
|
0x1f000000 - 0x1fbfffff FPGA</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></P
|
></P
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><H2
|
><H2
|
CLASS="SECT2"
|
CLASS="SECT2"
|
><A
|
><A
|
NAME="AEN6801">Rebuilding RedBoot</H2
|
NAME="AEN6801">Rebuilding RedBoot</H2
|
><P
|
><P
|
>These shell variables provide the platform-specific information
|
>These shell variables provide the platform-specific information
|
needed for building RedBoot according to the procedure described in
|
needed for building RedBoot according to the procedure described in
|
<A
|
<A
|
HREF="rebuilding-redboot.html"
|
HREF="rebuilding-redboot.html"
|
>Chapter 3</A
|
>Chapter 3</A
|
>:
|
>:
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="PROGRAMLISTING"
|
CLASS="PROGRAMLISTING"
|
>export TARGET=atlas_mips32_4kc
|
>export TARGET=atlas_mips32_4kc
|
export TARGET=atlas_mips64_5kc
|
export TARGET=atlas_mips64_5kc
|
export ARCH_DIR=mips
|
export ARCH_DIR=mips
|
export PLATFORM_DIR=atlas</PRE
|
export PLATFORM_DIR=atlas</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
>
|
>
|
|
|
Use one of the TARGET settings only. </P
|
Use one of the TARGET settings only. </P
|
><P
|
><P
|
>The names of configuration files are listed above with the
|
>The names of configuration files are listed above with the
|
description of the associated modes.</P
|
description of the associated modes.</P
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="NAVFOOTER"
|
CLASS="NAVFOOTER"
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"><TABLE
|
WIDTH="100%"><TABLE
|
SUMMARY="Footer navigation table"
|
SUMMARY="Footer navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="x86pc.html"
|
HREF="x86pc.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="ecos-ref.html"
|
HREF="ecos-ref.html"
|
ACCESSKEY="H"
|
ACCESSKEY="H"
|
>Home</A
|
>Home</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="malta.html"
|
HREF="malta.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
>IA32/x86 x86-Based PC</TD
|
>IA32/x86 x86-Based PC</TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="installation-and-testing.html"
|
HREF="installation-and-testing.html"
|
ACCESSKEY="U"
|
ACCESSKEY="U"
|
>Up</A
|
>Up</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
>MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Malta Board</TD
|
>MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Malta Board</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|