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

📄 setup-sparclite-sleb.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>SPARClite 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 Architectural Simulator Setup"HREF="setup-ppc-sim.html"><LINKREL="NEXT"TITLE="SPARClite Architectural Simulator Setup"HREF="setup-sparclite-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-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-sparclite-sim.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SETUP-SPARCLITE-SLEB">SPARClite Hardware Setup</H1><P>The eCos Developer&#8217;s Kit package comes with a ROMwhich provides GDB support for the Fujitsu SPARClite EvaluationBoard by way of CygMon<SPANCLASS="PRODUCTNAME">. </SPAN></P><P>An image of this ROM is also provided at	  <TTCLASS="FILENAME">BASE_DIR/loaders/sparclite-sleb/cygmon.bin.</TT> TheROM is installed in socket IC9 on the evaluation board. Attentionshould be paid to the correct orientation of the ROM during installation.</P><P>The GDB stub allows communication with GDB using a TCP channelvia the ethernet port at connector J5.</P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3509">Ethernet Setup</H2><P>The ethernet setup is described in the board&#8217;s manual,but here is a recapitulation.</P><P>Set the board&#8217;s ethernet address using SW1 on themotherboard:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">	    SW1-4 SW1-3 SW1-2 SW1-1    Ethernet Address	    ----- ----- ----- -----    ----------------	    OFF   OFF   OFF   OFF     No ethernet, use serial	    OFF   OFF   OFF    ON     00:00:0E:31:00:01	    OFF   OFF    ON   OFF     00:00:0E:31:00:02	    OFF   OFF    ON    ON     00:00:0E:31:00:03	    OFF    ON   OFF   OFF     00:00:0E:31:00:04	    OFF    ON   OFF    ON     00:00:0E:31:00:05	    OFF    ON    ON   OFF     00:00:0E:31:00:06	    OFF    ON    ON    ON     00:00:0E:31:00:07	    ON    OFF   OFF   OFF     00:00:0E:31:00:08	    ON    OFF   OFF    ON     00:00:0E:31:00:09	    ON    OFF    ON   OFF     00:00:0E:31:00:0A	    ON    OFF    ON    ON     00:00:0E:31:00:0B	    ON     ON   OFF   OFF     00:00:0E:31:00:0C	    ON     ON   OFF    ON     00:00:0E:31:00:0D	    ON     ON    ON   OFF     00:00:0E:31:00:0E	    ON     ON    ON    ON     00:00:0E:31:00:0F</PRE></TD></TR></TABLE><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3514">BOOTP/DHCP service on Linux</H3><P>Configure the BOOTP or DHCP server on the network to recognizethe evaluation board&#8217;s ethernet address so it can assignthe board an IP address. Below is a sample DHCP server configurationfrom a Linux system (<TTCLASS="FILENAME">/etc/dhcpd.conf</TT>).It shows a setup for three evaluation boards.</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">## DHCP server configuration.#allow bootp;subnet 192.168.1.0 netmask 255.255.255.0 {  host mb831evb {    hardware ethernet 00:00:0e:31:00:01;    fixed-address mb831evb;  }  host mb832evb {    hardware ethernet 00:00:0e:31:00:02;    fixed-address mb832evb;  }  host mb833evb {    hardware ethernet 00:00:0e:31:00:03;    fixed-address mb833evb;  }} </PRE></TD></TR></TABLE></DIV><DIVCLASS="SECT3"><H3CLASS="SECT3"><ANAME="AEN3519">BOOTP/DHCP boot process</H3><P>Even when configured to use a TCP channel, CygMon will stillprint a boot message to the serial channel. If the BOOTP processwas successful and an IP address was found, a message &#8220;BOOTPfound xxx.xxx.xxx.xxx&#8221; will be printed where xxx.xxx.xxx.xxxis the IP address assigned by the BOOTP or DHCP server. If the BOOTPprocess fails, a message indicating failure will be printed andthe serial port will be used as the debug channel.</P><P>Once the board finds an IP address it will respond to ICMPecho request packets (ping). This gives a simple means to test thehealth of the board.</P><P>As described in &#8220;Ethernet Setup&#8221; on&nbsp;page&nbsp;72,it should now be possible to connect to the SPARClite board fromwithin GDB by using the command:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">(gdb) target remote &lt;host&#62;:1000</PRE></TD></TR></TABLE></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN3525">Serial Setup</H2><P>The CygMon stubs also allow communication with GDB by wayof the serial port at connector CON1. The communication parametersare fixed at 19200 baud, 8 data bits, no parity bit and 1 stop bit(8-N-1). No flow control is employed. Connection to the host computershould be made using a null modem cable. A gender changer may alsobe required.</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-ppc-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-sparclite-sim.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">PowerPC 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">SPARClite Architectural Simulator Setup</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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