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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-tx49-ref4955.html] - Blame information for rev 661

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
>TX49 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="TX39 Architectural Simulator Setup"
26
HREF="setup-tx39-sim.html"><LINK
27
REL="NEXT"
28
TITLE="VR4300 Hardware Setup"
29
HREF="setup-vr4300-vrc4373.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-tx39-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-vr4300-vrc4373.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-TX49-REF4955">TX49 Hardware Setup</H1
86
><P
87
>The eCos installation CD contains a copy of the eCos GDB stubs
88
in  SREC format which must be programmed into the board&#8217;s
89
FLASH memory.</P
90
><DIV
91
CLASS="SECT2"
92
><H2
93
CLASS="SECT2"
94
><A
95
NAME="AEN3296">Preparing the GDB stubs</H2
96
><P
97
>These stub preparation steps are not strictly necessary as
98
the eCos distribution ships with pre-compiled stubs in the directory <TT
99
CLASS="FILENAME"
100
>loaders/tx49-ref4955</TT
101
> relative
102
to the installation root.</P
103
><DIV
104
CLASS="SECT3"
105
><H3
106
CLASS="SECT3"
107
><A
108
NAME="AEN3300">Building the GDB stub image with the eCos Configuration Tool</H3
109
><P
110
></P
111
><OL
112
TYPE="1"
113
><LI
114
><P
115
>                 Start with a new document - selecting the
116
<SPAN
117
CLASS="emphasis"
118
><I
119
CLASS="EMPHASIS"
120
>File-&#62;New</I
121
></SPAN
122
>
123
 menu item if necessary to do this.</P
124
></LI
125
><LI
126
><P
127
>Choose the
128
<SPAN
129
CLASS="emphasis"
130
><I
131
CLASS="EMPHASIS"
132
>Build-&#62;Templates</I
133
></SPAN
134
>
135
 menu item, and then select the TX49 REF4955 hardware.</P
136
></LI
137
><LI
138
><P
139
>While still displaying the
140
<SPAN
141
CLASS="emphasis"
142
><I
143
CLASS="EMPHASIS"
144
>Build-&#62;Templates</I
145
></SPAN
146
>
147
 dialog box, select the stubs package template to build a GDB stub.
148
Click
149
<SPAN
150
CLASS="emphasis"
151
><I
152
CLASS="EMPHASIS"
153
>OK</I
154
></SPAN
155
>.</P
156
></LI
157
><LI
158
><P
159
>Build eCos stubs using
160
<SPAN
161
CLASS="emphasis"
162
><I
163
CLASS="EMPHASIS"
164
>Build-&#62;Library</I
165
></SPAN
166
>.</P
167
></LI
168
><LI
169
><P
170
>When the build completes, the image files can be found
171
in the bin/ subdirectory of the install tree. GDB stub
172
images have the prefix gdb_module.</P
173
></LI
174
></OL
175
></DIV
176
><DIV
177
CLASS="SECT3"
178
><H3
179
CLASS="SECT3"
180
><A
181
NAME="AEN3318">Building the GDB stub image with ecosconfig</H3
182
><P
183
></P
184
><OL
185
TYPE="1"
186
><LI
187
><P
188
>                 Make an empty directory to contain the build tree,
189
                  and cd into it.</P
190
></LI
191
><LI
192
><P
193
>To build a GDB stub ROM image, enter the command:</P
194
><TABLE
195
BORDER="5"
196
BGCOLOR="#E0E0F0"
197
WIDTH="70%"
198
><TR
199
><TD
200
><PRE
201
CLASS="PROGRAMLISTING"
202
>$ ecosconfig new ref4955 stubs </PRE
203
></TD
204
></TR
205
></TABLE
206
></LI
207
><LI
208
><P
209
>Enter the commands:</P
210
><TABLE
211
BORDER="5"
212
BGCOLOR="#E0E0F0"
213
WIDTH="70%"
214
><TR
215
><TD
216
><PRE
217
CLASS="PROGRAMLISTING"
218
>$ ecosconfig tree
219
$ make</PRE
220
></TD
221
></TR
222
></TABLE
223
></LI
224
><LI
225
><P
226
>When the build completes, the image files can be found
227
in the bin/ subdirectory of the install tree. GDB stub
228
images have the prefix gdb_module.</P
229
></LI
230
></OL
231
></DIV
232
></DIV
233
><DIV
234
CLASS="SECT2"
235
><H2
236
CLASS="SECT2"
237
><A
238
NAME="AEN3331">Installing GDB stubs into FLASH</H2
239
><P
240
>Boot into the board&#8217;s firmware in little-endian mode:</P
241
><P
242
>Set the switches like this:   </P
243
><P
244
>SW1: 10000000 (first lever up, the rest down)
245
SW2: 10000010</P
246
><P
247
>Connect serial cable on the lower connector, configure terminal
248
emulator for 38400, 8-N-1.</P
249
><P
250
>When booting the board, you should get this prompt:</P
251
><TABLE
252
BORDER="5"
253
BGCOLOR="#E0E0F0"
254
WIDTH="70%"
255
><TR
256
><TD
257
><PRE
258
CLASS="PROGRAMLISTING"
259
>HCP5 rev 0.9B .
260
HCP5?</PRE
261
></TD
262
></TR
263
></TABLE
264
><P
265
>Select o (option), a (FLASH) and b (boot write). You should
266
see this:</P
267
><TABLE
268
BORDER="5"
269
BGCOLOR="#E0E0F0"
270
WIDTH="70%"
271
><TR
272
><TD
273
><PRE
274
CLASS="PROGRAMLISTING"
275
>Boot ROM Write
276
ROM address-ffffffffbd000000, Boot Bus-[32bit]
277
ID2 0 4 ffffffffa002ad40
278
zzz SS-40000 IV-1 CS-20000 CC-2
279
Flash ROM-[28F640J5], [16bit chip] * 2 * 1
280
Block size-00040000  count-64
281
ROM adr ffffffffbd000000-ffffffffbe000000  mask-00fc0000
282
Send Srecord file sa=00000000 size=ffffffffffffffff
283
ra=fffffffffe000000
284
          </PRE
285
></TD
286
></TR
287
></TABLE
288
><P
289
>Now send the stub SREC data down to the board using the terminal
290
 emulator&#8217;s &#8216;send ASCII&#8217; (or similar)
291
functionality. </P
292
><P
293
>Red Hat has experienced some sensitivity to how fast the data
294
is written to the board. Under Windows you should configure Minicom
295
to use a line delay of 100 milliseconds. Under Linux, use the slow_cat.tcl
296
 script:</P
297
><TABLE
298
BORDER="5"
299
BGCOLOR="#E0E0F0"
300
WIDTH="70%"
301
><TR
302
><TD
303
><PRE
304
CLASS="PROGRAMLISTING"
305
>% cd BASE_DIR/packages/hal/mips/ref4955/<TT
306
CLASS="REPLACEABLE"
307
><I
308
>&#60;version&#62;</I
309
></TT
310
>/misc
311
% slow_cat.tcl &lt; [path]/gdb_module.srec &#62; /dev/ttyS0</PRE
312
></TD
313
></TR
314
></TABLE
315
><P
316
>Power off the board, and change it to boot the GDB stubs in
317
big-endian mode by setting the switches like this:</P
318
><P
319
>SW1: 00000000 (all levers down)
320
SW2: 10001010</P
321
><P
322
>The GDB stubs allow communication with GDB using the serial
323
port at connector PJ7A (lower connector). The communication parameters
324
are  fixed at 38400 baud, 8 data bits, no parity bit and 1 stop
325
bit  (8-N-1). No flow control is employed. Connection to the host
326
computer should be made using a straight through serial cable.</P
327
></DIV
328
></DIV
329
><DIV
330
CLASS="NAVFOOTER"
331
><HR
332
ALIGN="LEFT"
333
WIDTH="100%"><TABLE
334
SUMMARY="Footer navigation table"
335
WIDTH="100%"
336
BORDER="0"
337
CELLPADDING="0"
338
CELLSPACING="0"
339
><TR
340
><TD
341
WIDTH="33%"
342
ALIGN="left"
343
VALIGN="top"
344
><A
345
HREF="setup-tx39-sim.html"
346
ACCESSKEY="P"
347
>Prev</A
348
></TD
349
><TD
350
WIDTH="34%"
351
ALIGN="center"
352
VALIGN="top"
353
><A
354
HREF="ecos-user-guide.html"
355
ACCESSKEY="H"
356
>Home</A
357
></TD
358
><TD
359
WIDTH="33%"
360
ALIGN="right"
361
VALIGN="top"
362
><A
363
HREF="setup-vr4300-vrc4373.html"
364
ACCESSKEY="N"
365
>Next</A
366
></TD
367
></TR
368
><TR
369
><TD
370
WIDTH="33%"
371
ALIGN="left"
372
VALIGN="top"
373
>TX39 Architectural Simulator Setup</TD
374
><TD
375
WIDTH="34%"
376
ALIGN="center"
377
VALIGN="top"
378
><A
379
HREF="appendix-target-setup.html"
380
ACCESSKEY="U"
381
>Up</A
382
></TD
383
><TD
384
WIDTH="33%"
385
ALIGN="right"
386
VALIGN="top"
387
>VR4300 Hardware Setup</TD
388
></TR
389
></TABLE
390
></DIV
391
></BODY
392
></HTML
393
>

powered by: WebSVN 2.1.0

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