User manual

U-Boot for MPL SBC
User Manual
2003 by MPL AG
17
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.3.25 md - memory display
Displays the memory contents on the given address.
Abbreviation:
md
=> help md
md [.b, .w, .l] address [# of objects]
- memory display
=>
Example:
Display 16 longs from address 0xFFC00000
=> md.l ffc00000 10
ffc00000: 27051956 65d6b450 3cbc2652 003738ef '..Ve..P<.&R.78.
ffc00010: 00000000 00000000 43450692 05070401 ........CE......
ffc00020: 6b65726e 656c2061 6e642069 6e697472 kernel and initr
ffc00030: 6420666f 72205049 50343035 00000000 d for PIP405....
=>
Display 16 words from address 0xFFC00000
=> md.w ffc00000 10
ffc00000: 2705 1956 65d6 b450 3cbc 2652 0037 38ef '..Ve..P<.&R.78.
ffc00010: 0000 0000 0000 0000 4345 0692 0507 0401 ........CE......
=>
Display 16 bytes from address 0xFFC00000
=> md.b ffc00000 10
ffc00000: 27 05 19 56 65 d6 b4 50 3c bc 26 52 00 37 38 ef '..Ve..P<.&R.78.
=>
3.3.26 mm - memory modify (auto-incrementing)
With the memory modify command you can modify a memory area. If you press RETURN when the command prompts,
the memory contents is unchanged. The command stops as soon you enter an other number than hexadecimal, like ‘.’.
Abbreviation: mm
=> help mm
mm [.b, .w, .l] address
- memory modify, auto increment address
=>
Example:
=> md.b 400000
00400000: 55 aa 30 31 65 d6 b4 50 3c bc 26 52 00 37 38 ef U.01e..P<.&R.78.
=> mm.b 400000
00400000: 55 ?
00400001: aa ? 55
00400002: 30 ? 31
00400003: 31 ? 32
00400004: 65 ? 33
00400005: d6 ? 34
00400006: b4 ? 35
00400007: 50 ? 36
00400008: 3c ?
00400009: bc ? 37
0040000a: 26 ? .
=> md.b 400000
00400000: 55 55 31 32 33 34 35 36 3c 37 26 52 00 37 38 ef UU123456<7&R.78.
=>
3.3.27 mtest - simple RAM test
This command executes a RAM test.
Abbreviation:
mt
=> help mtest
mtest [start [end [pattern]]]
- simple RAM read/write test
Example:
=> mtest 100000 400000
Testing 00100000 ... 00400000:
Pattern 0000000F Writing... Reading...
=>
Note: This test uses a destructive testing, which means that the tested memory contents will
be destroyed. Be careful not to overwrite used memory.