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

📄 setup-tx49-ref4955.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>TX49 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="TX39 Architectural Simulator Setup"HREF="setup-tx39-sim.html"><LINKREL="NEXT"TITLE="VR4300 Hardware Setup"HREF="setup-vr4300-vrc4373.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-tx39-sim.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-vr4300-vrc4373.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SETUP-TX49-REF4955">TX49 Hardware Setup</H1><P>The eCos installation CD contains a copy of the eCos GDB stubsin  SREC format which must be programmed into the board&#8217;sFLASH memory.</P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3296">Preparing the GDB stubs</H2><P>These stub preparation steps are not strictly necessary asthe eCos distribution ships with pre-compiled stubs in the directory <TTCLASS="FILENAME">loaders/tx49-ref4955</TT> relativeto the installation root.</P><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3300">Building the GDB stub image with the eCos Configuration Tool</H3><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 TX49 REF4955 hardware.</P></LI><LI><P>While still displaying the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&#62;Templates</I></SPAN> dialog box, select the stubs package template to build a GDB stub.Click <SPANCLASS="emphasis"><ICLASS="EMPHASIS">OK</I></SPAN>.</P></LI><LI><P>Build eCos stubs 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 stubimages have the prefix gdb_module.</P></LI></OL></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3318">Building the GDB stub image with ecosconfig</H3><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:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig new ref4955 stubs </PRE></TD></TR></TABLE></LI><LI><P>Enter the commands:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">$ ecosconfig tree$ make</PRE></TD></TR></TABLE></LI><LI><P>When the build completes, the image files can be foundin the bin/ subdirectory of the install tree. GDB stubimages have the prefix gdb_module.</P></LI></OL></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3331">Installing GDB stubs into FLASH</H2><P>Boot into the board&#8217;s firmware in little-endian mode:</P><P>Set the switches like this:   </P><P>SW1: 10000000 (first lever up, the rest down)   SW2: 10000010</P><P>Connect serial cable on the lower connector, configure terminalemulator for 38400, 8-N-1.</P><P>When booting the board, you should get this prompt:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">HCP5 rev 0.9B .    HCP5?</PRE></TD></TR></TABLE><P>Select o (option), a (FLASH) and b (boot write). You shouldsee this:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">Boot ROM Write   ROM address-ffffffffbd000000, Boot Bus-[32bit]  ID2 0 4 ffffffffa002ad40  zzz SS-40000 IV-1 CS-20000 CC-2   Flash ROM-[28F640J5], [16bit chip] * 2 * 1Block size-00040000  count-64  ROM adr ffffffffbd000000-ffffffffbe000000  mask-00fc0000Send Srecord file sa=00000000 size=ffffffffffffffffra=fffffffffe000000	  </PRE></TD></TR></TABLE><P>Now send the stub SREC data down to the board using the terminal emulator&#8217;s &#8216;send ASCII&#8217; (or similar)functionality. </P><P>Red Hat has experienced some sensitivity to how fast the datais written to the board. Under Windows you should configure Minicomto use a line delay of 100 milliseconds. Under Linux, use the slow_cat.tcl script:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">% cd BASE_DIR/packages/hal/mips/ref4955/<TTCLASS="REPLACEABLE"><I>&#60;version&#62;</I></TT>/misc% slow_cat.tcl &lt; [path]/gdb_module.srec &#62; /dev/ttyS0</PRE></TD></TR></TABLE><P>Power off the board, and change it to boot the GDB stubs inbig-endian mode by setting the switches like this:</P><P>SW1: 00000000 (all levers down)   SW2: 10001010</P><P>The GDB stubs allow communication with GDB using the serialport at connector PJ7A (lower connector). The communication parametersare  fixed at 38400 baud, 8 data bits, no parity bit and 1 stopbit  (8-N-1). No flow control is employed. Connection to the hostcomputer should be made using a straight through serial cable.</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="setup-tx39-sim.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-vr4300-vrc4373.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">TX39 Architectural Simulator Setup</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="appendix-target-setup.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">VR4300 Hardware Setup</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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