Specifications

=>
You can use the base command (short: ba) to print or set a "base address" that is used as address offset for
all memory commands; the default value of the base address is 0, so all addresses you enter are used
unmodified. However, when you repeatedly have to access a certain memory region (like the internal memory
of some embedded Power Architecture® processors) it can be very convenient to set the base address to the
start of this area and then use only the offsets:
=> base
Base Address: 0x00000000
=> md 0 0xc
00000000: ea00000e ea00000e ea00000e ea00000e ................
00000010: ea00000e ea00000e ea00000e ea00000e ................
00000020: 4ff48000 4ff48004 4ff48008 4ff4800c ...O...O...O...O
=> base 0x42000000
Base Address: 0x42000000
=> md 0 0xc
42000000: 00000001 00000001 00000001 00000001 ................
42000010: 00000000 00000000 00000001 00000801 ................
42000020: 00000367 00000000 00000000 00000000 g...............
=>
5.9.2.2. crc32 - checksum calculation
The crc32 command (short: crc) can be used to caculate a CRC32 checksum over a range of memory:
=> crc 0x42000004 0x3FC
CRC32 for 42000004 ... 420003ff ==> 1ec64665
=>
When used with 3 arguments, the command stores the calculated checksum at the given address:
=> crc 0x42000004 0x3FC 0x42000000
CRC32 for 42000004 ... 420003ff ==> 1ec64665
=> md 0x42000000 4
42000000: 1ec64665 00000001 00000001 00000001 eF..............
=>
As you can see, the CRC32 checksum was not only printed, but also stored at address 0x100000.
5.9.2.3. cmp - memory compare
=> help cmp
cmp - memory compare
Usage:
cmp [.b, .w, .l] addr1 addr2 count
=>
With the cmp command you can test of the contents of two memory areas is identical or not. The command
will either test the whole area as specified by the 3rd (length) argument, or stop at the first difference.
=> cmp 0x42000000 0x43000000 0x400
Total of 1024 word(s) were the same
=> md 0x42000000 0xc
42000000: 56190527 8daa7c80 dcea6a50 606e2100 '..V.|..Pj...!n`
42000010: 00800040 00800040 9de1110f 00020205 @...@...........
42000020: 756e694c 2e332d78 2d302e36 7478656e Linux-3.6.0-next
=> md 0x43000000 0xc
43000000: 56190527 8daa7c80 dcea6a50 606e2100 '..V.|..Pj...!n`
5.9.2.1. base - print or set address offset 45