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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [aaed2000.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/ARM9 Agilent AAED2000</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 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312) "
26
HREF="edb7xxx.html"><LINK
27
REL="NEXT"
28
TITLE="ARM/ARM9 Altera Excalibur"
29
HREF="excaliburarm9.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="edb7xxx.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="excaliburarm9.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="AAED2000">ARM/ARM9 Agilent AAED2000</H1
86
><DIV
87
CLASS="SECT2"
88
><H2
89
CLASS="SECT2"
90
><A
91
NAME="AEN5379">Overview</H2
92
><P
93
>RedBoot supports the serial and ethernet ports
94
on the board. The default serial port settings are 38400,8,N,1.
95
RedBoot also supports flash management on the AAED2000.</P
96
><P
97
>The following RedBoot configurations are supported:
98
 
99
      <DIV
100
CLASS="INFORMALTABLE"
101
><A
102
NAME="AEN5389"><P
103
></P
104
><TABLE
105
BORDER="1"
106
CLASS="CALSTABLE"
107
><THEAD
108
><TR
109
><TH
110
ALIGN="LEFT"
111
VALIGN="TOP"
112
>Configuration</TH
113
><TH
114
ALIGN="LEFT"
115
VALIGN="TOP"
116
>Mode</TH
117
><TH
118
ALIGN="LEFT"
119
VALIGN="TOP"
120
>Description</TH
121
><TH
122
ALIGN="LEFT"
123
VALIGN="TOP"
124
>File</TH
125
></TR
126
></THEAD
127
><TBODY
128
><TR
129
><TD
130
ALIGN="LEFT"
131
VALIGN="TOP"
132
>ROMRAM</TD
133
><TD
134
ALIGN="LEFT"
135
VALIGN="TOP"
136
>[ROMRAM]</TD
137
><TD
138
ALIGN="LEFT"
139
VALIGN="TOP"
140
>RedBoot running from RAM, but contained in the
141
              board's flash boot sector.</TD
142
><TD
143
ALIGN="LEFT"
144
VALIGN="TOP"
145
>redboot_primary_ROMRAM.ecm</TD
146
></TR
147
><TR
148
><TD
149
ALIGN="LEFT"
150
VALIGN="TOP"
151
>RAM</TD
152
><TD
153
ALIGN="LEFT"
154
VALIGN="TOP"
155
>[RAM]</TD
156
><TD
157
ALIGN="LEFT"
158
VALIGN="TOP"
159
>RedBoot running from RAM with RedBoot in the
160
              flash boot sector.</TD
161
><TD
162
ALIGN="LEFT"
163
VALIGN="TOP"
164
>redboot_primary_RAM.ecm</TD
165
></TR
166
></TBODY
167
></TABLE
168
><P
169
></P
170
></DIV
171
></P
172
></DIV
173
><DIV
174
CLASS="SECT2"
175
><H2
176
CLASS="SECT2"
177
><A
178
NAME="AEN5408">Initial Installation Method</H2
179
><P
180
>It is possible to install RedBoot in one of two ways. Either as
181
the primary bootmonitor on the board (installed to blocks 0-1 of the
182
flash) or as the secondary bootmonitor on the board (installed to
183
blocks 1-2 of the flash).</P
184
><P
185
>Presently, only the former method is supported.</P
186
><DIV
187
CLASS="SECT3"
188
><H3
189
CLASS="SECT3"
190
><A
191
NAME="AEN5412">RedBoot as Primary Bootmonitor</H3
192
><P
193
>RedBoot is installed in flash using the on-board ARM Boot
194
Monitor.</P
195
><P
196
>Boot the board while pressing SPACE. This should bring up the
197
Boot Monitor:
198
<TABLE
199
BORDER="5"
200
BGCOLOR="#E0E0F0"
201
WIDTH="70%"
202
><TR
203
><TD
204
><PRE
205
CLASS="SCREEN"
206
>ARM bootPROM [Version 1.3] Rebuilt on Jul 16 2001 at 16:21:36
207
Running on a P920 board Evaluation Board
208
Board Revision V1.0, ARM920T processor Processor
209
Memory Size is 32MBytes, Flash Size is 32MBytes
210
Copyright (c) ARM Limited 1999 - 2001. All rights reserved.
211
Board designed by ARM Limited
212
Hardware support provided at http://www.arm.com/
213
For help on the available commands type ? or h
214
boot Monitor &#62;                                                                  </PRE
215
></TD
216
></TR
217
></TABLE
218
>
219
 
220
Download the RAM mode image of RedBoot configured as a primary
221
bootmonitor using the ARM bootmonitor's SREC-download command:
222
 
223
<TABLE
224
BORDER="5"
225
BGCOLOR="#E0E0F0"
226
WIDTH="70%"
227
><TR
228
><TD
229
><PRE
230
CLASS="SCREEN"
231
>boot Monitor &gt; <TT
232
CLASS="USERINPUT"
233
><B
234
>m</B
235
></TT
236
>
237
Load Motorola S-Record image into memory and execute it
238
The S-Record loader only accepts input on the serial port.
239
Record addresses must be between 0x00008000 and 0x01E0F510.
240
Type Ctrl/C to exit loader.</PRE
241
></TD
242
></TR
243
></TABLE
244
>
245
 
246
Use the terminal emulator's ASCII upload command, or (on Linux) simply
247
cat the file to the serial port:
248
 
249
<TABLE
250
BORDER="5"
251
BGCOLOR="#E0E0F0"
252
WIDTH="70%"
253
><TR
254
><TD
255
><PRE
256
CLASS="SCREEN"
257
>$ <TT
258
CLASS="USERINPUT"
259
><B
260
>cat redboot_primary_RAM/redboot.srec &gt;/dev/ttyS1</B
261
></TT
262
></PRE
263
></TD
264
></TR
265
></TABLE
266
>
267
 
268
You should see RedBoot start up:
269
 
270
<TABLE
271
BORDER="5"
272
BGCOLOR="#E0E0F0"
273
WIDTH="70%"
274
><TR
275
><TD
276
><PRE
277
CLASS="SCREEN"
278
>FLASH configuration checksum error or invalid key
279
Ethernet eth0: MAC address 00:30:d3:03:04:99
280
IP: 192.168.42.111, Default server: 192.168.42.3
281
 
282
RedBoot(tm) bootstrap and debug environment [RAM]
283
Non-certified release, version UNKNOWN - built 13:15:40, Nov  9 2001
284
 
285
Platform: AAED2000 system (ARM9) [Primary]
286
Copyright (C) 2000, 2001, Red Hat, Inc.
287
 
288
RAM: 0x00000000-0x01f80000, 0x0006f208-0x01f51000 available
289
FLASH: 0x60000000 - 0x62000000, 256 blocks of 0x00020000 bytes each.
290
RedBoot&#62;</PRE
291
></TD
292
></TR
293
></TABLE
294
>
295
 
296
As can be seen from the output above, the network has been configured
297
to give the board an IP address and information about the default
298
server. If things are not set up on your network, you can still
299
continue, but use the Y-modem download method when loading the RedBoot
300
ROMRAM mode image.
301
 
302
Now initialize RedBoot's FIS:
303
 
304
<TABLE
305
BORDER="5"
306
BGCOLOR="#E0E0F0"
307
WIDTH="70%"
308
><TR
309
><TD
310
><PRE
311
CLASS="SCREEN"
312
>RedBoot&gt; <TT
313
CLASS="USERINPUT"
314
><B
315
>fis init</B
316
></TT
317
>
318
About to initialize [format] FLASH image system - continue (y/n)? <TT
319
CLASS="USERINPUT"
320
><B
321
>y</B
322
></TT
323
>
324
*** Initialize FLASH Image System
325
    Warning: device contents not erased, some blocks may not be usable
326
... Erase from 0x61fe0000-0x62000000: .
327
... Program from 0x01f5f000-0x01f5f300 at 0x61fe0000: .</PRE
328
></TD
329
></TR
330
></TABLE
331
>
332
 
333
Download the ROMRAM mode image of RedBoot via ethernet:
334
 
335
<TABLE
336
BORDER="5"
337
BGCOLOR="#E0E0F0"
338
WIDTH="70%"
339
><TR
340
><TD
341
><PRE
342
CLASS="SCREEN"
343
>RedBoot&gt; <TT
344
CLASS="USERINPUT"
345
><B
346
>load -b %{FREEMEMLO} redboot_primary_ROMRAM/redboot.srec</B
347
></TT
348
></PRE
349
></TD
350
></TR
351
></TABLE
352
>
353
 
354
or using serial Y-modem protocol:
355
 
356
<TABLE
357
BORDER="5"
358
BGCOLOR="#E0E0F0"
359
WIDTH="70%"
360
><TR
361
><TD
362
><PRE
363
CLASS="SCREEN"
364
>RedBoot&gt; <TT
365
CLASS="USERINPUT"
366
><B
367
>load -mode ymodem -b %{FREEMEMLO}</B
368
></TT
369
></PRE
370
></TD
371
></TR
372
></TABLE
373
>
374
 
375
(Use the terminal emulator's Y-modem upload command to send the file
376
<TT
377
CLASS="FILENAME"
378
>redboot_primary_ROMRAM/redboot.srec</TT
379
>.)
380
 
381
When the image has been downloaded, program it into flash:
382
 
383
<TABLE
384
BORDER="5"
385
BGCOLOR="#E0E0F0"
386
WIDTH="70%"
387
><TR
388
><TD
389
><PRE
390
CLASS="SCREEN"
391
>Address offset = 0x00ff8000
392
Entry point: 0x00008040, address range: 0x00008000-0x0002da80
393
RedBoot&gt; <TT
394
CLASS="USERINPUT"
395
><B
396
>fi cr RedBoot</B
397
></TT
398
>
399
An image named 'RedBoot' exists - continue (y/n)? <TT
400
CLASS="USERINPUT"
401
><B
402
>y</B
403
></TT
404
>
405
* CAUTION * about to program 'RedBoot'
406
            at 0x60000000..0x6003ffff from 0x00100000 - continue (y/n)? <TT
407
CLASS="USERINPUT"
408
><B
409
>y</B
410
></TT
411
>
412
... Erase from 0x60000000-0x60040000: ..
413
... Program from 0x00100000-0x00140000 at 0x60000000: ..
414
... Erase from 0x61fe0000-0x62000000: .
415
... Program from 0x01f5f000-0x01f7f000 at 0x61fe0000: .</PRE
416
></TD
417
></TR
418
></TABLE
419
>
420
 
421
Now reset the board. You should see the RedBoot banner.</P
422
></DIV
423
></DIV
424
><DIV
425
CLASS="SECT2"
426
><H2
427
CLASS="SECT2"
428
><A
429
NAME="AEN5434">Special RedBoot Commands</H2
430
><P
431
>The <B
432
CLASS="COMMAND"
433
>exec</B
434
> command which allows the loading
435
and execution of Linux kernels,
436
is supported for this board (see <A
437
HREF="executing-programs.html"
438
>the Section called <I
439
>Executing Programs from RedBoot</I
440
> in Chapter 2</A
441
>). The <B
442
CLASS="COMMAND"
443
>exec</B
444
> parameters used for the AAED2000 are:</P
445
><P
446
></P
447
><DIV
448
CLASS="VARIABLELIST"
449
><DL
450
><DT
451
>-b <TT
452
CLASS="REPLACEABLE"
453
><I
454
>&lt;addr&#62;</I
455
></TT
456
></DT
457
><DD
458
><P
459
>Location Linux kernel was loaded to</P
460
></DD
461
><DT
462
>-l <TT
463
CLASS="REPLACEABLE"
464
><I
465
>&lt;len&#62;</I
466
></TT
467
></DT
468
><DD
469
><P
470
>Length of kernel</P
471
></DD
472
><DT
473
>-c <TT
474
CLASS="REPLACEABLE"
475
><I
476
>"params"</I
477
></TT
478
></DT
479
><DD
480
><P
481
>Parameters passed to kernel</P
482
></DD
483
><DT
484
>-r <TT
485
CLASS="REPLACEABLE"
486
><I
487
>&lt;addr&#62;</I
488
></TT
489
></DT
490
><DD
491
><P
492
>'initrd' ramdisk location</P
493
></DD
494
><DT
495
>-s <TT
496
CLASS="REPLACEABLE"
497
><I
498
>&lt;len&#62;</I
499
></TT
500
></DT
501
><DD
502
><P
503
>Length of initrd ramdisk</P
504
></DD
505
></DL
506
></DIV
507
><P
508
>The parameters for kernel image base and size are automatically
509
set after a load operation. So one way of starting the kernel would
510
be:
511
 
512
<TABLE
513
BORDER="5"
514
BGCOLOR="#E0E0F0"
515
WIDTH="70%"
516
><TR
517
><TD
518
><PRE
519
CLASS="SCREEN"
520
>RedBoot&gt; <TT
521
CLASS="USERINPUT"
522
><B
523
>load -r -b 0x100000 zImage</B
524
></TT
525
>
526
Raw file loaded 0x00100000-0x001a3d6c
527
RedBoot&gt; exec -c "console=ttyAC0,38400"
528
Using base address 0x00100000 and length 0x000a3d6c
529
Uncompressing Linux.....</PRE
530
></TD
531
></TR
532
></TABLE
533
>
534
 
535
An image could also be put in flash and started directly:
536
 
537
<TABLE
538
BORDER="5"
539
BGCOLOR="#E0E0F0"
540
WIDTH="70%"
541
><TR
542
><TD
543
><PRE
544
CLASS="SCREEN"
545
>RedBoot&gt; <TT
546
CLASS="USERINPUT"
547
><B
548
>exec -b 0x60040000 -l 0xc0000 -c "console=ttyAC0,38400"</B
549
></TT
550
>
551
Uncompressing Linux.....</PRE
552
></TD
553
></TR
554
></TABLE
555
>&#13;</P
556
></DIV
557
><DIV
558
CLASS="SECT2"
559
><H2
560
CLASS="SECT2"
561
><A
562
NAME="AEN5471">Memory Maps</H2
563
><P
564
>The MMU page tables are located at 0x4000. <DIV
565
CLASS="NOTE"
566
><BLOCKQUOTE
567
CLASS="NOTE"
568
><P
569
><B
570
>NOTE: </B
571
>The virtual memory maps in this section use a C and B column to indicate
572
whether or not the region is cached (C) or buffered (B).</P
573
></BLOCKQUOTE
574
></DIV
575
><TABLE
576
BORDER="5"
577
BGCOLOR="#E0E0F0"
578
WIDTH="70%"
579
><TR
580
><TD
581
><PRE
582
CLASS="PROGRAMLISTING"
583
>Physical Address Range     Description
584
-----------------------    ----------------------------------
585
0x00000000 - 0x01ffffff    Flash
586
0x10000000 - 0x100fffff    Ethernet
587
0x30000000 - 0x300fffff    Board registers
588
0x40000000 - 0x4fffffff    PCMCIA Slot (0)
589
0x50000000 - 0x5fffffff    Compact Flash Slot (1)
590
0x80000000 - 0x800037ff    I/O registers
591
0xb0060000 - 0xb00fffff    On-chip SRAM
592
0xf0000000 - 0xfd3fffff    SDRAM
593
 
594
Virtual Address Range    C B  Description
595
-----------------------  - -  ----------------------------------
596
0x00000000 - 0x01f7ffff  Y Y  SDRAM
597
0x01f80000 - 0x01ffffff  Y Y  SDRAM (used for LCD frame buffer)
598
0x10000000 - 0x100fffff  N N  Ethernet
599
0x30000000 - 0x300fffff  N N  Board registers
600
0x40000000 - 0x4fffffff  N N  PCMCIA Slot (0)
601
0x50000000 - 0x5fffffff  N N  Compact Flash Slot (1)
602
0x60000000 - 0x61ffffff  N N  Flash
603
0x80000000 - 0x800037ff  N N  I/O registers
604
0xf0000000 - 0xffffffff  N N  SDRAM (uncached)&#13;</PRE
605
></TD
606
></TR
607
></TABLE
608
></P
609
></DIV
610
><DIV
611
CLASS="SECT2"
612
><H2
613
CLASS="SECT2"
614
><A
615
NAME="AEN5478">Rebuilding RedBoot</H2
616
><P
617
>These shell variables provide the platform-specific information
618
needed for building RedBoot according to the procedure described in
619
<A
620
HREF="rebuilding-redboot.html"
621
>Chapter 3</A
622
>:
623
<TABLE
624
BORDER="5"
625
BGCOLOR="#E0E0F0"
626
WIDTH="70%"
627
><TR
628
><TD
629
><PRE
630
CLASS="PROGRAMLISTING"
631
>export TARGET=aaed
632
export ARCH_DIR=arm
633
export PLATFORM_DIR=arm9/aaed2000</PRE
634
></TD
635
></TR
636
></TABLE
637
></P
638
><P
639
>The names of configuration files are listed above with the
640
description of the associated modes.</P
641
></DIV
642
></DIV
643
><DIV
644
CLASS="NAVFOOTER"
645
><HR
646
ALIGN="LEFT"
647
WIDTH="100%"><TABLE
648
SUMMARY="Footer navigation table"
649
WIDTH="100%"
650
BORDER="0"
651
CELLPADDING="0"
652
CELLSPACING="0"
653
><TR
654
><TD
655
WIDTH="33%"
656
ALIGN="left"
657
VALIGN="top"
658
><A
659
HREF="edb7xxx.html"
660
ACCESSKEY="P"
661
>Prev</A
662
></TD
663
><TD
664
WIDTH="34%"
665
ALIGN="center"
666
VALIGN="top"
667
><A
668
HREF="ecos-ref.html"
669
ACCESSKEY="H"
670
>Home</A
671
></TD
672
><TD
673
WIDTH="33%"
674
ALIGN="right"
675
VALIGN="top"
676
><A
677
HREF="excaliburarm9.html"
678
ACCESSKEY="N"
679
>Next</A
680
></TD
681
></TR
682
><TR
683
><TD
684
WIDTH="33%"
685
ALIGN="left"
686
VALIGN="top"
687
>ARM/ARM7 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312)</TD
688
><TD
689
WIDTH="34%"
690
ALIGN="center"
691
VALIGN="top"
692
><A
693
HREF="installation-and-testing.html"
694
ACCESSKEY="U"
695
>Up</A
696
></TD
697
><TD
698
WIDTH="33%"
699
ALIGN="right"
700
VALIGN="top"
701
>ARM/ARM9 Altera Excalibur</TD
702
></TR
703
></TABLE
704
></DIV
705
></BODY
706
></HTML
707
>

powered by: WebSVN 2.1.0

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