Dell S4148F-ON Open Networking Hardware Diagnostic Guide June 2018 - Page 39

get output, i2ctool, Tests, CLI options

Page 39 highlights

36 PMU_SUSCLK OUT LOW 0 37 PMU_SLP_DDRVTT_B IN LOW 0 38 PMU_SLP_LAN_B IN LOW 0 39 PMU_WAKE_B OUT LOW 0 40 PMU_PWRBTN_B IN LOW 0 49 GBE_SDP0_1 IN LOW 0 50 GBE_LED0 IN LOW 0 51 GBE_LED1 IN LOW 0 52 GBE_LED2 IN LOW 0 53 GBE_LED3 IN LOW 0 54 NCSI_RXD1 OUT LOW 0 55 GBE_MDIO0_I2C_CLK OUT LOW 0 58 GBE_MDIO1_I2C_DATA IN LOW 0 59 JTAG_TRST OUT LOW 0 root@dell-diag-os:~# get output root@dell-diag-os:~# gpiotool --get --pin=1 Chip 0 Core Gpio bits: 60 CORE gpiochip196 Bit Name Dir Value set output root@amazon:/opt/dellemc/diag/bin# ./gpiotool --set --pin=1 --val=1 i2ctool The i2ctool allows for scanning, reading, and writing of the I2c bus devices. To read and write to devices on the i2c bus, use the i2ctool. The i2ctool also scans the i2c busses and reports what devices are found. The scan reads address 0x0 from all the devices in the address range of 0x0 to 0x7f on all i2c busses present. The i2ctool does not automatically traverse MUXes along the i2c bus. Other tools use this tool to read i2c device information and pass the results back through a named pipe. Tests To test, the i2ctool has a configuration file that lists all the devices on the busses. The tool runs through the list and tries to reach the devices. The i2ctool reports when a device is not returning data. CLI options DellEmc Diag - I2C Tool version 1.5, x.xx.x.x-x build, 2017/05/23, Syntax: i2ctool To Scan the (Specific) I2C devices:= i2ctool --scan [--bus=/dev/i2c- ] (or) i2ctool -n [-b /dev/i2c-] To Test the pre-programmed configuration or from config file:= i2ctool --test [-- Dell EMC DAIG-OS tools 39

  • 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
  • 82
  • 83
  • 84
  • 85
  • 86

36
PMU_SUSCLK
OUT
LOW
0
37
PMU_SLP_DDRVTT_B
IN
LOW
0
38
PMU_SLP_LAN_B
IN
LOW
0
39
PMU_WAKE_B
OUT
LOW
0
40
PMU_PWRBTN_B
IN
LOW
0
49
GBE_SDP0_1
IN
LOW
0
50
GBE_LED0
IN
LOW
0
51
GBE_LED1
IN
LOW
0
52
GBE_LED2
IN
LOW
0
53
GBE_LED3
IN
LOW
0
54
NCSI_RXD1
OUT
LOW
0
55
GBE_MDIO0_I2C_CLK
OUT
LOW
0
58
GBE_MDIO1_I2C_DATA
IN
LOW
0
59
JTAG_TRST
OUT
LOW
0
root@dell-diag-os:~#
get output
root@dell-diag-os:~# gpiotool --get --pin=1
Chip 0
Core Gpio
bits: 60 CORE gpiochip196
===================================
Bit
Name
Dir
Value
===================================
set output
root@amazon:/opt/dellemc/diag/bin# ./gpiotool --set --pin=1 --val=1
i2ctool
The
i2ctool
allows for scanning, reading, and writing of the
I2c
bus devices.
To read and write to devices on the
i2c
bus, use the
i2ctool
. The
i2ctool
also scans the
i2c
busses and reports what devices are
found. The scan reads address 0x0 from all the devices in the address range of 0x0 to 0x7f on all
i2c
busses present. The
i2ctool
does
not automatically traverse MUXes along the
i2c
bus. Other tools use this tool to read
i2c
device information and pass the results back
through a named pipe.
Tests
To test, the
i2ctool
has a
configuration
file
that lists all the devices on the busses. The tool runs through the list and tries to reach the
devices. The
i2ctool
reports when a device is not returning data.
CLI options
DellEmc Diag - I2C Tool
version 1.5, x.xx.x.x-x
build, 2017/05/23,
Syntax: i2ctool <option>
To Scan the (Specific) I2C devices:=
i2ctool --scan [--bus=/dev/i2c-
<bus_number>]
(or)
i2ctool -n [-b /dev/i2c-<bus_number>]
To Test the pre-programmed configuration or from config file:=
i2ctool --test [--
Dell EMC DAIG-OS tools
39