Dell S5148F-ON Open Networking Hardware Diagnostic Guide September 2017 - Page 41

write Output, Configuration file format, ledtool, format

Page 41 highlights

write Output /opt/dell/diag/bin# ./i2ctool --write --bus=/dev/i2c-2 --addr=0x48 --reg=0x14 --val=1 Configuration file format The configuration file format for the i2c busses is strict. Use i2ctool --create to create a boilerplate configuration file and editing the boilerplate configuration file rather than creating it from scratch. The configuration file lists each bus from 0 to 4 and the devices. The number of devices MUST match the number of entries or the i2ctool stops functioning. If you edit out a device or add a device, you must adjust the number of devices found. Each device is listed on its own line for that bus in comma-separated format: Name mux bus mux level 1 setting in the format of address:value mux level 2 setting in the format of address:value device address Register we can read from byte count For example: #I2C devices found on bus #: #Device Name|Bus|Mux1 Address|Mux2 Address|Device Address|Offset|Count #If device is not connected with Mux| " x " needed. I2C devices found on bus #0: 2 Clock GEN |/dev/i2c-0| - |0x69|0x00|1 SPD0 |/dev/i2c-0| - |0x50|0x00|1 I2C devices found on bus #1: 55 CPU Board I2C Mux |/dev/i2c-1| - |0x70|0x00|1 CPU Board EEPROM1 |/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0x8|0x53|0x00|1 CPU Board EEPROM2 |/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0x8|0x57|0x00|1 Switch Brd EEPROM |/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0xa:,:0x71:0x1:0xff:0xx 1|0x50|0x00:0x10|1 #TobeAdded - QUMRAN #TobeAdded - TCAM #TobeAdded - DPLL CPLD2 |/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0xa:,:0x71:0x10:0xff:00 x10|0x3e|0x00:0x10|1 CPLD3 |/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0xa:,:0x71:0x20:0xff:00 x20|0x3e|0x00:0x10|1 CPLD4 |/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0xa:,:0x71:0x40:0xff:00 x40|0x3e|0x00:0x10|1 GE TMP ,/dev/i2c-2,0x70:0x0:0x9:0x74:0x1:0xb: 0x73:0x0:0x0:0x72:0x40:0x40,0x4a,0x00,1 3.2.9 Ledtool ledtool The ledtool allows you to control the state of the front and back panel light emitting diodes (LEDs). ASIC and Phys control the port LEDs and are beyond the scope of this tool. You can manually control the front and back panel LEDs normally controlled through the CPLD or FPGA access. When set, bits in these registers control the state of the LED. Dell EMC DiagOS 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
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95

write Output
/opt/dell/diag/bin# ./i2ctool --write --bus=/dev/i2c-2 --addr=0x48 --reg=0x14 --val=1
Configuration
file
format
The
configuration
file
format for the
i2c
busses is strict. Use
i2ctool --create
to create a boilerplate
configuration
file
and editing
the boilerplate
configuration
file
rather than creating it from scratch.
The
configuration
file
lists each bus from 0 to 4 and the devices. The number of devices MUST match the number of entries or the
i2ctool
stops functioning. If you edit out a device or add a device, you must adjust the number of devices found.
Each device is listed on its own line for that bus in comma-separated format:
Name
mux bus
mux level 1 setting in the format of address:value
mux level 2 setting in the format of address:value
device address
Register we can read from
byte count
For example:
#I2C devices found on bus #<Bus Number>: <Number of Devices>
#Device Name|Bus|Mux1 Address|Mux2 Address|Device Address|Offset|Count
#If device is not connected with Mux| " x " needed.
I2C devices found on bus #0: 2
Clock GEN
|/dev/i2c-0| - |0x69|0x00|1
SPD0
|/dev/i2c-0| - |0x50|0x00|1
I2C devices found on bus #1: 55
CPU Board I2C Mux
|/dev/i2c-1| - |0x70|0x00|1
CPU Board EEPROM1
|/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0x8|0x53|0x00|1
CPU Board EEPROM2
|/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0x8|0x57|0x00|1
Switch Brd EEPROM
|/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0xa:,:0x71:0x1:0xff:0xx
1|0x50|0x00:0x10|1
#TobeAdded - QUMRAN
#TobeAdded - TCAM
#TobeAdded - DPLL
CPLD2
|/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0xa:,:0x71:0x10:0xff:00
x10|0x3e|0x00:0x10|1
CPLD3
|/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0xa:,:0x71:0x20:0xff:00
x20|0x3e|0x00:0x10|1
CPLD4
|/dev/i2c-1|/dev/i2c-1 0x70:0x0:0xff:0xa:,:0x71:0x40:0xff:00
x40|0x3e|0x00:0x10|1 GE TMP ,/dev/i2c-2,0x70:0x0:0x9:0x74:0x1:0xb:
0x73:0x0:0x0:0x72:0x40:0x40,0x4a,0x00,1
3.2.9 Ledtool
ledtool
The
ledtool
allows you to control the state of the front and back panel light emitting diodes (LEDs). ASIC and Phys control the port
LEDs and are beyond the scope of this tool.
You can manually control the front and back panel LEDs normally controlled through the CPLD or FPGA access. When set, bits in these
registers control the state of the LED.
Dell EMC DiagOS tools
41