Dell N3200-ON Open Networking Hardware Diagnostic Guide July 2022 - Page 41

lpctool, CLI options, Output, Read output, Write output

Page 41 highlights

7-digitled: on root@dellemc-diag-os:~# lpctool To access devices on the LPC bus, use the lpctool. The lpctool allows access on the LPC bus by using I/O transactions at the processor level. This access does not include LPC interfaces in other devices. Other DIAG-OS tools use lpctool to read LPC-connected registers. 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 Show the help-text:= lpctool --h (or) lpctool -h Read the specified address:= lpctool --read --addr= --count= [--size=] [--config=] (or) lpctool -r -a -C [-z ] [-f ] Write data at the specified address:= lpctool --write --addr=address --val=data [--size=b,w or l] [-- config=] (or) lpctool -w -a -V [-z ] [-f ] Execute repeatedly command by count:= lpctool --iteration=max/ [option1] [option2]... [--config=] (or) lpctool -I max/ [option1] [option2]... [-f ] Usage:= -f, --config= To specify the location of the config file e.g. /etc/dn/diag/ -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 Dell DIAG-OS tools 41

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81

7-digitled: on
root@dellemc-diag-os:~#
lpctool
To access devices on the LPC bus, use the
lpctool
.
The
lpctool
allows access on the LPC bus by using I/O transactions at the processor level. This access does not include LPC
interfaces in other devices. Other DIAG-OS tools use
lpctool
to read LPC-connected registers.
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
Dell DIAG-OS tools
41