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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [redboot/] [current/] [doc/] [redboot_cmds.sgml] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
2
 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
28
29
 
30
31
RedBoot Commands and Examples
32
33
Introduction
34
RedBootcommands and examples
35
commands and examples
36
RedBoot provides three basic classes of commands:    
37
Program loading and execution
38
39
Flash image and configuration management
40
41
Miscellaneous commands
42
43
Given the extensible and configurable nature of eCos and RedBoot,
44
there may be extended or enhanced sets of commands available.
45
The basic format for commands is:    RedBoot> COMMAND [-S]... [-s val]... operand
46
47
48
49
Commands may require additional information beyond the basic
50
command name. In most cases this additional information is optional, with
51
suitable default values provided if they are not present.
52
 
53
      
54
        
55
          
56
          
57
          
58
          
59
            
60
              Format
61
              Description
62
              Example
63
            
64
          
65
          
66
            
67
              -S
68
              A boolean switch; the behavior of the command will differ, depending
69
on the presence of the switch.  In this example, the -f switch
70
indicates that a complete initialization of the FIS data should be performed.
71
There may be many such switches available for any given command and any or all of
72
them may be present, in any order.
73
              
74
                 RedBoot> fis init -f
75
              
76
            
77
            
78
              -s val
79
              A qualified value; the letter "s" introduces the value, qualifying it's meaning.  In the
80
example, -b 0x100000 specifies where the memory dump should begin.
81
There may be many such switches available for any given command and any or all of
82
them may be present, in any order.
83
84
              
85
                 RedBoot> dump -b 0x100000 -l 0x20
86
              
87
            
88
            
89
               operand
90
              A simple value; some commands require a single parameter for which an additional
91
-X switch would be redundant.  In the example, JFFS2
92
is the name of a flash image.  The image name is always required, thus is no need to qualify it with
93
a switch.
94
Note that any un-qualified operand must always appear at the end of the command.
95
              
96
                 RedBoot> fis delete JFFS2
97
              
98
            
99
          
100
        
101
      
102
 
103
104
The list of available commands, and their syntax, can be obtained by
105
typing help at the command line:
106
107
RedBoot> help
108
Manage aliases kept in FLASH memory
109
      alias name [value]
110
Set/Query the system console baud rate
111
      baudrate [-b <rate>]
112
Manage machine caches
113
      cache [ON | OFF]
114
Display/switch console channel
115
      channel [-1|<channel number>]
116
Display disk partitions
117
      disks
118
Display (hex dump) a range of memory
119
      dump -b <location> [-l <length>] [-s]
120
Manage flash images
121
      fis {cmds}
122
Manage configuration kept in FLASH memory
123
      fconfig [-i] [-l] [-n] [-f] [-d] | [-d] nickname [value]
124
Execute code at a location
125
      go [-w <timeout>] [-c] [-n] [entry]
126
Help about help?
127
      help [<topic>]
128
Set/change IP addresses
129
      ip_address [-l <local_ip_address>[/<mask_length>]] [-h <server_address>]
130
Load a file
131
      load [-r] [-v] [-d] [-c <channel>] [-h <host>] [-m {TFTP | HTTP | {x|y}MODEM | disk}]
132
      [-b <base_address>] <file_name>
133
Network connectivity test
134
      ping [-v] [-n <count>] [-t <timeout>] [-i <IP_addr]
135
      -h <host>
136
Reset the system
137
      reset
138
Display RedBoot version information
139
      version
140
Display (hex dump) a range of memory
141
      x -b <location> [-l <length>] [-s]
142
143
144
145
Commands can be abbreviated to their shortest
146
unique string. Thus in the list above, d,du,dum
147
and dump are all valid for the dump command. The fconfig
148
command can be abbreviated fc, but
149
f would be ambiguous with fis.
150
151
There is one additional, special command. When RedBoot detects '$' or '+'
152
(unless escaped via '\') in a command, it switches to GDB protocol mode. At this
153
point, the eCos GDB stubs take over, allowing connections from a GDB host.
154
The only way to get back to RedBoot from GDB mode is to restart the platform.
155
156
NOTE
157
158
Multiple commands may be entered on a single line, separated by the semi-colon “;” character.
159
160
161
The standard RedBoot command set is structured around the bootstrap
162
environment. These commands are designed to be simple to use and remember,
163
while still providing sufficient power and flexibility to be useful. No attempt
164
has been made to render RedBoot as the end-all product. As such, things such
165
as the debug environment are left to other modules, such as GDB stubs, which
166
are typically included in RedBoot. 
167
The command set may be also be extended on a platform basis. 
168
169
 
170
171
Common Commands
172
173
  commandscommon
174
  
175
176
 
177
178
  
179
    
180
      alias
181
      Manipulate command line aliases
182
    
183
    
184
      
185
        alias
186
         name
187
         value
188
      
189
    
190
    
191
      Arguments
192
      
193
        
194
          
195
          
196
          
197
          
198
          
199
            
200
              Name
201
              Type
202
              Description
203
              Default
204
            
205
          
206
          
207
            
208
              name
209
              Name
210
              The name for this alias.
211
              none
212
            
213
            
214
              value
215
              String
216
              Replacement value for the alias.
217
              none
218
            
219
          
220
        
221
      
222
    
223
    
224
      Description
225
      The alias command is used to maintain simple command
226
line aliases.  These aliases are shorthand for longer expressions.
227
When the pattern %{name} appears in a command line, including in a script,
228
the corresponding value will be substituted.  Aliases may be nested.
229
      
230
      
231
If no value is provided, then the current value of the alias is displayed.
232
      
233
      
234
If the system supports non-volatile configuration data via the
235
fconfig command (see ),
236
then the value will be saved and used when the system is reset.
237
      
238
    
239
    
240
      Examples
241
      
242
Set an alias.
243
244
RedBoot> alias joe "This is Joe"
245
Update RedBoot non-volatile configuration - continue (y/n)? n
246
247
248
249
Display an alias.
250
251
RedBoot> alias joe
252
'joe' = 'This is Joe'
253
254
255
256
Use an alias.  Note: the "=" command simply echoes the command to to console.
257
258
RedBoot> = %{joe}
259
This is Joe
260
261
262
263
Aliases can be nested.
264
265
RedBoot> alias frank "Who are you? %{joe}"
266
Update RedBoot non-volatile configuration - continue (y/n)? n
267
RedBoot> = %{frank}
268
Who are you? This is Joe
269
270
271
272
Notice how the value of %{frank} changes when %{joe} is changed since
273
the value of %{joe} is not evaluated until %{frank} is evaluated.
274
275
RedBoot> alias joe "This is now Josephine"
276
Update RedBoot non-volatile configuration - continue (y/n)? n
277
RedBoot> = %{frank}
278
Who are you? This is now Josephine
279
280
      
281
    
282
  
283
 
284
285
  
286
    
287
      baudrate
288
      Set the baud rate for the system serial console
289
    
290
    
291
      
292
        baudrate
293
        -b rate
294
      
295
    
296
    
297
      Arguments
298
      
299
        
300
          
301
          
302
          
303
          
304
          
305
            
306
              Name
307
              Type
308
              Description
309
              Default
310
            
311
          
312
          
313
            
314
              -b rate
315
              Number
316
              The baud rate to use for the serial console.
317
              none
318
            
319
          
320
        
321
      
322
    
323
    
324
      Description
325
      The baudrate command sets the baud rate for the system serial console.
326
      
327
      
328
If no value is provided, then the current value of the console baud rate is displayed.
329
      
330
      
331
If the system supports non-volatile configuration data via the
332
fconfig command (see ),
333
then the value will be saved and used when the system is reset.
334
      
335
    
336
    
337
      Examples
338
      
339
Show the current baud rate.
340
341
RedBoot> baudrate
342
Baud rate = 38400
343
344
345
346
Change the console baud rate.  In order to make this operation safer,
347
there will be a slight pause after the
348
first message to give you time to change to the new baud rate.
349
If it doesn't work, or a less than affirmative answer is given to the
350
"continue" prompt, then the baud rate will revert to the current value.
351
Only after the baud rate has been firmly established will RedBoot
352
give you an opportunity to save the value in persistent storage.
353
354
RedBoot> baudrate -b 57600
355
Baud rate will be changed to 57600 - update your settings
356
Device baud rate changed at this point
357
Baud rate changed to 57600 - continue (y/n)? y
358
Update RedBoot non-volatile configuration - continue (y/n)? n
359
360
      
361
    
362
  
363
 
364
365
  
366
    
367
      cache
368
      Control hardware caches
369
    
370
    
371
      
372
        cache
373
        
374
          on
375
          off
376
        
377
      
378
    
379
    
380
      Arguments
381
      
382
        
383
          
384
          
385
          
386
          
387
          
388
            
389
              Name
390
              Type
391
              Description
392
              Default
393
            
394
          
395
          
396
            
397
              on
398
              
399
              Turn the caches on
400
              none
401
            
402
            
403
              off
404
              
405
              Turn the caches off
406
              none
407
            
408
          
409
        
410
      
411
    
412
    
413
      Description
414
      The cache command is used to manipulate the caches on the processor. 
415
      With no options, this command specifies the state of the system caches.
416
      When an option is given, the caches are turned off or on appropriately.
417
    
418
    
419
      Examples
420
      
421
Show the current cache state.
422
423
RedBoot> cache
424
Data cache: On, Instruction cache: On
425
426
427
428
Disable the caches.
429
430
RedBoot> cache off
431
RedBoot> cache
432
Data cache: Off, Instruction cache: Off
433
434
435
436
Enable the caches.
437
438
RedBoot> cache on
439
RedBoot> cache
440
Data cache: On, Instruction cache: On
441
442
      
443
    
444
  
445
 
446
447
  
448
    
449
      channel
450
      Select the system console channel
451
    
452
    
453
      
454
        channel
455
        
456
          -1
457
          channel_number
458
        
459
      
460
    
461
    
462
      Arguments
463
      
464
        
465
          
466
          
467
          
468
          
469
          
470
            
471
              Name
472
              Type
473
              Description
474
              Default
475
            
476
          
477
          
478
            
479
              -1
480
              
481
              Reset the console channel
482
              none
483
            
484
            
485
              channel_number
486
              Number
487
              Select a channel
488
              none
489
            
490
          
491
        
492
      
493
    
494
    
495
      Description
496
      
497
With no arguments, the channel command displays the current console channel number.
498
499
When passed an argument of 0 upward, this command switches the console
500
channel to that channel number. The mapping between channel numbers and
501
physical channels is platform specific but will typically be something like
502
channel 0 is the first serial port, channel 1 is the second, etc.
503
504
When passed an argument of -1, this command reverts RedBoot to responding
505
to whatever channel receives input first, as happens when RedBoot initially
506
starts execution.
507
508
    
509
    
510
      Examples
511
      
512
Show the current channel.
513
514
RedBoot> channel
515
Current console channel id: 0
516
517
518
519
Change to an invalid channel.
520
521
RedBoot> channel 99
522
**Error: bad channel number '99'
523
524
525
526
Revert to the default channel setting (any console mode).
527
528
RedBoot> channel -1
529
530
      
531
    
532
  
533
 
534
535
  
536
    
537
      cksum
538
      Compute POSIX checksums
539
    
540
    
541
      
542
        cksum
543
            -b location
544
            -l length
545
      
546
    
547
    
548
      Arguments
549
      
550
        
551
          
552
          
553
          
554
          
555
          
556
            
557
              Name
558
              Type
559
              Description
560
              Default
561
            
562
          
563
          
564
            
565
              -b location
566
              Memory address
567
              Location in memory for stat of data.
568
              none
569
            
570
            
571
              -l length
572
              Number
573
              Length of data
574
              none
575
            
576
          
577
        
578
      
579
    
580
    
581
      Description
582
          Computes the POSIX checksum on a range of memory (either RAM or FLASH).
583
The values printed (decimal cksum, decimal length, hexadecimal cksum,
584
          hexadecimal length) can be compared with the output from the Linux program 'cksum'.
585
586
    
587
    
588
      Examples
589
      
590
Checksum a buffer.
591
592
RedBoot> cksum -b 0x100000 -l 0x100
593
POSIX cksum = 3286483632 256 (0xc3e3c2b0 0x00000100)
594
595
      
596
      
597
Checksum an area of memory after loading a file. Note that the base
598
address and length parameters are provided by the preceding
599
load command.
600
601
RedBoot> load -r -b %{FREEMEMLO} redboot.bin
602
Raw file loaded 0x06012800-0x0602f0a8
603
RedBoot> cksum
604
Computing cksum for area 0x06012800-0x0602f0a8
605
POSIX cksum = 2092197813 116904 (0x7cb467b5 0x0001c8a8)
606
607
      
608
    
609
  
610
 
611
612
  
613
    
614
      disks
615
      List available disk partitions.
616
    
617
    
618
      
619
        disks
620
      
621
    
622
    
623
      Arguments
624
None.
625
    
626
    
627
      Description
628
        The disks command is used to list disk partitions recognized by RedBoot.
629
    
630
    
631
      Examples
632
      
633
Show what disk partitions are available.
634
635
RedBoot> disks
636
hda1     Linux Swap
637
hda2     Linux
638
00100000: 00 3E 00 06 00 06 00 06  00 00 00 00 00 00 00 00  |.>..............|
639
00100010: 00 00 00 78 00 70 00 60  00 60 00 60 00 60 00 60  |...x.p.`.`.`.`.`|
640
641
      
642
    
643
  
644
 
645
646
  
647
    
648
      dump
649
      Display memory.
650
    
651
    
652
      
653
        dump
654
            -b location
655
            -l length
656
            -s
657
          
658
            -1
659
            -2
660
            -4
661
          
662
      
663
    
664
    
665
      Arguments
666
      
667
        
668
          
669
          
670
          
671
          
672
          
673
            
674
              Name
675
              Type
676
              Description
677
              Default
678
            
679
          
680
          
681
            
682
              -b location
683
              Memory address
684
              Location in memory for start of data.
685
              none
686
            
687
            
688
              -l length
689
              Number
690
              Length of data
691
              32
692
            
693
            
694
              -s
695
              Boolean
696
              Format data using Motorola S-records.
697
              
698
            
699
            
700
              -1
701
              
702
              Access one byte (8 bits) at a time.
703
Only the least significant 8 bits of the pattern will be used.
704
              -1
705
            
706
            
707
              -2
708
              
709
              Access two bytes (16 bits) at a time.
710
Only the least significant 16 bits of the pattern will be used.
711
              -1
712
            
713
            
714
              -4
715
              
716
              Access one word (32 bits) at a time.
717
              -1
718
            
719
          
720
        
721
      
722
    
723
    
724
      Description
725
        Display a range of memory on the system console.
726
        The x is a synonym for dump.
727
        Note that this command could
728
be detrimental if used on memory mapped hardware registers. 
729
        The memory is displayed at most sixteen bytes per line, first as the
730
raw hex value, followed by an ASCII interpretation of the data. 
731
    
732
    
733
      Examples
734
      
735
Display a buffer, one byte at a time.
736
737
RedBoot> mfill -b 0x100000 -l 0x20 -p 0xDEADFACE
738
RedBoot> x -b 0x100000
739
00100000: CE FA AD DE CE FA AD DE  CE FA AD DE CE FA AD DE  |................|
740
00100010: CE FA AD DE CE FA AD DE  CE FA AD DE CE FA AD DE  |................|
741
742
743
744
Display a buffer, one short (16 bit) word at a time.  Note in this case that
745
the ASCII interpretation is suppressed.
746
747
RedBoot> dump -b 0x100000 -2
748
00100000: FACE DEAD FACE DEAD  FACE DEAD FACE DEAD
749
00100010: FACE DEAD FACE DEAD  FACE DEAD FACE DEAD
750
751
752
753
Display a buffer, one word (32 bit) word at a time.  Note in this case that
754
the ASCII interpretation is suppressed.
755
756
RedBoot> dump -b 0x100000 -4
757
00100000: DEADFACE DEADFACE DEADFACE DEADFACE
758
00100010: DEADFACE DEADFACE DEADFACE DEADFACE
759
760
761
762
Display the same buffer, using Motorola S-record format.
763
764
RedBoot> dump -b 0x100000 -s
765
S31500100000CEFAADDECEFAADDECEFAADDECEFAADDE8E
766
S31500100010CEFAADDECEFAADDECEFAADDECEFAADDE7E
767
768
769
770
Display a buffer, with visible ASCII strings.
771
772
RedBoot> d -b 0xfe00b000 -l 0x80
773
0xFE00B000: 20 25 70 0A 00 00 00 00  41 74 74 65 6D 70 74 20 | %p.....Attempt |
774
0xFE00B010: 74 6F 20 6C 6F 61 64 20  53 2D 72 65 63 6F 72 64 |to load S-record|
775
0xFE00B020: 20 64 61 74 61 20 74 6F  20 61 64 64 72 65 73 73 | data to address|
776
0xFE00B030: 3A 20 25 70 20 5B 6E 6F  74 20 69 6E 20 52 41 4D |: %p [not in RAM|
777
0xFE00B040: 5D 0A 00 00 2A 2A 2A 20  57 61 72 6E 69 6E 67 21 |]...*** Warning!|
778
0xFE00B050: 20 43 68 65 63 6B 73 75  6D 20 66 61 69 6C 75 72 | Checksum failur|
779
0xFE00B060: 65 20 2D 20 41 64 64 72  3A 20 25 6C 78 2C 20 25 |e - Addr: %lx, %|
780
0xFE00B070: 30 32 6C 58 20 3C 3E 20  25 30 32 6C 58 0A 00 00 |02lX <> %02lX...|
781
0xFE00B080: 45 6E 74 72 79 20 70 6F  69 6E 74 3A 20 25 70 2C |Entry point: %p,|
782
783
      
784
    
785
  
786
 
787
788
  
789
    
790
      help
791
      Display help on available commands
792
    
793
    
794
      
795
        help
796
         topic
797
      
798
    
799
    
800
      Arguments
801
      
802
        
803
          
804
          
805
          
806
          
807
          
808
            
809
              Name
810
              Type
811
              Description
812
              Default
813
            
814
          
815
          
816
            
817
              topic
818
              String
819
              Which command to provide help for.
820
              All commands
821
            
822
          
823
        
824
      
825
    
826
    
827
      Description
828
      
829
The help command displays information about the available
830
RedBoot commands.  If a topic is given, then the display
831
is restricted to information about that specific command.
832
      
833
      
834
If the command has sub-commands, e.g. fis, then the topic
835
specific display will print additional information about the available sub-commands.
836
special (ICMP) packets to a specific host. These packets should be automatically
837
returned by that host. The command will indicate how many of these round-trips
838
were successfully completed.
839
      
840
    
841
    
842
      Examples
843
      
844
Show generic help.  Note that the contents of this display will depend on the various configuration
845
options for RedBoot when it was built.
846
847
RedBoot> help
848
Manage aliases kept in FLASH memory
849
   alias name [value]
850
Manage machine caches
851
   cache [ON | OFF]
852
Display/switch console channel
853
   channel [-1|<channel number>]
854
Compute a 32bit checksum [POSIX algorithm] for a range of memory
855
   cksum -b <location> -l <length>
856
Display (hex dump) a range of memory
857
   dump -b <location> [-l <length>] [-s] [-1|-2|-4]
858
Manage FLASH images
859
   fis {cmds}
860
Manage configuration kept in FLASH memory
861
   fconfig [-i] [-l] [-n] [-f] [-d] | [-d] nickname [value]
862
Execute code at a location
863
   go [-w <timeout>] [entry]
864
Uncompress GZIP compressed data
865
   gunzip -s <location> -d <location>
866
Help about help?
867
   help [<topic>]
868
Read I/O location
869
   iopeek [-b <location>] [-1|2|4]
870
Write I/O location
871
   iopoke [-b <location>] [-1|2|4] -v <value>
872
Set/change IP addresses
873
   ip_address [-l <local_ip_address>[/<mask_length>]] [-h <server_address>]
874
Load a file
875
   load [-r] [-v] [-d] [-h <host>] [-m {TFTP | HTTP | {x|y}MODEM -c <channel_number>}]
876
        [-f <flash_address>] [-b <base_address>]  <file_name>
877
Compare two blocks of memory
878
   mcmp -s <location> -d <location> -l <length> [-1|-2|-4]
879
Fill a block of memory with a pattern
880
   mfill -b <location> -l <length> -p <pattern>
881
  [-1|-2|-4]
882
Network connectivity test
883
   ping [-v] [-n <count>] [-l <length>] [-t <timeout>] [-r <rate>]
884
        [-i <IP_addr>] -h <IP_addr>
885
Reset the system
886
   reset
887
Display RedBoot version information
888
   version
889
Display (hex dump) a range of memory
890
   x -b <location> [-l <length>] [-s] [-1|-2|-4]
891
892
      
893
      
894
Help about a command with sub-commands.
895
896
RedBoot> help fis
897
Manage FLASH images
898
   fis {cmds}
899
Create an image
900
  fis create -b <mem_base> -l <image_length> [-s <data_length>]
901
      [-f <flash_addr>] [-e <entry_point>] [-r <ram_addr>] [-n] <name>
902
Display an image from FLASH Image System [FIS]
903
  fis delete name
904
Erase FLASH contents
905
  fis erase -f <flash_addr> -l <length>
906
Display free [available] locations within FLASH Image System [FIS]
907
  fis free
908
Initialize FLASH Image System [FIS]
909
  fis init [-f]
910
Display contents of FLASH Image System [FIS]
911
  fis list [-c] [-d]
912
Load image from FLASH Image System [FIS] into RAM
913
  fis load [-d] [-b <memory_load_address>] [-c] name
914
Write raw data directly to FLASH
915
  fis write -f <flash_addr> -b <mem_base> -l <image_length>
916
917
      
918
    
919
  
920
 
921
922
  
923
  
924
    iopeek
925
    Read I/O location
926
  
927
  
928
    
929
      iopeek
930
      -b  location
931
      
932
        -1
933
        -2
934
        -4
935
      
936
    
937
  
938
  
939
    Arguments
940
    
941
      
942
        
943
        
944
        
945
        
946
        
947
          
948
            Name
949
            Type
950
            Description
951
            Default
952
          
953
        
954
        
955
          
956
            -b location
957
            I/O address
958
            I/O Location.
959
            none
960
          
961
          
962
            -1
963
            
964
            Access a one byte (8 bit) I/O location.
965
            -1
966
          
967
          
968
            -2
969
            
970
            Access a two byte (16 bit) I/O location.
971
            -1
972
          
973
          
974
            -4
975
            
976
            Access a one word (32 bit) I/O location.
977
            -1
978
          
979
        
980
      
981
    
982
  
983
  
984
    Description
985
      Reads a value from the I/O address space.
986
  
987
  
988
    Examples
989
    
990
Examine 8 bit value at I/O location 0x3F8.
991
992
RedBoot> iopeek -b 0x3f8
993
0x03f8 = 0x30
994
995
996
     
997
Examine 32 bit value at I/O location 0x3f8.
998
999
RedBoot> iopeek -b 0x3f8 -4
1000
0x03f8 = 0x03c10065
1001
1002
1003
    
1004
  
1005
 
1006
1007
  
1008
  
1009
    iopoke
1010
    Write I/O location
1011
  
1012
  
1013
    
1014
      iopoke
1015
      -b  location
1016
      
1017
        -1
1018
        -2
1019
        -4
1020
      
1021
      -v  value
1022
    
1023
  
1024
  
1025
    Arguments
1026
    
1027
      
1028
        
1029
        
1030
        
1031
        
1032
        
1033
          
1034
            Name
1035
            Type
1036
            Description
1037
            Default
1038
          
1039
        
1040
        
1041
          
1042
            -b location
1043
            I/O address
1044
            I/O Location.
1045
            none
1046
          
1047
          
1048
            -1
1049
            
1050
            Access a one byte (8 bit) I/O location.
1051
Only the 8 least significant bits of value will be used
1052
            -1
1053
          
1054
          
1055
            -2
1056
            
1057
            Access a two byte (16 bit) I/O location.
1058
Only the 16 least significant bits of value will be used
1059
            -1
1060
          
1061
          
1062
            -4
1063
            
1064
            Access a one word (32 bit) I/O location.
1065
            -1
1066
          
1067
        
1068
      
1069
    
1070
  
1071
  
1072
    Description
1073
      Writes a value to the I/O address space.
1074
  
1075
  
1076
    Examples
1077
    
1078
Write 0x0123 to 16 bit I/O location 0x200.
1079
1080
RedBoot> iopoke -b 0x200 -v 0x123 -2
1081
1082
1083
    
1084
  
1085
 
1086
1087
  
1088
  
1089
    gunzip
1090
    Uncompress GZIP compressed data
1091
  
1092
  
1093
    
1094
      gunzip
1095
      -s source
1096
          -d destination
1097
    
1098
  
1099
  
1100
    Arguments
1101
    
1102
      
1103
        
1104
        
1105
        
1106
        
1107
        
1108
          
1109
            Name
1110
            Type
1111
            Description
1112
            Default
1113
          
1114
        
1115
        
1116
              
1117
                -s location1
1118
                Memory address
1119
                Location of GZIP compressed data to uncompress.
1120
                Value set by last load or fis load command.
1121
              
1122
              
1123
                -d location2
1124
                Memory address
1125
                Destination to write uncompressed data to.
1126
                none
1127
              
1128
        
1129
      
1130
    
1131
  
1132
  
1133
    Description
1134
      Uncompress GZIP compressed data.
1135
  
1136
  
1137
    Examples
1138
    
1139
Uncompress data at location 0x100000 to 0x200000.
1140
1141
RedBoot> gunzip -s 0x100000 -d 0x200000
1142
Decompressed 38804 bytes
1143
1144
1145
    
1146
  
1147
 
1148
1149
  
1150
    
1151
      ip_address
1152
      Set IP addresses
1153
    
1154
    
1155
      
1156
        ip_address
1157
        -b
1158
        -l  local_IP_address
1159
        /netmask_length 
1160
        -h  server_IP_address
1161
        -d 
1162
DNS_server_IP_address
1163
      
1164
    
1165
    
1166
      Arguments
1167
      
1168
        
1169
          
1170
          
1171
          
1172
          
1173
          
1174
            
1175
              Name
1176
              Type
1177
              Description
1178
              Default
1179
            
1180
          
1181
          
1182
            
1183
              -b
1184
              Boolean
1185
              Obtain an IP address using BOOTP or DHCP.
1186
              don't use BOOTP/DHCP
1187
            
1188
            
1189
              -l 
1190
local_IP_address
1191
              Numeric IP or DNS name
1192
              The IP address RedBoot should use, optionally
1193
with the network mask length.
1194
              none
1195
            
1196
            
1197
              -h 
1198
server_IP_address
1199
              Numeric IP or DNS name
1200
              The IP address of the default server. Use of this
1201
address is implied by other commands, such as
1202
load.
1203
              none
1204
            
1205
            
1206
              -d 
1207
DNS_server_IP_address
1208
              Numeric IP or DNS name
1209
              The IP address of the DNS server.
1210
              none
1211
            
1212
          
1213
        
1214
      
1215
    
1216
    
1217
      Description
1218
      The ip_address command is used to show and/or change the basic IP
1219
addresses used by RedBoot. IP addresses may be given as numeric
1220
values, e.g. 192.168.1.67, or as symbolic names such as www.redhat.com
1221
if DNS support is enabled.
1222
      
1223
      
1224
The  option is used to cause the target to perform a bootp or dhcp negotiation to get an IP address.
1225
      
1226
      
1227
The  option is used to set the IP address used by
1228
the target device. The network mask length can also be specified
1229
      
1230
      
1231
The  option is used to set the default server
1232
address, such as is used by the load command.
1233
      
1234
      
1235
The  option is used to set the default DNS server
1236
address which is used for resolving symbolic network addresses. Note
1237
that an address of 0.0.0.0 will disable DNS lookups.
1238
      
1239
    
1240
    
1241
      Examples
1242
      
1243
Display the current network settings.
1244
1245
RedBoot> ip_address
1246
IP: 192.168.1.31, Default server: 192.168.1.101, DNS server IP: 0.0.0.0, DNS domain name:
1247
1248
1249
1250
Change the DNS server address.
1251
1252
RedBoot> ip_address -d 192.168.1.101
1253
IP: 192.168.1.31, Default server: 192.168.1.101, DNS server IP: 192.168.1.101, DNS domain name:
1254
1255
1256
1257
Change the DNS domain name.
1258
1259
RedBoot> ip_address -D example.com
1260
IP: 192.168.1.31, Default server: 192.168.1.101, DNS server IP: 192.168.1.101, DNS domain name: example.com
1261
1262
1263
1264
Change the default server address.
1265
1266
RedBoot> ip_address -h 192.168.1.104
1267
IP: 192.168.1.31, Default server: 192.168.1.104, DNS server IP: 192.168.1.101, DNS domain name:
1268
1269
1270
1271
Set the IP address to something new, with a 255.255.255.0 netmask
1272
1273
RedBoot> ip_address -l 192.168.1.32/24
1274
IP: 192.168.1.32, Default server: 192.168.1.104, DNS server IP: 192.168.1.101, DNS domain name:
1275
1276
      
1277
    
1278
  
1279
 
1280
1281
  
1282
    
1283
      load
1284
      Download programs or data to the RedBoot platform
1285
    
1286
    
1287
      
1288
        load
1289
        -v 
1290
        -d 
1291
        -r 
1292
        -m
1293
          
1294
            
1295
              xmodem
1296
              ymodem
1297
              tftp
1298
              disk
1299
              file
1300
            
1301
          
1302
        
1303
        -h  server_IP_address
1304
        -f  location
1305
        -b  location
1306
        -c  channel
1307
        file_name
1308
      
1309
    
1310
    
1311
      Arguments
1312
      
1313
        
1314
          
1315
          
1316
          
1317
          
1318
          
1319
            
1320
              Name
1321
              Type
1322
              Description
1323
              Default
1324
            
1325
          
1326
          
1327
            
1328
              -v
1329
              Boolean
1330
              Display a small spinner (indicator)
1331
while the download is in  progress. This is just for feedback, especially
1332
during long loads. Note that the option has no effect when using a
1333
serial download method since it would interfere with the protocol.
1334
              quiet
1335
            
1336
            
1337
              -d
1338
              Boolean
1339
              Decompress data stream (gzip data)
1340
              non-compressed data
1341
            
1342
            
1343
              -r
1344
              Boolean
1345
              Raw (or binary) data. -b or -f must be used
1346
              formatted (S-records, ELF image, etc)
1347
            
1348
            
1349
              -m tftp
1350
              
1351
              Transfer data via the network using TFTP protocol.
1352
              TFTP
1353
            
1354
            
1355
              -m http
1356
              
1357
              Transfer data via the network using HTTP protocol.
1358
              TFTP
1359
            
1360
            
1361
              -m xmodem
1362
              
1363
              Transfer data using X-modem protocol.
1364
              TFTP
1365
            
1366
            
1367
              -m ymodem
1368
              
1369
              Transfer data using Y-modem protocol.
1370
              TFTP
1371
            
1372
            
1373
              -m disk
1374
              
1375
              Transfer data from a local disk.
1376
              TFTP
1377
            
1378
            
1379
              -m file
1380
              
1381
              Transfer data from a local filesystem such as
1382
                     JFFS2 or FAT.
1383
              TFTP
1384
            
1385
            
1386
              -h server_IP_address
1387
              Numeric IP or DNS name
1388
              The IP address of the TFTP or HTTP server.
1389
              Value set by ip_address
1390
            
1391
            
1392
              -b location
1393
              Number
1394
              Address in memory to load the data.  Formatted data streams will have
1395
an implied load address which this option may override.
1396
              Depends on data format
1397
            
1398
            
1399
              -f location
1400
              Number
1401
              Address in flash to load the data.  Formatted data streams will have
1402
an implied load address which this option may override.
1403
              Depends on data format
1404
            
1405
            
1406
              -c channel
1407
              Number
1408
              Specify which I/O channel to
1409
use for download.  This option is only supported when using either
1410
xmodem or ymodem protocol.
1411
              Depends on data format
1412
            
1413
            
1414
              file_name
1415
              String
1416
              The name of the file on the TFTP or HTTP
1417
server or the local disk. Details of how this is specified for TFTP are
1418
host-specific. For local disk files, the name must be in disk:
1419
filename format. The disk portion must match one of the disk
1420
names listed by the disks command.
1421
              None
1422
            
1423
          
1424
        
1425
      
1426
    
1427
    
1428
      Description
1429
      
1430
The load command is used to download
1431
data into the target system. Data can be loaded via a network connection,
1432
using either the TFTP or HTTP protocols, or the console serial connection using the
1433
X/Y modem protocol. Files may also be loaded directly from local filesystems
1434
on disk. Files to be downloaded may either be executable images in
1435
ELF executable program format,
1436
Motorola S-record (SREC)
1437
format or raw data.
1438
      
1439
      
1440
        Note
1441
        
1442
When downloading an ELF image, RedBoot will forcibly terminate the transfer
1443
once all the relevant (loadable) ELF sections have been received. This
1444
behaviour reduces download time when using the X/Y modem protocol
1445
over a slow serial connection. However, the terminal emulator may report
1446
that the transfer is incomplete and has been cancelled. Such messages
1447
are normal and may be ignored.
1448
        
1449
      
1450
    
1451
    
1452
      Examples
1453
      
1454
Download a Motorola S-record (or ELF) image, using TFTP, specifying the
1455
base memory address.
1456
1457
RedBoot> load redboot.ROM -b 0x8c400000
1458
Address offset = 0x0c400000
1459
Entry point: 0x80000000, address range: 0x80000000-0x8000fe80
1460
1461
      
1462
      
1463
Download a Motorola S-record (or ELF) image, using HTTP, specifying the
1464
host [server] address.
1465
1466
RedBoot> load /redboot.ROM -m HTTP -h 192.168.1.104
1467
Address offset = 0x0c400000
1468
Entry point: 0x80000000, address range: 0x80000000-0x8000fe80
1469
1470
      
1471
      
1472
Load an ELF file from /dev/hda1 which should be an EXT2 partition:
1473
1474
RedBoot> load -mode disk hda1:hello.elf
1475
Entry point: 0x00020000, address range: 0x00020000-0x0002fd70
1476
1477
      
1478
      
1479
Load an ELF file from /jffs2/applications which should be a directory
1480
in a JFFS2 filesystem:
1481
1482
RedBoot> load -mode file /jffs2/applications/hello.elf
1483
Entry point: 0x00020000, address range: 0x00020000-0x0002fd70
1484
1485
      
1486
    
1487
  
1488
 
1489
1490
  
1491
    
1492
      mcmp
1493
      Compare two segments of memory
1494
    
1495
    
1496
      
1497
        mcmp
1498
            -s location1
1499
            -d location1
1500
            -l length
1501
          
1502
            -1
1503
            -2
1504
            -4
1505
          
1506
      
1507
    
1508
    
1509
      Arguments
1510
      
1511
        
1512
          
1513
          
1514
          
1515
          
1516
          
1517
            
1518
              Name
1519
              Type
1520
              Description
1521
              Default
1522
            
1523
          
1524
          
1525
            
1526
              -s location1
1527
              Memory address
1528
              Location for start of data.
1529
              none
1530
            
1531
            
1532
              -d location2
1533
              Memory address
1534
              Location for start of data.
1535
              none
1536
            
1537
            
1538
              -l length
1539
              Number
1540
              Length of data
1541
              none
1542
            
1543
            
1544
              -1
1545
              
1546
              Access one byte (8 bits) at a time.
1547
Only the least significant 8 bits of the pattern will be used.
1548
              -4
1549
            
1550
            
1551
              -2
1552
              
1553
              Access two bytes (16 bits) at a time.
1554
Only the least significant 16 bits of the pattern will be used.
1555
              -4
1556
            
1557
            
1558
              -4
1559
              
1560
              Access one word (32 bits) at a time.
1561
              -4
1562
            
1563
          
1564
        
1565
      
1566
    
1567
    
1568
      Description
1569
        Compares the contents of two ranges of memory (RAM, ROM, FLASH, etc).
1570
    
1571
    
1572
      Examples
1573
      
1574
Compare two buffers which match (result is quiet).
1575
1576
RedBoot> mfill -b 0x100000 -l 0x20 -p 0xDEADFACE
1577
RedBoot> mfill -b 0x200000 -l 0x20 -p 0xDEADFACE
1578
RedBoot> mcmp -s 0x100000 -d 0x200000 -l 0x20
1579
1580
1581
1582
Compare two buffers which don't match.
1583
Only the first non-matching element is displayed.
1584
1585
RedBoot> mcmp -s 0x100000 -d 0x200000 -l 0x30 -2
1586
Buffers don't match - 0x00100020=0x6000, 0x00200020=0x0000
1587
1588
      
1589
    
1590
  
1591
 
1592
1593
  
1594
    
1595
      mcopy
1596
      Copy memory
1597
    
1598
    
1599
      
1600
        mcopy
1601
            -s source
1602
            -d destination
1603
            -l length
1604
          
1605
            -1
1606
            -2
1607
            -4
1608
          
1609
      
1610
    
1611
    
1612
      Arguments
1613
      
1614
        
1615
          
1616
          
1617
          
1618
          
1619
          
1620
            
1621
              Name
1622
              Type
1623
              Description
1624
              Default
1625
            
1626
          
1627
          
1628
            
1629
              -s location1
1630
              Memory address
1631
              Location of data to copy.
1632
              none
1633
            
1634
            
1635
              -d location2
1636
              Memory address
1637
              Destination for copied data.
1638
              none
1639
            
1640
            
1641
              -l length
1642
              Number
1643
              Length of data
1644
              none
1645
            
1646
            
1647
              -1
1648
              
1649
              Copy one byte (8 bits) at a time.
1650
              -4
1651
            
1652
            
1653
              -2
1654
              
1655
              Copy two bytes (16 bits) at a time.
1656
              -4
1657
            
1658
            
1659
              -4
1660
              
1661
              Copy one word (32 bits) at a time.
1662
              -4
1663
            
1664
          
1665
        
1666
      
1667
    
1668
    
1669
      Description
1670
        Copies memory (RAM, ROM, FLASH, etc) from one area to another.
1671
    
1672
    
1673
      Examples
1674
      
1675
Copy 16 bits at a time.
1676
1677
RedBoot> mfill -b 0x100000 -l 0x20 -2 -p 0xDEAD
1678
RedBoot> mfill -b 0x200000 -l 0x20 -2 -p 0x0
1679
RedBoot> dump  -b 0x200000 -l 0x20 -2
1680
00200000: 0000 0000 0000 0000  0000 0000 0000 0000
1681
00200010: 0000 0000 0000 0000  0000 0000 0000 0000
1682
RedBoot> mcopy -s 0x100000 -d 0x200000 -2 -l 0x20
1683
RedBoot> dump  -b 0x200000 -l 0x20 -2
1684
00200000: DEAD DEAD DEAD DEAD  DEAD DEAD DEAD DEAD
1685
00200010: DEAD DEAD DEAD DEAD  DEAD DEAD DEAD DEAD
1686
1687
1688
    
1689
  
1690
 
1691
1692
  
1693
    
1694
      mfill
1695
      Fill RAM with a specified pattern
1696
    
1697
    
1698
      
1699
        mfill
1700
            -b location
1701
            -l length
1702
            -p value
1703
          
1704
            -1
1705
            -2
1706
            -4
1707
          
1708
      
1709
    
1710
    
1711
      Arguments
1712
      
1713
        
1714
          
1715
          
1716
          
1717
          
1718
          
1719
            
1720
              Name
1721
              Type
1722
              Description
1723
              Default
1724
            
1725
          
1726
          
1727
            
1728
              -b location
1729
              Memory address
1730
              Location in memory for start of data.
1731
              none
1732
            
1733
            
1734
              -l length
1735
              Number
1736
              Length of data
1737
              none
1738
            
1739
            
1740
              -p pattern
1741
              Number
1742
              Data value to fill with
1743
              0
1744
            
1745
            
1746
              -1
1747
              
1748
              Access one byte (8 bits) at a time.
1749
Only the least significant 8 bits of the pattern will be used.
1750
              -4
1751
            
1752
            
1753
              -2
1754
              
1755
              Access two bytes (16 bits) at a time.
1756
Only the least significant 16 bits of the pattern will be used.
1757
              -4
1758
            
1759
            
1760
              -4
1761
              
1762
              Access one word (32 bits) at a time.
1763
              -4
1764
            
1765
          
1766
        
1767
      
1768
    
1769
    
1770
      Description
1771
        Fills a range of memory with the given pattern.
1772
    
1773
    
1774
      Examples
1775
      
1776
Fill a buffer with zeros.
1777
1778
RedBoot> x -b 0x100000 -l 0x20
1779
00100000: 00 3E 00 06 00 06 00 06  00 00 00 00 00 00 00 00  |.>..............|
1780
00100010: 00 00 00 78 00 70 00 60  00 60 00 60 00 60 00 60  |...x.p.`.`.`.`.`|
1781
RedBoot> mfill -b 0x100000 -l 0x20
1782
RedBoot> x -b 0x100000 -l 0x20
1783
00100000: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
1784
00100010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
1785
1786
1787
1788
Fill a buffer with a pattern.
1789
1790
RedBoot> mfill -b 0x100000 -l 0x20 -p 0xDEADFACE
1791
RedBoot> x -b 0x100000 -l 0x20
1792
00100000: CE FA AD DE CE FA AD DE  CE FA AD DE CE FA AD DE  |................|
1793
00100010: CE FA AD DE CE FA AD DE  CE FA AD DE CE FA AD DE  |................|
1794
1795
      
1796
    
1797
  
1798
 
1799
1800
  
1801
    
1802
      ping
1803
      Verify network connectivity
1804
    
1805
    
1806
      
1807
        ping
1808
        -v 
1809
        -i  local_IP_address
1810
        -l  length
1811
        -n  count
1812
        -t  timeout
1813
        -r  rate
1814
        -h  server_IP_address
1815
      
1816
    
1817
    
1818
      Arguments
1819
      
1820
        
1821
          
1822
          
1823
          
1824
          
1825
          
1826
            
1827
              Name
1828
              Type
1829
              Description
1830
              Default
1831
            
1832
          
1833
          
1834
            
1835
              -v
1836
              Boolean
1837
              Be verbose, displaying information about each packet sent.
1838
              quiet
1839
            
1840
            
1841
              -n local_IP_address
1842
              Number
1843
              Controls the number of packets to be sent.
1844
              10
1845
            
1846
            
1847
              -i local_IP_address
1848
              Numeric IP or DNS name
1849
              The IP address RedBoot should use.
1850
              Value set by ip_address
1851
            
1852
            
1853
              -h server_IP_address
1854
              Numeric IP or DNS name
1855
              The IP address of the host to contact.
1856
              none
1857
            
1858
            
1859
              -l length
1860
              Number
1861
              The length of the ICMP data payload.
1862
              64
1863
            
1864
            
1865
              -r length
1866
              Number
1867
              How fast to deliver packets, i.e. time between successive sends.
1868
A value of 0 sends packets as quickly as possible.
1869
              1000ms (1 second)
1870
            
1871
            
1872
              -t length
1873
              Number
1874
              How long to wait for the round-trip to complete, specified in milliseconds.
1875
              1000ms (1 second)
1876
            
1877
          
1878
        
1879
      
1880
    
1881
    
1882
      Description
1883
      
1884
The ping command checks the connectivity of the local network by sending
1885
special (ICMP) packets to a specific host. These packets should be automatically
1886
returned by that host. The command will indicate how many of these round-trips
1887
were successfully completed.
1888
      
1889
    
1890
    
1891
      Examples
1892
      
1893
Test connectivity to host 192.168.1.101.
1894
1895
RedBoot> ping -h 192.168.1.101
1896
Network PING - from 192.168.1.31 to 192.168.1.101
1897
PING - received 10 of 10 expected
1898
1899
1900
1901
Test connectivity to host 192.168.1.101, with verbose reporting.
1902
1903
RedBoot> ping -h 192.168.1.101 -v -n 4
1904
Network PING - from 192.168.1.31 to 192.168.1.101
1905
 seq: 1, time: 1 (ticks)
1906
 seq: 2, time: 1 (ticks)
1907
 seq: 3, time: 1 (ticks)
1908
 seq: 4, time: 1 (ticks)
1909
PING - received 10 of 10 expected
1910
1911
1912
1913
1914
Test connectivity to a non-existent host (192.168.1.109).
1915
RedBoot> ping -h 192.168.1.109 -v -n 4
1916
PING: Cannot reach server '192.168.1.109' (192.168.1.109)
1917
1918
      
1919
    
1920
  
1921
 
1922
1923
  
1924
    
1925
      reset
1926
      Reset the device
1927
    
1928
    
1929
      
1930
        reset
1931
      
1932
    
1933
    
1934
      Arguments
1935
None
1936
    
1937
    
1938
      Description
1939
      
1940
The reset command causes the target platform to be reset.
1941
Where possible (hardware support permitting), this will be
1942
equivalent to a power-on reset condition.
1943
      
1944
    
1945
    
1946
      Examples
1947
      
1948
Reset the platform.
1949
1950
RedBoot> reset
1951
... Resetting.+... Waiting for network card: .
1952
Socket Communications, Inc: Low Power Ethernet CF Revision C 5V/3.3V 08/27/98
1953
Ethernet eth0: MAC address 00:c0:1b:00:ba:28
1954
IP: 192.168.1.29, Default server: 192.168.1.101
1955
 
1956
RedBoot(tm) bootstrap and debug environment [ROM]
1957
Non-certified release, version UNKNOWN - built 10:41:41, May 14 2002
1958
 
1959
Platform: Compaq iPAQ Pocket PC (StrongARM 1110)
1960
Copyright (C) 2000, 2001, 2002, Free Software Foundation, Inc.
1961
 
1962
RAM: 0x00000000-0x01fc0000, 0x00014748-0x01f71000 available
1963
FLASH: 0x50000000 - 0x51000000, 64 blocks of 0x00040000 bytes each.
1964
RedBoot>
1965
1966
      
1967
    
1968
  
1969
 
1970
 
1971
1972
  
1973
    
1974
      version
1975
      Display RedBoot version information
1976
    
1977
    
1978
      
1979
        version
1980
      
1981
    
1982
    
1983
      Arguments
1984
      None
1985
    
1986
    
1987
      Description
1988
      The version command simply displays version information about RedBoot.
1989
      
1990
    
1991
    
1992
      Examples
1993
      
1994
Display RedBoot's version.
1995
1996
RedBoot> version
1997
RedBoot(tm) debug environment - built 09:12:03, Feb 12 2001
1998
Platform: XYZ (PowerPC 860)
1999
Copyright (C) 2000, 2001, Free Software Foundation, Inc.
2000
RAM: 0x00000000-0x00400000
2001
2002
      
2003
    
2004
  
2005
 
2006
2007
 
2008
2009
Flash Image System (FIS)
2010
commandsflash image system
2011
flash image system commands
2012
commandsfis
2013
fis commandsIf the platform
2014
has flash memory, RedBoot can use this for image storage. Executable images,
2015
as well as data, can be stored in flash in a simple file store. The 
2016
fis command (fis is short for Flash Image System) is used to
2017
manipulate and maintain flash images.
2018
2019
 
2020
2021
 
2022
  
2023
    
2024
      fis init
2025
      Initialize Flash Image System (FIS)
2026
    
2027
    
2028
      
2029
        fis init
2030
        -f
2031
      
2032
    
2033
    
2034
      Arguments
2035
      
2036
        
2037
          
2038
          
2039
          
2040
          
2041
          
2042
            
2043
              Name
2044
              Type
2045
              Description
2046
              Default
2047
            
2048
          
2049
          
2050
            
2051
              -f
2052
              
2053
              All blocks of flash memory (except for the boot
2054
              blocks) will be erased as part of the initialization
2055
              procedure.
2056
              
2057
            
2058
          
2059
        
2060
      
2061
    
2062
    
2063
      Description
2064
 
2065
       This command is used to initialize the Flash Image System
2066
       (FIS). It should normally only be executed once, when RedBoot
2067
       is first installed on the hardware. If the reserved images or
2068
       their sizes in the FIS change, due to a different configuration
2069
       of RedBoot being used, it may be necessary to issue the command
2070
       again though.
2071
 
2072
        Subsequent executions will cause loss of
2073
       previously stored information in the FIS.
2074
     
2075
    
2076
    
2077
      Examples
2078
      
2079
Initialize the FIS directory.
2080
2081
RedBoot> fis init
2082
About to initialize [format] flash image system - continue (y/n)? y
2083
*** Initialize FLASH Image System
2084
    Warning: device contents not erased, some blocks may not be usable
2085
... Erase from 0x00070000-0x00080000: .
2086
... Program from 0x0606f000-0x0607f000 at 0x00070000: .
2087
2088
2089
 
2090
      
2091
Initialize the FIS directory and all of flash memory, except for first
2092
blocks of the flash where the boot monitor resides.
2093
2094
RedBoot> fis init -f
2095
About to initialize [format] flash image system - continue (y/n)? y
2096
*** Initialize FLASH Image System
2097
... Erase from 0x00020000-0x00070000: .....
2098
... Erase from 0x00080000-0x00080000:
2099
... Erase from 0x00070000-0x00080000: .
2100
... Program from 0x0606f000-0x0607f000 at 0x00070000: .
2101
2102
2103
2104
2105
 
2106
2107
  
2108
    
2109
      fis list
2110
      List Flash Image System directory
2111
    
2112
    
2113
      
2114
        fis list
2115
        -c
2116
        -d
2117
      
2118
    
2119
    
2120
      Arguments
2121
      
2122
        
2123
          
2124
          
2125
          
2126
          
2127
          
2128
            
2129
              Name
2130
              Type
2131
              Description
2132
              Default
2133
            
2134
          
2135
          
2136
            
2137
              -c
2138
              
2139
              Show image checksum instead of memory address
2140
              (column Mem addr is
2141
              replaced by
2142
              Checksum).
2143
              
2144
            
2145
            
2146
              -d
2147
              
2148
              Show image data length instead of amount of flash
2149
              occupied by image (column
2150
              Length is replaced by
2151
              Datalen).
2152
              
2153
            
2154
          
2155
        
2156
      
2157
    
2158
    
2159
      Description
2160
This command lists the images currently available in the FIS. Certain
2161
images used by RedBoot have fixed names and have reserved slots in the
2162
FIS (these can be seen after using the fis init
2163
command). Other images can be manipulated by the user.
2164
The images are listed in the order they appear in the FIS
2165
directory, not by name or creation time.
2166
    
2167
 
2168
    
2169
      Examples
2170
      
2171
List the FIS directory.
2172
2173
RedBoot> fis list
2174
Name              FLASH addr  Mem addr    Length      Entry point
2175
RedBoot           0x00000000  0x00000000  0x00020000  0x00000000
2176
RedBoot config    0x0007F000  0x0007F000  0x00001000  0x00000000
2177
FIS directory     0x00070000  0x00070000  0x0000F000  0x00000000
2178
2179
2180
 
2181
      
2182
List the FIS directory, with image checksums substituted for
2183
memory addresses.
2184
2185
RedBoot> fis list -c
2186
Name              FLASH addr  Checksum    Length      Entry point
2187
RedBoot           0x00000000  0x00000000  0x00020000  0x00000000
2188
RedBoot config    0x0007F000  0x00000000  0x00001000  0x00000000
2189
FIS directory     0x00070000  0x00000000  0x0000F000  0x00000000
2190
2191
2192
 
2193
      
2194
List the FIS directory with image data lengths substituted for flash
2195
block reservation lengths.
2196
2197
RedBoot> fis list -d
2198
Name              FLASH addr  Mem addr    Datalen     Entry point
2199
RedBoot           0x00000000  0x00000000  0x00000000  0x00000000
2200
RedBoot config    0x0007F000  0x0007F000  0x00000000  0x00000000
2201
FIS directory     0x00070000  0x00070000  0x00000000  0x00000000
2202
2203
2204
2205
2206
 
2207
2208
 
2209
  
2210
    
2211
      fis free
2212
      Free flash image
2213
    
2214
    
2215
      
2216
        fis free
2217
      
2218
    
2219
    
2220
      Description
2221
 
2222
 
2223
This command shows which areas of the flash memory are currently
2224
not in use. When a block contains non-erased contents it is considered
2225
in use. Since it is possible to force an image to be loaded at a
2226
particular flash location, this command can be used to check whether
2227
that location is in use by any other image.
2228
 
2229
There is currently no cross-checking between actual flash
2230
contents and the FIS directory, which mans that there could be a
2231
segment of flash which is not erased that does not correspond to a
2232
named image, or vice-versa.
2233
    
2234
 
2235
    
2236
      Examples
2237
      
2238
Show free flash areas.
2239
2240
RedBoot> fis free
2241
        0xA0040000 .. 0xA07C0000
2242
        0xA0840000 .. 0xA0FC0000
2243
2244
2245
2246
 
2247
2248
 
2249
  
2250
    
2251
      fis create
2252
      Create flash image
2253
    
2254
    
2255
      
2256
        fis create
2257
        -b  data address
2258
        -l  length
2259
        -f  flash address
2260
        -e  entry
2261
        -r  relocation address
2262
        -s  data length
2263
        -n 
2264
        name
2265
      
2266
    
2267
    
2268
      Arguments
2269
      
2270
        
2271
          
2272
          
2273
          
2274
          
2275
          
2276
            
2277
              Name
2278
              Type
2279
              Description
2280
              Default
2281
            
2282
          
2283
          
2284
            
2285
              -b
2286
              Number
2287
              Address of data to be written to the flash.
2288
              Address of last loaded file. If not set in a load
2289
              operation, it must be specified.
2290
            
2291
            
2292
              -l
2293
              Number
2294
              Length of flash area to occupy. If specified, and
2295
              the named image already exists, the length must match
2296
              the value in the FIS directory.
2297
              Length of area reserved in FIS directory if the
2298
              image already exists, or the length of the last loaded
2299
              file. If neither are set, it must be specified.
2300
            
2301
            
2302
              -f
2303
              Number
2304
              Address of flash area to occopy.
2305
              The address of an area reserved in the FIS
2306
              directory for extant images. Otherwise the first free block
2307
              which is large enough will be used.
2308
            
2309
            
2310
              -e
2311
              Number
2312
              Entry address for an executable image, used by
2313
              the fis load command.
2314
              The entry address of last loaded file.
2315
            
2316
            
2317
              -r
2318
              Number
2319
              Address where the image should be relocated to by
2320
              the fis load command. This is only
2321
              relevant for images that will be loaded with the
2322
              fis load command.
2323
              The load address of the last loaded file.
2324
            
2325
            
2326
              -s
2327
              Number
2328
              Actual length of data written to image. This is
2329
              used to control the range over which the checksum is
2330
              made.
2331
              It defaults to the length of the last loaded
2332
              file.
2333
            
2334
            
2335
              -n
2336
              
2337
              When set, no image data will be written to the
2338
              flash. Only the FIS directory will be updated.
2339
              
2340
            
2341
            
2342
              name
2343
              String
2344
              Name of flash image.
2345
              
2346
            
2347
          
2348
        
2349
      
2350
    
2351
    
2352
      Description
2353
This command creates an image in the FIS directory. The data for the
2354
image must exist in RAM memory before the copy. Typically, you would use the
2355
RedBoot load command to load file into
2356
RAM and then the fis create command to write
2357
it to a flash image.
2358
2359
 
2360
    
2361
      Examples
2362
      Trying to create an extant image, will require the action
2363
      to be verified.
2364
2365
RedBoot> fis create RedBoot -f 0xa0000000 -b 0x8c400000 -l 0x20000
2366
An image named ‘RedBoot’ exists - continue (y/n)? n
2367
2368
2369
 
2370
Create a new test image, let the command find a suitable place.
2371
2372
RedBoot> fis create junk -b 0x8c400000 -l 0x20000
2373
... Erase from 0xa0040000-0xa0060000: .
2374
... Program from 0x8c400000-0x8c420000 at 0xa0040000: .
2375
... Erase from 0xa0fe0000-0xa1000000: .
2376
... Program from 0x8c7d0000-0x8c7f0000 at 0xa0fe0000: .
2377
2378
2379
 
2380
Update the RedBoot[RAM] image.
2381
2382
RedBoot> load redboot_RAM.img
2383
Entry point: 0x060213c0, address range: 0x06020000-0x06036cc0
2384
RedBoot> fis create RedBoot[RAM]
2385
No memory address set.
2386
An image named 'RedBoot[RAM]' exists - continue (y/n)? y
2387
* CAUTION * about to program 'RedBoot[RAM]'
2388
            at 0x00020000..0x00036cbf from 0x06020000 - continue (y/n)? y
2389
... Erase from 0x00020000-0x00040000: ..
2390
... Program from 0x06020000-0x06036cc0 at 0x00020000: ..
2391
... Erase from 0x00070000-0x00080000: .
2392
... Program from 0x0606f000-0x0607f000 at 0x00070000: .
2393
2394
2395
2396
2397
 
2398
2399
 
2400
  
2401
    
2402
      fis load
2403
      Load flash image
2404
    
2405
    
2406
      
2407
        fis load
2408
        -b  load address
2409
        -c 
2410
        -d 
2411
        name
2412
      
2413
    
2414
    
2415
      Arguments
2416
      
2417
        
2418
          
2419
          
2420
          
2421
          
2422
          
2423
            
2424
              Name
2425
              Type
2426
              Description
2427
              Default
2428
            
2429
          
2430
          
2431
            
2432
              -b
2433
              Number
2434
              Address the image should be loaded to. Executable
2435
              images normally load at the location to which the file
2436
              was linked. This option allows the image to be loaded to
2437
              a specific memory location, possibly overriding any
2438
              assumed location.
2439
              If not specified, the address associated with the
2440
              image in the FIS directory will be used.
2441
            
2442
            
2443
              -c
2444
              
2445
              Compute and print the checksum of the image data
2446
              after it has been loaded into memory.
2447
            
2448
            
2449
              -d
2450
              
2451
              Decompress gzipped image while copying it from
2452
              flash to RAM.
2453
            
2454
            
2455
              name
2456
              String
2457
              The name of the file, as shown in the FIS
2458
              directory.
2459
            
2460
          
2461
        
2462
      
2463
    
2464
    
2465
      Description
2466
This command is used to transfer an image from flash memory to RAM.
2467
2468
Once the image has been loaded, it may be executed using the
2469
go command.
2470
2471
 
2472
    
2473
      Examples
2474
Load and run RedBoot[RAM] image.
2475
2476
RedBoot> fis load RedBoot[RAM]
2477
RedBoot> go
2478
2479
2480
2481
2482
 
2483
2484
 
2485
  
2486
    
2487
      fis delete
2488
      Delete flash image
2489
    
2490
    
2491
      
2492
        fis delete
2493
        name
2494
      
2495
    
2496
    
2497
      Arguments
2498
      
2499
        
2500
          
2501
          
2502
          
2503
          
2504
          
2505
            
2506
              Name
2507
              Type
2508
              Description
2509
              Default
2510
            
2511
          
2512
          
2513
            
2514
              name
2515
              Number
2516
              Name of image that should be deleted.
2517
              
2518
            
2519
          
2520
        
2521
      
2522
    
2523
    
2524
      Description
2525
This command removes an image from the FIS. The flash memory will be
2526
erased as part of the execution of this command, as well as removal of the
2527
name from the FIS directory.
2528
 
2529
Certain images are reserved by RedBoot and cannot be deleted.
2530
RedBoot will issue a warning if this is attempted.
2531
2532
    
2533
      Examples
2534
2535
2536
RedBoot> fis list
2537
Name              flash addr   Mem addr    Length    Entry point
2538
RedBoot          0xA0000000   0xA0000000  0x020000  0x80000000
2539
RedBoot config   0xA0FC0000   0xA0FC0000  0x020000  0x00000000
2540
FIS directory    0xA0FE0000   0xA0FE0000  0x020000  0x00000000
2541
junk             0xA0040000   0x8C400000  0x020000  0x80000000
2542
RedBoot> fis delete junk
2543
Delete image ‘junk’ - continue (y/n)? y
2544
... Erase from 0xa0040000-0xa0060000: .
2545
... Erase from 0xa0fe0000-0xa1000000: .
2546
... Program from 0x8c7d0000-0x8c7f0000 at 0xa0fe0000: .
2547
2548
2549
2550
2551
 
2552
2553
 
2554
  
2555
    
2556
      fis lock
2557
      Lock flash area
2558
    
2559
    
2560
      
2561
        fis lock
2562
        -f flash_address
2563
        -l length
2564
      
2565
    
2566
    
2567
      Arguments
2568
      
2569
        
2570
          
2571
          
2572
          
2573
          
2574
          
2575
            
2576
              Name
2577
              Type
2578
              Description
2579
              Default
2580
            
2581
          
2582
          
2583
            
2584
              flash_address
2585
              Number
2586
              Address of area to be locked.
2587
              
2588
            
2589
            
2590
              length
2591
              Number
2592
              Length of area to be locked.
2593
              
2594
            
2595
          
2596
        
2597
      
2598
    
2599
    
2600
      Description
2601
This command is used to write-protect (lock) a portion of flash memory,
2602
to prevent accidental overwriting of images. In order to make any modifications
2603
to the flash, a matching fis unlock command must be
2604
issued. This command is optional and will only be provided on hardware
2605
which can support write-protection of the flash space.
2606
2607
Depending on the system, attempting to write to write-protected flash
2608
may generate errors or warnings, or be benignly quiet.  
2609
2610
2611
 
2612
    
2613
      Examples
2614
Lock an area of the flash
2615
2616
RedBoot> fis lock -f 0xa0040000 -l 0x20000
2617
... Lock from 0xa0040000-0xa0060000: .
2618
2619
2620
2621
2622
 
2623
2624
 
2625
  
2626
    
2627
      fis unlock
2628
      Unlock flash area
2629
    
2630
    
2631
      
2632
        fis unlock
2633
        -f flash_address
2634
        -l length
2635
      
2636
    
2637
    
2638
      Arguments
2639
      
2640
        
2641
          
2642
          
2643
          
2644
          
2645
          
2646
            
2647
              Name
2648
              Type
2649
              Description
2650
              Default
2651
            
2652
          
2653
          
2654
            
2655
              flash_address
2656
              Number
2657
              Address of area to be unlocked.
2658
              
2659
            
2660
            
2661
              length
2662
              Number
2663
              Length of area to be unlocked.
2664
              
2665
            
2666
          
2667
        
2668
      
2669
    
2670
    
2671
      Description
2672
This command is used to unlock a portion of flash memory forcibly, allowing
2673
it to be updated. It must be issued for regions which have been locked before
2674
the FIS can reuse those portions of flash.
2675
2676
Some flash devices power up in locked state and always need to
2677
be manually unlocked before they can be written to.
2678
2679
 
2680
    
2681
      Examples
2682
Unlock an area of the flash
2683
2684
RedBoot> fis unlock -f 0xa0040000 -l 0x20000
2685
... Unlock from 0xa0040000-0xa0060000: .
2686
2687
2688
2689
2690
 
2691
2692
 
2693
  
2694
    
2695
      fis erase
2696
      Erase flash area
2697
    
2698
    
2699
      
2700
        fis erase
2701
        -f flash_address
2702
        -l length
2703
      
2704
    
2705
    
2706
      Arguments
2707
      
2708
        
2709
          
2710
          
2711
          
2712
          
2713
          
2714
            
2715
              Name
2716
              Type
2717
              Description
2718
              Default
2719
            
2720
          
2721
          
2722
            
2723
              flash_address
2724
              Number
2725
              Address of area to be erased.
2726
              
2727
            
2728
            
2729
              length
2730
              Number
2731
              Length of area to be erased.
2732
              
2733
            
2734
          
2735
        
2736
      
2737
    
2738
    
2739
      Description
2740
This command is used to erase a portion of flash memory forcibly. There
2741
is no cross-checking to ensure that the area being erased does not correspond
2742
to an existing image.
2743
2744
 
2745
    
2746
      Examples
2747
Erase an area of the flash
2748
2749
RedBoot> fis erase -f 0xa0040000 -l 0x20000
2750
... Erase from 0xa0040000-0xa0060000: .
2751
2752
2753
2754
2755
 
2756
2757
 
2758
  
2759
    
2760
      fis write
2761
      Write flash area
2762
    
2763
    
2764
      
2765
        fis write
2766
        -b mem_address
2767
        -l length
2768
        -f flash_address
2769
      
2770
    
2771
    
2772
      Arguments
2773
      
2774
        
2775
          
2776
          
2777
          
2778
          
2779
          
2780
            
2781
              Name
2782
              Type
2783
              Description
2784
              Default
2785
            
2786
          
2787
          
2788
            
2789
              mem_address
2790
              Number
2791
              Address of data to be written to flash.
2792
              
2793
            
2794
            
2795
              length
2796
              Number
2797
              Length of data to be writtem.
2798
              
2799
            
2800
            
2801
              flash_address
2802
              Number
2803
              Address of flash to write to.
2804
              
2805
            
2806
          
2807
        
2808
      
2809
    
2810
    
2811
      Description
2812
This command is used to write data from memory to flash. There
2813
is no cross-checking to ensure that the area being written to does not
2814
correspond to an existing image.
2815
2816
 
2817
    
2818
      Examples
2819
Write an area of data to the flash
2820
2821
RedBoot> fis write -b 0x0606f000 -l 0x1000 -f 0x00020000
2822
* CAUTION * about to program FLASH
2823
            at 0x00020000..0x0002ffff from 0x0606f000 - continue (y/n)? y
2824
... Erase from 0x00020000-0x00030000: .
2825
... Program from 0x0606f000-0x0607f000 at 0x00020000: .
2826
2827
2828
2829
2830
2831
 
2832
2833
Filesystem Interface
2834
 
2835
2836
commandsfilesystem access
2837
filesystem commands
2838
commandsfs
2839
fs commands
2840
 
2841
If the platform has access to secondary storage, then RedBoot may be
2842
able to access a filesystem stored on this device. RedBoot can access
2843
FAT filesystems stored on IDE disks or CompactFlash devices and can
2844
use JFFS2 filesystems stored in FLASH memory. The
2845
fs command is used to manipulate files on
2846
filesystems. Applications may be loaded into memory using the
2847
file mode of the load command.
2848
2849
 
2850
2851
 
2852
2853
  
2854
    fs info
2855
    Print filesystem information
2856
  
2857
  
2858
    
2859
      fs info
2860
    
2861
  
2862
  
2863
    Arguments
2864
      
2865
        The command takes no arguments.
2866
      
2867
  
2868
  
2869
    Description
2870
This command prints information about the filesystems that are
2871
available. Three lists are produced. The first is a list of the
2872
filsystem implementations available in RedBoot; names from this list
2873
may be used in the -t option to the fs
2874
mount command. The second list describes the block devices
2875
that are available for mounting a filesystem; names from this list may
2876
be used in the -d option to the fs
2877
mount command. The last list describes the filesystems that
2878
are already mounted.
2879
2880
2881
 
2882
  
2883
    Examples
2884
    
2885
2886
RedBoot> fs info
2887
Filesystems available:
2888
ramfs
2889
jffs2
2890
 
2891
Devices available:
2892
/dev/flash1
2893
 
2894
Mounted filesystems:
2895
         Device Filesystem Mounted on
2896
    <undefined>      ramfs /
2897
    /dev/flash1      jffs2 /flash
2898
RedBoot>
2899
    
2900
  
2901
2902
 
2903
2904
 
2905
2906
  
2907
    fs mount
2908
    Mount a filesystem
2909
  
2910
  
2911
    
2912
      fs mount
2913
      -d device
2914
      -t fstype
2915
      mountpoint
2916
    
2917
  
2918
  
2919
    Arguments
2920
    
2921
      
2922
        
2923
        
2924
        
2925
        
2926
        
2927
          
2928
            Name
2929
            Type
2930
            Description
2931
            Default
2932
          
2933
        
2934
        
2935
          
2936
            device
2937
            Number
2938
            Device containing filsystem to mount.
2939
            undefined
2940
          
2941
          
2942
            fstype
2943
            Number
2944
            Filesystem type.
2945
            
2946
          
2947
            
2948
              mountpoint
2949
              String
2950
              Pathname for filesystem root.
2951
              /
2952
            
2953
        
2954
      
2955
    
2956
  
2957
  
2958
    Description
2959
This command is used make a filesystem available for access with
2960
the filesystem access commands. Three things need to be defined to do
2961
this. First, the name of the device on which the filesystem is stored
2962
needs to be given to the -d option. Secondly,
2963
the type of filesystem it is needs to be given to the
2964
-t option. Finally, the pathname by which the
2965
new filesystem will be accessed needs to be supplied. Following a
2966
successful mount, the root of the filesystem will be accessible
2967
at the mountpoint.
2968
2969
2970
 
2971
  
2972
    Examples
2973
Mount a JFF2 partititon:
2974
2975
RedBoot> fs info
2976
Filesystems available:
2977
ramfs
2978
jffs2
2979
 
2980
Devices available:
2981
/dev/flash1
2982
 
2983
Mounted filesystems:
2984
         Device Filesystem Mounted on
2985
    <undefined>      ramfs /
2986
RedBoot> fs mount -d /dev/flash1 -t jffs2 /flash
2987
RedBoot> fs info
2988
Filesystems available:
2989
ramfs
2990
jffs2
2991
 
2992
Devices available:
2993
/dev/flash1
2994
 
2995
Mounted filesystems:
2996
         Device Filesystem Mounted on
2997
    <undefined>      ramfs /
2998
    /dev/flash1      jffs2 /flash
2999
RedBoot>
3000
3001
    
3002
  
3003
3004
 
3005
3006
 
3007
3008
  
3009
    fs umount
3010
    Unmount filesystem
3011
  
3012
  
3013
    
3014
      fs umount
3015
      mountpoint
3016
    
3017
  
3018
  
3019
    Arguments
3020
    
3021
      
3022
        
3023
        
3024
        
3025
        
3026
        
3027
          
3028
            Name
3029
            Type
3030
            Description
3031
            Default
3032
          
3033
        
3034
        
3035
            
3036
              mountpoint
3037
              String
3038
              Mountpoint of filesystem to unmount.
3039
              
3040
            
3041
        
3042
      
3043
    
3044
  
3045
  
3046
    Description
3047
This command removes a filesystem from being accessible using
3048
the filesystem commands. The single argument needs to be the
3049
mountpoint that was used when mounting the filesystem. This command
3050
will fail if the current directory is currently within the filesystem
3051
to be unmounted.
3052
3053
3054
 
3055
  
3056
    Examples
3057
Unmount a JFF2 partititon:
3058
3059
RedBoot> fs info
3060
Filesystems available:
3061
ramfs
3062
jffs2
3063
 
3064
Devices available:
3065
/dev/flash1
3066
 
3067
Mounted filesystems:
3068
         Device Filesystem Mounted on
3069
    <undefined>      ramfs /
3070
    /dev/flash1      jffs2 /flash
3071
RedBoot> fs umount /flash
3072
RedBoot> fs info
3073
Filesystems available:
3074
ramfs
3075
jffs2
3076
 
3077
Devices available:
3078
/dev/flash1
3079
 
3080
Mounted filesystems:
3081
         Device Filesystem Mounted on
3082
    <undefined>      ramfs /
3083
RedBoot>
3084
3085
    
3086
  
3087
3088
 
3089
3090
 
3091
3092
  
3093
    fs cd
3094
    Change filesystem directory
3095
  
3096
  
3097
    
3098
      fs cd
3099
      directory
3100
    
3101
  
3102
  
3103
    Arguments
3104
    
3105
      
3106
        
3107
        
3108
        
3109
        
3110
        
3111
          
3112
            Name
3113
            Type
3114
            Description
3115
            Default
3116
          
3117
        
3118
        
3119
            
3120
              directory
3121
              String
3122
              Pathname to directory to change to.
3123
              Root directory
3124
            
3125
        
3126
      
3127
    
3128
  
3129
  
3130
    Description
3131
This command changes the current filesystem
3132
directory. Subsequent filesystem commands will be executed in the new
3133
directory. If no argument is given, then the current directory is set
3134
back to the root of the filesystem name space.
3135
3136
3137
 
3138
  
3139
    Examples
3140
    Change current directory:
3141
3142
RedBoot> fs list
3143
212416 d---------  3 size    128 .
3144
212416 d---------  3 size    128 ..
3145
211392 d---------  2 size     96 tests
3146
210368 ----------  1 size   4096 image
3147
RedBoot> fs cd tests
3148
RedBoot> fs list
3149
211392 d---------  2 size     96 .
3150
212416 d---------  3 size    128 ..
3151
205760 ----------  1 size  16384 test1
3152
RedBoot>
3153
3154
    
3155
  
3156
3157
 
3158
3159
 
3160
3161
  
3162
    fs mkdir
3163
    Create filesystem directory
3164
  
3165
  
3166
    
3167
      fs mkdir
3168
      directory
3169
    
3170
  
3171
  
3172
    Arguments
3173
    
3174
      
3175
        
3176
        
3177
        
3178
        
3179
        
3180
          
3181
            Name
3182
            Type
3183
            Description
3184
            Default
3185
          
3186
        
3187
        
3188
            
3189
              directory
3190
              String
3191
              Pathname to directory to delete.
3192
              
3193
            
3194
        
3195
      
3196
    
3197
  
3198
  
3199
    Description
3200
This command creates (makes) a directory in the filesystem.
3201
3202
3203
 
3204
  
3205
    Examples
3206
    Create directory:
3207
3208
RedBoot> fs list
3209
212416 d---------  2 size    128 .
3210
212416 d---------  2 size    128 ..
3211
210368 ----------  1 size   4096 image
3212
RedBoot> fs mkdir tests
3213
RedBoot> fs list
3214
212416 d---------  3 size    128 .
3215
212416 d---------  3 size    128 ..
3216
211392 d---------  2 size     64 tests
3217
210368 ----------  1 size   4096 image
3218
RedBoot>
3219
3220
    
3221
  
3222
3223
 
3224
3225
 
3226
3227
  
3228
    fs deldir
3229
    Delete filesystem directory
3230
  
3231
  
3232
    
3233
      fs deldir
3234
      directory
3235
    
3236
  
3237
  
3238
    Arguments
3239
    
3240
      
3241
        
3242
        
3243
        
3244
        
3245
        
3246
          
3247
            Name
3248
            Type
3249
            Description
3250
            Default
3251
          
3252
        
3253
        
3254
            
3255
              directory
3256
              String
3257
              Pathname to directory to delete.
3258
              
3259
            
3260
        
3261
      
3262
    
3263
  
3264
  
3265
    Description
3266
This command deletes a directory from the filesystem. If the
3267
directory contains files or other directories then this command will
3268
fail.
3269
3270
3271
 
3272
  
3273
    Examples
3274
    Delete directory:
3275
3276
RedBoot> fs list
3277
212416 d---------  3 size    128 .
3278
212416 d---------  3 size    128 ..
3279
211392 d---------  2 size     96 tests
3280
210368 ----------  1 size   4096 image
3281
RedBoot> fs deldir tests
3282
RedBoot> fs list
3283
212416 d---------  2 size    128 .
3284
212416 d---------  2 size    128 ..
3285
210368 ----------  1 size   4096 image
3286
RedBoot>
3287
3288
    
3289
  
3290
3291
 
3292
3293
 
3294
3295
  
3296
    fs del
3297
    Delete file
3298
  
3299
  
3300
    
3301
      fs del
3302
      file
3303
    
3304
  
3305
  
3306
    Arguments
3307
    
3308
      
3309
        
3310
        
3311
        
3312
        
3313
        
3314
          
3315
            Name
3316
            Type
3317
            Description
3318
            Default
3319
          
3320
        
3321
        
3322
            
3323
              file
3324
              String
3325
              Pathname of file to delete.
3326
              
3327
            
3328
        
3329
      
3330
    
3331
  
3332
  
3333
    Description
3334
This command deletes a file from the filesystem.
3335
3336
3337
 
3338
  
3339
    Examples
3340
    Change current directory:
3341
3342
RedBoot> fs list tests
3343
211392 d---------  2 size     96 .
3344
212416 d---------  3 size    128 ..
3345
205760 ----------  1 size  16384 test1
3346
RedBoot> fs del tests/test1
3347
RedBoot> fs list tests
3348
211392 d---------  2 size     96 .
3349
212416 d---------  3 size    128 ..
3350
RedBoot>
3351
3352
    
3353
  
3354
3355
 
3356
3357
 
3358
3359
  
3360
    fs move
3361
    Move file
3362
  
3363
  
3364
    
3365
      fs move
3366
      source
3367
      dest
3368
    
3369
  
3370
  
3371
    Arguments
3372
    
3373
      
3374
        
3375
        
3376
        
3377
        
3378
        
3379
          
3380
            Name
3381
            Type
3382
            Description
3383
            Default
3384
          
3385
        
3386
        
3387
            
3388
              source
3389
              String
3390
              Pathname of file to move.
3391
              
3392
            
3393
            
3394
              dest
3395
              String
3396
              Pathname to new file location.
3397
              
3398
            
3399
        
3400
      
3401
    
3402
  
3403
  
3404
    Description
3405
This command moves a file within a filesystem. This command will
3406
fail if the destination file already exists, or is in a different
3407
filesystem.
3408
3409
3410
 
3411
  
3412
    Examples
3413
    Rename a file:
3414
3415
RedBoot> fs list tests
3416
211392 d---------  2 size     96 .
3417
212416 d---------  3 size    128 ..
3418
205760 ----------  1 size  12288 test1
3419
RedBoot> fs move tests/test1 tests/test2
3420
RedBoot> fs list tests
3421
211392 d---------  2 size    128 .
3422
212416 d---------  3 size    128 ..
3423
205760 ----------  1 size  12288 test2
3424
RedBoot>
3425
3426
    
3427
  
3428
3429
 
3430
3431
 
3432
3433
  
3434
    fs list
3435
    List filesystem directory
3436
  
3437
  
3438
    
3439
      fs list
3440
      directory
3441
    
3442
  
3443
  
3444
    Arguments
3445
    
3446
      
3447
        
3448
        
3449
        
3450
        
3451
        
3452
          
3453
            Name
3454
            Type
3455
            Description
3456
            Default
3457
          
3458
        
3459
        
3460
            
3461
              directory
3462
              String
3463
              Pathname to directory to list.
3464
              Current directory
3465
            
3466
        
3467
      
3468
    
3469
  
3470
  
3471
    Description
3472
This command prints a list of the contents of the named
3473
directory. Each line of the listing starts with the file's inode
3474
number, which is its address in the filesystem. Following is a set of
3475
UNIX-like access flags, the first character of this will be a
3476
”d“ if this entry is a directory. The third item indicates
3477
the number of links to the file. Following this is the size of the
3478
file in bytes and the last item is its name.
3479
3480
3481
 
3482
  
3483
    Examples
3484
    List the current directory:
3485
3486
RedBoot> fs list
3487
212416 d---------  3 size    128 .
3488
212416 d---------  3 size    128 ..
3489
211392 ----------  1 size   4096 image
3490
206784 d---------  2 size     96 tests
3491
RedBoot>
3492
3493
    
3494
3495
List a subdirectory:
3496
3497
RedBoot> fs list tests
3498
206784 d---------  2 size     96 .
3499
212416 d---------  3 size    128 ..
3500
205760 ----------  1 size  16384 test1
3501
RedBoot>
3502
3503
3504
  
3505
3506
 
3507
3508
 
3509
3510
  
3511
    fs write
3512
    Write to filesystem
3513
  
3514
  
3515
    
3516
      fs write
3517
      -b mem_address
3518
      -l length
3519
      name
3520
    
3521
  
3522
  
3523
    Arguments
3524
    
3525
      
3526
        
3527
        
3528
        
3529
        
3530
        
3531
          
3532
            Name
3533
            Type
3534
            Description
3535
            Default
3536
          
3537
        
3538
        
3539
          
3540
            mem_address
3541
            Number
3542
            Address of data to be written to flash.
3543
            Address of last loaded file. If not set by a load
3544
            operation it must be specified.
3545
          
3546
          
3547
            length
3548
            Number
3549
            Length of data to be written.
3550
            Length of last loaded file.
3551
          
3552
            
3553
              name
3554
              String
3555
              Name of file to create.
3556
              
3557
            
3558
        
3559
      
3560
    
3561
  
3562
  
3563
    Description
3564
This command is used to write data from memory to a file. If the
3565
file does not exist it will be created. If it does exist, then it will
3566
be overwritten with the new contents.
3567
3568
 
3569
  
3570
    Examples
3571
Write an area of data to a file
3572
3573
RedBoot> fs write -b 0x0606f000 -l 0x1000 image
3574
RedBoot> fs list
3575
212416 d---------  3 size    128 .
3576
212416 d---------  3 size    128 ..
3577
211392 ----------  1 size   4096 image
3578
206784 d---------  2 size     96 tests
3579
RedBoot>
3580
3581
    
3582
  
3583
3584
 
3585
 
3586
 
3587
3588
 
3589
 
3590
3591
Persistent State Flash-based Configuration and Control
3592
persistent state flash-based configuration and control
3593
flash-based configuration and control
3594
configuration and control
3595
flash-based
3596
RedBoot provides flash management support for storage in the flash memory
3597
of multiple executable images and of non-volatile information such as IP addresses
3598
and other network information.
3599
RedBoot on platforms that support flash based configuration information
3600
will report the following message the first time that RedBoot is booted on
3601
the target:
3602
flash configuration checksum error or invalid key
3603
This error can be ignored if no flash based configuration is desired,
3604
or can be silenced by running the fconfig
3605
command as described below. At this point you may also wish to run the 
3606
fis init command. See other fis commands in .
3607
3608
Certain control and configuration information used by RedBoot can be
3609
stored in flash. 
3610
The details of what information is maintained in flash differ, based
3611
on the platform and the configuration. However, the basic operation used to
3612
maintain this information is the same. Using the fconfig -l
3613
 command, the information may be displayed and/or changed.
3614
3615
If the optional flag -i is specified,
3616
then the configuration database will be reset to its default
3617
state. This is also needed the first time RedBoot is installed on the
3618
target, or when updating to a newer RedBoot with different
3619
configuration keys.
3620
3621
If the optional flag -l is specified,
3622
the configuration data is simply listed. Otherwise, each configuration parameter
3623
will be displayed and you are given a chance to change it. The entire value
3624
must be typed - typing just carriage return will leave a value unchanged.
3625
Boolean values may be entered using the first letter (t
3626
for true, f for false). At any time the editing
3627
process may be stopped simply by entering a period (.) on the line. Entering
3628
the caret (^) moves the editing back to the previous item. See “RedBoot
3629
Editing Commands”, . 
3630
If any changes are made in the configuration, then the updated data
3631
will be written back to flash after getting acknowledgment from the user.
3632
3633
3634
If the optional flag -n is specified
3635
(with or without -l) then “nicknames”
3636
of the entries are used.  These are shorter and less descriptive than
3637
“full” names.  The full name may also be displayed by adding the
3638
-f flag.
3639
The reason for telling you nicknames is that a quick way to set a single
3640
entry is provided, using the format
3641
3642
  RedBoot> fconfig nickname value
3643
3644
If no
3645
value is supplied, the command will list and prompt for only that entry.
3646
If a value is supplied, then the entry will be set to that value.  You will
3647
be prompted whether to write the new information into flash if any change
3648
was made.  For example
3649
3650
  RedBoot> fconfig -l -n
3651
  boot_script: false
3652
  bootp: false
3653
  bootp_my_ip: 10.16.19.176
3654
  bootp_server_ip: 10.16.19.66
3655
  dns_ip: 10.16.19.1
3656
  gdb_port: 9000
3657
  net_debug: false
3658
  RedBoot> fconfig bootp_my_ip 10.16.19.177
3659
  bootp_my_ip: 10.16.19.176 Setting to 10.16.19.177
3660
  Update RedBoot non-volatile configuration - continue (y/n)? y
3661
  ... Unlock from 0x507c0000-0x507e0000: .
3662
  ... Erase from 0x507c0000-0x507e0000: .
3663
  ... Program from 0x0000a8d0-0x0000acd0 at 0x507c0000: .
3664
  ... Lock from 0x507c0000-0x507e0000: .
3665
  RedBoot>
3666
3667
3668
Additionally, nicknames can be used like aliases via the format %{nickname}.
3669
This allows the values stored by fconfig to be used
3670
directly by scripts and commands.
3671
3672
Depending on how your terminal program is connected and its
3673
capabilities, you might find that you are unable to use line-editing to
3674
delete the ‘old’ value when using the default behaviour of
3675
fconfig nickname or just
3676
plain fconfig, as shown in this example:
3677
3678
RedBoot> fco bootp
3679
bootp: false_
3680
3681
The user deletes the word “false;&rdquo and enters “true”
3682
so the display looks like this:
3683
3684
RedBoot> fco bootp
3685
bootp: true
3686
Update RedBoot non-volatile configuration - continue (y/n)? y
3687
... Unlock from ...
3688
RedBoot> _
3689
3690
3691
To edit when you cannot backspace, use the optional flag
3692
-d (for “dumb terminal”)
3693
to provide a simpler interface thus:
3694
3695
RedBoot> fco -d bootp
3696
bootp: false ? _
3697
3698
and you enter the value in the obvious manner thus:
3699
3700
RedBoot> fco -d bootp
3701
bootp: false ? true
3702
Update RedBoot non-volatile configuration - continue (y/n)? y
3703
... Unlock from ...
3704
RedBoot> _
3705
3706
3707
One item which is always present in the configuration data is the ability
3708
to execute a script at boot time. A sequence of RedBoot commands can be entered
3709
which will be executed when the system starts up. Optionally, a time-out period
3710
can be provided which allows the user to abort the startup script and proceed
3711
with normal command processing from the console.     
3712
3713
RedBoot> fconfig -l
3714
Run script at boot: false
3715
Use BOOTP for network configuration: false
3716
Local IP address: 192.168.1.29
3717
Default server IP address: 192.168.1.101
3718
DNS server IP address: 192.168.1.1
3719
DNS domain name: example.com
3720
GDB connection port: 9000
3721
Network debug at boot time: false
3722
3723
The following example sets a boot script and then shows it running.
3724
    
3725
3726
3727
RedBoot> fconfig
3728
Run script at boot: false t
3729
      Boot script:
3730
Enter script, terminate with empty line
3731
>> fi li
3732
    Boot script timeout: 0 10
3733
Use BOOTP for network configuration: false .
3734
Update RedBoot non-volatile configuration - continue (y/n)? y
3735
... Erase from 0xa0fc0000-0xa0fe0000: .
3736
... Program from 0x8c021f60-0x8c022360 at 0xa0fc0000: .
3737
RedBoot>
3738
RedBoot(tm) debug environment - built 08:22:24, Aug 23 2000
3739
Copyright (C) 2000, Free Software Foundation, Inc.
3740
 
3741
 
3742
RAM: 0x8c000000-0x8c800000
3743
flash: 0xa0000000 - 0xa1000000, 128 blocks of 0x00020000 bytes ea.
3744
Socket Communications, Inc: Low Power Ethernet CF Revision C \
3745
5V/3.3V 08/27/98 IP: 192.168.1.29, Default server: 192.168.1.101 \
3746
== Executing boot script in 10 seconds - enter ^C to abort
3747
RedBoot> fi li
3748
Name              flash addr   Mem addr    Length    Entry point
3749
RedBoot          0xA0000000   0xA0000000  0x020000  0x80000000
3750
RedBoot config   0xA0FC0000   0xA0FC0000  0x020000  0x00000000
3751
FIS directory    0xA0FE0000   0xA0FE0000  0x020000  0x00000000
3752
RedBoot>
3753
3754
3755
NOTE
3756
The bold characters above indicate where something was entered on the
3757
console. As you can see, the fi li command
3758
at the end came from the script,
3759
not the console. Once the script is executed, command processing reverts to
3760
the console. 
3761
3762
3763
NOTE
3764
3765
RedBoot supports the notion of a boot script timeout, i.e. a period of
3766
time that RedBoot waits before executing the boot time script.  This period
3767
is primarily to allow the possibility of canceling the script.  Since
3768
a timeout value of zero (0) seconds would never allow the script to
3769
be aborted or canceled, this value is not allowed.  If the timeout
3770
value is zero, then RedBoot will abort the script execution immediately.
3771
3772
3773
On many targets, RedBoot may be configured to run from ROM or it may be
3774
configured to run from RAM. Other configurations are also possible. All
3775
RedBoot configurations will execute the boot script, but in certain cases
3776
it may be desirable to limit the execution of certain script commands to
3777
one RedBoot configuration or the other. This can be accomplished by
3778
prepending {<startup type>} to the
3779
commands which should be executed only by the RedBoot configured for the
3780
specified startup type. The following boot script illustrates this concept
3781
by having the ROM based RedBoot load and run the RAM based RedBoot. The RAM
3782
based RedBoot will then list flash images.
3783
3784
RedBoot> fco
3785
Run script at boot: false t
3786
Boot script:
3787
Enter script, terminate with empty line
3788
>> {ROM}fis load RedBoot[RAM]
3789
>> {ROM}go
3790
>> {RAM}fis li
3791
>>
3792
Boot script timeout (1000ms resolution): 2
3793
Use BOOTP for network configuration: false
3794
 ...
3795
Update RedBoot non-volatile configuration - continue (y/n)? y
3796
... Unlock from 0x007c0000-0x007e0000: .
3797
... Erase from 0x007c0000-0x007e0000: .
3798
... Program from 0xa0015030-0xa0016030 at 0x007df000: .
3799
... Lock from 0x007c0000-0x007e0000: .
3800
RedBoot> reset
3801
... Resetting.
3802
+Ethernet eth0: MAC address 00:80:4d:46:01:05
3803
IP: 192.168.1.153, Default server: 192.168.1.10
3804
 
3805
RedBoot(tm) bootstrap and debug environment [ROM]
3806
Red Hat certified release, version R1.xx - built 17:37:36, Aug 14 2001
3807
 
3808
Platform: IQ80310 (XScale)
3809
Copyright (C) 2000, 2001, Free Software Foundation, Inc.
3810
 
3811
RAM: 0xa0000000-0xa2000000, 0xa001b088-0xa1fdf000 available
3812
FLASH: 0x00000000 - 0x00800000, 64 blocks of 0x00020000 bytes each.
3813
== Executing boot script in 2.000 seconds - enter ^C to abort
3814
RedBoot> fis load RedBoot[RAM]
3815
RedBoot> go
3816
+Ethernet eth0: MAC address 00:80:4d:46:01:05
3817
IP: 192.168.1.153, Default server: 192.168.1.10
3818
 
3819
RedBoot(tm) bootstrap and debug environment [RAM]
3820
Red Hat certified release, version R1.xx - built 13:03:47, Aug 14 2001
3821
 
3822
Platform: IQ80310 (XScale)
3823
Copyright (C) 2000, 2001, Free Software Foundation, Inc.
3824
 
3825
RAM: 0xa0000000-0xa2000000, 0xa0057fe8-0xa1fdf000 available
3826
FLASH: 0x00000000 - 0x00800000, 64 blocks of 0x00020000 bytes each.
3827
== Executing boot script in 2.000 seconds - enter ^C to abort
3828
RedBoot> fis li
3829
Name              FLASH addr  Mem addr    Length      Entry point
3830
RedBoot           0x00000000  0x00000000  0x00040000  0x00002000
3831
RedBoot config    0x007DF000  0x007DF000  0x00001000  0x00000000
3832
FIS directory     0x007E0000  0x007E0000  0x00020000  0x00000000
3833
RedBoot>
3834
3835
3836
3837
Executing Programs from RedBoot
3838
executing programs
3839
RedBootexecuting programsOnce
3840
an image has been loaded into memory, either via the load
3841
 command or the fis load
3842
command, execution may be transfered to that image.
3843
  NOTE
3844
The image is assumed to be a stand-alone entity, as RedBoot gives the
3845
entire platform over to it. Typical examples would be an eCos application
3846
or a Linux kernel.
3847
3848
 
3849
 
3850
3851
  
3852
    
3853
      go
3854
      Execute a program
3855
    
3856
    
3857
      
3858
        go
3859
        -w  timeout
3860
        -c
3861
        -n
3862
         start_address
3863
      
3864
    
3865
    
3866
      Arguments
3867
      
3868
        
3869
          
3870
          
3871
          
3872
          
3873
          
3874
            
3875
              Name
3876
              Type
3877
              Description
3878
              Default
3879
            
3880
          
3881
          
3882
            
3883
              -w timeout
3884
              Number
3885
              How long to wait before starting execution.
3886
              0
3887
            
3888
            
3889
              -c
3890
              Boolean
3891
              Go with caches enabled.
3892
              caches off
3893
            
3894
            
3895
              -n
3896
              Boolean
3897
              Go with network interface stopped.
3898
              network enabled
3899
            
3900
            
3901
              start_address
3902
              Number
3903
              Address in memory to begin execution.
3904
              Value set by last load or fis load command.
3905
            
3906
          
3907
        
3908
      
3909
    
3910
    
3911
      Description
3912
      
3913
The go command causes RedBoot to give control of the target platform to
3914
another program.  This program must execute stand alone, e.g. an eCos
3915
application or a Linux kernel.
3916
      
3917
      
3918
If the -w option is used, RedBoot will print a message and then
3919
wait for a period of time before starting the execution.  This is
3920
most useful in a script, giving the user a chance to abort executing
3921
a program and move on in the script.
3922
      
3923
    
3924
    
3925
      Examples
3926
      
3927
Execute a program - no explicit output from RedBoot.
3928
3929
RedBoot> go 0x40040
3930
3931
      
3932
      
3933
Execute a program with a timeout.
3934
3935
RedBoot> go -w 10
3936
About to start execution at 0x00000000 - abort with ^C within 10 seconds
3937
^C
3938
RedBoot>
3939
3940
Note that the starting address was implied (0x00000000 in this example).
3941
The user is prompted that execution will commence in 10 seconds.  At
3942
anytime within that 10 seconds the user may type  Ctrl+C
3943
on the console and RedBoot will abort execution and return for the next
3944
command, either from a script or the console.
3945
      
3946
    
3947
  
3948
 
3949
3950
  
3951
    
3952
      exec
3953
      Execute a Linux kernel
3954
    
3955
    
3956
      
3957
        exec
3958
        -w  timeout
3959
        -r  ramdisk_address
3960
        -s  ramdisk_length
3961
        -b  load_address
3962
           -l  load_length
3963
        
3964
        -c  kernel_command_line
3965
         entry_point
3966
      
3967
    
3968
    
3969
      Arguments
3970
      
3971
        
3972
          
3973
          
3974
          
3975
          
3976
          
3977
            
3978
              Name
3979
              Type
3980
              Description
3981
              Default
3982
            
3983
          
3984
          
3985
            
3986
              -w timeout
3987
              Number
3988
              Time to wait before starting execution.
3989
              0
3990
            
3991
            
3992
              -r ramdisk_address
3993
              Number
3994
              Address in memory of "initrd"-style ramdisk - passed to Linux kernel.
3995
              None
3996
            
3997
            
3998
              -s ramdisk_length
3999
              Number
4000
              Length of ramdisk image - passed to Linux kernel.
4001
              None
4002
            
4003
            
4004
              -b load_address
4005
              Number
4006
              Address in memory of the Linux kernel image.
4007
              Value set by load or fis load
4008
            
4009
            
4010
              -l load_length
4011
              Number
4012
              Length of Linux kernel image.
4013
              none
4014
            
4015
            
4016
              -c kernel_command_line
4017
              String
4018
              Command line to pass to the Linux kernel.
4019
              None
4020
            
4021
            
4022
              -x
4023
              
4024
              Boot kernel with endianess opposite of RedBoot endianess.
4025
              Boot kernel with same endianess as RedBoot
4026
              
4027
            
4028
              entry_address
4029
              Number
4030
              Starting address for Linux kernel execution
4031
              Implied by architecture
4032
            
4033
          
4034
        
4035
      
4036
    
4037
    
4038
      Description
4039
      
4040
The exec command is used to execute a non-eCos application, typically a
4041
Linux kernel. Additional information may be passed to the kernel at startup
4042
time. This command is quite special (and unique from the go command) in
4043
that the program being executed may expect certain environmental setups, for
4044
example that the MMU is turned off, etc. 
4045
The Linux kernel expects to have been loaded to a particular memory
4046
location which is architecture dependent(0xC0008000 in the case of the SA1110).
4047
Since this memory is  used
4048
by RedBoot internally, it is not possible to load the kernel to that location
4049
directly. Thus the requirement for the "-b" option which tells the command
4050
where the kernel has been loaded. When the exec command runs, the image will
4051
be relocated to the appropriate location before being started. The "-r" and
4052
"-s" options are used to pass information to the kernel about where a statically
4053
loaded ramdisk (initrd) is located.
4054
The "-c" option can be used to pass textual "command line" information
4055
to the kernel.  If the command line data contains any punctuation (spaces,
4056
etc), then it must be quoted using the double-quote character '"'. If the
4057
quote character is required, it should be written as '\"'.
4058
      
4059
The "-x" option is optionally available on some bi-endian platforms. It is used to boot
4060
a kernel built with an endianess opposite of RedBoot.
4061
    
4062
    
4063
      Examples
4064
      
4065
Execute a Linux kernel, passing a command line, which needs relocation.
4066
The result from RedBoot is normally quiet, with the target platform being
4067
passed over to Linux immediately.
4068
4069
RedBoot> exec -b 0x100000 -l 0x80000 -c "noinitrd root=/dev/mtdblock3 console=ttySA0"
4070
4071
      
4072
      
4073
Execute a Linux kernel, default entry address and no relocation required, with a timeout.
4074
The  emphasized lines are output from the loaded kernel.
4075
4076
RedBoot> exec -c "console=ttyS0,38400 ip=dhcp nfsroot=/export/elfs-sh" -w 5
4077
Now booting linux kernel:
4078
Base address 0x8c001000 Entry 0x8c210000
4079
Cmdline : console=ttyS0,38400 ip=dhcp nfsroot=/export/elfs-sh
4080
About to start execution at 0x8x210000 - abort with ^C within 5 seconds
4081
4082
Linux version 2.4.10-pre6 (...) (gcc version 3.1-stdsh-010931) #3 Thu Sep 27 11:04:23 BST 2001
4083
4084
4085
      
4086
    
4087
  
4088
 
4089
4090

powered by: WebSVN 2.1.0

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