|
机器没死不必用TTL,按下面的方法就可以还原DD,以下是网上摘抄的试过有用,
0. 取得DD-WRT固件, 并设置TFTP服务器
Tftpd32:
http://www.jounin.net/tftpd32.html
DD-WRT_v24_SP1_Fonera:
http://www.dd-wrt.com/dd-wrtv2/d ... mer%2FFon%2FFonera/
仅需要linux.bin, fonera-firmware.bin为从DD-WRT升级刷写时使用的文件.
下载之. 启动Tftpd32, 设置其根目录为DD-WRT_v24_SP1_Fonera.
1. 取得RedBoot的命令行
1) 将PC和Fon的WAN口连接起来, 为避免复杂的网络状况影响刷机, 请断开其他网络;
2) 设置PC的IP为192.168.1.254/255.255.255.0
亦可设置为192.168.1.2~253任一地址, 但需要在第2步中设置服务器的地址.
此处我们设置为192.168.1.2/255.255.255.0;
3) 拔下Fon的电源, 重新插入.
在Fon启动的最初几秒, 应可以Ping通192.168.1.1, 即Fon的WAN口地址.
打开命令行窗口, 输入:
telnet 192.168.1.1 9000
一旦连接上, 立刻按Ctrl-C:
== Executing boot script in 1.860 seconds - enter ^C to abort
^C
RedBoot>
到此我们取得了Fon的启动管理器: RedBoot的命令行.
(多试几次)
2. 设置Redboot(如PC地址设置为192.168.1.254可跳过)
RedBoot> ip_address
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.254
Default server: 应指向PC的IP. 如PC地址设置为192.168.1.254可跳过本步骤.
设置缺省服务器的地址:
RedBoot> ip_address -l 192.168.1.1/24 -h 192.168.1.2
3. 开始刷机
fis init
load -r -b 0x80041000 linux.bin
fis create linux
最后一条命令可能需要30分钟以上才能结束, 耐心等待
如果中途断电, 你可爱的Fon应该不会砖掉, 但你需要重新开始
刷完之后, 不要重启!! 请按照如下提示修改启动脚本:
fconfig
修改启动脚本如下:
fis load -l linux
exec
其他选项保留默认值, 至最后保存设置.
确认配置, 尤其是"Boot script"部分:
RedBoot> fconfig -l
Run script at boot: true
Boot script:
.. fis load -l linux
.. exec
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: false
Gateway IP address: 0.0.0.0
Local IP address: 192.168.1.1
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.1.254
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
此处将"Boot script timeout"设成了3秒, 方便以后进入RedBoot.
重置路由器:
RedBoot> reset
完工!! 访问192.168.1.1以设置你的DD-WRT 请首先更改你的用户名密码, 并禁用远程访问.
(我的Fon的WAN口地址192.168.1.1, 跟DD-WRT Wiki上的(192.168.1.254)不同, 可能是原厂固件版本不一样的原因.) |
|