hugebird 发表于 2008-12-15 16:00:02

Brfwmod 1.6发布

1.6版的,主要是为了配合brjtag 1.6r的使用和6358的box,现在6358以上的芯片默认用/128K 进行打包,另外增加了错误提示,主要用来防止疏忽造成的误操作。使用中主要最后面的警告信息。
文件在工具下载区相关贴子的51楼


===============================================================
Broadcom Chip ADSL FW Image De/Compress Utility v1.6-hugebird
            CFE nvram reversion(Broadcom rev.3)
===============================================================
ABOUT: This program can decomp/comp a firmware image for Broadcom chip
      based DSL MODEM.
            ---------------
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
NOTES: 1) The sub image files include TAG.BIN(image header), CFE.BIN(boot
         loader), ROOTFS(root file system),KERNL.BIN(Kernel image).
         Need rename to these file name -comp operation
      2) The TAG definition could be found from bcmTag.h from vendor GPL
         sourcecode package
      3) Please keep in mind,board physical definiation exist in both
         CFE and Kernel.Therefore, only corrct CFE + Kernel combination
         could work.   
      4) The Root FS loading addressis calculatedwith CFE length and
         flash block size. Usually this address is 0xBFC10100 for a 64KB
         and 0xBFC20100 for a 128KB tiny CFE. Try /128K, /64K and /cfeblk:X
         to meet your wish.The chip later than 6358 will default use /128K
      5) When pack CFE in a new image, default NVRAM block will not be built
         in.You can use /cfenvram to build one,or /cleannv to clean orignal
      6) When pack a new image, a RootFS+Kernl checksum token will be built
         in TAG for some vendor. use /noauxtoken to disable this.
      7) /boardid:xxxxxxx quick switch one firmware to fit another brand box.
         Usrally we suggest use tag to mod another brand firmware
      8) -comp /m:5 allow you mod a CFE with specfic NVRAM setting. when m:5
         selected, you can ignore all ' option NOT opened' warnings

抛砖引玉 发表于 2008-12-15 16:16:05

一看就是好东西

天涯 发表于 2008-12-15 20:56:02

6358的box,这里用"BOX",非常形象,哈哈,要用到这两个工具的兄弟们,基本上设备都差不多接近"砖头"了,或者准备变成了砖头. 盒子,太贴切了,赞一个 :)

感谢提供这么好的工具 :)

test0099 发表于 2009-3-6 14:44:38

下载备用先,万一真的变成BOX也好救一下,呵呵

bugeye 发表于 2009-4-5 08:13:47

好东西。。。。谢谢

super123 发表于 2009-6-2 14:00:49

支持!!!!!!!!!

super123 发表于 2009-6-10 23:48:12

参数太多,不太会用,给些示例。。。。

blacman 发表于 2009-6-23 19:37:43

tjpzero 发表于 2009-6-23 22:40:25

hugebird 老大的帖子必顶~~!我的几台设备都是刷你发布的固件~!

northstared 发表于 2009-7-29 16:18:36

Thanks!!!!!!!!!!
页: [1] 2 3
查看完整版本: Brfwmod 1.6发布