📄 ocelot.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>MIPS/RM7000 PMC-Sierra Ocelot</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="MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Malta Board "HREF="malta.html"><LINKREL="NEXT"TITLE="MIPS/VR4375 NEC DDB-VRC4375"HREF="vrc4375.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="malta.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="vrc4375.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="OCELOT">MIPS/RM7000 PMC-Sierra Ocelot</H1><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN6944">Overview</H2><P>RedBootuses the front facing serial port. The default serial port settings are 38400,8,N,1.RedBoot also supports ethernet. Management of onboard flash is also supported.</P><P>The following RedBoot configurations are supported: <DIVCLASS="INFORMALTABLE"><ANAME="AEN6954"><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">ROM</TD><TDALIGN="LEFT"VALIGN="TOP">[ROM]</TD><TDALIGN="LEFT"VALIGN="TOP">RedBoot running from the board's flash boot sector.</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="AEN6973">Additional commands</H2><P>The <BCLASS="COMMAND">exec</B> command which allows theloading and execution of Linux kernels, is supported for this architecture (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 MIPS boards are:</P><P></P><DIVCLASS="VARIABLELIST"><DL><DT>-b <TTCLASS="REPLACEABLE"><I><addr></I></TT></DT><DD><P>Location to store command line and environment passed to kernel</P></DD><DT>-w <TTCLASS="REPLACEABLE"><I><time></I></TT></DT><DD><P>Wait time in seconds before starting kernel</P></DD><DT>-c <TTCLASS="REPLACEABLE"><I>"params"</I></TT></DT><DD><P>Parameters passed to kernel</P></DD><DT><TTCLASS="REPLACEABLE"><I><addr></I></TT></DT><DD><P>Kernel entry point, defaulting to the entry point of the last imageloaded</P></DD></DL></DIV><P>Linux kernels on MIPS platforms expect the entry point to be called with argumentsin the registers equivalent to a C call with prototype:<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">void Linux(int argc, char **argv, char **envp);</PRE></TD></TR></TABLE></P><P>RedBoot will place the appropriate data at the offset specified by the<TTCLASS="PARAMETER"><I>-b</I></TT> parameter, or by default at address 0x80080000, and will set thearguments accordingly when calling into the kernel.</P><P>The default entry point, if no image with explicit entry point has been loaded andnone is specified, is 0x80000750.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN7005">Memory Maps</H2><P>RedBoot sets up the following memory map on the Ocelot board. </P><P>Note that these addresses are accessed through kseg0/1 and thus translateto the actual address range 0x80000000-0xbfffffff, depending on the need forcaching/non-caching access to the bus.<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 - 0x0fffffff SDRAM0x10000000 - 0x10ffffff PCI I/O space0x12000000 - 0x13ffffff PCI Memory space0x14000000 - 0x1400ffff Galileo system controller0x1c000000 - 0x1c0000ff PLD (board logic)0x1fc00000 - 0x1fc7ffff flash</PRE></TD></TR></TABLE></P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN7013">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=ocelotexport ARCH_DIR=mipsexport PLATFORM_DIR=rm7000/ocelot</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="malta.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="vrc4375.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">MIPS/MIPS32(CoreLV 4Kc)+MIPS64(CoreLV 5Kc) Malta Board</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="installation-and-testing.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">MIPS/VR4375 NEC DDB-VRC4375</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -