diff --git a/nicsensor.sh b/nicsensor.sh index 737c8fd..07af049 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -134,7 +134,7 @@ ina3221_ch2_volt="0" ina3221_ch0_current="0" ina3221_ch1_current="0" ina3221_ch2_current="0" -SCRIPT_VERSION="1.5 Standard" +SCRIPT_VERSION="1.5 Rev1 Intest" fru_file_name=$option_data2 fru_write_size=0 @@ -172,6 +172,12 @@ print_usage(){ echo " ./nicsensor.sh pcie1 ina3221 0x42" echo " ./nicsensor.sh ocp0 emc1413 0x4c" 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 " ./nicsensor.sh detect" echo " ./nicsensor.sh detect pcie" @@ -183,8 +189,6 @@ print_usage(){ echo " ./nicsensor.sh [slot] chip [slave] [i2c_command]" echo " i2c_command : such as [i2ctransfer -y 13 w1@0x10 0x00 r2]" 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 } diff --git a/readme.txt b/readme.txt index 46428e3..fcf780c 100644 --- a/readme.txt +++ b/readme.txt @@ -17,13 +17,14 @@ ### 正文 - 一、脚本使用方法 Version1.4 + 一、脚本使用方法 Version1.5 1.1、修改项目专属配置 针对不同项目,请先修改脚本中的部分变量(ADC128电压传感器的分压系数,INA3221的分流精密电阻阻值) 针对不同服务器产品,请对应修改server_type变量, 当前支持设置的服务器型号: 5280m7 5468m7 + 5688m7 donghu yichun qiandaohu @@ -38,7 +39,7 @@ 参数说明: 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) 举例说明:读取PCIE 1 上网卡的adc128芯片, 芯片slave地址为0x1f