FAQ

Parameter Description
Descriptive Device: The descriptive device (for example, SPD in the case of a dimm), is described in one comma-separated eld of four
parameters: address, type, start, and bytes.
Device Path: The path to the device driver (for example, /dev/i2c-0 for a PD on the i2c bus 0).
Address of Memory
Description device
(SPD):
Describes the memory organization (for example, dimm memory which has an SPD device) and the address of the
device. For i2c devices, the address is presented in 7–bit hexadecimal format.
Type: SPD
Range of bytes in
the Description
Device:
These two elds list the start and end registers to read descriptive entries for the device.
Example of the memtool Output
Syntax: ./memtool <option>
-h := show this help
test [[all]|list|region#] := test using the MEM test config file
info := display configuration info of device
read [b|h|w] address := read the specified physical address
write [b|h|w] address data [length] := write at the specified physical address
Example of the memtool Conguration File Output
// Memory Configuration File
//
// Example:
// SystemRam:-:-:w:4:1:2800:0:0:1:-1:SPD:/dev/i2c-0:50:0,ff:
// This describes the SystemRam which is dynamic in location and size. It is accessed by
words // and incremented addresses of 4 bytes. It is ECC covered, and has a max chunk of
10KB max
// cache and cacheline size (unused at this time) are 0. The tests will be performed once
on this
// region, and the -1 denotes to run all tests, excluding dim cache memory test. The
Descriptive
// device is a SPD on /dev/i2c-0 at address 0x50, and we read registers 0-255.
//
// Note: a '-' address and size denotes a dynamic ram allocation
// =======================Tests================================
// -1 : all Tests Run
// 0h : No Address Test
// 1h : Address Read Test (Access)
// 2h : Address Read|Modify|Write|Verify
// 4h : Address walking 1's
// 8h : Address walking 0's
// 00h : No Data Test
// 10h : Data Read Test (Access)
// 20h : Data Read|Modify|Write|Verify
// 40h : Data walking 1's
// 80h : Data walking 0's
// 100h : Data walking 1's
// 200h : Data walking 0's
// 400h : patterns (00ff, ff00, 55aa, aa55)
// 800h : Cache (cacheKiller - Not Part of ALL Tests)
SystemRam:-:-:d:8:1:2800:-1:-1:1:-1:i2c:0x52,SPD,0,255
ONIE diagnostics
17