找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3030|回复: 8

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

[复制链接]
发表于 2009-9-13 17:39:38 | 显示全部楼层 |阅读模式
请问64k的固件怎么改成128k的?那个大大说一下.
发表于 2009-9-13 17:49:48 | 显示全部楼层

brfwmod -decomp -i rom.bin /notimestamp



BrFwmod -comp -o newfw.bin  /128K
 楼主| 发表于 2009-9-13 19:27:06 | 显示全部楼层
请问如果去掉cfe应该怎么弄
发表于 2009-9-13 22:08:28 | 显示全部楼层
同问,不过decomp是不是就是拆解固件的命令?
发表于 2009-9-13 23:01:03 | 显示全部楼层
本帖最后由 unknow-mon 于 2009-9-13 23:02 编辑
请问如果去掉cfe应该怎么弄
landsa 发表于 2009-9-13 19:27


  1. brfwmod -decomp -i rom.bin /m:2
复制代码
  1. BrFwmod -comp -o newfw.bin  /m:1
复制代码
就可以去掉CFE了



同问,不过decomp是不是就是拆解固件的命令?
zzq0106 发表于 2009-9-13 22:08


这个的确是拆解固件的命令
发表于 2009-9-13 23:19:11 | 显示全部楼层
本帖最后由 zzq0106 于 2009-9-13 23:46 编辑

谢谢ls回复
发表于 2009-9-14 07:31:09 | 显示全部楼层
那要在固件中添加CFE,用什么命令呢 ?
发表于 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>
&#160; &#160;&#160; &#160;&#160;&#160;BrFwmod -comp <-o outputfile> </m:X> </cfe>&#160;&#160;</cfeblk:X> </128K>
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160; </nonvram></macaddr:XXXXXXXXXXXX></nvboardid:XXXX>
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160; </noauxtoken></r>
&#160; &#160;&#160; &#160;&#160;&#160;BrFwmod -showinfo <-i inputfile>&#160;&#160;

&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;Required Parameter
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;------------------
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;-decomp ........... decompress Image file into sub files
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;-comp ............. compress
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;-showinfo ......... show a Image file infomation
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;-i inputfile ...... custom input file(Image.bin by default)
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;-o outputfile&#160;&#160;.... custom output file(Image_Time.bin by default)

&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;Optional Switches for -decomp command
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;-------------------------------------
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/cfe ........... ... decomp CFE
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/notag ............. don't decomp image tag
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/rfs ............... decomp including root filesystem
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/knl ............... decomp including kernel image
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/m:X ............... use method [X] to deal with the Image
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;:1 ............... tag+rootfs+kernel(default for comp)
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;:2 ............... tag+cfe+rootfs+kernel(default for decomp)
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;:3 ............... tag+cfe
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;:4 ............... tag only
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;:5 ............... cfe only, also use to mod cfe nvram data
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/notimestamp........ don't add time stamp to decomp sub filename

&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;Optional Switches for -comp command
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;-----------------------------------
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/cfe ........... ... comp including CFE
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/64K ............... use 64KB as flash block size to calculate
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/128K .............. use 128KB as flash block size to calculate
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/s1 ................ set tag ImageSequence to [1]
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/s0 ................ clear tag ImageSequence to emperty
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/m:X ............... use method [X], same as -comp command
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/cfeblk:X .......... if cfe doesn' be built in, X use to
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;count CFE length in X flash blocks
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/boardid:XXXX ...... max 15 chars for boardID in TAG
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/cfenvram .......... make a default CFE NVRAM data
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/cleannv ........... empty CFE NVRAM data
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/noauxtoken......... doesn't build other checksum in TAG
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/b0 ................ Write boot from latest Image in CFE NVRAM
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/b1 ................ Write boot from previous Image in CFE NVRAM
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/macaddr:XXXX ...... 12 hex digits for MacAddress in CFE NVRAM
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;/nvboardid:XXXX .... max 15 chars for boardID in CFE NVRAM

&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;----------------------------------------------------------------

EXAMPLES: BrFwmod -decomp&#160; &#160;&#160; &#160;&#160;&#160;<-decomp all sub files from Image.bin
&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;BrFwmod -decomp -i myfirm.bin /m:1&#160; &#160; &#160; &#160; <-decomp all sub files except
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160; CFE.BIN from myfirm.bin
&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;BrFwmod -showinfo -i myfirm.bin&#160;&#160;<-show myfirm.bin info
&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;BrFwmod -comp -o newfirm.bin /m:2&#160; &#160; &#160; &#160;&#160; &#160;<-pack a complete new image
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160; newfirm.bin with all sub filesn
&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;BrFwmod -comp -o newcfe.bin /m:5 /b0 /nvboardid:96358GW
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160; <-make a modified CFE file with latest boot
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;partition and boardid setting '96358GW'
&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;BrFwmod -comp -o newfirm.bin /m:2&#160; &#160; &#160; &#160; /128K&#160;&#160;<-pack a new image
&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160;&#160;to fit 128KB flash sector size


添加CFE:BrFwmod -comp -o newfw.bin  m:2 /128K
发表于 2009-10-22 17:33:43 | 显示全部楼层
有没有128K转64K的方法啊
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-20 12:00 , Processed in 0.024032 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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