|
本帖最后由 慕容隐刀 于 2014-5-22 23:20 编辑
寻求大神帮助
周末在家自己编译OP固件,手痒痒,准备往巴法络WZR-HP-G450H-CH中刷入,
自编译固件如下:
openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-factory.bin
openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-tftp.bin
先是使用sysupdate固件,在OP的web升级中刷入,成功重启后,没有达到想要的效果,于是乎,就按照这个朋友的文章的方法,使用MTD 刷入,
命令如下:
mtd -r write openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-factory.bin frameware
文章链接:
http://www.xxb.me/2013/03/wzr-hp-g450h_openwrt_dd-wrt/
结果。。。。。
G450H 成砖了。
现象为,上电后,红灯有规律的闪两下
无奈,上网寻找救砖方案
有的网友说,使用TFTP上传固件刷入
小弟试了一下
Ubuntu命令如下:
apt-get install tftp
ifconfig eth0 192.168.11.2
arp -s 192.168.11.1 02:aa:bb:cc:dd:23
tftp
tftp-> verbose
tftp-> binary
tftp-> trace
tftp-> connect 192.168.11.1
tftp-> put openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-tftp.bin ## 上电后,回车
TFTP上传方法还是不行,系统显示超时
继续上网寻找,想到TTL方法
找到G450H的TTL接口
图片如下:
按照上图所示,接入USB TTL
图片如下:
之后按照坛子里找到的方法
链接如下:
https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=119970
之后到OP的官网,下载了2M左右的TFTP固件
固件名称:
openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-tftp
电脑安装TTL驱动,设备管理中出现COM端口,右键->高级设置,依次为COM3,115200,8,N,1
启动CRT,设置如图所示:
点击连接,G450H上电,成功进入UBOOT界面,之后按照上面连接里介绍的方法操作,但是还是失败了
各位大神看官,帮帮小弟,感激涕零~~,如有不详细的地方,请留言,我尽量回忆补全
{:soso_e109:}{:soso_e109:}{:soso_e109:}{:soso_e109:}{:soso_e109:}{:soso_e109:}{:soso_e109:}
命令及返回信息如下:
>>>>>>>>>>>>>>>>>>START
BUFFALO U-BOOT Ver 1.00
== CPU:400MHz, DDR:400MHz, AHB:200MHz ==
AP111 (ar7241 - Virian) U-boot
DRAM: 64 MB
WAN port disabling: done
Top of RAM usable for U-Boot at: 84000000
Reserving 258k for U-Boot at: 83fbc000
Reserving 192k for malloc() at: 83f8c000
Reserving 44 Bytes for Board Info at: 83f8bfd4
Reserving 36 Bytes for Global Data at: 83f8bfb0
Reserving 128k for boot params() at: 83f6bfb0
Stack Pointer at: 83f6bf98
Now running in RAM - U-Boot at: 83fbc000
flash bank #0 found 16 MB flash [W25Q128BV, blk:0x10000, sectors:256]
flash bank #1 found 16 MB flash [W25Q128BV, blk:0x10000, sectors:256]
Flash: 32 MB
In: serial
Out: serial
Err: serial
Memory Test (address line)
uboot use 83F6BFB0 - 84000000
Memory Test start(0x80000000) end(0x83F00000) size(67108864)
Data line test start:0x80000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
Address line test start:0x80000000 len:0x3f00000 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...
Memory Test OK
### buf_ver=[1.00] U-Boot Ver.=[1.00]
### build_date(env)=[Apr 6 2011 - 08:52:48] build_date(bin)=[Apr 6 2011 - 08:52:48]
ag7240_enet_initialize...
Reading MAC Address from ENV(0x83f8c322)
No valid address in Flash. Using fixed address
Virian MDC CFG Value ==> 4
: cfg1 0x7 cfg2 0x7114
eth0: 02:aa:bb:cc:dd:23
athrs16_reg_init: complete
eth0 up
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
eth1 up
eth0 02:AA:BB:CCD:23
, eth1 00:03:7F:09:0B:AD
dup 1 speed 1000
tftp server(receive) go, waiting:4[sec]
Load address: 0x81f00000
TftpServer Timeout;
no file was loaded.
LAN port disabling: done
## Checking Image at bf060000 ...
Bad Magic Number
===========================================
== Broken first FW, Trying second FW... ==
===========================================
Loading second FW to RAM...
## Checking Image at 81f00000 ...
Bad Magic Number
===========================================
== Broken second FW. Need to repair FW...==
===========================================
# LED(0x4000) Blink[2] (Please press 'Ctrl+c' to stop)
ar7240> loady
## Ready for binary (ymodem) download to 0x81F00000 at 115200 bps...
CCC
开始 ymodem 传输。 按 Ctrl+C 取消。
100% 2880 KB 7 KB/s 00:06:36 0 Errorsuashfs-tftp.bin...
xyzModem - CRC mode, 23043(SOH)/0(STX)/0(CAN) packets, 5 retries
## Total Size = 0x002d0024 = 2949156 Bytes
ar7240> erase BF060000 BEFFFFFF
search sector 0xbf060000 - 0xbeffffff
BANK #1 (6 : 255)
000 PPPP.Poooooooooooooooooooooooooo
032 oooooooooooooooooooooooooooooooo
064 oooooooooooooooooooooooooooooooo
096 oooooooooooooooooooooooooooooooo
128 oooooooooooooooooooooooooooooooo
160 oooooooooooooooooooooooooooooooo
192 oooooooooooooooooooooooooooooooo
224 oooooooooooooooooooooooooooooooo
BANK #2 (0 : 255)
000 oooooooooooooooooooooooooooooooo
032 oooooooooooooooooooooooooooooooo
064 oooooooooooooooooooooooooooooooo
096 oooooooooooooooooooooooooooooooo
128 oooooooooooooooooooooooooooooooo
160 oooooooooooooooooooooooooooooooo
192 oooooooooooooooooooooooooooooooo
224 oooooooooooooooooooooooooooooooo
First 0x6 last 0xff sector size 0x10000
255
First 0x0 last 0xff sector size 0x10000
255
Erased 506 sectors
ar7240> cp.b 81f00000 BF060000 2949156,hex
Copy to Flash...
Copy 43290966 byte to Flash...
write data: 81f00000 --> bf060000 (len:fa0000)
done
ar7240> bootm
change bootargs
console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties),8192k@8192k(flash1),16384k@16384k(flash2) mem=64M
## Booting image at 81f00000 ...
Bad Magic Number
# LED(0x4000) Blink[2] (Please press 'Ctrl+c' to stop)
Bad Header Checksum
# LED(0x4000) Blink[2] (Please press 'Ctrl+c' to stop)
Image Name: 'V=****(此处乱码)'
Created: 2031-11-21 22:34:22 UTC
Image Type: Invalid CPU Invalid OS Invalid Image (uncompressed)
Data Size: 542143842 Bytes = 517 MB
Load Address: 6c696320
Entry Point: 466d7431
Verifying Checksum at 0x81f00040 ...crc32_fw: 81f00040 - a24075a1 (len:20507562) calc...
END<<<<<<<<<<<<<<<<<<<<<<<<
===========================================================================
经过这几天的研究测试,并且参考网友与坛友给予的帮助,我的G450H终于看到希望了,
折腾几天,发现,还是用TFTP上传固件,并且自动刷机,
只是使用TFTP上传的时机没有掌握好,这次成功之前,还是有很多TIMEOUT
下面我说说,关键步骤吧。
1.设置静态IP地址
ip 192.168.11.2 ; netmask 255.255.255.0 ; gateway/dns 192.168.11.1
2.关闭windows防火墙及其他防火墙,拔掉多余网线,只留wan口旁的lan口与电脑连接
3.设置静态路由
windowsXP设置方法
arp -s 192.168.11.1 02:aa:bb:cc:dd:23 (此处mac地址必须为这个,不是自己机子的mac地址)
arp -a (查看是否设置好)
windows7设置方法
route print (看网卡端口,下面命令中写的是11需改成自己的,一般为Interface List下面一行的头一个数字)
netsh interface ipv4 add neighbors 11 192.168.11.1 02:aa:bb:cc:dd:23
4.tftp上传
只有4秒上传时间,
注意要点:机器插上电源后,仔细观察网卡灯,顺序为
1.所有灯全亮,
2.只剩插网线的lan口灯亮,
3.闪烁几下暗掉后请准备,再亮的同时按回车执行下面命令,此处为要点,一定要掌握好时机
tftp -i 192.168.11.1 put d:\openwrt-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin (改成自己放固件的路径和文件名)
5.等待tftp上传
时间很快,十几秒顶多了,但是上传后等待时间会有点长,一般为7、 8分钟,这时什么都不要做,千万不要断电,路由会自己重启
6.删除静态路由,改ip地址为自动获取
asp -d
7.登录OP吧。。。
** 注意 **
有的网友说,在刷机前最好把PC的网卡设成百兆的,这样成功率会增加
-------------图片---------------
--------------致谢--------------
感谢各位帮助我的网友与坛友
感谢提供技术文章的大神高手
--------------参考-------------
http://wiki.openwrt.org/toh/buffalo/wzr-hp-g450h#how.recover.from.a.broken.firmware
http://www.openwrt.org.cn/bbs/forum.php?mod=viewthread&tid=13096
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|