mem write
The
mem --write
command writes a defined value to a specified memory location and size.
-a
(Optional): Specifies the starting address (in hexadecimal). Default address is0x0
.-i
: Specifies the size of memory read (in bytes).-e
: Specifies the pattern (in bytes) to write to memory.
To write the value0xaa
to 256 locations starting at memory address0x0
, 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.