找回密码
 注册

QQ登录

只需一步,快速开始

楼主: hugebird

Broadcom路由DSL猫用的JTAG工具最新版

    [复制链接]
发表于 2011-2-13 02:52:12 | 显示全部楼层
回复 hugebird 的帖子

I have updated device and have found new error. After this error device is reboot (blinking red and green led). Maybe it is happening because flash doesn't init?
my device is netgear dg834gt with mx29lv320cbtc-70g (system: Athlon II X2 3,3)

  1. >brjtag -probeonly /cable:3 /nodma
  2. HID-Brjtag MCU ROM version: 1.05 on USBASP hardware!

  3. Probing bus ... Done
  4. Detected IR Length is 5
  5. CPU assumed running under BIG endian
  6. CPU Chip ID: 00000110001101001000000101111111 (0634817F)
  7. *** Found a Broadcom manufactured BCM6348 REV 01 CPU ***

  8.     - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00800904)
  9.     - EJTAG Version ....... : 1 or 2.0
  10.     - EJTAG DMA Support ... : Yes
  11.     - EJTAG Implementation flags: R4k MIPS32
  12.     *** DMA Mode Forced Off ***

  13. Issuing Processor / Peripheral Reset ... Done
  14. Enabling Memory Writes ... Done
  15. Halting Processor ... <Processor did NOT enter Debug Mode!> ... Done
  16. Clearing Watchdog ...  cmd [praccwr] read from usb  error! len = -5
  17. Done
  18. Loading CPU Configuration Code ... Skipped
  19. Detecting Flash Base Address... cmd [dmard] write to usb  error! len = -5
  20. 0x1FFFFF00

  21. Probing Flash at Address: 0x1FFFFF00 ...
  22. cmd [praccwr] write to usb  error! len = -5
  23. ...
  24. cmd [praccrd] write to usb  error! len = -5
  25. Detected pFlash Chip ID (VenID:DevID = 00FF : FFFFFFFF)
  26. cmd [praccwr] write to usb  error! len = -5
  27. ....
  28. cmd [praccrd] write to usb  error! len = -5
  29. *** Unknown or NO Flash Chip Detected ***
  30. MCU reset error!
  31. *** REQUESTED OPERATION IS COMPLETE ***
  32. MCU reset error!
复制代码
 楼主| 发表于 2011-2-13 10:32:02 | 显示全部楼层
uzer222 发表于 2011-2-13 02:52
回复 hugebird 的帖子

I have updated device and have found new error. After this error device is reb ...

Did you see my reply at 1060#
Your device still can't enter debug mode. you got follow information

Halting Processor ... <Processor did NOT enter Debug Mode!> ... Done

As 1060# steps, you can operate successfully. this error is not related to jtag sofeware
发表于 2011-2-13 20:19:46 | 显示全部楼层
hugebird 发表于 2011-2-13 01:18
回复 thethree 的帖子

手里没有intel芯片的设备,这部分从没测试过。

多谢 hugebird 的回复。

是一点都写不进去.
你能不能出一个 debug 版本,你好分析原因。

用 /LI:5 还是一样:
  1. c:\brjtag.exe -flash:cfe /noemw /cable:1 /L9:1

  2.         ===============================================
  3.          Broadcom EJTAG Debrick Utility v2.0.1-hugebird
  4.         ===============================================


  5. Set I/O speed to 100 KHz

  6. USB TAP device has been initialized. Please confirm VREF signal connected!
  7. Press any key to continue... ONCE target board is powered on!

  8. Probing bus ... Done

  9. Detected IR Length is 8

  10. CPU assumed running under LITTLE endian

  11. CPU Chip ID: 00010100011100010010000101111111 (1471217F)
  12. *** Found a Broadcom manufactured BCM4712 REV 01 CPU ***

  13.     - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00800904)
  14.     - EJTAG Version ....... : 1 or 2.0
  15.     - EJTAG DMA Support ... : Yes
  16.     - EJTAG Implementation flags: R4k MIPS32

  17. Issuing Processor / Peripheral Reset ... Done
  18. Enabling Memory Writes ... Skipped
  19. Halting Processor ... <Processor Entered Debug Mode!> ... Done
  20. Clearing Watchdog ... Done
  21. Loading CPU Configuration Code ... Skipped

  22. Probing Flash at Address: 0x1FC00000 ...
  23. Detected pFlash Chip ID (VenID:DevID = 0089 : 0017)
  24. *** Found a (8MB) Intel 28F640J3 4Mx16       (8MB) Flash Chip from Intel

  25.     - Flash Chip Window Start .... : 1C000000
  26.     - Flash Chip Window Length ... : 00800000
  27.     - Selected Area Start ........ : 1C000000
  28.     - Selected Area Length ....... : 00040000

  29. *** You Selected to Flash the CFE.BIN ***

  30. =========================
  31. Flashing Routine Started
  32. =========================
  33. Total Blocks to Erase: 2

  34. Erasing block: 1 (addr = 1C000000)...Done
  35. Erasing block: 2 (addr = 1C020000)...Done

  36. Loading CFE.BIN to Flash Memory...

  37. dma write not correctly !!
  38. 10000817 - 00800080

  39. dma write not correctly !!
  40. 00000000 - 00800080
  41.    0%   bytes = 8
  42. dma write not correctly !!
  43. 00000000 - 00800080

  44. dma write not correctly !!
  45. 00000000 - 00800080
  46.    0%   bytes = 16
  47. dma write not correctly !!
  48. 00000000 - 00800080

  49. dma write not correctly !!
  50. 00000000 - 00800080
  51.    0%   bytes = 24
复制代码



用 /LI:5 还是一样:


  1. c:\>brjtag.exe -flash:cfe /noemw /cable:1 /L1:5

  2.         ===============================================
  3.          Broadcom EJTAG Debrick Utility v2.0.1-hugebird
  4.         ===============================================


  5. Set I/O speed to 1000 KHz

  6. USB TAP device has been initialized. Please confirm VREF signal connected!
  7. Press any key to continue... ONCE target board is powered on!

  8. Probing bus ... Done

  9. Detected IR Length is 8

  10. CPU assumed running under LITTLE endian

  11. CPU Chip ID: 00010100011100010010000101111111 (1471217F)
  12. *** Found a Broadcom manufactured BCM4712 REV 01 CPU ***

  13.     - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00800904)
  14.     - EJTAG Version ....... : 1 or 2.0
  15.     - EJTAG DMA Support ... : Yes
  16.     - EJTAG Implementation flags: R4k MIPS32

  17. Issuing Processor / Peripheral Reset ... Done
  18. Enabling Memory Writes ... Skipped
  19. Halting Processor ... <Processor Entered Debug Mode!> ... Done
  20. Clearing Watchdog ... Done
  21. Loading CPU Configuration Code ... Skipped

  22. Probing Flash at Address: 0x1FC00000 ...
  23. Detected pFlash Chip ID (VenID:DevID = 0089 : 0017)
  24. *** Found a (8MB) Intel 28F640J3 4Mx16       (8MB) Flash Chip from Intel

  25.     - Flash Chip Window Start .... : 1C000000
  26.     - Flash Chip Window Length ... : 00800000
  27.     - Selected Area Start ........ : 1C000000
  28.     - Selected Area Length ....... : 00040000

  29. *** You Selected to Flash the CFE.BIN ***

  30. =========================
  31. Flashing Routine Started
  32. =========================
  33. Total Blocks to Erase: 2

  34. Erasing block: 1 (addr = 1C000000)...Done
  35. Erasing block: 2 (addr = 1C020000)...Done

  36. Loading CFE.BIN to Flash Memory...

  37. dma write not correctly !!
  38. 10000817 - 00800080

  39. dma write not correctly !!
  40. 00000000 - 00800080

  41. dma write not correctly !!
  42. 00000000 - 00800080

  43. dma write not correctly !!
  44. 00000000 - 00800080

  45. dma write not correctly !!
  46. 00000000 - 00800080

  47. dma write not correctly !!
  48. 00000000 - 00800080

  49. dma write not correctly !!
  50. 00000000 - 00800080

  51. dma write not correctly !!
  52. 00000000 - 00800080

  53. dma write not correctly !!
复制代码
 楼主| 发表于 2011-2-14 11:38:48 | 显示全部楼层
回复 thethree 的帖子

请用 brjtag -backup:cfe /cable:1来查看是否写入,我估计应该是有数据写入了,只是显示不正确。
可能是数据写完之后没有转换读状态造成的。改了个1.9O1,测试下,如果成功我再合并到2.0.x版本去。
1.9O已经公布源码,如有兴趣自己可调试。实在不行,还是用并口或者改用比较老一点的版本。

1.9O1 测试版

针对ft2232和J-link,intel flash在写入轮训时数据错误



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2011-2-14 19:45:12 | 显示全部楼层
谢谢老大。
不过试了 1.9o1 还是写不进去。
我先运行了 erase, 然后 backup.  我用 hex 编辑器看我以前backup 好的 cfe  和 erase 后 backup 后的,只有4个字节的不同,其他都一样。正常么?是不是 erase 后都是 0 或者都是 F?

然后我把 CFE.BIN 的 某些字节从00 改成 FF, 然后运行 flash:
  1. =========================
  2. Flashing Routine Started
  3. =========================
  4. Total Blocks to Erase: 2

  5. Erasing block: 1 (addr = 1C000000)...Done
  6. Erasing block: 2 (addr = 1C020000)...Done

  7. Loading CFE.BIN to Flash Memory...
  8.    0%   bytes = 640
  9. dma write not correctly !!
  10. FFFF09A9 - 100009A9

  11. dma write not correctly !!
  12. FFFFFFFF - 00000000

  13. dma write not correctly !!
  14. FFFFFFFF - 00000000

  15. dma write not correctly !!
  16. FFFFFFFF - 00000000
  17.    4%   bytes = 11200
  18. dma write not correctly !!
  19. 3C098030 - 00008030
  20.   16%   bytes = 43520
  21. dma write not correctly !!
  22. 16E2FFE2 - 00A2FFE2
  23. Done  (CFE.BIN loaded into Flash Memory OK)

  24. =========================
  25. Flashing Routine Complete
  26. =========================
  27. elapsed time: 41 seconds
复制代码
报错的地方正是我手动 改为 FF 的地方。
再 backup 后用 hex 编辑器看,改成FF 的地方还是 00.

然后用 L1:5 或者 L1:9 降速也不行。

谢谢!
 楼主| 发表于 2011-2-14 20:05:58 | 显示全部楼层
本帖最后由 hugebird 于 2011-2-14 20:19 编辑
thethree 发表于 2011-2-14 19:45
谢谢老大。
不过试了 1.9o1 还是写不进去。
我先运行了 erase, 然后 backup.  我用 hex 编辑器看我以前ba ...


erase之后,备份应该全是FFFF,可以-erase之后,用-backup,看是否擦除成功了,

查看是否写入,应该是先-flash, 之后用-backup将写入的备份出来,用backup后的文件与cfe.bin进行 fc /b比较。 还有一点就是,-flash之后,不能再进行-flash进行覆盖写入操作,因为写入操作只能将数据从1变成0,只有-erase才能将0变成1.  覆盖写入结果是不可靠的。 这个和刻光盘一样,只能在空白盘上刻一次,第2次不能进行覆盖写入,如果要再写入必须用一张新盘,或者是对RW光盘进行全盘擦除再写入。

从用1.9O1显示的结果看,应该有部分写入成功了,比如最后的16e2 ffe2写成了00a2 ffe2,有半字节写入成功了。不应该是你描述的一点没有写入。

如果出现部分写入错误,1.9o1 加/L9:1开关降速以后在试试吧


发表于 2011-2-15 01:23:02 | 显示全部楼层
谢谢老大。
这样看来 erase 就没有成功。
我就是怕看不出来,先做了 erase, 然后backup, 再把  backup 好的打开,并不是 FF. 我上的帖子说的:
我先运行了 erase, 然后 backup.  我用 hex 编辑器看我以前backup 好的 cfe  和 erase 后 backup 后的,只有4个字节的不同,其他都一样。正常么?是不是 erase 后都是 0 或者都是 F?

 楼主| 发表于 2011-2-15 09:54:47 | 显示全部楼层
thethree 发表于 2011-2-15 01:23
谢谢老大。
这样看来 erase 就没有成功。
我就是怕看不出来,先做了 erase, 然后backup, 再把  backup 好 ...

1.9O2

希望这次改动可以成功,可能是等待时间不够,如果还不成功,转用并口线和其它版本吧。


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2011-2-15 23:48:51 | 显示全部楼层
谢谢H大,下载收藏
发表于 2011-2-16 03:45:18 | 显示全部楼层

谢谢老大

还是不成功。用了L9:1选择安全写入脚本也是一样。erase 完后打开,还是老样子,不是FF.

本本没有并口 :-(

你说的其他版本什么意思?是说 brjtag 的其他版本吗?
还有就是哪里能找到 ejtag dma 的资料?我看到你 1.9o 的源程序不过手里没有 DMA的资料,无从下手。
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-6 01:47 , Processed in 0.031390 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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