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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [at91.html] - Blame information for rev 588

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
>ARM/ARM7 Atmel AT91 Evaluation Board (EB40)</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 Reference Manual"
20
HREF="ecos-ref.html"><LINK
21
REL="UP"
22
TITLE="Installation and Testing"
23
HREF="installation-and-testing.html"><LINK
24
REL="PREVIOUS"
25
TITLE="ARM/ARM7+ARM9 ARM PID Board and EPI Dev7+Dev9"
26
HREF="pid.html"><LINK
27
REL="NEXT"
28
TITLE="ARM/ARM7 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312) "
29
HREF="edb7xxx.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 Reference Manual</TH
50
></TR
51
><TR
52
><TD
53
WIDTH="10%"
54
ALIGN="left"
55
VALIGN="bottom"
56
><A
57
HREF="pid.html"
58
ACCESSKEY="P"
59
>Prev</A
60
></TD
61
><TD
62
WIDTH="80%"
63
ALIGN="center"
64
VALIGN="bottom"
65
>Chapter 5. Installation and Testing</TD
66
><TD
67
WIDTH="10%"
68
ALIGN="right"
69
VALIGN="bottom"
70
><A
71
HREF="edb7xxx.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="AT91">ARM/ARM7 Atmel AT91 Evaluation Board (EB40)</H1
86
><DIV
87
CLASS="SECT2"
88
><H2
89
CLASS="SECT2"
90
><A
91
NAME="AEN5256">Overview</H2
92
><P
93
>RedBoot supports both serial ports.
94
The default serial port settings are 38400,8,N,1. RedBoot
95
also supports minimal flash management on the EB40.
96
However, since the flash device (AT29LV1024) is so small (only the upper 64K is
97
available for general use), only the simple flash write command 'fis
98
write' is supported.</P
99
><P
100
>The following RedBoot configurations are supported:
101
 
102
      <DIV
103
CLASS="INFORMALTABLE"
104
><A
105
NAME="AEN5266"><P
106
></P
107
><TABLE
108
BORDER="1"
109
CLASS="CALSTABLE"
110
><THEAD
111
><TR
112
><TH
113
ALIGN="LEFT"
114
VALIGN="TOP"
115
>Configuration</TH
116
><TH
117
ALIGN="LEFT"
118
VALIGN="TOP"
119
>Mode</TH
120
><TH
121
ALIGN="LEFT"
122
VALIGN="TOP"
123
>Description</TH
124
><TH
125
ALIGN="LEFT"
126
VALIGN="TOP"
127
>File</TH
128
></TR
129
></THEAD
130
><TBODY
131
><TR
132
><TD
133
ALIGN="LEFT"
134
VALIGN="TOP"
135
>ROM</TD
136
><TD
137
ALIGN="LEFT"
138
VALIGN="TOP"
139
>[ROM]</TD
140
><TD
141
ALIGN="LEFT"
142
VALIGN="TOP"
143
>RedBoot running from the board's flash boot
144
              sector.</TD
145
><TD
146
ALIGN="LEFT"
147
VALIGN="TOP"
148
>redboot_ROM.ecm</TD
149
></TR
150
><TR
151
><TD
152
ALIGN="LEFT"
153
VALIGN="TOP"
154
>RAM</TD
155
><TD
156
ALIGN="LEFT"
157
VALIGN="TOP"
158
>[RAM]</TD
159
><TD
160
ALIGN="LEFT"
161
VALIGN="TOP"
162
>RedBoot running from RAM with RedBoot in the
163
              flash boot sector.</TD
164
><TD
165
ALIGN="LEFT"
166
VALIGN="TOP"
167
>redboot_RAM.ecm</TD
168
></TR
169
><TR
170
><TD
171
ALIGN="LEFT"
172
VALIGN="TOP"
173
>ROMRAM</TD
174
><TD
175
ALIGN="LEFT"
176
VALIGN="TOP"
177
>[ROMRAM]</TD
178
><TD
179
ALIGN="LEFT"
180
VALIGN="TOP"
181
>RedBoot running from RAM, but contained in the
182
              board's flash boot sector.</TD
183
><TD
184
ALIGN="LEFT"
185
VALIGN="TOP"
186
>redboot_ROMRAM.ecm</TD
187
></TR
188
></TBODY
189
></TABLE
190
><P
191
></P
192
></DIV
193
></P
194
></DIV
195
><DIV
196
CLASS="SECT2"
197
><H2
198
CLASS="SECT2"
199
><A
200
NAME="AEN5290">Initial Installation Method</H2
201
><P
202
>This development board comes with ARM's debug tool, Angel, installed in flash.
203
At this time, Angel will not be replaced.  Rather, RedBoot will be placed in
204
the alternate half of flash.  Switch SW1 is used which monitor to boot.  Selecting
205
SW1 to "lower mem" will choose Angel.  Select SW1 to "Upper mem" for RedBoot once
206
it has been installed.</P
207
><P
208
>Set SW1 to "lower mem" and connect serial port A to a host computer.  Using GDB
209
from the host and Angel on the board, download the RAM mode image of RedBoot
210
to the board. SW1 should then be set to "upper mem" just before starting RedBoot using
211
the 'cont' command. Once RedBoot is started, the Angel session must be interrupted (on
212
Linux this can be done using ^Z).  Follow this by connecting to the board using
213
minicom at 38400-8N1.  At this point, RedBoot will be running on the board in
214
RAM.  Now, download the ROMRAM mode image and program it to flash.
215
<TABLE
216
BORDER="5"
217
BGCOLOR="#E0E0F0"
218
WIDTH="70%"
219
><TR
220
><TD
221
><PRE
222
CLASS="SCREEN"
223
><TT
224
CLASS="USERINPUT"
225
><B
226
>arm-elf-gdb redboot_RAM.elf</B
227
></TT
228
>
229
(gdb) <TT
230
CLASS="USERINPUT"
231
><B
232
>tar rdi s=/dev/ttyS0</B
233
></TT
234
>
235
Angel Debug Monitor (serial) 1.04 (Advanced RISC Machines SDT 2.5) for
236
AT91EB40 (2.00)
237
Angel Debug Monitor rebuilt on Apr 07 2000 at 12:40:31
238
Serial Rate:   9600
239
Connected to ARM RDI target.
240
(gdb) <TT
241
CLASS="USERINPUT"
242
><B
243
>set $cpsr=0xd3</B
244
></TT
245
>
246
(gdb) <TT
247
CLASS="USERINPUT"
248
><B
249
>load</B
250
></TT
251
>
252
Loading section .rom_vectors, size 0x40 lma 0x2020000
253
Loading section .text, size 0x7fd8 lma 0x2020040
254
Loading section .rodata, size 0x15a0 lma 0x2028018
255
Loading section .data, size 0x2e4 lma 0x20295b8
256
Start address 0x2020040 , load size 39068
257
Transfer rate: 6250 bits/sec, 500 bytes/write.</PRE
258
></TD
259
></TR
260
></TABLE
261
>
262
At this point, set SW1 to "upper mem".
263
<TABLE
264
BORDER="5"
265
BGCOLOR="#E0E0F0"
266
WIDTH="70%"
267
><TR
268
><TD
269
><PRE
270
CLASS="SCREEN"
271
>(gdb) <TT
272
CLASS="USERINPUT"
273
><B
274
>cont</B
275
></TT
276
>
277
Continuing.</PRE
278
></TD
279
></TR
280
></TABLE
281
>
282
At this point, suspend the GDB session (use Ctrl-Z) and start a
283
terminal emulator:
284
<TABLE
285
BORDER="5"
286
BGCOLOR="#E0E0F0"
287
WIDTH="70%"
288
><TR
289
><TD
290
><PRE
291
CLASS="SCREEN"
292
>RedBoot&#62; <TT
293
CLASS="USERINPUT"
294
><B
295
>version</B
296
></TT
297
>
298
 
299
RedBoot(tm) bootstrap and debug environment [RAM]
300
Non-certified release, version UNKNOWN - built 14:09:27, Jul 20 2001
301
 
302
Platform: Atmel AT91/EB40 (ARM7TDMI)
303
Copyright (C) 2000, 2001, Red Hat, Inc.
304
 
305
RAM: 0x02000000-0x02080000, 0x020116d8-0x0207fd00 available
306
FLASH: 0x01010000 - 0x01020000, 256 blocks of 0x00000100 bytes each.
307
 
308
RedBoot&#62; <TT
309
CLASS="USERINPUT"
310
><B
311
>load -m ymodem -b %{FREEMEMLO}</B
312
></TT
313
></PRE
314
></TD
315
></TR
316
></TABLE
317
>
318
Use minicom to send the file redboot_ROMRAM.srec via YModem.
319
<TABLE
320
BORDER="5"
321
BGCOLOR="#E0E0F0"
322
WIDTH="70%"
323
><TR
324
><TD
325
><PRE
326
CLASS="SCREEN"
327
>RedBoot&#62; <TT
328
CLASS="USERINPUT"
329
><B
330
>fi wr -f 0x01010000 -b %{FREEMEMLO} -l 0xe100</B
331
></TT
332
></PRE
333
></TD
334
></TR
335
></TABLE
336
>
337
Press the "reset" pushbutton and RedBoot
338
should come up on the board.</P
339
></DIV
340
><DIV
341
CLASS="SECT2"
342
><H2
343
CLASS="SECT2"
344
><A
345
NAME="AEN5306">Special RedBoot Commands</H2
346
><P
347
>None.</P
348
></DIV
349
><DIV
350
CLASS="SECT2"
351
><H2
352
CLASS="SECT2"
353
><A
354
NAME="AEN5309">Memory Maps</H2
355
><P
356
>This processor has no MMU, so the only memory map is for physical addresses.
357
<TABLE
358
BORDER="5"
359
BGCOLOR="#E0E0F0"
360
WIDTH="70%"
361
><TR
362
><TD
363
><PRE
364
CLASS="PROGRAMLISTING"
365
>Physical Address Range     Description
366
-----------------------    ----------------------------------
367
0x00000000 - 0x00000fff    On-chip SRAM
368
0x01000000 - 0x0101ffff    Flash
369
0x02000000 - 0x0207ffff    RAM
370
0xffe00000 - 0xffffffff    I/O registers
371
 
372
The flash based RedBoot image occupies virtual addresses 0x01010000 - 0x0101dfff</PRE
373
></TD
374
></TR
375
></TABLE
376
></P
377
></DIV
378
><DIV
379
CLASS="SECT2"
380
><H2
381
CLASS="SECT2"
382
><A
383
NAME="AEN5313">Rebuilding RedBoot</H2
384
><P
385
>These shell variables provide the platform-specific information
386
needed for building RedBoot according to the procedure described in
387
<A
388
HREF="rebuilding-redboot.html"
389
>Chapter 3</A
390
>:
391
<TABLE
392
BORDER="5"
393
BGCOLOR="#E0E0F0"
394
WIDTH="70%"
395
><TR
396
><TD
397
><PRE
398
CLASS="PROGRAMLISTING"
399
>export TARGET=eb40
400
export ARCH_DIR=arm
401
export PLATFORM_DIR=at91</PRE
402
></TD
403
></TR
404
></TABLE
405
></P
406
><P
407
>The names of configuration files are listed above with the
408
description of the associated modes.</P
409
></DIV
410
></DIV
411
><DIV
412
CLASS="NAVFOOTER"
413
><HR
414
ALIGN="LEFT"
415
WIDTH="100%"><TABLE
416
SUMMARY="Footer navigation table"
417
WIDTH="100%"
418
BORDER="0"
419
CELLPADDING="0"
420
CELLSPACING="0"
421
><TR
422
><TD
423
WIDTH="33%"
424
ALIGN="left"
425
VALIGN="top"
426
><A
427
HREF="pid.html"
428
ACCESSKEY="P"
429
>Prev</A
430
></TD
431
><TD
432
WIDTH="34%"
433
ALIGN="center"
434
VALIGN="top"
435
><A
436
HREF="ecos-ref.html"
437
ACCESSKEY="H"
438
>Home</A
439
></TD
440
><TD
441
WIDTH="33%"
442
ALIGN="right"
443
VALIGN="top"
444
><A
445
HREF="edb7xxx.html"
446
ACCESSKEY="N"
447
>Next</A
448
></TD
449
></TR
450
><TR
451
><TD
452
WIDTH="33%"
453
ALIGN="left"
454
VALIGN="top"
455
>ARM/ARM7+ARM9 ARM PID Board and EPI Dev7+Dev9</TD
456
><TD
457
WIDTH="34%"
458
ALIGN="center"
459
VALIGN="top"
460
><A
461
HREF="installation-and-testing.html"
462
ACCESSKEY="U"
463
>Up</A
464
></TD
465
><TD
466
WIDTH="33%"
467
ALIGN="right"
468
VALIGN="top"
469
>ARM/ARM7 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312)</TD
470
></TR
471
></TABLE
472
></DIV
473
></BODY
474
></HTML
475
>

powered by: WebSVN 2.1.0

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