landsa 发表于 2009-9-13 17:39:38

请问64k的固件怎么改成128k的

请问64k的固件怎么改成128k的?那个大大说一下.

haxc 发表于 2009-9-13 17:49:48


brfwmod -decomp -i rom.bin /notimestamp


BrFwmod -comp -o newfw.bin/128K

landsa 发表于 2009-9-13 19:27:06

请问如果去掉cfe应该怎么弄

zzq0106 发表于 2009-9-13 22:08:28

同问,不过decomp是不是就是拆解固件的命令?

unknow-mon 发表于 2009-9-13 23:01:03

本帖最后由 unknow-mon 于 2009-9-13 23:02 编辑

请问如果去掉cfe应该怎么弄
landsa 发表于 2009-9-13 19:27 https://www.chinadsl.net/images/common/back.gif

先 brfwmod -decomp -i rom.bin /m:2再BrFwmod -comp -o newfw.bin/m:1就可以去掉CFE了



同问,不过decomp是不是就是拆解固件的命令?
zzq0106 发表于 2009-9-13 22:08 https://www.chinadsl.net/images/common/back.gif

这个的确是拆解固件的命令

zzq0106 发表于 2009-9-13 23:19:11

本帖最后由 zzq0106 于 2009-9-13 23:46 编辑

谢谢ls回复

81012004 发表于 2009-9-14 07:31:09

那要在固件中添加CFE,用什么命令呢 ?

haxc 发表于 2009-9-14 11:05:01

本帖最后由 haxc 于 2009-9-14 03:07 编辑

请看软件的帮助brfwmod /help
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 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
            /s0 ................ clear tag ImageSequence to emperty
            /m:X ............... use method , 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.binm:2 /128K

jiemin11 发表于 2009-10-22 17:33:43

有没有128K转64K的方法啊
页: [1]
查看完整版本: 请问64k的固件怎么改成128k的