找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3681|回复: 2

G300NH 通过tff恢复方法全过程

[复制链接]
发表于 2013-1-30 19:52 | 显示全部楼层 |阅读模式
本帖最后由 evamix 于 2013-1-30 23:58 编辑

因为手一贱,原DD-WRT升级,无故中途不响应,果断网上购买螺丝刀和tff线

准备材料一览:
1)PL2303 USB转TTL 驱动官方下载地址 兼容 Windows XP/ Vista/7/8 (32 & 64-bit)
2)杜邦线(最少3根) 以及 排针(可不焊)
3)软件 PuTTY 和 tftpd32
4)固件 Buffalo_DD-Wrt_V24-SP2_r14998.bin


Pin1 : VCC +3.3V – LEAVE UNCONNECTED .
pin2 : GND
pin3 : TX
pin4 : RX
我所购买的ttl接法 GND对pin2 RXD对pin3 TXD对pin2,接好并紧固插孔

打开 tftpd32 并设置好地址,把固件放到同一目录中
设置电脑IP 192.168.11.2 255.255.255.0,接上线并开启 PuTTY

插上路由电源,终端显示为
  1. BUFFALO U-BOOT Ver 1.07
  2. AP83--539 (ar9100) U-boot 0.0.12
  3. 64 MB
  4. Memory Test (address line)
  5. Memory Test start(0x00000000) end(0x04000000) size(67108864)
  6. Data line test start:0x00000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
  7. Address line test start:0x00000000 len:0x4000000 pattern 0xAAAAAAAA 0x55555555
  8. Fill test patnum:5
  9. fill Pattern 5555AAAA  Writing...   Reading...
  10. fill Pattern AAAA5555  Writing...   Reading...
  11. fill Pattern 0000FFFF  Writing...   Reading...
  12. fill Pattern FFFF0000  Writing...   Reading...
  13. fill Pattern AAAAAAAA  Writing...   Reading...
  14. Top of RAM usable for U-Boot at: 84000000
  15. Reserving 275k for U-Boot at: 83fb8000
  16. Reserving 256k for malloc() at: 83f78000
  17. Reserving 44 Bytes for Board Info at: 83f77fd4
  18. Reserving 36 Bytes for Global Data at: 83f77fb0
  19. Reserving 128k for boot params() at: 83f57fb0
  20. Stack Pointer at: 83f57f98
  21. Now running in RAM - U-Boot at: 83fb8000
  22. Dev ID2:2222
  23. Dev ID3:2201
  24. Name: AMD-SPANSION Flash id: 0x1227E, Size: 33554432 bytes.
  25. Flash: 32 MB
  26. In:    serial
  27. Out:   serial
  28. Err:   serial
  29. Memory Test
  30. uboot use  83F57FB0 - 84000000
  31. Memory Test start(80000000) end(83F00000) size(03F00000)
  32. Pattern 00000000  Writing...  Reading...
  33. Memory Test OK
  34. ### buf_ver=[1.07] U-Boot Ver.=[1.07]
  35. ### build_date(env)=[Dec 21 2009 - 10:37:11] build_date(bin)=[Dec 21 2009 - 10:37:11]
  36. ag7100_enet_initialize...
  37. : cfg1 0xf cfg2 0x7114
  38. RTL8366 series driver, reading model-id...
  39.   ID:0x6027, REV:0x6
  40. rtl8366sr_phy_setup  ethUnit=0
  41. Realtek 8366SR switch ID 0x8366
  42. Realtek Greeen Ethernet Setup
  43. eth0: 02:aa:bb:cc:dd:1a
  44. eth0 up
  45. : cfg1 0xf cfg2 0x7114
  46. RTL8366 series driver, reading model-id...
  47. eth1: 02:aa:bb:cc:dd:1a
  48. eth1 up
  49. eth0  02:AA:BB:CC:DD:1A
  50. , eth1  02:AA:BB:CC:DD:1A

  51. Trying eth0
  52. eth0 is duplex
  53. ag7100_check_link: _100BASET
  54. dup 1 speed 100
  55. CFG_PLL_FREQ=5
  56. CFG_HZ=bebc200
  57. cpu pll=1050
  58. eth pll=1032
  59. eth0 clk pll=13000a44
  60. eth0 mii=12
  61. eth0 cfg1=f
  62. eth0 cfg2=7115
  63. eth0 fcfg_0=1f1f00
  64. eth0 fcfg_1=7ff0000
  65. eth0 fcfg_2=fff
  66. eth0 fcfg_3=780008
  67. eth0 fcfg_4=3ffff
  68. eth0 fcfg_5=3ffff

  69. tftp server(receive) go, waiting:4[sec]
  70. Trying eth1
  71. eth1 link down
  72. FAIL
  73. Trying eth0
  74. eth0 is duplex
  75. ag7100_check_link: _100BASET
  76. Load address: 0x81f00000
复制代码
当见到 Load address: 0x81f00000,马上ctrl+c按一下,再按提示任意键停止运行
  1. Abort
  2. no file was loaded.
  3. ### main_loop entered: bootdelay=4

  4. ### main_loop: bootcmd="bootm 0xbe060000"
  5. Hit any key to stop autoboot:  0
  6. ar7100>
复制代码
输入 printenv
  1. ar7100> printenv
  2. bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar9100-nor0:256k(u-boot),128k(u-boot-env),1024k(uImage),31104k(rootfs),128k@32640k(ART),128k@32512k(properties)
  3. bootcmd=bootm 0xbe060000
  4. bootdelay=4
  5. baudrate=115200
  6. ethaddr=02:AA:BB:CC:DD:1A
  7. ipaddr=192.168.11.1
  8. serverip=192.168.11.2
  9. tmp_ram=81F00000
  10. tmp_bottom=83F00000
  11. fw_eaddr=BE060000 BFFDFFFF
  12. uboot_eaddr=BE000000 BE03FFFF
  13. u_fw=erase $fw_eaddr; cp.b $fileaddr BE060000 $filesize; bootm BE060000;
  14. ut_fw=tftp $tmp_ram firmware.bin; erase $fw_eaddr; cp.b $fileaddr BE060000 $filesize; bootm BE060000;
  15. ut_uboot=tftp $tmp_ram u-boot.bin; protect off $uboot_eaddr; erase $uboot_eaddr; cp.b $fileaddr BE000000 $filesize;
  16. melco_id=RD_BB08011
  17. tftp_wait=4
  18. uboot_ethaddr=02:AA:BB:CC:DD:1A
  19. DEF-p_wireless_ath0_11bg-authmode=psk
  20. DEF-p_wireless_ath0_11bg-crypto=tkip+aes
  21. DEF-p_wireless_ath0_11bg-authmode_ex=mixed-psk
  22. buf_ver=1.07
  23. build_date=Dec 21 2009 - 10:37:11
  24. buf_crc=F3F19D7B
  25. hw_rev=0
  26. pincode=34171431
  27. custom_id=0
  28. DEF-p_wireless_ath0_11bg-wpapsk=3p1y55yhbu49b
  29. region=AP
  30. accept_open_rt_fmt=1
  31. stdin=serial
  32. stdout=serial
  33. stderr=serial
  34. loadaddr=81F00000
  35. ethact=eth0

  36. Environment size: 1141/131068 bytes
复制代码
输入 erase be060000 bffdffff
  1. ar7100> erase be060000 bffdffff
  2. Erase Flash from 0xbe060000 to 0xbffdffff in Bank # 1 First 0x3 last 0xfe   100%
  3. Erased 252 sectors
复制代码
输入 tftp 81f00000 Buffalo_DD-Wrt_V24-SP2_r14998.bin
  1. ar7100> tftp 81f00000 Buffalo_DD-Wrt_V24-SP2_r14998.bin
  2. Trying eth0
  3. eth0 is duplex
  4. ag7100_check_link: _100BASET
  5. Using eth0 device
  6. TFTP from server 192.168.11.2; our IP address is 192.168.11.1
  7. Filename 'Buffalo_DD-Wrt_V24-SP2_r14998.bin'.
  8. Load address: 0x81f00000
  9. Loading: #################################################################
  10.          #################################################################
  11.          #################################################################
  12.          #################################################################
  13.          #################################################################
  14.          #################################################################
  15.          #################################################################
  16.          #################################################################
  17.          #################################################################
  18.          #################################################################
  19.          #################################################################
  20.          #################################################################
  21.          #################################################################
  22.          #################################################################
  23.          #################################################################
  24.          #################################################################
  25.          #################################################################
  26.          #################################################################
  27.          #################################################################
  28.          #################################################################
  29.          #################################################################
  30.          #################################################################
  31.          #################################################################
  32.          #################################################################
  33.          #################################################################
  34.          #################################################################
  35.          #################################################################
  36.          #################################################################
  37.          #################################################################
  38.          #################################################################
  39.          #################################################################
  40.          #################################################################
  41.          #################################################################
  42.          #################################################################
  43.          #################################################################
  44.          #################################################################
  45.          #################################################################
  46.          ##################
  47. done
  48. Bytes transferred = 12402688 (bd4000 hex)
复制代码
输入 iminfo
  1. ar7100> iminfo

  2. ## Checking Image at 81f00000 ...
  3.    Image Name:   DD-WRT v24 Linux Kernel Image
  4.    Created:      2010-08-19  13:32:33 UTC
  5.    Image Type:   MIPS Linux Kernel Image (lzma compressed)
  6.    Data Size:    1047014 Bytes = 1022.5 kB
  7.    Load Address: 80002000
  8.    Entry Point:  802e1000
  9.    Verifying Checksum ... OK
复制代码
输入 cp.b 81f00000 be060000 bd4000
  1. ar7100> cp.b 81f00000 be060000 bd4000
  2. Copy to Flash...
  3. Copy 12402688 byte to Flash...                                             100%
  4. done
复制代码
最后把tff线拔出,重启路由电源,已恢复

感谢
https://www.right.com.cn/forum/thread-74139-1-1.html
http://www.mmxsoft.com/post-25.html
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2013-4-4 00:56 | 显示全部楼层
谢谢分享{:soso_e179:}
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2013-4-19 13:21 | 显示全部楼层
神贴啊。
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-10-4 16:29

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

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