标签:
partool:
-part partname(mtd2|mtd7) -crc
calc crc
-part partname(mtd2|mtd7) -empty
flush empty to mtd
-part partname(mtd2|mtd7) -show
show all
-part partname(mtd2|mtd7) -show name
show by name
-part partname(mtd2|mtd7) -new name value
new(create or update)
-part partname(mtd2|mtd7) -delete name
delete by name, the name must must exist
-part partname(mtd2|mtd7) -load file
load file(human readable) to mtd
-part partname(mtd2|mtd7) -show -prefix name
show by name prefix
-part partname(mtd2|mtd7) -delete -prefix name
delete by name prefix
-part partname(mtd2|mtd7) -create name value
create name/value, the name cannot exist
-part partname(mtd2|mtd7) -update name value
update name/value, the name must exist
$ partool -part mtd7 -show #show all
pcba.sn=03020209P20014A001719
pcba.version=1.2
pcba.type=LI11PNM
pcba.mac=00:1F:64:CE:F3:8E
product.mac=00:1F:64:CE:F3:8E
product.vendor=Beijing Autelan Technology
product.model=CS-VIC-2000-C
product.sn=01010730b12014A00477
oem.sn=CS2C302141000477
$ partool -part mtd7 -show product.vendor ##取得产品供应商信息
partool -part mtd7 -show product.model ##获取产品型号
partool -part mtd7 -show product.sn ##获取序列号
$ partool -part mtd7 -show product.mac ##取得产品mac
标签:
原文地址:http://blog.csdn.net/u011641885/article/details/45535359