DIR-300 von DD-WRT auf Freifunk-Firmware flashen
Aus Freifunk Hannover
Inhaltsverzeichnis |
Benötigt werden:
Tools ...
DIRigent300 (Win) - > Externer Link
TFTPD-Server (Win) -> Externer Link
PuTTY (Win) -> Externer Link
Images ...
Neues BootRom -> http://nbd.name/ff/dir300.rom
root.squatfs -> http://freifunk-hannover.de/firmware/backfire/atheros/openwrt-atheros-root.squashfs
vmlinux.lzma -> http://freifunk-hannover.de/firmware/backfire/atheros/openwrt-atheros-vmlinux.lzma
Fett = Eingaben ... der Rest sind Ausgaben vom Putty ... oder Kommentare
Teil 1: Neuen Bootrom einspielen ...
LAN-Kabel in einen LAN-Port (NICHT in den WAN-Port stecken) und am PC die IP-Adresse manuell einstellen:
IP: 192.168.1.2
Subnetz: 255.255.255.0
Gateway: 192.168.1.1
TFTPD-Server starten, richtigen Adapter auswählen (192.168.1.2) und Verzeichnis mit allen heruntergeladenen Dateien auswählen.
DIR-300 neustarten und DIRigent300 starten ... es erscheint folgendes ...
Einfach warten, oder Router nochmal vom Strom-Netz trennen und wieder dranstecken ...
----------------------------------------------- Freifunk-Hannover DIRigent300 ----------------------------------------------- Warte auf Antwort von DIR-300 ...
Anschließend geht folgendes Fenster auf ...
== Executing boot script in 0.140 seconds - enter ^C to abort ^C
RedBoot> load -r -b %{FREEMEMLO} dir300.rom
RedBoot> fis create RedBoot (kann etwas dauern)
Teil 2: OpenWRT (Freifunk-Hannover Edition) flashen
LAN-Kabel in einen LAN-Port (NICHT WAN-Port stecken) und am PC die IP-Adresse manuell einstellen:
IP: 192.168.1.2
Subnetz: 255.255.255.0
Gateway: 192.168.1.1
TFTPD-Server starten, richtigen Adapter auswählen (192.168.1.2) und Verzeichnis mit allen heruntergeladenen Dateien auswählen.
DIR-300 neustarten und DIRigent300 starten ... es erscheint folgendes ...
Einfach warten, oder Router nochmal vom Strom-Netz trennen und wieder dranstecken ...
----------------------------------------------- Freifunk-Hannover DIRigent300 ----------------------------------------------- Warte auf Antwort von DIR-300 ...
Anschließend geht folgendes Fenster auf ...
== Executing boot script in 0.140 seconds - enter ^C to abort ^C
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 -h 192.168.1.2
IP: 192.168.1.1, Default server: 192.168.1.2
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma
Using default protocol (TFTP) Raw file loaded 0x80031400-0x801113ff, assumed entry at 0x80031400
RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7 (kann etwas dauern)
... Erase from 0xbfc10000-0xbfcf0000: .............. ... Program from 0x80031400-0x80111400 at 0xbfc10000: .............. ... Erase from 0xbffe0000-0xbfff0000: . ... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs
Using default protocol (TFTP) Raw file loaded 0x80031400-0x802913ff, assumed entry at 0x80031400
RedBoot> fis create rootfs (kann etwas dauern)
... Erase from 0xbfcf0000-0xbff50000: ...................................... ... Program from 0x80031400-0x80291400 at 0xbfcf0000: ...................................... ... Erase from 0xbffe0000-0xbfff0000: . ... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> fconfig
Run script at boot: true
Boot script :
.. tftpd 5
.. fis load -l linux
.. exec
.. tftpd
Enter script, terminate with empty line
>> fis load -l vmlinux.bin.l7
>> exec
>> (Enter drücken um zu speichern)
Boot script timeout (1000ms resolution): 1
Use BOOTP for network configuration: false
Local IP address: 192.168.1.1
Default server IP address: NICHTS EINGBEN
Config revision : 1
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: . ... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
RedBoot> reset
Neustart ... fertig ... !!!
Das wars!

