refactor(master : nicsensor) 更新补充usage
This commit is contained in:
parent
6b40c9c790
commit
a841ae4363
@ -163,6 +163,7 @@ print_usage(){
|
|||||||
echo " - [slot] : 0 1 2 3 4 5 ..."
|
echo " - [slot] : 0 1 2 3 4 5 ..."
|
||||||
echo " - [slave] : chip slave address , please provide 7 bit address"
|
echo " - [slave] : chip slave address , please provide 7 bit address"
|
||||||
echo " - [command] : The i2c command which will set to the chip"
|
echo " - [command] : The i2c command which will set to the chip"
|
||||||
|
echo " 3) E.G. : ./nicsensor.sh pcie1 chip 0x10 'i2ctransfer -y 12 w1@0x10 0x00 r2'"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Function 4 - FRU Read and Wirte"
|
echo " Function 4 - FRU Read and Wirte"
|
||||||
echo " 1) Command Format : ./nicsensor.sh [slot] fru [slave] [option] [frudata]"
|
echo " 1) Command Format : ./nicsensor.sh [slot] fru [slave] [option] [frudata]"
|
||||||
@ -171,6 +172,9 @@ print_usage(){
|
|||||||
echo " - [slave] : chip slave address , please provide 7 bit address"
|
echo " - [slave] : chip slave address , please provide 7 bit address"
|
||||||
echo " - [option] : read/write, default to read"
|
echo " - [option] : read/write, default to read"
|
||||||
echo " - [frudata] : fru bin file which will write to eeprom, only for write option"
|
echo " - [frudata] : fru bin file which will write to eeprom, only for write option"
|
||||||
|
echo " 3) E.G. : ./nicsensor.sh pcie0 fru 0x57"
|
||||||
|
echo " : ./nicsensor.sh pcie0 fru 0x57 read"
|
||||||
|
echo " : ./nicsensor.sh pcie0 fru 0x57 write /tmp/fru.bin"
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user