半个月前,买了个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、先到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 =========================== 恢复后重新启动就可以了 |
联系客服