1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 >SPARClite Hardware Setup</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos User Guide"
20 HREF="ecos-user-guide.html"><LINK
23 HREF="appendix-target-setup.html"><LINK
25 TITLE="PowerPC Architectural Simulator Setup"
26 HREF="setup-ppc-sim.html"><LINK
28 TITLE="SPARClite Architectural Simulator Setup"
29 HREF="setup-sparclite-sim.html"></HEAD
40 SUMMARY="Header navigation table"
57 HREF="setup-ppc-sim.html"
65 >Appendix A. Target Setup</TD
71 HREF="setup-sparclite-sim.html"
85 NAME="SETUP-SPARCLITE-SLEB">SPARClite Hardware Setup</H1
87 >The eCos Developer’s Kit package comes with a ROM
88 which provides GDB support for the Fujitsu SPARClite Evaluation
89 Board by way of CygMon<SPAN
94 >An image of this ROM is also provided at
97 >BASE_DIR/loaders/sparclite-sleb/cygmon.bin.</TT
99 ROM is installed in socket IC9 on the evaluation board. Attention
100 should be paid to the correct orientation of the ROM during installation.</P
102 >The GDB stub allows communication with GDB using a TCP channel
103 via the ethernet port at connector J5.</P
109 NAME="AEN3509">Ethernet Setup</H2
111 >The ethernet setup is described in the board’s manual,
112 but here is a recapitulation.</P
114 >Set the board’s ethernet address using SW1 on the
123 CLASS="PROGRAMLISTING"
124 > SW1-4 SW1-3 SW1-2 SW1-1 Ethernet Address
125 ----- ----- ----- ----- ----------------
126 OFF OFF OFF OFF No ethernet, use serial
127 OFF OFF OFF ON 00:00:0E:31:00:01
128 OFF OFF ON OFF 00:00:0E:31:00:02
129 OFF OFF ON ON 00:00:0E:31:00:03
130 OFF ON OFF OFF 00:00:0E:31:00:04
131 OFF ON OFF ON 00:00:0E:31:00:05
132 OFF ON ON OFF 00:00:0E:31:00:06
133 OFF ON ON ON 00:00:0E:31:00:07
134 ON OFF OFF OFF 00:00:0E:31:00:08
135 ON OFF OFF ON 00:00:0E:31:00:09
136 ON OFF ON OFF 00:00:0E:31:00:0A
137 ON OFF ON ON 00:00:0E:31:00:0B
138 ON ON OFF OFF 00:00:0E:31:00:0C
139 ON ON OFF ON 00:00:0E:31:00:0D
140 ON ON ON OFF 00:00:0E:31:00:0E
141 ON ON ON ON 00:00:0E:31:00:0F</PRE
150 NAME="AEN3514">BOOTP/DHCP service on Linux</H3
152 >Configure the BOOTP or DHCP server on the network to recognize
153 the evaluation board’s ethernet address so it can assign
154 the board an IP address. Below is a sample DHCP server configuration
155 from a Linux system (<TT
159 It shows a setup for three evaluation boards.</P
167 CLASS="PROGRAMLISTING"
169 # DHCP server configuration.
173 subnet 192.168.1.0 netmask 255.255.255.0 {
175 hardware ethernet 00:00:0e:31:00:01;
176 fixed-address mb831evb;
179 hardware ethernet 00:00:0e:31:00:02;
180 fixed-address mb832evb;
183 hardware ethernet 00:00:0e:31:00:03;
184 fixed-address mb833evb;
196 NAME="AEN3519">BOOTP/DHCP boot process</H3
198 >Even when configured to use a TCP channel, CygMon will still
199 print a boot message to the serial channel. If the BOOTP process
200 was successful and an IP address was found, a message “BOOTP
201 found xxx.xxx.xxx.xxx” will be printed where xxx.xxx.xxx.xxx
202 is the IP address assigned by the BOOTP or DHCP server. If the BOOTP
203 process fails, a message indicating failure will be printed and
204 the serial port will be used as the debug channel.</P
206 >Once the board finds an IP address it will respond to ICMP
207 echo request packets (ping). This gives a simple means to test the
208 health of the board.</P
210 >As described in “Ethernet Setup” on page 72,
211 it should now be possible to connect to the SPARClite board from
212 within GDB by using the command:</P
220 CLASS="PROGRAMLISTING"
221 >(gdb) target remote <host>:1000</PRE
232 NAME="AEN3525">Serial Setup</H2
234 >The CygMon stubs also allow communication with GDB by way
235 of the serial port at connector CON1. The communication parameters
236 are fixed at 19200 baud, 8 data bits, no parity bit and 1 stop bit
237 (8-N-1). No flow control is employed. Connection to the host computer
238 should be made using a null modem cable. A gender changer may also
247 SUMMARY="Footer navigation table"
258 HREF="setup-ppc-sim.html"
267 HREF="ecos-user-guide.html"
276 HREF="setup-sparclite-sim.html"
286 >PowerPC Architectural Simulator Setup</TD
292 HREF="appendix-target-setup.html"
300 >SPARClite Architectural Simulator Setup</TD