lastkiss
发表于 2008-11-5 22:26:39
原帖由 YES东 于 2008-11-5 11:32 发表 https://www.chinadsl.net/images/common/back.gif
可以。需要用tllshujuxian
有线的,请赐教
YES东
发表于 2008-11-5 22:44:22
原帖由 lastkiss 于 2008-11-5 22:26 发表 https://www.chinadsl.net/images/common/back.gif
有线的,请赐教 教程区有相关的教程
sophil
发表于 2008-11-6 01:55:14
lz强,还是在等待超级稳定的DB-120WG固件
yehaku
发表于 2008-11-6 12:51:03
我这边也遇到个这个现象的。也是FLASH写不进去。编程器提示FLASH有坏块。
我朋友说。估计是这个FLASH里面有一步份区域是厂 商的初始化信息给覆盖掉了。
现在再找代用的FLASH(touxiang:
天涯
发表于 2008-11-6 15:00:35
到FLASH的官方网站看,也许是第一和第二区块被保护起来了。芯片出厂默认是不锁的。要高手看了DATASHEET后修改BRJTAG的程序,解锁才能写得进去了。应该不是损坏,编程器提示可能有误。
hugebird
发表于 2008-11-6 15:33:14
BRJTAG对于容量大于4MB的flash处理还不太成熟,这个工具的原型最初是给broadcom little endian的无线路由器设计的,并不支持big endian的ADSL主控芯片。 针对不同容量的flash需要手工设定自定义地址
brjtag -flash:custom /window:1fxx0000 /start:00000000 /length:20000 三个参数。
对于4MB的flash, 用 /window:1fc00000 这是软件默认的 1MB, 2MB和4MB都用这个设置
对于8MB的flash, 用 /window:1f800000, 简单计算:地址高端2000 0000 - flash容量 80 0000 = 1f80 0000
对于16MB的flash, 用 /window:1f000000, 简单计算:地址高端2000 0000 - flash容量 100 0000 = 1f00 0000
如果不想手工设,自己改源码自动编译一下也行。最近工作比较忙,又没有资料讲相关芯片的地址映射关系,没在继续搞这个工具。不过从大多数人的经验看,上面的地址计算方式对63x8系列的芯片都是适用的。我几个月自己的6338的机器换了个8M的flash,地址确实符合这个计算方法。不过那个flash的引导区位置不对,没有启动成功。CFE通常在flash空间的最低端,如果是64K的扇区 /用length:10000 , 如果是128K的扇区用 /length:20000
还有就是大于4M的flash一旦刷错了很可能JTAG无法再进行刷新了(包括读取和检测)原因不明。记得有位兄弟说手工对flash复位一下。我6338改8MB的时候确实也遇到了flash刷错后不能更新的问题,手工复位以后,再刷就成功了。通常flash每个扇区可以重复擦写10万次以上,不会轻易就坏掉的。操作方法是路由器加电的情况下,用镊子将flash芯片12脚Reset#和地短接一下(自己查一下芯片手册,看看Reset#是哪个引脚),别断电,这时候再执行BRJTAG操作。
恢复的时候JTAG只要刷上CFE就行了,然后通过CFE恢复完整的固件。
另外在用新固件之前,最好把flash备份一下,没有JTAG口的路由器最好不要轻易更新CFE。
hugebird
发表于 2008-11-6 15:47:44
spansion flash引导扇区的去保护需要在Reset#脚加高压,11.5-12.5V, 这个似乎JTAG软件没法控制,除非自己焊一个高压过去。刷完之后再去掉。
天涯
发表于 2008-11-6 19:32:08
谢谢楼上的大大指点, 这个FLASH芯片的全部资料在这里http://www.spansion.com/flash_memory_products/support/technical_documents/application_notes.html#flash
但BCM6358的资料没有办法找到.
总之,感谢你抽出时间指点我这个菜鸟 ,待会我试一下.看行是不行.如果弄好了.我跟贴回复.
天涯
发表于 2008-11-6 22:27:49
Legend
L = Logic Low = VIL, H = Logic High = VIH, VHH = 11.5–12.5V, X = Don’t Care, AIN = Address In, DIN = Data In, DOUT = Data Out
Notes
1. Addresses are AMax:A0 in word mode; AMax:A-1 in byte mode.
2. If WP# = VIL, on the outermost sector remains protected. If WP# = VIH, the outermost sector is unprotected. All sectors are unprotected when shipped from the
factory (The Secured Silicon Sector can be factory protected depending on version ordered.)
3. DIN or DOUT as required by command sequence, data polling, or sector protect algorithm.
7.7.7 Accelerated Program
Accelerated single word programming and write buffer programming operations are enabled through the
WP#/ACC pin. This method is faster than the standard program command sequences.
Note
The accelerated program functions must not be used more than 10 times per sector.
If the system asserts VHH on this input, the device automatically enters the aforementioned Unlock Bypass
mode and uses the higher voltage on the input to reduce the time required for program operations. The
system can then use the Write Buffer Load command sequence provided by the Unlock Bypass mode. Note
that if a “Write-to-Buffer-Abort Reset” is required while in Unlock Bypass mode, the full 3-cycle RESET
command sequence must be used to reset the device. Removing VHH from the ACC input, upon completion
of the embedded program operation, returns the device to normal operation.
􀂄 Sectors must be unlocked prior to raising WP#/ACC to VHH.
􀂄 The WP#/ACC pin must not be at VHH for operations other than accelerated programming, or device
damage may result.
􀂄 The WP#/ACC pin must not be left floating or unconnected; inconsistent behavior of the device may result.
用GOOGLE翻译,认真的看了这一段,经测试.
1>.给(16脚)WP#/ACC加12V,或加VCC3.3V的电压还是没有办法解锁.
2>给(14脚)接地断开,也没有办法解锁.
3>同时执行1>和2>,也是没有办法解锁.
另: 看此文件Unlocking the Secrets of Bypass Mode, 是不是可以通过编程解锁呢? 附件为此文档.
[ 本帖最后由 天涯 于 2008-11-6 14:29 编辑 ]
天涯
发表于 2008-11-6 22:48:02
我的E文太菜了,看不懂 :((han1: