User manual
Linux Guide taskit GmbH
10000030: 02c0 21f0 0320 21f0 0380 21f0 beef dead ...! ..!...!....
base - print or set address offset
base [base address]
Outputs or sets the current base address. Offsets for all memory commands are calculated
from the base address. This option can be helpful when you need to access a certain
memory region repeatedly.
For example:
U-Boot> base
Base Address: 0x00000000
U-Boot> md 40 4
00000040: 21f00000 21f00000 21f171a4 21f1b85c ...!...!.q.!\..!
U-Boot> base 20800000
Base Address: 0x20800000
U-Boot> md 40 4
20800040: 33cc316c 52ccbbdc 73ccb3c6 7bcc269e l1.3...R...s.&.{
mm - memory modify (auto-incrementing)
md [.b, .w, .l] address
This command enables interactive modification of memory addresses. It shows the
address and its contents, and waits for user input. If you enter a hexadecimal number, this
value will be written to the corresponding memory address and the next address will
display. If you simply press the Enter key, no change is stored and the next address
displays. If you enter an invalid hexadecimal value (such as q), the command ends.
This command cannot be used to modify flash memory!
For example: Modifying SDRAM memory:
U-Boot> md 20000000
20000000: eeffeeff aabbf014 e59ff014 e59ff014 ................
U-Boot> mm.b 20000000
20000000: ff ? ab
20000001: ee ? ef
20000002: ff ? cd
20000003: ee ? ab
20000004: 14 ?
20000005: f0 ?
20000006: bb ? ef
20000007: aa ? cd
20000008: 14 ? q
U-Boot> md 20000000
20000000: abcdefab cdeff014 e59ff014 e59ff014 ................
mw - memory write (fill)
mw [.b, .w, .l] address value [count]
Writes value for count bytes (words) starting at address. You can use this command to
Page 54 of 65 Version 1.26 (2008-04-30)