|
本帖最后由 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
插上路由电源,终端显示为- BUFFALO U-BOOT Ver 1.07
- AP83--539 (ar9100) U-boot 0.0.12
- 64 MB
- Memory Test (address line)
- Memory Test start(0x00000000) end(0x04000000) size(67108864)
- Data line test start:0x00000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
- Address line test start:0x00000000 len:0x4000000 pattern 0xAAAAAAAA 0x55555555
- Fill test patnum:5
- fill Pattern 5555AAAA Writing... Reading...
- fill Pattern AAAA5555 Writing... Reading...
- fill Pattern 0000FFFF Writing... Reading...
- fill Pattern FFFF0000 Writing... Reading...
- fill Pattern AAAAAAAA Writing... Reading...
- Top of RAM usable for U-Boot at: 84000000
- Reserving 275k for U-Boot at: 83fb8000
- Reserving 256k for malloc() at: 83f78000
- Reserving 44 Bytes for Board Info at: 83f77fd4
- Reserving 36 Bytes for Global Data at: 83f77fb0
- Reserving 128k for boot params() at: 83f57fb0
- Stack Pointer at: 83f57f98
- Now running in RAM - U-Boot at: 83fb8000
- Dev ID2:2222
- Dev ID3:2201
- Name: AMD-SPANSION Flash id: 0x1227E, Size: 33554432 bytes.
- Flash: 32 MB
- In: serial
- Out: serial
- Err: serial
- Memory Test
- uboot use 83F57FB0 - 84000000
- Memory Test start(80000000) end(83F00000) size(03F00000)
- Pattern 00000000 Writing... Reading...
- Memory Test OK
- ### buf_ver=[1.07] U-Boot Ver.=[1.07]
- ### build_date(env)=[Dec 21 2009 - 10:37:11] build_date(bin)=[Dec 21 2009 - 10:37:11]
- ag7100_enet_initialize...
- : cfg1 0xf cfg2 0x7114
- RTL8366 series driver, reading model-id...
- ID:0x6027, REV:0x6
- rtl8366sr_phy_setup ethUnit=0
- Realtek 8366SR switch ID 0x8366
- Realtek Greeen Ethernet Setup
- eth0: 02:aa:bb:cc:dd:1a
- eth0 up
- : cfg1 0xf cfg2 0x7114
- RTL8366 series driver, reading model-id...
- eth1: 02:aa:bb:cc:dd:1a
- eth1 up
- eth0 02:AA:BB:CC:DD:1A
- , eth1 02:AA:BB:CC:DD:1A
- Trying eth0
- eth0 is duplex
- ag7100_check_link: _100BASET
- dup 1 speed 100
- CFG_PLL_FREQ=5
- CFG_HZ=bebc200
- cpu pll=1050
- eth pll=1032
- eth0 clk pll=13000a44
- eth0 mii=12
- eth0 cfg1=f
- eth0 cfg2=7115
- eth0 fcfg_0=1f1f00
- eth0 fcfg_1=7ff0000
- eth0 fcfg_2=fff
- eth0 fcfg_3=780008
- eth0 fcfg_4=3ffff
- eth0 fcfg_5=3ffff
- tftp server(receive) go, waiting:4[sec]
- Trying eth1
- eth1 link down
- FAIL
- Trying eth0
- eth0 is duplex
- ag7100_check_link: _100BASET
- Load address: 0x81f00000
复制代码 当见到 Load address: 0x81f00000,马上ctrl+c按一下,再按提示任意键停止运行- Abort
- no file was loaded.
- ### main_loop entered: bootdelay=4
- ### main_loop: bootcmd="bootm 0xbe060000"
- Hit any key to stop autoboot: 0
- ar7100>
复制代码 输入 printenv- ar7100> printenv
- 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)
- bootcmd=bootm 0xbe060000
- bootdelay=4
- baudrate=115200
- ethaddr=02:AA:BB:CC:DD:1A
- ipaddr=192.168.11.1
- serverip=192.168.11.2
- tmp_ram=81F00000
- tmp_bottom=83F00000
- fw_eaddr=BE060000 BFFDFFFF
- uboot_eaddr=BE000000 BE03FFFF
- u_fw=erase $fw_eaddr; cp.b $fileaddr BE060000 $filesize; bootm BE060000;
- ut_fw=tftp $tmp_ram firmware.bin; erase $fw_eaddr; cp.b $fileaddr BE060000 $filesize; bootm BE060000;
- ut_uboot=tftp $tmp_ram u-boot.bin; protect off $uboot_eaddr; erase $uboot_eaddr; cp.b $fileaddr BE000000 $filesize;
- melco_id=RD_BB08011
- tftp_wait=4
- uboot_ethaddr=02:AA:BB:CC:DD:1A
- DEF-p_wireless_ath0_11bg-authmode=psk
- DEF-p_wireless_ath0_11bg-crypto=tkip+aes
- DEF-p_wireless_ath0_11bg-authmode_ex=mixed-psk
- buf_ver=1.07
- build_date=Dec 21 2009 - 10:37:11
- buf_crc=F3F19D7B
- hw_rev=0
- pincode=34171431
- custom_id=0
- DEF-p_wireless_ath0_11bg-wpapsk=3p1y55yhbu49b
- region=AP
- accept_open_rt_fmt=1
- stdin=serial
- stdout=serial
- stderr=serial
- loadaddr=81F00000
- ethact=eth0
- Environment size: 1141/131068 bytes
复制代码 输入 erase be060000 bffdffff- ar7100> erase be060000 bffdffff
- Erase Flash from 0xbe060000 to 0xbffdffff in Bank # 1 First 0x3 last 0xfe 100%
- Erased 252 sectors
复制代码 输入 tftp 81f00000 Buffalo_DD-Wrt_V24-SP2_r14998.bin- ar7100> tftp 81f00000 Buffalo_DD-Wrt_V24-SP2_r14998.bin
- Trying eth0
- eth0 is duplex
- ag7100_check_link: _100BASET
- Using eth0 device
- TFTP from server 192.168.11.2; our IP address is 192.168.11.1
- Filename 'Buffalo_DD-Wrt_V24-SP2_r14998.bin'.
- Load address: 0x81f00000
- Loading: #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- ##################
- done
- Bytes transferred = 12402688 (bd4000 hex)
复制代码 输入 iminfo- ar7100> iminfo
- ## Checking Image at 81f00000 ...
- Image Name: DD-WRT v24 Linux Kernel Image
- Created: 2010-08-19 13:32:33 UTC
- Image Type: MIPS Linux Kernel Image (lzma compressed)
- Data Size: 1047014 Bytes = 1022.5 kB
- Load Address: 80002000
- Entry Point: 802e1000
- Verifying Checksum ... OK
复制代码 输入 cp.b 81f00000 be060000 bd4000- ar7100> cp.b 81f00000 be060000 bd4000
- Copy to Flash...
- Copy 12402688 byte to Flash... 100%
- done
复制代码 最后把tff线拔出,重启路由电源,已恢复
感谢
https://www.right.com.cn/forum/thread-74139-1-1.html
http://www.mmxsoft.com/post-25.html |
|