mem write

The mem --write command writes a defined value to a specified memory location and size.
  • -a <address> (Optional): Specifies the starting address (in hexadecimal). Default address is 0x0.
  • -i <size>: Specifies the size of memory read (in bytes).
  • -e <pattern>: Specifies the pattern (in bytes) to write to memory.

To write the value 0xaa to 256 locations starting at memory address 0x0, enter the following:

$ xbutil mem --write -a 0x0 -i 256 -e 0xaa

This is an example output:

INFO: Found total 1 card(s), 1 are usable
INFO: Writing to single bank, 256 bytes from DDR address 0x4000000000
INFO: Writing DDR with 256 bytes of pattern: 0xaa from address 0x4000000000
INFO: xbutil mem succeeded.