PCEVA,PC绝对领域,探寻真正的电脑知识
开启左侧

Buffalo WZR-HP-G450H 刷 OpenWRT【通了】

[复制链接]
尊称 发表于 2014-9-7 13:24 | 显示全部楼层 |阅读模式
点击数:20800|回复数:39
本帖最后由 尊称 于 2014-9-17 23:30 编辑

先刚到这儿:http://ju.outofmemory.cn/entry/84192

原地址在:http://outofmemory.cn/wr/?u=https%3A%2F%2Fbiergaizi.info%2Farchives%2F2014%2F07%2F1878.html

大概看了一下,不知道好使不好使。一旦出现他没写的,又不懂的咋办?  
尊称  楼主| 发表于 2014-9-11 17:46 | 显示全部楼层
一直找不到靠谱的方法,对linux不熟,不敢干。
尊称  楼主| 发表于 2014-9-12 10:31 | 显示全部楼层
果然变砖了。呵呵,等待明白人过来,帮助弄吧。
Epic 发表于 2014-9-12 10:57 | 显示全部楼层
尊称 发表于 2014-9-12 10:31
果然变砖了。呵呵,等待明白人过来,帮助弄吧。

你不是已经刷上了dd吗?
尊称  楼主| 发表于 2014-9-12 11:08 | 显示全部楼层
本帖最后由 尊称 于 2014-9-12 11:10 编辑
Epic 发表于 2014-9-12 10:57
你不是已经刷上了dd吗?

对呀,dd照着刷了一下openwrt,到挺快,完事儿就完事儿了。  

Installation
Migrate from DD-WRT to OpenWrt
1.        Enable SSH or Telnet on the router
2.        Login to the router via SSH or Telnet
3.        Change directory to /tmp and download OpenWrt firmware image file:
  1. cd /tmp
  2. wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-sysupgrade.bin
复制代码
5.        Overwrite current firmware with the downloaded one:
  1. mtd -r write openwrt-ar71xx-generic-wzr-hp-g450h-squashfs-sysupgrade.bin linux
复制代码
After flashing, the router should go down for a reboot and return running OpenWrt.

尊称  楼主| 发表于 2014-9-12 11:12 | 显示全部楼层
所以说不理解害死人嘛,哈哈。没事儿,我同学经常出差过来,它是搞linux嵌入方面开发的,而且就是干的通讯,所以对付一个路由器应该小儿科,而且需要的工具他肯定齐全。
尊称  楼主| 发表于 2014-9-12 11:18 | 显示全部楼层
好在多年前手头有个这,候补着,不然就没法上网了。


本帖子中包含更多资源

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

x
Epic 发表于 2014-9-12 14:18 | 显示全部楼层
尊称 发表于 2014-9-12 11:08
对呀,dd照着刷了一下openwrt,到挺快,完事儿就完事儿了。

真成砖了?
尊称  楼主| 发表于 2014-9-12 16:19 | 显示全部楼层
Epic 发表于 2014-9-12 14:18
真成砖了?

那还不真成?开机ping没有响应。
尊称  楼主| 发表于 2014-9-14 14:28 | 显示全部楼层
本帖最后由 尊称 于 2014-9-14 15:10 编辑

易迅竟然不给维修,说我第三方固件不管。所以不能在易迅买东西,我差不多每年都在京东质保,京东还没火起来的时候我就是京东的常客,从没发生这样的郁闷。算了,自己干了。惹不起咱躲得起。

先拆。竟然换了几个批头、钟表改锥,用放大镜看是六花螺丝,眼神不济呀。用这种螺丝基本不是国内的东西。


批头还不够长,牙签顶一下。




下一步做一个ttl转232的线,小东西反而麻烦得紧。一步一步来。

本帖子中包含更多资源

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

x
世纪冰雷 发表于 2014-9-14 17:52 | 显示全部楼层
巴大叔的不好刷。。祝ttl好运。
じ☆ve寶寶 发表于 2014-9-14 18:39 | 显示全部楼层
砖了?哈哈 直接返修 你干嘛说刷固件的
尊称  楼主| 发表于 2014-9-14 19:59 | 显示全部楼层
じ☆ve寶寶 发表于 2014-9-14 18:39
砖了?哈哈 直接返修 你干嘛说刷固件的

这点事儿没那个必要说谎,况且又不是做不了的事情。老子干了一辈子技术了,最不喜欢别人拿我,自己争口气。  
じ☆ve寶寶 发表于 2014-9-14 20:24 | 显示全部楼层
尊称 发表于 2014-9-14 19:59
这点事儿没那个必要说谎,况且又不是做不了的事情。老子干了一辈子技术了,最不喜欢别人拿我,自己争口气 ...

老巴应该是刷不死的
世纪冰雷 发表于 2014-9-16 18:17 | 显示全部楼层
じ☆ve寶寶 发表于 2014-9-14 20:24
老巴应该是刷不死的

╮(╯▽╰)╭会电烙笔焊flash 的话其实木有刷得死的~

尊称  楼主| 发表于 2014-9-17 23:49 | 显示全部楼层
刷的方式就是按照@Epic  的方式:  http://bbs.pceva.com.cn/forum.ph ... 467&pid=1203114

其实没有刷成砖,只是没有工作而已,顶楼转帖里面说了,要设置root的passwd之后才能运转。



TTL转232模块

原来串口线直接压还不行,多年不用都忘了。


淘宝:http://item.taobao.com/item.htm? ... &id=10832731654
直接去公司买的,老板娘不错,北京人,专做院校实验器材的,看来路子畅通。很多做技术的,做到最后,自己找不到产品、市场,也是白费。我猜这家就是这个路子起来的。





补充内容 (2015-5-10 05:42):
http://wiki.openwrt.org/toh/buffalo/wzr-hp-g450h

本帖子中包含更多资源

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

x
尊称  楼主| 发表于 2014-9-18 19:19 | 显示全部楼层
本帖最后由 尊称 于 2014-9-18 19:24 编辑

OpenWrt Attitude Adjustment 12.09 (正式版)

系统可选就有中文包了,慢慢懂……

本帖子中包含更多资源

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

x
Epic 发表于 2014-9-27 13:28 | 显示全部楼层
尊称 发表于 2014-9-18 19:19
OpenWrt Attitude Adjustment 12.09 (正式版)

系统可选就有中文包了,慢慢懂……

?Luci默认没启动?
尊称  楼主| 发表于 2014-9-27 14:20 | 显示全部楼层
本帖最后由 尊称 于 2014-9-27 14:22 编辑
Epic 发表于 2014-9-27 13:28
?Luci默认没启动?


上面已经有图。


不会玩。貌似新版nwan不兼容12.09或Luci0.11,还是缺什么包,装不上去还没折腾。慢慢弄。

默认系统可用软件包里面有 multiwan 1.0.22-2 看教程还要手工添加配置,就没有动,不明白太费工夫。

本帖子中包含更多资源

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

x
尊称  楼主| 发表于 2015-5-13 03:06 | 显示全部楼层
本帖最后由 尊称 于 2015-5-13 03:10 编辑

http://www.dd-wrt.com/phpBB2/vie ... uffalo&start=15
Well here they are:

1. Download the openwrt source files and look for buffalo-enc.c, buffalo-lib.c, and buffalo-lib.h.

2. Open buffalo-enc.c and add the line to the top:

#include "buffalo-lib.c"

3. Use whatever C/C++ compiler you want, but I used gcc:

gcc -o buffalo-enc.prog buffalo-enc.c

4. Now you have the decryption program, but you'll need to strip off the first "start" section of the firmware using a hex editor. I used wxhexedit 0.22 (0.21 has a bug that disallows saving truncated files). You must highlight and delete the first 208 bytes of the firmware file up to the second "start" word in the file.

5. After saving this, run buffalo-enc.prog -d -i wzrhpg450h-pro-v24sp2-20025.enc -o decrypted.bin

6. This will produce feedback text in your terminal indicating the decryption was successful.

7. You may now use the Openwrt (or any firmware flash gui running from your router) and it won't complain of an invalid firmware image.



[root@localhost buffalo-enc]# gcc -o buffalo-enc.prog buffalo-enc.c

[root@localhost buffalo-enc]# ls -l
总用量 72
-rw-------. 1 root root  5619 5月  13 02:53 buffalo-enc.c
-rwxr-xr-x. 1 root root 20254 5月  13 02:54 buffalo-enc.prog
-rw-------. 1 root root 10360 5月  13 02:03 buffalo-lib.c
-rw-------. 1 root root  3355 5月  13 02:04 buffalo-lib.h
-rw-------. 1 root root  7600 5月  13 02:04 buffalo-tag.c
-rw-------. 1 root root  3181 5月  13 02:04 buffalo-tftp.c


[root@localhost down]# dd bs=208 skip=1 if=wzrhpg450h-pro-v24sp2-20025b.enc of=wzrhpg450h-pro-v24sp2-20025b.enc_less218
记录了72192+1 的读入
记录了72192+1 的写出
15015980字节(15 MB)已复制,0.183807 秒,81.7 MB/秒


[root@localhost down]# ./buffalo-enc.prog -d -i wzrhpg450h-pro-v24sp2-20025b.enc_less218 -o wzrhpg450h-pro-v24sp2-20025b-decrypted.bin
Magic                : 'start'
Seed                : 0xd6
Product                : 'WZR-HP-G450H'
Version                : '1.86'
Data len        : 15015936
Checksum        : 0x5d083a35
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部