Getting Started
Page 31
2.7.4.1
MEN Tool
The MEN MDIS tool provided to access SMBus devices is called
smb2_ctrl
(MEN article
number 13Y004-06).
For example, to enable the locate LED of drive 0:
2.7.4.2
Standard Linux I2C Tools
You can use
i2cset
to control the SATA SGPIO functions. The basic parameters to be used
for the command are:
Examples
Enabling activity LED of drive 1:
Disabling activity LED of drive 1:
Enabling locate LED of drive 1:
Enabling hot-plug LED of drive 2:
Disabling
SATA_DETECT
bit:
Enabling
SATA_DETECT
bit:
See the HTML documentation included with the tool in the MDIS5 framework for a
detailed description.
$
sudo smb2_ctrl smb2_2 wbd -a=0xe0 -o=0x00 -d=0x40
$
sudo i2cset -y <SMBus number> <device address> <drive number> <data>
Take care to use the correct SMBus number applicable for your system.
$
sudo i2cset -y 1 0x70 0x01 0x80
$
sudo i2cset -y 1 0x70 0x01 0x00
$
sudo i2cset -y 1 0x70 0x01 0x40
$
sudo i2cset -y 1 0x70 0x02 0x20
$
sudo i2cset -y 1 0x70 0xFE 0x80
$
sudo i2cset -y 1 0x70 0xFE 0x00
More information on supported functions and hardware implementation
See
Chapter 5.3 SATA SGPIO FPGA on page 60
for a register description.
See
Chapter 2.7.1.2 Standard Linux I2C Tools on page 28
description of how to access SMBus devices using standard Linux tools.