<!-- 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
|
>RedBoot Startup Mode</TITLE
|
>RedBoot Startup Mode</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="Getting Started with RedBoot"
|
TITLE="Getting Started with RedBoot"
|
HREF="getting-started-with-redboot.html"><LINK
|
HREF="getting-started-with-redboot.html"><LINK
|
REL="PREVIOUS"
|
REL="PREVIOUS"
|
TITLE="RedBoot Editing Commands"
|
TITLE="RedBoot Editing Commands"
|
HREF="redboot-editing-commands.html"><LINK
|
HREF="redboot-editing-commands.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="RedBoot Resource Usage"
|
TITLE="RedBoot Resource Usage"
|
HREF="resource-usage.html"></HEAD
|
HREF="resource-usage.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="redboot-editing-commands.html"
|
HREF="redboot-editing-commands.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 1. Getting Started with RedBoot</TD
|
>Chapter 1. Getting Started with RedBoot</TD
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="resource-usage.html"
|
HREF="resource-usage.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="STARTUP-MODE">RedBoot Startup Mode</H1
|
NAME="STARTUP-MODE">RedBoot Startup Mode</H1
|
><P
|
><P
|
>
|
>
|
</P
|
</P
|
><P
|
><P
|
>RedBoot can normally be configured to run in a number of startup
|
>RedBoot can normally be configured to run in a number of startup
|
modes (or just "modes" for short), determining its location of
|
modes (or just "modes" for short), determining its location of
|
residence and execution:
|
residence and execution:
|
<P
|
<P
|
></P
|
></P
|
><DIV
|
><DIV
|
CLASS="VARIABLELIST"
|
CLASS="VARIABLELIST"
|
><DL
|
><DL
|
><DT
|
><DT
|
>ROM mode</DT
|
>ROM mode</DT
|
><DD
|
><DD
|
><P
|
><P
|
>In this mode, RedBoot both resides and executes from
|
>In this mode, RedBoot both resides and executes from
|
ROM memory (flash or EPROM). This mode is used when there are limited
|
ROM memory (flash or EPROM). This mode is used when there are limited
|
RAM resources. The flash commands cannot update the region of flash
|
RAM resources. The flash commands cannot update the region of flash
|
where the RedBoot image resides. In order to update the RedBoot image
|
where the RedBoot image resides. In order to update the RedBoot image
|
in flash, it is necessary to run a RAM mode instance of
|
in flash, it is necessary to run a RAM mode instance of
|
RedBoot.</P
|
RedBoot.</P
|
></DD
|
></DD
|
><DT
|
><DT
|
>ROMRAM mode</DT
|
>ROMRAM mode</DT
|
><DD
|
><DD
|
><P
|
><P
|
>In this mode, RedBoot resides in ROM memory (flash or
|
>In this mode, RedBoot resides in ROM memory (flash or
|
EPROM), but is copied to RAM memory before it starts executing. The
|
EPROM), but is copied to RAM memory before it starts executing. The
|
RAM footprint is larger than for ROM mode, but there are two
|
RAM footprint is larger than for ROM mode, but there are two
|
advantages to make up for this: it normally runs faster (relevant
|
advantages to make up for this: it normally runs faster (relevant
|
only on slower boards) and it is able to update the flash region
|
only on slower boards) and it is able to update the flash region
|
where the image resides.</P
|
where the image resides.</P
|
></DD
|
></DD
|
><DT
|
><DT
|
>RAM mode</DT
|
>RAM mode</DT
|
><DD
|
><DD
|
><P
|
><P
|
>In this mode, RedBoot both resides and executes from
|
>In this mode, RedBoot both resides and executes from
|
RAM memory. This is used for updating a primary ROM
|
RAM memory. This is used for updating a primary ROM
|
mode image in situ and sometimes as part of the RedBoot installation
|
mode image in situ and sometimes as part of the RedBoot installation
|
on the board when there's already an existing (non-RedBoot) boot
|
on the board when there's already an existing (non-RedBoot) boot
|
monitor available.</P
|
monitor available.</P
|
><P
|
><P
|
> You can only use ROM and ROMRAM mode images for booting a
|
> You can only use ROM and ROMRAM mode images for booting a
|
board - a RAM mode image cannot run unless loaded by another ROM
|
board - a RAM mode image cannot run unless loaded by another ROM
|
monitor. There is no need for this startup mode if a RedBoot ROMRAM
|
monitor. There is no need for this startup mode if a RedBoot ROMRAM
|
mode image is the primary boot monitor. When this startup mode is
|
mode image is the primary boot monitor. When this startup mode is
|
programmed into flash (as a convenience as it's fast to load from
|
programmed into flash (as a convenience as it's fast to load from
|
flash) it will generally be named as "RedBoot[RAM]" in the FIS
|
flash) it will generally be named as "RedBoot[RAM]" in the FIS
|
directory. </P
|
directory. </P
|
></DD
|
></DD
|
></DL
|
></DL
|
></DIV
|
></DIV
|
>
|
>
|
|
|
The chosen mode has influence on flash and RAM resource usage (see
|
The chosen mode has influence on flash and RAM resource usage (see
|
<A
|
<A
|
HREF="resource-usage.html"
|
HREF="resource-usage.html"
|
>the Section called <I
|
>the Section called <I
|
>RedBoot Resource Usage</I
|
>RedBoot Resource Usage</I
|
></A
|
></A
|
>) and the procedure of an in situ update
|
>) and the procedure of an in situ update
|
of RedBoot in flash (see <A
|
of RedBoot in flash (see <A
|
HREF="updating-redboot.html"
|
HREF="updating-redboot.html"
|
>Chapter 4</A
|
>Chapter 4</A
|
>).</P
|
>).</P
|
><P
|
><P
|
>The startup mode is controlled by the option CYG_HAL_STARTUP
|
>The startup mode is controlled by the option CYG_HAL_STARTUP
|
which resides in the platform HAL. Some platforms provide only some of
|
which resides in the platform HAL. Some platforms provide only some of
|
the RAM, ROM, and ROMRAM modes, others provide additional
|
the RAM, ROM, and ROMRAM modes, others provide additional
|
modes.</P
|
modes.</P
|
><P
|
><P
|
>To see mode of a currently executing RedBoot, issue the
|
>To see mode of a currently executing RedBoot, issue the
|
<B
|
<B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>version</B
|
>version</B
|
> command, which prints the RedBoot banner,
|
> command, which prints the RedBoot banner,
|
including the startup mode (here ROM):
|
including the startup mode (here ROM):
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>RedBoot><TT
|
>RedBoot><TT
|
CLASS="USERINPUT"
|
CLASS="USERINPUT"
|
><B
|
><B
|
>version</B
|
>version</B
|
></TT
|
></TT
|
>
|
>
|
|
|
RedBoot(tm) bootstrap and debug environment <SPAN
|
RedBoot(tm) bootstrap and debug environment <SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>[ROM]</I
|
>[ROM]</I
|
></SPAN
|
></SPAN
|
>
|
>
|
Non-certified release, version UNKNOWN - built 13:31:57, May 17 2002</PRE
|
Non-certified release, version UNKNOWN - built 13:31:57, May 17 2002</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></P
|
></P
|
></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="redboot-editing-commands.html"
|
HREF="redboot-editing-commands.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="resource-usage.html"
|
HREF="resource-usage.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"
|
>RedBoot Editing Commands</TD
|
>RedBoot Editing Commands</TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="getting-started-with-redboot.html"
|
HREF="getting-started-with-redboot.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"
|
>RedBoot Resource Usage</TD
|
>RedBoot Resource Usage</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|