找回密码
 注册

QQ登录

只需一步,快速开始

查看: 17285|回复: 19

Brfwmod 1.6发布

[复制链接]
发表于 2008-12-15 16:00:02 | 显示全部楼层 |阅读模式
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 [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
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 address  is calculated  with 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 '[/cfenvram] option NOT opened' warnings

评分

参与人数 1威望 +8 收起 理由
hotqj + 8

查看全部评分

发表于 2008-12-15 16:16:05 | 显示全部楼层
一看就是好东西
发表于 2008-12-15 20:56:02 | 显示全部楼层
6358的box,这里用"BOX",非常形象,哈哈,要用到这两个工具的兄弟们,基本上设备都差不多接近"砖头"了,或者准备变成了砖头. 盒子,太贴切了,赞一个 :)

感谢提供这么好的工具 :)
发表于 2009-3-6 14:44:38 | 显示全部楼层
下载备用先,万一真的变成BOX也好救一下,呵呵
发表于 2009-4-5 08:13:47 | 显示全部楼层
好东西。。。。谢谢
发表于 2009-6-2 14:00:49 | 显示全部楼层
支持!!!!!!!!!
发表于 2009-6-10 23:48:12 | 显示全部楼层
参数太多,不太会用,给些示例。。。。
blacman 该用户已被删除
发表于 2009-6-23 19:37:43 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2009-6-23 22:40:25 | 显示全部楼层
hugebird 老大的帖子必顶~~!我的几台设备都是刷你发布的固件~!
发表于 2009-7-29 16:18:36 | 显示全部楼层
Thanks!!!!!!!!!!
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-5-2 21:21 , Processed in 0.027102 second(s), 8 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表