mem read

The mem --readcommand reads the specified number of bytes starting at a specified memory address and writes the contents into an output file.
  • -a
    (Optional): Specifies the starting address (in hexadecimal). Default address is0x0.
  • -i : Specifies the size of memory read (in bytes).
  • -o (Optional): Specifies the output file name. Default output file ismemread.out.

To run themem --readcommand to read 256 bytes of data starting at memory address0x0, 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.