⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aaed2000.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 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/ARM9 Agilent AAED2000</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/ARM7 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312) "HREF="edb7xxx.html"><LINKREL="NEXT"TITLE="ARM/ARM9 Altera Excalibur"HREF="excaliburarm9.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="edb7xxx.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="excaliburarm9.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AAED2000">ARM/ARM9 Agilent AAED2000</H1><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5379">Overview</H2><P>RedBoot supports the serial and ethernet portson the board. The default serial port settings are 38400,8,N,1.RedBoot also supports flash management on the AAED2000.</P><P>The following RedBoot configurations are supported:      <DIVCLASS="INFORMALTABLE"><ANAME="AEN5389"><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">ROMRAM</TD><TDALIGN="LEFT"VALIGN="TOP">[ROMRAM]</TD><TDALIGN="LEFT"VALIGN="TOP">RedBoot running from RAM, but contained in the	      board's flash boot sector.</TD><TDALIGN="LEFT"VALIGN="TOP">redboot_primary_ROMRAM.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_primary_RAM.ecm</TD></TR></TBODY></TABLE><P></P></DIV></P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5408">Initial Installation Method</H2><P>It is possible to install RedBoot in one of two ways. Either asthe primary bootmonitor on the board (installed to blocks 0-1 of theflash) or as the secondary bootmonitor on the board (installed toblocks 1-2 of the flash).</P><P>Presently, only the former method is supported.</P><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN5412">RedBoot as Primary Bootmonitor</H3><P>RedBoot is installed in flash using the on-board ARM BootMonitor.</P><P>Boot the board while pressing SPACE. This should bring up theBoot Monitor:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">ARM bootPROM [Version 1.3] Rebuilt on Jul 16 2001 at 16:21:36                   Running on a P920 board Evaluation Board                                        Board Revision V1.0, ARM920T processor Processor                                Memory Size is 32MBytes, Flash Size is 32MBytes                                 Copyright (c) ARM Limited 1999 - 2001. All rights reserved.                     Board designed by ARM Limited                                                   Hardware support provided at http://www.arm.com/                                For help on the available commands type ? or h                                  boot Monitor &#62;                                                                  </PRE></TD></TR></TABLE>Download the RAM mode image of RedBoot configured as a primarybootmonitor using the ARM bootmonitor's SREC-download command:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">boot Monitor &gt; <TTCLASS="USERINPUT"><B>m</B></TT>Load Motorola S-Record image into memory and execute itThe S-Record loader only accepts input on the serial port.Record addresses must be between 0x00008000 and 0x01E0F510.Type Ctrl/C to exit loader.</PRE></TD></TR></TABLE>Use the terminal emulator's ASCII upload command, or (on Linux) simplycat the file to the serial port:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">$ <TTCLASS="USERINPUT"><B>cat redboot_primary_RAM/redboot.srec &gt;/dev/ttyS1</B></TT></PRE></TD></TR></TABLE>You should see RedBoot start up:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">FLASH configuration checksum error or invalid keyEthernet eth0: MAC address 00:30:d3:03:04:99                                    IP: 192.168.42.111, Default server: 192.168.42.3                                                                                                                RedBoot(tm) bootstrap and debug environment [RAM]                               Non-certified release, version UNKNOWN - built 13:15:40, Nov  9 2001                                                                                            Platform: AAED2000 system (ARM9) [Primary]                                      Copyright (C) 2000, 2001, Red Hat, Inc.                                                                                                                         RAM: 0x00000000-0x01f80000, 0x0006f208-0x01f51000 available                     FLASH: 0x60000000 - 0x62000000, 256 blocks of 0x00020000 bytes each.            RedBoot&#62;</PRE></TD></TR></TABLE>As can be seen from the output above, the network has been configuredto give the board an IP address and information about the defaultserver. If things are not set up on your network, you can stillcontinue, but use the Y-modem download method when loading the RedBootROMRAM mode image.Now initialize RedBoot's FIS:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot&gt; <TTCLASS="USERINPUT"><B>fis init</B></TT>                                                                About to initialize [format] FLASH image system - continue (y/n)? <TTCLASS="USERINPUT"><B>y</B></TT>*** Initialize FLASH Image System    Warning: device contents not erased, some blocks may not be usable... Erase from 0x61fe0000-0x62000000: .... Program from 0x01f5f000-0x01f5f300 at 0x61fe0000: .</PRE></TD></TR></TABLE>Download the ROMRAM mode image of RedBoot via ethernet:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot&gt; <TTCLASS="USERINPUT"><B>load -b %{FREEMEMLO} redboot_primary_ROMRAM/redboot.srec</B></TT></PRE></TD></TR></TABLE>or using serial Y-modem protocol:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot&gt; <TTCLASS="USERINPUT"><B>load -mode ymodem -b %{FREEMEMLO}</B></TT></PRE></TD></TR></TABLE>(Use the terminal emulator's Y-modem upload command to send the file <TTCLASS="FILENAME">redboot_primary_ROMRAM/redboot.srec</TT>.)When the image has been downloaded, program it into flash:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">Address offset = 0x00ff8000Entry point: 0x00008040, address range: 0x00008000-0x0002da80RedBoot&gt; <TTCLASS="USERINPUT"><B>fi cr RedBoot</B></TT>An image named 'RedBoot' exists - continue (y/n)? <TTCLASS="USERINPUT"><B>y</B></TT>* CAUTION * about to program 'RedBoot'            at 0x60000000..0x6003ffff from 0x00100000 - continue (y/n)? <TTCLASS="USERINPUT"><B>y</B></TT>... Erase from 0x60000000-0x60040000: ..... Program from 0x00100000-0x00140000 at 0x60000000: ..... Erase from 0x61fe0000-0x62000000: .... Program from 0x01f5f000-0x01f7f000 at 0x61fe0000: .</PRE></TD></TR></TABLE>Now reset the board. You should see the RedBoot banner.</P></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5434">Special RedBoot Commands</H2><P>The <BCLASS="COMMAND">exec</B> command which allows the loadingand execution of Linux kernels,is supported for this board (see <AHREF="executing-programs.html">the Section called <I>Executing Programs from RedBoot</I> in Chapter 2</A>). The <BCLASS="COMMAND">exec</B> parameters used for the AAED2000 are:</P><P></P><DIVCLASS="VARIABLELIST"><DL><DT>-b <TTCLASS="REPLACEABLE"><I>&lt;addr&#62;</I></TT></DT><DD><P>Location Linux kernel was loaded to</P></DD><DT>-l <TTCLASS="REPLACEABLE"><I>&lt;len&#62;</I></TT></DT><DD><P>Length of kernel</P></DD><DT>-c <TTCLASS="REPLACEABLE"><I>"params"</I></TT></DT><DD><P>Parameters passed to kernel</P></DD><DT>-r <TTCLASS="REPLACEABLE"><I>&lt;addr&#62;</I></TT></DT><DD><P>'initrd' ramdisk location</P></DD><DT>-s <TTCLASS="REPLACEABLE"><I>&lt;len&#62;</I></TT></DT><DD><P>Length of initrd ramdisk</P></DD></DL></DIV><P>The parameters for kernel image base and size are automaticallyset after a load operation. So one way of starting the kernel wouldbe:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot&gt; <TTCLASS="USERINPUT"><B>load -r -b 0x100000 zImage</B></TT>Raw file loaded 0x00100000-0x001a3d6cRedBoot&gt; exec -c "console=ttyAC0,38400"Using base address 0x00100000 and length 0x000a3d6cUncompressing Linux.....</PRE></TD></TR></TABLE>An image could also be put in flash and started directly:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot&gt; <TTCLASS="USERINPUT"><B>exec -b 0x60040000 -l 0xc0000 -c "console=ttyAC0,38400"</B></TT>Uncompressing Linux.....</PRE></TD></TR></TABLE>&#13;</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5471">Memory Maps</H2><P>The MMU page tables are located at 0x4000. <DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE"><P><B>NOTE: </B>The virtual memory maps in this section use a C and B column to indicatewhether or not the region is cached (C) or buffered (B).</P></BLOCKQUOTE></DIV><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">Physical Address Range     Description-----------------------    ----------------------------------0x00000000 - 0x01ffffff    Flash0x10000000 - 0x100fffff    Ethernet0x30000000 - 0x300fffff    Board registers0x40000000 - 0x4fffffff    PCMCIA Slot (0)0x50000000 - 0x5fffffff    Compact Flash Slot (1)0x80000000 - 0x800037ff    I/O registers0xb0060000 - 0xb00fffff    On-chip SRAM0xf0000000 - 0xfd3fffff    SDRAMVirtual Address Range    C B  Description-----------------------  - -  ----------------------------------0x00000000 - 0x01f7ffff  Y Y  SDRAM0x01f80000 - 0x01ffffff  Y Y  SDRAM (used for LCD frame buffer)0x10000000 - 0x100fffff  N N  Ethernet0x30000000 - 0x300fffff  N N  Board registers0x40000000 - 0x4fffffff  N N  PCMCIA Slot (0)0x50000000 - 0x5fffffff  N N  Compact Flash Slot (1)0x60000000 - 0x61ffffff  N N  Flash0x80000000 - 0x800037ff  N N  I/O registers0xf0000000 - 0xffffffff  N N  SDRAM (uncached)&#13;</PRE></TD></TR></TABLE></P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN5478">Rebuilding RedBoot</H2><P>These shell variables provide the platform-specific informationneeded for building RedBoot according to the procedure described in<AHREF="rebuilding-redboot.html">Chapter 3</A>:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">export TARGET=aaedexport ARCH_DIR=armexport PLATFORM_DIR=arm9/aaed2000</PRE></TD></TR></TABLE></P><P>The names of configuration files are listed above with thedescription of the associated modes.</P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="edb7xxx.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="excaliburarm9.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">ARM/ARM7 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312)</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="installation-and-testing.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">ARM/ARM9 Altera Excalibur</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -