mem read
The
mem --read
command reads the
specified number of bytes starting at a specified memory address and writes the contents into
an output file.-a <address>
(Optional): Specifies the starting address (in hexadecimal). Default address is0x0
.-i <size>
: Specifies the size of memory read (in bytes).-o <file_name>
(Optional): Specifies the output file name. Default output file ismemread.out
.
To run the mem --read
command to read
256 bytes of data starting at memory address 0x0
, enter the
following:
$ xbutil mem --read -a 0x0 -i 256 -o read.out
This is an example output:
INFO: Found total 1 card(s), 1 are usable
INFO: Reading from single bank, 256 bytes from DDR address 0x4000000000
INFO: Read size 0x100 B. Total Read so far 0x100
INFO: Read data saved in file: read.out; Num of bytes: 256 bytes
INFO: xbutil mem succeeded.