码迷,mamicode.com
首页 > 其他好文 > 详细

partool

时间:2015-05-06 15:07:33      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:

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

partool

标签:

原文地址:http://blog.csdn.net/u011641885/article/details/45535359

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!