Specifications
Table Of Contents
- Open Networking Hardware Diagnostic Guide April 2016
- About this Guide
- Installation Instructions for ONIE and the Dell OS
- ONIE Overview
- Dell DIAG OS
- Dell DiagOS Tools
- Technical Support
get Output
root@amazon:/opt/ngos/bin# ./gpiotool --get --pin=1
GPIO pin # 1 is 1
set Output
root@amazon:/opt/ngos/bin# ./gpiotool --set --pin=1 --val=1
Configuration File Format
GPIOs are separated into groups within the configuration file, such as Core GPIOs and Suspend GPIOs (if they
use different power wells for sleep operations).
Any line starting with a # is a comment. ===== is the separator between groups.
A group starts with a header using | separators and:
• # of bits defined in the GPIO interface (This is the hardware definition, not the number of bits being
defined in the config file.)
• A name for the bit group, such as Core GPIO or SUS GPIO.
• Group Type — CORE.
• Any bus used to access the GPIO. This is for the CPLD-based or FPGA-based GPIOs.
• The address to use to access the GPIO. This is for the CPLD-based or FPGA-based GPIOs.
• All of the GPIOs are zero-based in a group. The 0 map is the offset to access /sys/class/gpio/
gpio#
in the sysfs.
Each bit is then defined on its own line separated with | and includes the bit number, name, direction, active
level, and default value.
#bits | Name | intf | bus | addr | 0-map
31 | Core Gpio | CORE | - | - | 0
# Bit | Name | Direction | Value
15 | WDT to MMC | OUT | LOW | 0
=====
#bits | Name | intf | bus | addr | 0-map
28 | SUS Gpio | CORE | - | - | 31
# Bit | Name | Direction | Value
0 | MMC Interrupt | IN | LOW | 0
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
Dell DiagOS Tools 45










