找回密码
 注册

QQ登录

只需一步,快速开始

查看: 117059|回复: 173

自己编译了个OPENWRT给我的GT701-WG刷,本站首发,要求申精!

  [复制链接]
发表于 2009-7-29 13:42:39 | 显示全部楼层 |阅读模式
半个月前,买了个GT701-WG,开始就刷了个gt701wg_qw06.5-3.60.3.0.8版本的固件,用着还稳定,不过没什么玩头,也从openwrt里面下载ar7的固件来刷,不过,刷了就不懂怎么上网了,所以这两天研究了下openwrt,自己编译了个,把webif网站管理包编译进去,能正常用了,自身所带的ADSL功能一点也不缺。下面说一下GT701-Wg是怎么刷openwrt的:
1、插上GT701-WG猫的电源,在猫启动2-7秒内用ftp连接到192.168.0.1
用adam2用户名和密码登录。
2、用下面的命令重新设置mtd区:
=========================
E:\>ftp 192.168.0.1
Connected to 192.168.0.1.
220 ADAM2 FTP Server ready.
User (192.168.0.1:(none)): adam2
331 Password required for adam2.
Password:
230 User adam2 successfully logged in.
ftp> quote GETENV mtd0
mtd0                  0x900d0000,0x903e0000
200 GETENV command successful
ftp> quote GETENV mtd1
mtd1                  0x90010000,0x900d0000
200 GETENV command successful
ftp> quote GETENV mtd2
mtd2                  0x90000000,0x90010000
200 GETENV command successful
ftp> quote GETENV mtd3
mtd3                  0x903f0000,0x90400000
200 GETENV command successful
ftp> quote GETENV mtd4
mtd4                  0x903e0000,0x903f0000
200 GETENV command successful
ftp> quote GETENV mtd5
501 mtd5 environment variable not set.
ftp> quote SETENV mtd5,0x90010000,0x903e0000
200 SETENV command successful
ftp> quote SETENV MAC_PORT,0
200 SETENV command successful
ftp>quit
=================================
ftp>后面就是你要输进去的命令,其他是一些反馈信息。
完成上面的工作后,重新启动猫。
3、把openwrt固件放到E盘,然后运行cmd,先转到E盘,再按照第一步的方法,用ftp连接到ADAM2里面去。按照下面的步骤来刷新固件:
==================================
E:\>ftp 192.168.0.1
Connected to 192.168.0.1.
220 ADAM2 FTP Server ready.
User (192.168.0.1:(none)): adam2
331 Password required for adam2.
Password:
230 User adam2 successfully logged in.
ftp> binary
200 Type set to I.
ftp> quote MEDIA FLSH
200 Media set to FLSH.
ftp> put openwrt-ar7-squashfs.bin "openwrt-ar7-squashfs.bin mtd5"
200 Port command successful.
150 Opening BINARY mode data connection for file transfer.
226 Transfer complete.
ftp: 3145732 bytes sent in 28.45Seconds 110.56Kbytes/sec.
ftp> quote REBOOT
221-Thank you for using the FTP service on ADAM2.
221 Goodbye.
=============================
4、等猫重启后,这时不用进ADAM2啦,你的网卡必须设好IP地址为:192.168.1.X,然后用telnet192.168.1.1来连接到openwrt,先用passwd修改密码,然后用vi/etc/config/network来修改网络设置。修改里面的内容,其实就是把有#号的一些行改一下,去掉前面的#号,修改为合适的内容就可以了。主要修改的内容如下:
========================
config 'atm-bridge'
    option unit 0
    option encaps llc
    option vpi 0
    option vci 35
    option payload bridged

config 'interface' 'wan'
    option ifname nas0
    option proto pppoe
    option username ”你的adsl帐号“
    option password ”adsl密码“
============================
然后保存退出,重新启动GT701-WG,进去后就可以上网了,也可以用http://192.168.1.1进去用web来修改你的配置。不过貌似刚才没在telnet里面修改network的话,单单在web里面修改是上不了网的。
另外,要upnp功能的话,可以在web里面安装miniupnpd就行了。
在系统-软件包里面,更新软件包列表后,你要安装什么软件,可以直接安装啦。可惜,GT701-Wg只有4Mflash空间,刷了固件后没剩多少空间给你安装软件啦,不过常用的就足够了。

评分

参与人数 1威望 +3 猫粮 +3 贡献 +3 收起 理由
bestxiajing + 3 + 3 + 3 支持原创

查看全部评分

 楼主| 发表于 2009-7-29 13:43:58 | 显示全部楼层
本帖最后由 黑洞001 于 2009-7-29 05:46 编辑

占二楼放固件,解压后就可以刷了。
发表于 2009-7-29 13:55:20 | 显示全部楼层
(shan:这个机型用的人不是很多,不过大侠你这么无私,肯定强烈支持
 楼主| 发表于 2009-7-29 14:03:47 | 显示全部楼层
另外,恢复原来固件的方法:
1、先到http://www.qwest.com/internethel ... T701WG_drivers.html下载恢复固件Firmware Recovery QW06.5。
2、将压缩包里面的一个img和一个bin文件放到E盘根目录下。
3、运行cmd,先转到E盘,然后按照原来的方法进入ADAM2里面进行恢复:
E:\>ftp 192.168.0.1
Connected to 192.168.0.1.
220 ADAM2 FTP Server ready.
Name (192.168.0.1:user): adam2
Password:
230 User adam2 successfully logged in.
Remote system type is UNIX.
ftp> binary
200 Type set to I.
ftp> quote UNSETENV mtd5
200 UNSETENV command successful
ftp> quote UNSETENV MAC_PORT
200 UNSETENV command successful
ftp> quote MEDIA FLSH
200 Media set to FLSH.
ftp> put nsp.ar7wrd.squashfs.img "nsp.ar7wrd.squashfs.img mtd0"
local: nsp.ar7wrd.squashfs.img remote: nsp.ar7wrd.squashfs.img mtd0
502 Command not implemented - Try HELP.
227 Entering Passive Mode (192,168,0,1,4,45).
150 Opening BINARY mode data connection for file transfer.
100% |*************************************|  1940 KB   82.54 KB/s    00:00 ETA
226 Transfer complete.
1986560 bytes sent in 00:23 (81.18 KB/s)
ftp> put ram_zimage_pad.ar7wrd.nsp.squashfs.bin "ram_zimage_pad.ar7wrd.nsp.squashfs.bin mtd1"
local: ram_zimage_pad.ar7wrd.nsp.squashfs.bin remote: ram_zimage_pad.ar7wrd.nsp.squashfs.bin mtd1
227 Entering Passive Mode (192,168,0,1,4,45).
150 Opening BINARY mode data connection for file transfer.
100% |*************************************|   640 KB   85.43 KB/s    00:00 ETA
226 Transfer complete.
655360 bytes sent in 00:07 (81.14 KB/s)
ftp> quote REBOOT
221-Thank you for using the FTP service on ADAM2.
221 Goodbye.
ftp> ^D
===========================
恢复后重新启动就可以了
发表于 2009-7-29 14:52:03 | 显示全部楼层
{{XPX2{{顶一个先
发表于 2009-7-29 17:10:08 | 显示全部楼层
好贴!支持。
发表于 2009-7-29 22:43:42 | 显示全部楼层
好贴!支持。
发表于 2009-7-30 00:16:33 | 显示全部楼层
......附近不存在???搞什么啊
 楼主| 发表于 2009-7-30 00:47:16 | 显示全部楼层
本帖最后由 黑洞001 于 2009-7-29 16:59 编辑
......附近不存在???搞什么啊
zhujunsq 发表于 2009-7-29 16:16

被版主移动了,附件不知道跑哪里了,我在重新上传一个吧!
靠,传了几次都传不上,放到网盘里面了,大家自己去下吧:
http://www.brsbox.com/filebox/down/fc/599d533502b952cd0e496b2ae60944ea
发表于 2009-7-30 11:24:39 | 显示全部楼层
好帖,很详细
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-5-13 22:21 , Processed in 0.028262 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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