Posted: Wed Jan 21, 2009 19:17 Post subject: D-LINK DIR-300 broke when update DD-WRT
Hi!
On start I apologize for my english.
Few days ago I buy D-Link DIR-300 and load to it's rom a DD-WRT v24 SP1, but many thinks don't work correctly like WPA.
I was mad cause my friend told my that is perfect firmwere and leave my a dd-wrt.v24 SP1_std_special_generic.bin - he says that the best version of firmware.
Firstly I upload a firmwere from Download on this page but 'cause it don't work I want to update it to version he leave my using Update firmware in DD-WRT option.
Now it's broke (I think). Led's blinking but it don't respond for 192.168.1.1.
I don't know what to do now. I try to update firmware to original of back to DD-WRT v24 sp1 by telnet but it doesn't work on 192.168.1.1 / 9000 and 192.168.20.80 / 9000.
I'm a total noob in at it but I try to write a little tutorial to help someone else.
set your IP to 192.168.1.2 and mask to 255.255.255.0
plug cable to Enthetnet in PC a WAN in router, power off it.
download putty.exe to c:\
Run tftpsrv.exe on c:\
create a file an c:\ called redboot.bat with the following content:
rem echo off
:start
rem ------------------------------------------------
ping 192.168.1.1 -n 1 -w 1 > NULL
IF ERRORLEVEL 1 goto start
rem putty
rem ------------------------------------------------
break
putty.exe telnet://192.168.1.1:9000 -m redboot.txt
exit
create a file on c:\ called redboot.txt with the following content:
^C
start the bat file press the RESET on router and power on the router, after 30s you can stop pressing the RESET, after next 30s .....here comes DD-WRT>
DD-WRT> fconfig -i
Initialize non-volatile configuration - continue (y/n)? y
Run script at boot: false
Use BOOTP for network configuration: true
Default server IP address:
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> 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: .
DD-WRT> ip_address -h 192.168.1.2
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.2
DD-WRT> load -r -b %{FREEMEMLO} ap61.rom
Using default protocol (TFTP)
Raw file loaded 0x80080000-0x800a8717, assumed entry at 0x80080000
DD-WRT> fis create -l 0x30000 -e 0xbfc00000 RedBoot
An image named 'RedBoot' exists - continue (y/n)? y
... Erase from 0xbfc00000-0xbfc30000: ...
... Program from 0x80080000-0x800a8718 at 0xbfc00000: ...
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> reset
2 minutes later...
Run telnet on putty 192.168.1.1 port 9000
DD-WRT> ip_address -h 192.168.1.2
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.2
DD-WRT> load -r -b 0x80041000 linux.bin
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x803cffff, assumed entry at 0x80041000
DD-WRT> fis create linux
... Erase from 0xbfc30000-0xbffbf000: .........................................................
... Program from 0x80041000-0x803d0000 at 0xbfc30000: .........................................
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> fconfig boot_script true
boot_script: Setting to true
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> fconfig boot_script_timeout 3
boot_script_timeout: Setting to 3
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> fconfig
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>> fis load -l linux
>> exec
>>
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: true
Default server IP address:
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> reset
welcome back home... Yours setting should not be delete.