本帖最后由 haxc 于 2009-9-14 03:07 编辑
请看软件的帮助 USAGE: BrFwmod -decomp <-i inputfile> </m:X> </notag> </cfe> </rfs> </knl>
        BrFwmod -comp <-o outputfile> </m:X> </cfe>  </cfeblk:X> </128K>
                      </nonvram></macaddr:XXXXXXXXXXXX></nvboardid:XXXX>
                      </noauxtoken></r>
        BrFwmod -showinfo <-i inputfile>  
            Required Parameter
            ------------------
            -decomp ........... decompress Image file into sub files
            -comp ............. compress
            -showinfo ......... show a Image file infomation
            -i inputfile ...... custom input file(Image.bin by default)
            -o outputfile  .... custom output file(Image_Time.bin by default)
            Optional Switches for -decomp command
            -------------------------------------
            /cfe ........... ... decomp CFE
            /notag ............. don't decomp image tag
            /rfs ............... decomp including root filesystem
            /knl ............... decomp including kernel image
            /m:X ............... use method [X] to deal with the Image
              :1 ............... tag+rootfs+kernel(default for comp)
              :2 ............... tag+cfe+rootfs+kernel(default for decomp)
              :3 ............... tag+cfe
              :4 ............... tag only
              :5 ............... cfe only, also use to mod cfe nvram data
            /notimestamp........ don't add time stamp to decomp sub filename
            Optional Switches for -comp command
            -----------------------------------
            /cfe ........... ... comp including CFE
            /64K ............... use 64KB as flash block size to calculate
            /128K .............. use 128KB as flash block size to calculate
            /s1 ................ set tag ImageSequence to [1]
            /s0 ................ clear tag ImageSequence to emperty
            /m:X ............... use method [X], same as -comp command
            /cfeblk:X .......... if cfe doesn' be built in, X use to
                                 count CFE length in X flash blocks
            /boardid:XXXX ...... max 15 chars for boardID in TAG
            /cfenvram .......... make a default CFE NVRAM data
            /cleannv ........... empty CFE NVRAM data
            /noauxtoken......... doesn't build other checksum in TAG
            /b0 ................ Write boot from latest Image in CFE NVRAM
            /b1 ................ Write boot from previous Image in CFE NVRAM
            /macaddr:XXXX ...... 12 hex digits for MacAddress in CFE NVRAM
            /nvboardid:XXXX .... max 15 chars for boardID in CFE NVRAM
            ----------------------------------------------------------------
EXAMPLES: BrFwmod -decomp        <-decomp all sub files from Image.bin
           BrFwmod -decomp -i myfirm.bin /m:1        <-decomp all sub files except
                                  CFE.BIN from myfirm.bin
           BrFwmod -showinfo -i myfirm.bin  <-show myfirm.bin info
           BrFwmod -comp -o newfirm.bin /m:2          <-pack a complete new image
                                  newfirm.bin with all sub filesn
           BrFwmod -comp -o newcfe.bin /m:5 /b0 /nvboardid:96358GW
                                  <-make a modified CFE file with latest boot
                                   partition and boardid setting '96358GW'
           BrFwmod -comp -o newfirm.bin /m:2        /128K  <-pack a new image
                                   to fit 128KB flash sector size
添加CFE:BrFwmod -comp -o newfw.bin m:2 /128K |