找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5377|回复: 3

Netgear WGT624v4 Hands on - DD-WRT Flashing

[复制链接]
发表于 2010-7-18 22:52 | 显示全部楼层 |阅读模式
本帖最后由 myeyre 于 2010-7-19 17:17 编辑

http://hi.baidu.com/myeyre/blog/ ... c6357a3912bba6.html

Netgear WGT624v4 Hands on - DD-WRT Flashing

refer to:
http://www.dd-wrt.com/phpBB2/vie ... f78ce02d7b57#455673
https://www.right.com.cn/forum/viewthread.php?tid=31189

0) 取得MicroRedboot, DD-WRT固件, 并设置TFTP服务器

Tftpd32:
http://www.jounin.net/tftpd32.html

MicroRedboot:
http://www.dd-wrt.com/dd-wrtv2/d ... 1_16M_4M_admtek.rom

or SVN build:
http://svn.dd-wrt.com:8000/dd-wr ... mtek.rom?format=raw

DD-WRT WGT624v4 build:
http://www.dd-wrt.com/dd-wrtv2/d ... nSlayer-V24-preSP2/

linux.bin: redboot flashing image, used in this tutorial
wgt624v4-firmware.bin: tftp or web flashing image

1) Flashing MicroRedboot

fis init
ip_address
#ip_address -h 192.168.1.55
#ip_address -l 192.168.1.1/255.255.255.0 -h 192.168.1.55
load -r -b %{FREEMEMLO} redboot_ap61_16M_4M_admtek.rom
#fis create RedBoot
#fis create -l 0x10000 -e 0xbfc00000 RedBoot
fis create -l 0x30000 -e 0xbfc00000 RedBoot
reset

2) Flashing DD-WRT:

刷写MicroRedboot后, 按住Reset启动以进入Redboot命令行

fis init
ip_address
#ip_address -h 192.168.1.55
#ip_address -l 192.168.1.1/255.255.255.0 -h 192.168.1.55
load -r -b 0x80041000 linux.bin
fis create linux

#Patience here. "fis create linux" took about 20 minutes or so on my router.

fconfig

#DD-WRT Boot script:
fis load -l linux
exec


reset

3) Done.

灯不太正常. 其他还好. 此机应也可刷Openwrt, UBNT, 有机会再试.

在路由后面访问Modem设置界面(WGT624v4 Atheros):

ifconfig vlan2 192.168.1.2 netmask 255.255.255.0

iptables -t nat -A POSTROUTING -o vlan2 -j MASQUERADE

日志如下:

#Redboot

== Executing boot script in 0.100 seconds - enter ^C to abort
^C
RedBoot> fis list
Name              FLASH addr Mem addr    Length      Entry point
RedBoot           0xBFC00000 0x8007F400 0x00030000 0xBFC00000
POT               0xBFC30000 0x00000000 0x00010000 0x00000000
nvram             0xBFC40000 0x00000000 0x00010000 0x00000000
BD                0xBFC50000 0x00000000 0x00010000 0x00000000
TM1               0xBFC60000 0x00000000 0x00010000 0x00000000
TM2               0xBFC70000 0x00000000 0x00010000 0x00000000
kernel            0xBFC80000 0x80041000 0x00110000 0x80041400
rootfs            0xBFD90000 0xBFD90000 0x00250000 0x00000000
FIS directory     0xBFFE0000 0xBFFE0000 0x0000F000 0x00000000
RedBoot config    0xBFFEF000 0xBFFEF000 0x00001000 0x00000000
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> ip_address
IP: 192.168.1.1/255.255.255.0, Gateway: 192.168.1.254
Default server: 192.168.1.55
RedBoot> load -r -b %{FREEMEMLO} redboot_ap61_16M_4M_admtek.rom
Using default protocol (TFTP)
Raw file loaded 0x80040c00-0x8005007f, assumed entry at 0x80040c00
RedBoot> fis create -l 0x30000 -e 0xbfc00000 RedBoot
An image named 'RedBoot' exists - continue (y/n)? y
... Erase from 0xbfc00000-0xbfc30000: ...
... Program from 0x80040c00-0x80050080 at 0xbfc00000: .
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> reset

#DD-WRT

RedBoot> ^C
RedBoot> fis list
Name              FLASH addr Mem addr    Length      Entry point
RedBoot           0xBFC00000 0x80031000 0x00010000 0xBFC00000
FIS directory     0xBFFE0000 0xBFFE0000 0x0000F000 0x00000000
RedBoot config    0xBFFEF000 0xBFFEF000 0x00001000 0x00000000
RedBoot> fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xbfc10000-0xbffe0000: .............................................................
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> load -r -b 0x80041000 linux.bin
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x803f3fff, assumed entry at 0x80041000
RedBoot> fis create linux
... Erase from 0xbfc10000-0xbffc3000: ............................................................
... Program from 0x80041000-0x803f4000 at 0xbfc10000: ............................................................
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> fconfig
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>> fis load -l linux
>> exec
>>
Boot script timeout (1000ms resolution): 5
Use BOOTP for network configuration: false
bootp_my_gateway_ip: 192.168.1.254
Local IP address: 192.168.1.1
bootp_my_ip_mask: 255.255.255.0
Default server IP address: 192.168.1.55
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
net_debug: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> reset
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2010-7-19 11:03 | 显示全部楼层
小改下

自己沙发。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2010-7-19 11:51 | 显示全部楼层
终于搞定了....顶一下.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-7-19 12:45 | 显示全部楼层
呵呵,折腾死我了

fis create linux就失去响应,开始以为挂掉了,有次忘记了才发现是要花20分钟。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 16:18

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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