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-ppc-mbx860.html] - Blame information for rev 308

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
>PowerPC MBX860 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 Cogent Hardware Setup"
26
HREF="setup-ppc-cogent.html"><LINK
27
REL="NEXT"
28
TITLE="PowerPC Architectural Simulator Setup"
29
HREF="setup-ppc-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-cogent.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-ppc-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-PPC-MBX860">PowerPC MBX860 Hardware Setup</H1
86
><P
87
>The eCos Developer&#8217;s Kit package comes with an EPROM
88
which provides GDB support for the Motorola
89
PowerPC MBX860 evaluation board. An image of this EPROM is also
90
provided at <TT
91
CLASS="FILENAME"
92
>loaders/powerpc-mbx/gdbload.bin</TT
93
> under
94
the root of your eCos installation.</P
95
><P
96
>The EPROM is installed to socket XU1 on the board. Attention
97
should be paid to the correct orientation of the EPROM during installation.
98
Only replace the board&quot;s existing ROM using a proper PLCC
99
extraction tool, as the socket would otherwise risk getting damaged.</P
100
><P
101
>The GDB stub in the EPROM allows communication with GDB using
102
the serial port at connector SMC1/COM1. The communication
103
parameters are fixed at 38400 baud, 8 data bits, no parity bit and
104
1 stop bit (8-N-1). No flow control is employed. Connection to the
105
host computer should be made using a suitable serial cable.</P
106
><P
107
>In order to make the board execute the EPROM that you just
108
installed (rather than the on-board FLASH memory), it may be necessary
109
move some links on the board. Specifically, ensure that link J4
110
is in position 1-2. If in doubt, refer to the MBX documentation
111
from Motorola, ensuring that Boot Port Size=8 Bits/ROM
112
for BOOT (CS#7), in their terminology.</P
113
><DIV
114
CLASS="SECT2"
115
><H2
116
CLASS="SECT2"
117
><A
118
NAME="AEN3422">Installing the Stubs into FLASH</H2
119
><DIV
120
CLASS="SECT3"
121
><H3
122
CLASS="SECT3"
123
><A
124
NAME="AEN3424">Preparing the Binaries</H3
125
><P
126
>These two binary preparation steps are not strictly necessary
127
as the eCos distribution ships with pre-compiled binaries in the
128
directory <TT
129
CLASS="FILENAME"
130
>loaders/powerpc-mbx</TT
131
> relative to the installation
132
root.</P
133
><DIV
134
CLASS="SECT4"
135
><H4
136
CLASS="SECT4"
137
><A
138
NAME="AEN3428">Building the ROM images with the eCos Configuration Tool</H4
139
><P
140
></P
141
><OL
142
TYPE="1"
143
><LI
144
><P
145
>Start with a new document - selecting the
146
<SPAN
147
CLASS="emphasis"
148
><I
149
CLASS="EMPHASIS"
150
>File-&#62;New</I
151
></SPAN
152
>
153
 menu item if necessary to do this.</P
154
></LI
155
><LI
156
><P
157
>Choose the
158
<SPAN
159
CLASS="emphasis"
160
><I
161
CLASS="EMPHASIS"
162
>Build-&#62;Templates</I
163
></SPAN
164
>
165
 menu item, and then select the PowerPC    Motorola MBX860/821
166
hardware.</P
167
></LI
168
><LI
169
><P
170
>While still displaying the
171
<SPAN
172
CLASS="emphasis"
173
><I
174
CLASS="EMPHASIS"
175
>Build-&#62;Templates</I
176
></SPAN
177
>
178
 dialog box, select the &#8220;stubs&#8221; package template
179
to build a GDB stub. Click
180
<SPAN
181
CLASS="emphasis"
182
><I
183
CLASS="EMPHASIS"
184
>OK</I
185
></SPAN
186
>.</P
187
></LI
188
><LI
189
><P
190
>Build eCos using
191
<SPAN
192
CLASS="emphasis"
193
><I
194
CLASS="EMPHASIS"
195
>Build-&#62;Library</I
196
></SPAN
197
>. </P
198
></LI
199
><LI
200
><P
201
>When the build completes, the image files can be found
202
in the bin/ subdirectory of the install tree. GDB stub
203
ROM images have the prefix &#8220;gdb_module&#8221;.</P
204
></LI
205
></OL
206
></DIV
207
><DIV
208
CLASS="SECT4"
209
><H4
210
CLASS="SECT4"
211
><A
212
NAME="AEN3446">Building the ROM images with ecosconfig</H4
213
><P
214
></P
215
><OL
216
TYPE="1"
217
><LI
218
><P
219
>Make an empty directory to contain the build tree,
220
and cd into it.</P
221
></LI
222
><LI
223
><P
224
>To build a GDB stub ROM image, enter the command:
225
 
226
<TABLE
227
BORDER="5"
228
BGCOLOR="#E0E0F0"
229
WIDTH="70%"
230
><TR
231
><TD
232
><PRE
233
CLASS="PROGRAMLISTING"
234
>$ ecosconfig new mbx stubs </PRE
235
></TD
236
></TR
237
></TABLE
238
></P
239
></LI
240
><LI
241
><P
242
>Enter the commands:
243
 
244
<TABLE
245
BORDER="5"
246
BGCOLOR="#E0E0F0"
247
WIDTH="70%"
248
><TR
249
><TD
250
><PRE
251
CLASS="PROGRAMLISTING"
252
>$ ecosconfig tree
253
$ make </PRE
254
></TD
255
></TR
256
></TABLE
257
></P
258
></LI
259
><LI
260
><P
261
>When the build completes, the image files can be found
262
in the bin/ subdirectory of the install tree. GDB stub
263
ROM images have the prefix &#8220;gdb_module&#8221;.</P
264
></LI
265
></OL
266
></DIV
267
></DIV
268
><DIV
269
CLASS="SECT3"
270
><H3
271
CLASS="SECT3"
272
><A
273
NAME="AEN3459">Installing the Stubs into ROM</H3
274
><P
275
></P
276
><OL
277
TYPE="1"
278
><LI
279
><P
280
> Program the binary image file gdb_module.bin
281
into ROM or FLASH referring to the instructions of your ROM programmer.</P
282
></LI
283
><LI
284
><P
285
> Plug the ROM/FLASH into socket XU1 as described
286
near the beginning of this <SPAN
287
CLASS="emphasis"
288
><I
289
CLASS="EMPHASIS"
290
>Hardware Setup</I
291
></SPAN
292
> section.</P
293
></LI
294
></OL
295
></DIV
296
><DIV
297
CLASS="SECT3"
298
><H3
299
CLASS="SECT3"
300
><A
301
NAME="AEN3467">Installing the Stubs into FLASH</H3
302
><P
303
>This assumes you have EPPC-Bug in the on-board FLASH. This
304
can be determined by setting up the board according to the below
305
instructions and powering up the board. The EPPC-Bug prompt should
306
appear on the SMC1 connector at 9600 baud, 8N1.</P
307
><P
308
></P
309
><OL
310
TYPE="1"
311
><LI
312
><P
313
>Set jumper 3 to 2-3     [allow XU2 FLASH to
314
be programmed]</P
315
></LI
316
><LI
317
><P
318
>Set jumper 4 to 2-3     [boot EPPC-Bug]</P
319
></LI
320
></OL
321
><DIV
322
CLASS="SECT4"
323
><H4
324
CLASS="SECT4"
325
><A
326
NAME="AEN3475">Program FLASH</H4
327
><P
328
></P
329
><OL
330
TYPE="1"
331
><LI
332
><P
333
> Prepare EPPC-Bug for download:</P
334
><TABLE
335
BORDER="5"
336
BGCOLOR="#E0E0F0"
337
WIDTH="70%"
338
><TR
339
><TD
340
><PRE
341
CLASS="PROGRAMLISTING"
342
>EPPC-Bug&#62;lo 0</PRE
343
></TD
344
></TR
345
></TABLE
346
><P
347
>At this point the monitor is ready for input. It will not return
348
the prompt until the file has been downloaded.</P
349
></LI
350
><LI
351
><P
352
>Use the terminal emulator&#8217;s ASCII download feature
353
(or a simple clipboard     copy/paste operation) to download
354
the gdb_module.srec data.
355
 
356
Note that on Linux, Minicom&#8217;s ASCII download feature seems
357
to be broken. A workaround is to load the file into Emacs (or another
358
editor) and copy the full contents to the clipboard. Then press
359
the mouse paste-button (usually the middle one) over the Minicom
360
window.</P
361
></LI
362
><LI
363
><P
364
>Program the FLASH with the downloaded data:
365
 
366
<TABLE
367
BORDER="5"
368
BGCOLOR="#E0E0F0"
369
WIDTH="70%"
370
><TR
371
><TD
372
><PRE
373
CLASS="PROGRAMLISTING"
374
>EPPC-Bug&#62;pflash 40000 60000 fc000000</PRE
375
></TD
376
></TR
377
></TABLE
378
></P
379
></LI
380
><LI
381
><P
382
>Switch off the power, and change jumper 4 to 1-2. Turn
383
on the power again. The board should now boot using the newly programmed
384
stubs.</P
385
></LI
386
></OL
387
></DIV
388
></DIV
389
></DIV
390
></DIV
391
><DIV
392
CLASS="NAVFOOTER"
393
><HR
394
ALIGN="LEFT"
395
WIDTH="100%"><TABLE
396
SUMMARY="Footer navigation table"
397
WIDTH="100%"
398
BORDER="0"
399
CELLPADDING="0"
400
CELLSPACING="0"
401
><TR
402
><TD
403
WIDTH="33%"
404
ALIGN="left"
405
VALIGN="top"
406
><A
407
HREF="setup-ppc-cogent.html"
408
ACCESSKEY="P"
409
>Prev</A
410
></TD
411
><TD
412
WIDTH="34%"
413
ALIGN="center"
414
VALIGN="top"
415
><A
416
HREF="ecos-user-guide.html"
417
ACCESSKEY="H"
418
>Home</A
419
></TD
420
><TD
421
WIDTH="33%"
422
ALIGN="right"
423
VALIGN="top"
424
><A
425
HREF="setup-ppc-sim.html"
426
ACCESSKEY="N"
427
>Next</A
428
></TD
429
></TR
430
><TR
431
><TD
432
WIDTH="33%"
433
ALIGN="left"
434
VALIGN="top"
435
>PowerPC Cogent Hardware Setup</TD
436
><TD
437
WIDTH="34%"
438
ALIGN="center"
439
VALIGN="top"
440
><A
441
HREF="appendix-target-setup.html"
442
ACCESSKEY="U"
443
>Up</A
444
></TD
445
><TD
446
WIDTH="33%"
447
ALIGN="right"
448
VALIGN="top"
449
>PowerPC Architectural Simulator Setup</TD
450
></TR
451
></TABLE
452
></DIV
453
></BODY
454
></HTML
455
>

powered by: WebSVN 2.1.0

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