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

📄 setup-ppc-mbx860.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>PowerPC MBX860 Hardware Setup</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos User Guide"HREF="ecos-user-guide.html"><LINKREL="UP"TITLE="Target Setup"HREF="appendix-target-setup.html"><LINKREL="PREVIOUS"TITLE="PowerPC Cogent Hardware Setup"HREF="setup-ppc-cogent.html"><LINKREL="NEXT"TITLE="PowerPC Architectural Simulator Setup"HREF="setup-ppc-sim.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 User Guide</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="setup-ppc-cogent.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Appendix A. Target Setup</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="setup-ppc-sim.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SETUP-PPC-MBX860">PowerPC MBX860 Hardware Setup</H1><P>The eCos Developer&#8217;s Kit package comes with an EPROMwhich provides GDB support for the MotorolaPowerPC MBX860 evaluation board. An image of this EPROM is alsoprovided at <TTCLASS="FILENAME">loaders/powerpc-mbx/gdbload.bin</TT> underthe root of your eCos installation.</P><P>The EPROM is installed to socket XU1 on the board. Attentionshould be paid to the correct orientation of the EPROM during installation.Only replace the board&quot;s existing ROM using a proper PLCCextraction tool, as the socket would otherwise risk getting damaged.</P><P>The GDB stub in the EPROM allows communication with GDB usingthe serial port at connector SMC1/COM1. The communicationparameters are fixed at 38400 baud, 8 data bits, no parity bit and1 stop bit (8-N-1). No flow control is employed. Connection to thehost computer should be made using a suitable serial cable.</P><P>In order to make the board execute the EPROM that you justinstalled (rather than the on-board FLASH memory), it may be necessarymove some links on the board. Specifically, ensure that link J4is in position 1-2. If in doubt, refer to the MBX documentationfrom Motorola, ensuring that Boot Port Size=8 Bits/ROMfor BOOT (CS#7), in their terminology.</P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3422">Installing the Stubs into FLASH</H2><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3424">Preparing the Binaries</H3><P>These two binary preparation steps are not strictly necessaryas the eCos distribution ships with pre-compiled binaries in thedirectory <TTCLASS="FILENAME">loaders/powerpc-mbx</TT> relative to the installationroot.</P><DIVCLASS="SECT4"><H4CLASS="SECT4"><ANAME="AEN3428">Building the ROM images with the eCos Configuration Tool</H4><P></P><OLTYPE="1"><LI><P>Start with a new document - selecting the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">File-&#62;New</I></SPAN> menu item if necessary to do this.</P></LI><LI><P>Choose the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&#62;Templates</I></SPAN> menu item, and then select the PowerPC    Motorola MBX860/821hardware.</P></LI><LI><P>While still displaying the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&#62;Templates</I></SPAN> dialog box, select the &#8220;stubs&#8221; package templateto build a GDB stub. Click <SPANCLASS="emphasis"><ICLASS="EMPHASIS">OK</I></SPAN>.</P></LI><LI><P>Build eCos using <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&#62;Library</I></SPAN>. </P></LI><LI><P>When the build completes, the image files can be foundin the bin/ subdirectory of the install tree. GDB stubROM images have the prefix &#8220;gdb_module&#8221;.</P></LI></OL></DIV><DIVCLASS="SECT4"><H4CLASS="SECT4"><ANAME="AEN3446">Building the ROM images with ecosconfig</H4><P></P><OLTYPE="1"><LI><P>Make an empty directory to contain the build tree,and cd into it.</P></LI><LI><P>To build a GDB stub ROM image, enter the command:   <TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig new mbx stubs </PRE></TD></TR></TABLE></P></LI><LI><P>Enter the commands:     <TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig tree$ make </PRE></TD></TR></TABLE></P></LI><LI><P>When the build completes, the image files can be foundin the bin/ subdirectory of the install tree. GDB stubROM images have the prefix &#8220;gdb_module&#8221;.</P></LI></OL></DIV></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3459">Installing the Stubs into ROM</H3><P></P><OLTYPE="1"><LI><P> Program the binary image file gdb_module.bininto ROM or FLASH referring to the instructions of your ROM programmer.</P></LI><LI><P> Plug the ROM/FLASH into socket XU1 as describednear the beginning of this <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Hardware Setup</I></SPAN> section.</P></LI></OL></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3467">Installing the Stubs into FLASH</H3><P>This assumes you have EPPC-Bug in the on-board FLASH. Thiscan be determined by setting up the board according to the belowinstructions and powering up the board. The EPPC-Bug prompt shouldappear on the SMC1 connector at 9600 baud, 8N1.</P><P></P><OLTYPE="1"><LI><P>Set jumper 3 to 2-3     [allow XU2 FLASH tobe programmed]</P></LI><LI><P>Set jumper 4 to 2-3     [boot EPPC-Bug]</P></LI></OL><DIVCLASS="SECT4"><H4CLASS="SECT4"><ANAME="AEN3475">Program FLASH</H4><P></P><OLTYPE="1"><LI><P> Prepare EPPC-Bug for download:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">EPPC-Bug&#62;lo 0</PRE></TD></TR></TABLE><P>At this point the monitor is ready for input. It will not returnthe prompt until the file has been downloaded.</P></LI><LI><P>Use the terminal emulator&#8217;s ASCII download feature(or a simple clipboard     copy/paste operation) to downloadthe gdb_module.srec data.Note that on Linux, Minicom&#8217;s ASCII download feature seemsto be broken. A workaround is to load the file into Emacs (or anothereditor) and copy the full contents to the clipboard. Then pressthe mouse paste-button (usually the middle one) over the Minicomwindow.</P></LI><LI><P>Program the FLASH with the downloaded data:    <TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">EPPC-Bug&#62;pflash 40000 60000 fc000000</PRE></TD></TR></TABLE></P></LI><LI><P>Switch off the power, and change jumper 4 to 1-2. Turnon the power again. The board should now boot using the newly programmedstubs.</P></LI></OL></DIV></DIV></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="setup-ppc-cogent.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-user-guide.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="setup-ppc-sim.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">PowerPC Cogent Hardware Setup</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="appendix-target-setup.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">PowerPC Architectural Simulator Setup</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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