|
本帖最后由 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 |
|