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

flashrom, gpiotool, CLI options

Page 35 highlights

R - Register description Offset of Register Size in bytes Register Name The example output shows MUX information when accessing the LPC and the timeout value. #D | id | Device | Presence bit Mask | Status Register Offset | Status bit Mask | Air Flow bitmask | Speed register offset #R | NAME | Offset | Size in bytes LPC-INTERFACE D | 0 | Fan 1| 0x01 | 0x115 | 0x01 | 0x01 | 0xF3 | 2 D | 1 | Fan 2| 0x01 | 0x115 | 0x02 | 0x01 | 0xF5 | 2 D | 2 | Fan 3| 0x02 | 0x115 | 0x04 | 0x02 | 0xF7 | 2 D | 3 | Fan 4| 0x02 | 0x115 | 0x08 | 0x02 | 0xF9 | 2 D | 4 | Fan 5| 0x04 | 0x115 | 0x10 | 0x04 | 0xFB | 2 D | 5 | Fan 6| 0x04 | 0x115 | 0x20 | 0x04 | 0xFD | 2 D | 6 | Fan 7| 0x08 | 0x115 | 0x40 | 0x08 | 0xFF | 2 D | 7 | Fan 8| 0x08 | 0x115 | 0x80 | 0x08 | 0x101 | 2 D | 8 | Fan 9| 0x10 | 0x114 | 0x01 | 0x10 | 0x103 | 2 D | 9 | Fan 10| 0x10| 0x114 | 0x02 | 0x10 | 0x105 | 2 R | 0xF0 | 1 |Fan Tray Count Register R | 0xF1 | 1 |Fan Count Per Fan Tray Register R | 0xF2 | 1 |Max Fan Speed Set Register R | 0x113 | 1 |Fan Tray Presence Register R | 0x116 | 1 |Fan Tray Air Flow Register /dev/i2c-1 0x70:0:0xff:0x9:,:0x74:1:0xff:0xa 1500000 flashrom To update or erase the BIOS flash memory, the smbiostool uses flashrom. gpiotool The gpiotool controls the state of the GPIO lines from the CPU or any other device that drives the GPIO lines. The CPU GPIO alines the map in Linux to /sys/class/gpio entries, which are manipulated through the standard read/write interfaces. There is chip numbering to support multiple GPIO chips, or chips at an offset. For devices such as the complex programmable logic device (CPLD) or field programmable gate arrays (FPGA), gpiotool accesses those devices to drive the GPIO lines using the standard bus interfaces such as i2c, mem, or pci. CLI options DellEmc Diag - GPIO Tool version 1.4, x.xx.x.x-x build, 2017/05/23, Syntax: gpiotool Show the help-text:= gpiotool --h (or) gpiotool -h List available gpio chips and pins:= gpiotool --list (or) gpiotool -l Set GPIO pin:= gpiotool --set [--chip=] --pin= --val= (or) gpiotool -s [-c ] -H -V Get GPIO pins value:= gpiotool --get [--chip=] [--pin=] (or) gpiotool -g [-c ] [-H ] Execute repeatedly command by count:= Dell EMC DiagOS tools 35

  • 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

R - Register description
Offset of Register
Size in bytes
Register Name
The example output shows MUX information when accessing the LPC and the timeout value.
#D | id | Device | Presence bit Mask | Status Register Offset | Status bit Mask
| Air Flow bitmask | Speed register offset
#R | NAME | Offset | Size in bytes
LPC-INTERFACE
D | 0 | Fan 1| 0x01 | 0x115 | 0x01 | 0x01 | 0xF3 | 2
D | 1 | Fan 2| 0x01 | 0x115 | 0x02 | 0x01 | 0xF5 | 2
D | 2 | Fan 3| 0x02 | 0x115 | 0x04 | 0x02 | 0xF7 | 2
D | 3 | Fan 4| 0x02 | 0x115 | 0x08 | 0x02 | 0xF9 | 2
D | 4 | Fan 5| 0x04 | 0x115 | 0x10 | 0x04 | 0xFB | 2
D | 5 | Fan 6| 0x04 | 0x115 | 0x20 | 0x04 | 0xFD | 2
D | 6 | Fan 7| 0x08 | 0x115 | 0x40 | 0x08 | 0xFF | 2
D | 7 | Fan 8| 0x08 | 0x115 | 0x80 | 0x08 | 0x101 | 2
D | 8 | Fan 9| 0x10 | 0x114 | 0x01 | 0x10 | 0x103 | 2
D | 9 | Fan 10| 0x10| 0x114 | 0x02 | 0x10 | 0x105 | 2
R | 0xF0 | 1 |Fan Tray Count Register
R | 0xF1 | 1 |Fan Count Per Fan Tray Register
R | 0xF2 | 1 |Max Fan Speed Set Register
R | 0x113 | 1 |Fan Tray Presence Register
R | 0x116 | 1 |Fan Tray Air Flow Register
/dev/i2c-1 0x70:0:0xff:0x9:,:0x74:1:0xff:0xa
1500000
flashrom
To update or erase the BIOS
flash
memory, the
smbiostool
uses
flashrom
.
gpiotool
The
gpiotool
controls the state of the GPIO lines from the CPU or any other device that drives the GPIO lines.
The CPU GPIO alines the map in Linux to
/sys/class/gpio
entries, which are manipulated through the standard read/write interfaces.
There is chip numbering to support multiple GPIO chips, or chips at an
offset.
For devices such as the complex programmable logic device
(CPLD) or
field
programmable gate arrays (FPGA),
gpiotool
accesses those devices to drive the GPIO lines using the standard bus
interfaces such as
i2c
,
mem
, or
pci
.
CLI options
DellEmc Diag - GPIO Tool
version 1.4, x.xx.x.x-x
build, 2017/05/23,
Syntax: gpiotool <option>
Show the help-text:=
gpiotool --h
(or)
gpiotool -h
List available gpio chips and pins:=
gpiotool --list
(or)
gpiotool -l
Set GPIO pin:=
gpiotool --set [--chip=<chip>] --pin=<pin> --val=<value> (or)
gpiotool -s [-c <chip>] -H <pin> -V <value>
Get GPIO pins value:=
gpiotool --get [--chip=<chip>] [--pin=<pin>]
(or)
gpiotool -g [-c <chip>] [-H <pin>]
Execute repeatedly command by count:=
Dell EMC DiagOS tools
35