OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-sparclite-sleb.html] - Blame information for rev 446

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 28 unneback
<!-- 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.               -->
9
<HTML
10
><HEAD
11
><TITLE
12
>SPARClite Hardware Setup</TITLE
13
><meta name="MSSmartTagsPreventParsing" content="TRUE">
14
<META
15
NAME="GENERATOR"
16
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17
"><LINK
18
REL="HOME"
19
TITLE="eCos User Guide"
20
HREF="ecos-user-guide.html"><LINK
21
REL="UP"
22
TITLE="Target Setup"
23
HREF="appendix-target-setup.html"><LINK
24
REL="PREVIOUS"
25
TITLE="PowerPC Architectural Simulator Setup"
26
HREF="setup-ppc-sim.html"><LINK
27
REL="NEXT"
28
TITLE="SPARClite Architectural Simulator Setup"
29
HREF="setup-sparclite-sim.html"></HEAD
30
><BODY
31
CLASS="SECT1"
32
BGCOLOR="#FFFFFF"
33
TEXT="#000000"
34
LINK="#0000FF"
35
VLINK="#840084"
36
ALINK="#0000FF"
37
><DIV
38
CLASS="NAVHEADER"
39
><TABLE
40
SUMMARY="Header navigation table"
41
WIDTH="100%"
42
BORDER="0"
43
CELLPADDING="0"
44
CELLSPACING="0"
45
><TR
46
><TH
47
COLSPAN="3"
48
ALIGN="center"
49
>eCos User Guide</TH
50
></TR
51
><TR
52
><TD
53
WIDTH="10%"
54
ALIGN="left"
55
VALIGN="bottom"
56
><A
57
HREF="setup-ppc-sim.html"
58
ACCESSKEY="P"
59
>Prev</A
60
></TD
61
><TD
62
WIDTH="80%"
63
ALIGN="center"
64
VALIGN="bottom"
65
>Appendix A. Target Setup</TD
66
><TD
67
WIDTH="10%"
68
ALIGN="right"
69
VALIGN="bottom"
70
><A
71
HREF="setup-sparclite-sim.html"
72
ACCESSKEY="N"
73
>Next</A
74
></TD
75
></TR
76
></TABLE
77
><HR
78
ALIGN="LEFT"
79
WIDTH="100%"></DIV
80
><DIV
81
CLASS="SECT1"
82
><H1
83
CLASS="SECT1"
84
><A
85
NAME="SETUP-SPARCLITE-SLEB">SPARClite Hardware Setup</H1
86
><P
87
>The eCos Developer&#8217;s Kit package comes with a ROM
88
which provides GDB support for the Fujitsu SPARClite Evaluation
89
Board by way of CygMon<SPAN
90
CLASS="PRODUCTNAME"
91
>. </SPAN
92
></P
93
><P
94
>An image of this ROM is also provided at
95
          <TT
96
CLASS="FILENAME"
97
>BASE_DIR/loaders/sparclite-sleb/cygmon.bin.</TT
98
> The
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
101
><P
102
>The GDB stub allows communication with GDB using a TCP channel
103
via the ethernet port at connector J5.</P
104
><DIV
105
CLASS="SECT2"
106
><H2
107
CLASS="SECT2"
108
><A
109
NAME="AEN3509">Ethernet Setup</H2
110
><P
111
>The ethernet setup is described in the board&#8217;s manual,
112
but here is a recapitulation.</P
113
><P
114
>Set the board&#8217;s ethernet address using SW1 on the
115
motherboard:</P
116
><TABLE
117
BORDER="5"
118
BGCOLOR="#E0E0F0"
119
WIDTH="70%"
120
><TR
121
><TD
122
><PRE
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
142
></TD
143
></TR
144
></TABLE
145
><DIV
146
CLASS="SECT3"
147
><H3
148
CLASS="SECT3"
149
><A
150
NAME="AEN3514">BOOTP/DHCP service on Linux</H3
151
><P
152
>Configure the BOOTP or DHCP server on the network to recognize
153
the evaluation board&#8217;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
156
CLASS="FILENAME"
157
>/etc/dhcpd.conf</TT
158
>).
159
It shows a setup for three evaluation boards.</P
160
><TABLE
161
BORDER="5"
162
BGCOLOR="#E0E0F0"
163
WIDTH="70%"
164
><TR
165
><TD
166
><PRE
167
CLASS="PROGRAMLISTING"
168
>#
169
# DHCP server configuration.
170
#
171
allow bootp;
172
 
173
subnet 192.168.1.0 netmask 255.255.255.0 {
174
  host mb831evb {
175
    hardware ethernet 00:00:0e:31:00:01;
176
    fixed-address mb831evb;
177
  }
178
  host mb832evb {
179
    hardware ethernet 00:00:0e:31:00:02;
180
    fixed-address mb832evb;
181
  }
182
  host mb833evb {
183
    hardware ethernet 00:00:0e:31:00:03;
184
    fixed-address mb833evb;
185
  }
186
} </PRE
187
></TD
188
></TR
189
></TABLE
190
></DIV
191
><DIV
192
CLASS="SECT3"
193
><H3
194
CLASS="SECT3"
195
><A
196
NAME="AEN3519">BOOTP/DHCP boot process</H3
197
><P
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 &#8220;BOOTP
201
found xxx.xxx.xxx.xxx&#8221; 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
205
><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
209
><P
210
>As described in &#8220;Ethernet Setup&#8221; on&nbsp;page&nbsp;72,
211
it should now be possible to connect to the SPARClite board from
212
within GDB by using the command:</P
213
><TABLE
214
BORDER="5"
215
BGCOLOR="#E0E0F0"
216
WIDTH="70%"
217
><TR
218
><TD
219
><PRE
220
CLASS="PROGRAMLISTING"
221
>(gdb) target remote &lt;host&#62;:1000</PRE
222
></TD
223
></TR
224
></TABLE
225
></DIV
226
></DIV
227
><DIV
228
CLASS="SECT2"
229
><H2
230
CLASS="SECT2"
231
><A
232
NAME="AEN3525">Serial Setup</H2
233
><P
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
239
be required.</P
240
></DIV
241
></DIV
242
><DIV
243
CLASS="NAVFOOTER"
244
><HR
245
ALIGN="LEFT"
246
WIDTH="100%"><TABLE
247
SUMMARY="Footer navigation table"
248
WIDTH="100%"
249
BORDER="0"
250
CELLPADDING="0"
251
CELLSPACING="0"
252
><TR
253
><TD
254
WIDTH="33%"
255
ALIGN="left"
256
VALIGN="top"
257
><A
258
HREF="setup-ppc-sim.html"
259
ACCESSKEY="P"
260
>Prev</A
261
></TD
262
><TD
263
WIDTH="34%"
264
ALIGN="center"
265
VALIGN="top"
266
><A
267
HREF="ecos-user-guide.html"
268
ACCESSKEY="H"
269
>Home</A
270
></TD
271
><TD
272
WIDTH="33%"
273
ALIGN="right"
274
VALIGN="top"
275
><A
276
HREF="setup-sparclite-sim.html"
277
ACCESSKEY="N"
278
>Next</A
279
></TD
280
></TR
281
><TR
282
><TD
283
WIDTH="33%"
284
ALIGN="left"
285
VALIGN="top"
286
>PowerPC Architectural Simulator Setup</TD
287
><TD
288
WIDTH="34%"
289
ALIGN="center"
290
VALIGN="top"
291
><A
292
HREF="appendix-target-setup.html"
293
ACCESSKEY="U"
294
>Up</A
295
></TD
296
><TD
297
WIDTH="33%"
298
ALIGN="right"
299
VALIGN="top"
300
>SPARClite Architectural Simulator Setup</TD
301
></TR
302
></TABLE
303
></DIV
304
></BODY
305
></HTML
306
>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.