📄 nano.html
字号:
<!-- Copyright (C) 2003 Red Hat, Inc. --><!-- This material may be distributed only subject to the terms --><!-- and conditions set forth in the Open Publication License, v1.0 --><!-- or later (the latest version is presently available at --><!-- http://www.opencontent.org/openpub/). --><!-- Distribution of the work or derivative of the work in any --><!-- standard (paper) book form is prohibited unless prior --><!-- permission is obtained from the copyright holder. --><HTML><HEAD><TITLE>ARM/StrongARM(SA11X0) Bright Star Engineering commEngine and nanoEngine</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="Installation and Testing"HREF="installation-and-testing.html"><LINKREL="PREVIOUS"TITLE="ARM/StrongARM(SA1110) Intel SA1110 (Assabet) "HREF="assabet.html"><LINKREL="NEXT"TITLE="ARM/StrongARM(SA11X0) Compaq iPAQ PocketPC"HREF="ipaq.html"></HEAD><BODYCLASS="SECT1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="assabet.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 5. Installation and Testing</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="ipaq.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="NANO">ARM/StrongARM(SA11X0) Bright Star Engineering commEngine and nanoEngine</H1><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5802">Overview</H2><P>RedBoot supports a serial port and the built in ethernet portfor communication and downloads. The default serial port settings are 38400,8,N,1.RedBoot runs from and supports flash management for the system flashregion.</P><P>The following RedBoot configurations are supported: <DIVCLASS="INFORMALTABLE"><ANAME="AEN5818"><P></P><TABLEBORDER="1"CLASS="CALSTABLE"><THEAD><TR><THALIGN="LEFT"VALIGN="TOP">Configuration</TH><THALIGN="LEFT"VALIGN="TOP">Mode</TH><THALIGN="LEFT"VALIGN="TOP">Description</TH><THALIGN="LEFT"VALIGN="TOP">File</TH></TR></THEAD><TBODY><TR><TDALIGN="LEFT"VALIGN="TOP">POST</TD><TDALIGN="LEFT"VALIGN="TOP">[ROM]</TD><TDALIGN="LEFT"VALIGN="TOP">RedBoot running from the first free flash block at 0x40000.</TD><TDALIGN="LEFT"VALIGN="TOP">redboot_ROM.ecm</TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP">RAM</TD><TDALIGN="LEFT"VALIGN="TOP">[RAM]</TD><TDALIGN="LEFT"VALIGN="TOP">RedBoot running from RAM with RedBoot in the flash boot sector.</TD><TDALIGN="LEFT"VALIGN="TOP">redboot_RAM.ecm</TD></TR></TBODY></TABLE><P></P></DIV></P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5837">Initial Installation</H2><P>Unlike other targets, the nanoEngine comes equipped with boot firmwarewhich you cannot modify. See chapter 5, "nanoEngine Firmware" of the <ICLASS="CITETITLE">nanoEngine Hardware Reference Manual</I> (we refer to "July 17, 2000Rev 0.6") from Bright Star Engineering. </P><P>Because of this, eCos, and therefore Redboot, only supports aspecial configuration of the ROM mode, starting at offset 0x40000 inthe flash.</P><P>Briefly, the POST-configuration RedBoot image lives in flash following theBSE firmware. The BSE firmware is configured, using its standard <BCLASS="COMMAND">bootcmd</B> command, to run RedBoot at startup.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5844">Download Instructions</H2><P>You can perform the initial load of the POST-configuration RedBoot image intoflash using the BSE firmware's <BCLASS="COMMAND">load</B> command.This will load a binary file, using TFTP, and program it into flash in oneoperation. Because no memory management is used in the BSE firmware, flashis mapped from address zero upwards, so the address for the RedBoot POST imageis 0x40000. You must use the binary version of RedBoot for this,<TTCLASS="FILENAME">redboot-post.bin</TT>.</P><P>This assumes you have set up the other BSE firmware configparameters such that it can communicate over your network to your TFTPserver.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">><TTCLASS="USERINPUT"><B>load redboot-post.bin 40000</B></TT>loading ... erasing blk at 00040000erasing blk at 0005000094168 bytes loaded cksum 00008579done>> <TTCLASS="USERINPUT"><B>set bootcmd "go 40000"</B></TT>> <TTCLASS="USERINPUT"><B>get</B></TT>myip = 10.16.19.198netmask = 255.255.255.0eth = 0gateway = 10.16.19.66serverip = 10.16.19.66bootcmd = go 40000></PRE></TD></TR></TABLE><DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>NOTE: </B>the BSE firmware runs its serial IO at 9600 Baud; RedBoot runs insteadat 38400 Baud. You must select the right baud rate in your terminal programto be able to set up the BSE firmware.</P></BLOCKQUOTE></DIV>After a reset, the BSE firmware will print<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">Boot: BSE 2000 Sep 12 2000 14:00:30autoboot: "go 40000" [hit ESC to abort]</PRE></TD></TR></TABLE>and then RedBoot starts, switching to 38400 Baud.</P><P>Once you have installed a bootable RedBoot in the system in thismanner, we advise re-installing using the generic method described in<AHREF="updating-redboot.html">Chapter 4</A> in order that the Flash Image Systemcontains an appropriate description of the flash entries.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5860">Cohabiting with POST in Flash</H2><P>The configuration file named <TTCLASS="FILENAME">redboot_POST.ecm</TT>configures RedBoot to build for execution at address 0x50040000 (or, duringbootup, 0x00040000). This is to allow power-on self-test (POST) code or immutablefirmware to live in the lower addresses of the flash and to run before RedBootgets control. The assumption is that RedBoot will be entered at its base addressin physical memory, that is 0x00040000.</P><P>Alternatively, for testing, you can call it in an already running systemby using <TTCLASS="USERINPUT"><B>go 0x50040040</B></TT> at another RedBoot prompt, ora branch to that address. The address is where the reset vectorpoints. It is reported by RedBoot's <BCLASS="COMMAND">load</B> commandand listedby the <BCLASS="COMMAND">fis list</B> command, amongst otherplaces.</P><P>Using the POST configuration enables a normal config option which causes
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -