Hello OpenWrt

记录一下Hello DD-Wrt和Hello OpenWrt的方法
郑重提示:刷机有风险,需谨慎,本人免责

本来买到这台WRT54GL[CL7C]的时候是让卖家给刷的DD-Wrt的.在实习的地方一直用着,也就没有折腾,现在回到家里了,家里有一台WGR614v9[当时被传说中的成都总代给忽悠了,这台机器的状态还是WIP],这下WRT54GL就是空闲着的了.
正巧手机突然变得很不稳定,运行软件之后,会把直接把内存占用光,于是心血来潮想改个刷机包来把她刷一次,自然而然地也想起把路由刷成OpenWrt.

上午折腾了一上午的E6刷机包.解开,挂载,然后查看里面的东西,不用的就删掉,有用的就改一下配置.结果搞出来个刷机包还比原版的大.自然就不敢刷机了.
下午直接看了OpenWrt的OldWiki,上面专门有WRT54GL的页面,然后查找了诸多资料.

整理刷机后心得,如下:

1.LinkSys to DD-Wrt

这里分成了两种情况:2MBflash和4MB以上flash
1.下载DD-Wrt相应版本的bin直接通过LinkSys的网页刷新就可以了,记得要恢复出厂模式;
2.下载DD-Wrt相应版本的mini_generic.bin,通过LinkSys的网页刷新,刷新完成之后,通过telnet刷std_generic.bin

2.DD-Wrt to OpenWrt

telnet到路由,下载固件到/tmp目录,写入,具体实现命令如下[针对我自己的WRT54GL]:

telnet 10.0.0.1
wget http://downloads.openwrt.org/kamikaze/8.09.1/brcm-2.4/openwrt-brcm-2.4-squashfs.trx -O /tmp/openwrt-brcm-2.4-squashfs.trx
wget http://downloads.openwrt.org/kamikaze/8.09.1/brcm-2.4/md5sums -O /tmp/md5sums
md5sums /tmp/openwrt-brcm-2.4-squashfs.trx
cat /tmp/md5sums
mtd write /tmp/openwrt-brcm-2.4-squashfs.trx linux && reboot

3.OpenWrt to DD-Wrt

ssh到路由,下载固件到/tmp目录,写入,具体实现命令如下[针对我自己的WRT54GL]:

ssh root@110.0.0.1
wget http://www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.v24%20SP1/Consumer/Linksys/WRT54GL_1.1/dd-wrt.v24_std_generic.bin -O /tmp/dd-wrt.v24_std_generic.trx
mtd write /tmp/dd-wrt.v24_std_generic.trx linux && reboot

补充:今日DD-Wrt正测试一个路由数据库,这个东东是基于AJAX的,可以方便地查找你自己的路由支持与否,外加额外信息,注意事项等,还会直接提供可用的固件好几个版本,点击之便可直接下载.

所以可以不用辛苦去下载目录里找了,所以这里还有补充方法.

从DD-Wrt的路由数据库下载固件到/home,scp复制固件到路由的/tmp目录,写入,具体实现命令如下[针对我自己的WRT54GL]:

scp /home/dd-wrt.v24_std_generic.trx root@110.0.0.1:/tmp
ssh root@110.0.0.1
mtd write /tmp/dd-wrt.v24_std_generic.trx linux && reboot

PS0:个人感觉OpenWrt太耗空间,装了一个tor就没有空间了.最后还是要折腾回来的.

This entry was posted in 还是会寂寞. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

7 Responses to Hello OpenWrt

  1. Vote -1 Vote +1tw CHINA Mozilla Firefox Windows
    說道:

    借助这里的信息,刷到open-wrt,又回到了dd-wrt。尝试了一下,觉得open-wrt配置比较麻烦。懒得去学配置文件了。还是到dd-wrt便利。

  2. Vote -1 Vote +1Chen JAPAN Mozilla Firefox Windows
    說道:

    在openwrt下输入:
    mtd -r write ddwrt.trx linux
    出现下列结果:
    Could not open mtd device: linux
    Can’t open device for writing!

    请问如何解决?

  3. Vote -1 Vote +1短歌行 CHINA Mozilla Firefox Windows
    說道:

    我的500GP V1和520GU用的都是tomato固件。

  4. Vote -1 Vote +1young001 CHINA Mozilla Firefox Windows
    說道:

    以前刷过,好久好久了

  5. Vote -1 Vote +1Iven CHINA Mozilla Linux
    說道:

    文章在哪?

Leave a Reply

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。

Chat Plugin created by Jake Ruston's Wordpress Plugins - Powered by Hardshell Laptop Cases and Ben 10 Games.