[Discuss] dir300 mit openwrt flashen (DD-WRT funktioniert schon)

Felix Ehritz (spam-protected)
Do Feb 26 04:04:46 CET 2009


Hab aus den 3 anleitungen eine zusammengestoppelt leider nur englisch.

So bin ich vorgegangen:

Sind anleitungen von dd-wrt und aus einem forum.

 

datein saugen und in einem ordner ablegen:

http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fv24-sp1%2FConsumer%
2FDlink%2FDIR-300/

 

 

>>configure your local ip to 192.168.20.80 connect your lan cable to the 

>>WAN port of the router.

>>plugoff the power cord and replug it.

>>now enter the redboot using telnet and ip 192.168.20.81 and port 9000.
>>connect your lan cable to the dir300 wan port.

>>you might need several tries since its only available for 1 second 

>>after >>aprox. 5 sec. of booting

!!!das war für mich das schwierigste:lösung (windows) putty 10 mal öffnen &
die telnetverbindung einstellen (in allen 10 putty fenstern), router saft
geben, ca 4 sek. Warten und dann ca im 1-sekundenabstand den connect button
der einzelnen puttyfenster drücken und irgendwann erwischt man den richtigen
momentfürn Redboot.

Nicht verzagen.. ich brauchte 3 anläufe Brauchte 3 anläufe-dann war ich
drin(im redboot)!!!!

 

 

DIR-300 Info:

IP: 192.168.20.81/255.255.255.0, Gateway: 0.0.0.0 Default server:
192.168.20.80

 

now start a local tftp server on your computer and place ap61.ram as well as
ap61.rom in the root dir of this server !!! alle datein die im Anhang sind
im selben ordner kopieren und ERST NACHDEM man im redboot ist den tftpd
server starten!!!

 

back to the redboot enter:

load ap61.ram

go

 

now a new temporarily bootloader should start plug you lan cable to the lan
port of the dir-300.

reconfigure your ip to 192.168.1.2 and connect via telnet to 192.168.1.1 and
port 9000.

 

important: while doing the following steps. never plugoff the lan cable or
the power cord

 

fis init

About to initialize [format] FLASH image system - continue (y/n)? y

*** Initialize FLASH Image System

... Erase from 0xbffe0000-0xbfff0000: .

... Program from 0x807f0000-0x80800000 at 0xbffe0000: .

 

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

 

load -r -b %{FREEMEMLO} ap61.rom

Using default protocol (TFTP)

Raw file loaded 0x80080000-0x800a8717, assumed entry at 0x80080000

 

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 0x807f0000-0x80800000 at 0xbffe0000: .

 

reset

 

now the unit will reboot and the new bootloader will be executed and is
waiting for your connection.

this wil take 30+ sec.

 

connect to the bootloader with telnet on port 9000 and ip 192.168.1.1

 

DD-WRT> 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-0x803d5fff, assumed entry at 0x80041000 

DD-WRT> fis create linux

... Erase from 0xbfc30000-0xbffc5000:
.......................................... 

................ 

... Program from 0x80041000-0x803d6000 at 0xbfc30000:
.......................... 

................................ 

... Erase from 0xbffe0000-0xbfff0000: . 

... Program from 0x80ff0000-0x81000000 at 0xbffe0000: . 

DD-WRT> fconfig boot_script true

boot_script: Setting to true 

DD-WRT> fconfig boot_script_timeout 4

boot_script_timeout: Setting to 4 

DD-WRT> fconfig

Run script at boot: true

Boot script: 

.. fis load -l linux

.. exec

Enter script, terminate with empty line 

>> fis load -l linux

>> exec

>> 

Boot script timeout (1000ms resolution): 4 Use BOOTP for network
configuration: false Gateway IP address: 

Local IP address: 

Local IP address mask: 

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

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.funkfeuer.at/pipermail/discuss/attachments/20090226/34b2a438/attachment.htm>


Mehr Informationen über die Mailingliste Discuss