Setup Guide

CLI options
root@dellemc-diag-os:~# lpctool
DellEmc Diag - LPC Tool
version 2.0, x.xx.x.x-x
build, 2019/07/03,
Syntax: lpctool <option>
Show the help-text:=
lpctool --h (or)
lpctool -h
Read the specified address:=
lpctool --read --addr=<address> --count=<number_of_bytes> [--size=<b,w or l>] [--
config=<cfg_file_name>] (or)
lpctool -r -a <address> -C <number_of_bytes> [-z <b,w or l>] [-f <cfg_file_name>]
Write data at the specified address:=
lpctool --write --addr=address --val=data [--size=b,w or l] [--config=<cfg_file_name>]
(or)
lpctool -w -a <address> -V <data> [-z <b,w or l>] [-f <cfg_file_name>]
Execute repeatedly command by count:=
lpctool --iteration=max/<count> [option1] [option2]... [--config=<cfg_file_name>] (or)
lpctool -I max/<count> [option1] [option2]... [-f <cfg_file_name>]
Usage:=
-f, --config= To specify the location of the config file e.g. /etc/dn/diag/<file_name>
-h, --h Show the help text
-w, --write Write operation
-r, --read Read operation
-z, --size= Size
-I, --iteration= Iteration command execution
-C, --count= Count
-a, --addr= Address
-V, --val= Value to be set
Output
Read output
root@dellemc-diag-os:~# lpctool --read --addr=0x102
Byte Port 0x102 :
[00000000]: 0xff || .
Write output
root@dell-diag-os:/opt/dellemc/diag/bin# ./lpctool --write --addr=102 --val=10
memtool
The memtool tests the physical memories in the system.
The memtool performs address bus and data tests that moves 1s or 0s through the bus lines to detect stuck, missing, bridged, or other
issues found during board tests. The tool also places hamming values or addresses into memory to test and report failing bits. All tests are
similar to the memtest86 application but are available through the CLI.
In addition, the memtool reads the types and locations of memory in the system. The memory may be physical RAMs connected to the
CPU covered by caches, or memory attached or embedded in other devices or across buses. The tool must know the addressable location
of the memory, the memory address, data bus sizes, and any addressing constraints; for example, byte or word addressable boundaries.
The memtool allocates a memory region to tests in, which is either malloc space or opens a memory map to the memory, and passes
the pointer to access the memory.
Dell EMC DIAG-OS tools
41