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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-ppc-cogent.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
>PowerPC Cogent 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="Atlas/Malta Hardware Setup"
26
HREF="setup-mips-atlasmalta.html"><LINK
27
REL="NEXT"
28
TITLE="PowerPC MBX860 Hardware Setup"
29
HREF="setup-ppc-mbx860.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-mips-atlasmalta.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-mbx860.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-COGENT">PowerPC Cogent Hardware Setup</H1
86
><P
87
>The eCos Developer&#8217;s Kit package comes with an EPROM
88
which provides GDB support for the Cogent
89
evaluation board. An image of this EPROM is also provided at
90
          <TT
91
CLASS="FILENAME"
92
>loaders/powerpc-cogent/gdbload.bin</TT
93
> under
94
the root of your eCos installation. The same EPROM and image can
95
be used on all three supported daughterboards: CMA287-23 (MPC823),
96
CMA287-50 (MPC850), and CMA286-60 (MPC860).</P
97
><P
98
>The EPROM is installed to socket U4 on the board. Attention
99
should be paid to the correct orientation of the EPROM during installation. </P
100
><P
101
>If you are going to burn a new EPROM using the binary image,
102
be careful to get the byte order correct. It needs to be big-endian.
103
If the EPROM burner software has a hex-editor, check that the first
104
few bytes of the image look like: </P
105
><TABLE
106
BORDER="5"
107
BGCOLOR="#E0E0F0"
108
WIDTH="70%"
109
><TR
110
><TD
111
><PRE
112
CLASS="PROGRAMLISTING"
113
>00000000: 3c60 fff0 6063 2000 7c68 03a6 4e80 0020 &lt;&grave;..&grave;c.|h..N.. </PRE
114
></TD
115
></TR
116
></TABLE
117
><P
118
>If the byte order is wrong you will see 603c instead of 3c60
119
etc. Use the EPROM burner software to make a byte-swap before you
120
burn to image to the EPROM. </P
121
><P
122
>If the GDB stub EPROM you burn does not work, try reversing
123
the byte-order, even if you think you have it the right way around.
124
At least one DOS-based EPROM burner program is known to have the
125
byte-order upside down.</P
126
><P
127
>The GDB stub in the EPROM allows communication with GDB using
128
the serial port at connector P12 (CMA101) or P3 (CMA102). The communication parameters
129
are fixed at 38400 baud, 8 data bits, no parity bit and 1 stop bit
130
(8-N-1). No flow control is employed. Connection to the host computer
131
should be made using a dedicated serial cable as specified in the
132
Cogent CMA manual.</P
133
><DIV
134
CLASS="SECT2"
135
><H2
136
CLASS="SECT2"
137
><A
138
NAME="AEN3370">Installing the Stubs into ROM</H2
139
><DIV
140
CLASS="SECT3"
141
><H3
142
CLASS="SECT3"
143
><A
144
NAME="AEN3372">Preparing the Binaries</H3
145
><P
146
>These two binary preparation steps are not strictly necessary
147
as the eCos distribution ships with pre-compiled binaries in the
148
directory <TT
149
CLASS="FILENAME"
150
>loaders/powerpc-cogent</TT
151
> relative to the installation
152
root.</P
153
><DIV
154
CLASS="SECT4"
155
><H4
156
CLASS="SECT4"
157
><A
158
NAME="AEN3376">Building the ROM images with the eCos Configuration Tool</H4
159
><P
160
></P
161
><OL
162
TYPE="1"
163
><LI
164
><P
165
>Start with a new document - selecting the
166
<SPAN
167
CLASS="emphasis"
168
><I
169
CLASS="EMPHASIS"
170
>File-&#62;New</I
171
></SPAN
172
>
173
 menu item if necessary to do this.</P
174
></LI
175
><LI
176
><P
177
>Choose the
178
<SPAN
179
CLASS="emphasis"
180
><I
181
CLASS="EMPHASIS"
182
>Build-&#62;Templates</I
183
></SPAN
184
>
185
 menu item, and then select the PowerPC    CMA28x hardware.</P
186
></LI
187
><LI
188
><P
189
>While still displaying the
190
<SPAN
191
CLASS="emphasis"
192
><I
193
CLASS="EMPHASIS"
194
>Build-&#62;Templates</I
195
></SPAN
196
>
197
 dialog box, select the &#8220;stubs&#8221; package template
198
to build a GDB stub. Click
199
<SPAN
200
CLASS="emphasis"
201
><I
202
CLASS="EMPHASIS"
203
>OK</I
204
></SPAN
205
>.</P
206
></LI
207
><LI
208
><P
209
>Build eCos using
210
<SPAN
211
CLASS="emphasis"
212
><I
213
CLASS="EMPHASIS"
214
>Build-&#62;Library</I
215
></SPAN
216
>.</P
217
></LI
218
><LI
219
><P
220
>When the build completes, the image files can be found
221
in the bin/ subdirectory of the install tree. GDB stub
222
ROM images have the  prefix &#8220;gdb_module&#8221;.</P
223
></LI
224
></OL
225
></DIV
226
><DIV
227
CLASS="SECT4"
228
><H4
229
CLASS="SECT4"
230
><A
231
NAME="AEN3394">Building the ROM images with ecosconfig</H4
232
><P
233
></P
234
><OL
235
TYPE="1"
236
><LI
237
><P
238
>Make an empty directory to contain the build tree,
239
and cd into it.</P
240
></LI
241
><LI
242
><P
243
>To build a GDB stub ROM image, enter the command:
244
 
245
<TABLE
246
BORDER="5"
247
BGCOLOR="#E0E0F0"
248
WIDTH="70%"
249
><TR
250
><TD
251
><PRE
252
CLASS="PROGRAMLISTING"
253
>$ ecosconfig new cma28x stubs </PRE
254
></TD
255
></TR
256
></TABLE
257
></P
258
></LI
259
><LI
260
><P
261
>Enter the commands:
262
 
263
<TABLE
264
BORDER="5"
265
BGCOLOR="#E0E0F0"
266
WIDTH="70%"
267
><TR
268
><TD
269
><PRE
270
CLASS="PROGRAMLISTING"
271
>$ ecosconfig tree
272
$ make</PRE
273
></TD
274
></TR
275
></TABLE
276
>
277
 </P
278
></LI
279
><LI
280
><P
281
>When the build completes, the image files can be found
282
in the bin/ subdirectory of the install tree. GDB stub
283
ROM images have the prefix &#8220;gdb_module&#8221;.</P
284
></LI
285
></OL
286
></DIV
287
></DIV
288
><DIV
289
CLASS="SECT3"
290
><H3
291
CLASS="SECT3"
292
><A
293
NAME="AEN3407">Installing the Stubs into ROM or FLASH</H3
294
><P
295
></P
296
><OL
297
TYPE="1"
298
><LI
299
><P
300
>Program the binary image file gdb_module.bin
301
into ROM or FLASH referring to the instructions of your ROM programmer.</P
302
></LI
303
><LI
304
><P
305
> Plug the ROM/FLASH into socket U4 as described
306
at the beginning of this <SPAN
307
CLASS="emphasis"
308
><I
309
CLASS="EMPHASIS"
310
>Hardware Setup</I
311
></SPAN
312
> section.</P
313
></LI
314
></OL
315
></DIV
316
></DIV
317
></DIV
318
><DIV
319
CLASS="NAVFOOTER"
320
><HR
321
ALIGN="LEFT"
322
WIDTH="100%"><TABLE
323
SUMMARY="Footer navigation table"
324
WIDTH="100%"
325
BORDER="0"
326
CELLPADDING="0"
327
CELLSPACING="0"
328
><TR
329
><TD
330
WIDTH="33%"
331
ALIGN="left"
332
VALIGN="top"
333
><A
334
HREF="setup-mips-atlasmalta.html"
335
ACCESSKEY="P"
336
>Prev</A
337
></TD
338
><TD
339
WIDTH="34%"
340
ALIGN="center"
341
VALIGN="top"
342
><A
343
HREF="ecos-user-guide.html"
344
ACCESSKEY="H"
345
>Home</A
346
></TD
347
><TD
348
WIDTH="33%"
349
ALIGN="right"
350
VALIGN="top"
351
><A
352
HREF="setup-ppc-mbx860.html"
353
ACCESSKEY="N"
354
>Next</A
355
></TD
356
></TR
357
><TR
358
><TD
359
WIDTH="33%"
360
ALIGN="left"
361
VALIGN="top"
362
>Atlas/Malta Hardware Setup</TD
363
><TD
364
WIDTH="34%"
365
ALIGN="center"
366
VALIGN="top"
367
><A
368
HREF="appendix-target-setup.html"
369
ACCESSKEY="U"
370
>Up</A
371
></TD
372
><TD
373
WIDTH="33%"
374
ALIGN="right"
375
VALIGN="top"
376
>PowerPC MBX860 Hardware Setup</TD
377
></TR
378
></TABLE
379
></DIV
380
></BODY
381
></HTML
382
>

powered by: WebSVN 2.1.0

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