feat(master : nicsensor.sh) Update to version 1.5 Rev1
1.优化 help info 2.优化readme
This commit is contained in:
parent
cdfcd05232
commit
13ae2836ba
10
nicsensor.sh
10
nicsensor.sh
@ -134,7 +134,7 @@ ina3221_ch2_volt="0"
|
|||||||
ina3221_ch0_current="0"
|
ina3221_ch0_current="0"
|
||||||
ina3221_ch1_current="0"
|
ina3221_ch1_current="0"
|
||||||
ina3221_ch2_current="0"
|
ina3221_ch2_current="0"
|
||||||
SCRIPT_VERSION="1.5 Standard"
|
SCRIPT_VERSION="1.5 Rev1 Intest"
|
||||||
|
|
||||||
fru_file_name=$option_data2
|
fru_file_name=$option_data2
|
||||||
fru_write_size=0
|
fru_write_size=0
|
||||||
@ -172,6 +172,12 @@ print_usage(){
|
|||||||
echo " ./nicsensor.sh pcie1 ina3221 0x42"
|
echo " ./nicsensor.sh pcie1 ina3221 0x42"
|
||||||
echo " ./nicsensor.sh ocp0 emc1413 0x4c"
|
echo " ./nicsensor.sh ocp0 emc1413 0x4c"
|
||||||
echo ""
|
echo ""
|
||||||
|
if [ $DEBUG_MODE -eq 1 ];then
|
||||||
|
echo " Server Type : Debug Mode"
|
||||||
|
else
|
||||||
|
echo " Server Type : $server_type"
|
||||||
|
fi
|
||||||
|
echo ""
|
||||||
echo " To Auto detect i2c slave on server, please use:"
|
echo " To Auto detect i2c slave on server, please use:"
|
||||||
echo " ./nicsensor.sh detect"
|
echo " ./nicsensor.sh detect"
|
||||||
echo " ./nicsensor.sh detect pcie"
|
echo " ./nicsensor.sh detect pcie"
|
||||||
@ -183,8 +189,6 @@ print_usage(){
|
|||||||
echo " ./nicsensor.sh [slot] chip [slave] [i2c_command]"
|
echo " ./nicsensor.sh [slot] chip [slave] [i2c_command]"
|
||||||
echo " i2c_command : such as [i2ctransfer -y 13 w1@0x10 0x00 r2]"
|
echo " i2c_command : such as [i2ctransfer -y 13 w1@0x10 0x00 r2]"
|
||||||
echo ""
|
echo ""
|
||||||
echo " If want to use debug mode, please modify the DEBUG_MODE to 1"
|
|
||||||
echo " now status : DEBUG_MODE = $DEBUG_MODE"
|
|
||||||
print_ocp_usage
|
print_ocp_usage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,13 +17,14 @@
|
|||||||
|
|
||||||
### 正文
|
### 正文
|
||||||
|
|
||||||
一、脚本使用方法 Version1.4
|
一、脚本使用方法 Version1.5
|
||||||
|
|
||||||
1.1、修改项目专属配置
|
1.1、修改项目专属配置
|
||||||
针对不同项目,请先修改脚本中的部分变量(ADC128电压传感器的分压系数,INA3221的分流精密电阻阻值)
|
针对不同项目,请先修改脚本中的部分变量(ADC128电压传感器的分压系数,INA3221的分流精密电阻阻值)
|
||||||
针对不同服务器产品,请对应修改server_type变量, 当前支持设置的服务器型号:
|
针对不同服务器产品,请对应修改server_type变量, 当前支持设置的服务器型号:
|
||||||
5280m7
|
5280m7
|
||||||
5468m7
|
5468m7
|
||||||
|
5688m7
|
||||||
donghu
|
donghu
|
||||||
yichun
|
yichun
|
||||||
qiandaohu
|
qiandaohu
|
||||||
@ -38,7 +39,7 @@
|
|||||||
|
|
||||||
参数说明:
|
参数说明:
|
||||||
pcie_slot : 网卡所在的PCIE槽位, 填数字0,1,2,3,4,5
|
pcie_slot : 网卡所在的PCIE槽位, 填数字0,1,2,3,4,5
|
||||||
chip_type : 传感器芯片的类型, emc1413,adc128,ina3221,tmp268,tmp112
|
chip_type : 传感器芯片的类型, emc1413,adc128,ina3221,tmp468,tmp112
|
||||||
chip_slave: 传感器芯片的I2C地址(7bit)
|
chip_slave: 传感器芯片的I2C地址(7bit)
|
||||||
|
|
||||||
举例说明:读取PCIE 1 上网卡的adc128芯片, 芯片slave地址为0x1f
|
举例说明:读取PCIE 1 上网卡的adc128芯片, 芯片slave地址为0x1f
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user