Benutzer-Werkzeuge

Webseiten-Werkzeuge


faq:fb-ac1200

Vielen Dank an Noah für das Zusammenstellen der Anleitung zum flashen!

Installation of FritzRepeater 1200


1. Grab the following files and place all of them in one directory:

Go to the directory:

 cd /path/to/the/directory

2. Assign yourself the IP address 192.168.178.10/24. Connect your Computer to one of the boxes LAN ports.

3. Connect Power to the Box. As soon as the LAN port of your computer shows link, load the U-Boot to the box using following command. (To find the right moment, it can be helpful to put a switch between your computer and the box.)

 ./eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz1200.bin

If successfull it shows something like:

  > SETENV memsize 0x00080000
  < 200 SETENV command successful
  > SETENV kernel_args_tmp mtdram1=0x85000000,0x88000000
  < 200 SETENV command successful
  > MEDIA SDRAM
  < 200 Media set to MEDIA_SDRAM

4. The U-Boot will now start (The LED of the box will turn off.) Now assign yourself the IP address 192.168.1.70/24. Rename the OpenWRT initramfs (!) image to 'FRITZ1200.bin'. Start a TFTP server with the renamed OpenWRT initramfs (!) image in its root directory.

 sudo dnsmasq -kd -p 0 -u nobody --enable-tftp --tftp-root=/path/to/the/directory

5. The Box will now download the image from your machine and boot OpenWRT from RAM.

This can take up to two minutes (The LED will flash until it finally stays on.)

6. Copy the U-Boot and the OpenWRT sysupgrade (!) image to the Box using scp:

 scp uboot-fritz1200.bin root@192.168.1.1.:/tmp/
 scp openwrt-sysupgrade.bin root@192.168.1.1.:/tmp/ (Insert actual filename!)

7. SSH into the Box and first write the Bootloader to both previous kernel partitions.

 ssh root@192.168.1.1

In box:

 mtd write /tmp/uboot-fritz1200.bin uboot0
 mtd write /tmp/uboot-fritz1200.bin uboot1

8. Remove the AVM filesystem partitions to make room for our kernel + rootfs + overlayfs.

In box:

 ubirmvol /dev/ubi0 --name=avm_filesys_0
 ubirmvol /dev/ubi0 --name=avm_filesys_1

9. Flash OpenWRT peristently using sysupgrade.

In box:

 sysupgrade -n /tmp/openwrt-sysupgrade.bin (Insert actual filename!)

10.The Box will restart in OpenWRT and is ready to use and reachable under 192.168.1.1. From there you can flash the Box with a Gluon-Image.

Installation von OpenWRT auf dem FritzRepeater 1200


1. Lade folgende Dateien herunter und lege sie in einem Ordner:

Gehe im Terminal zum Ordner:

 cd /path/to/the/directory

2. Ändere deine IP-Adresse auf 192.168.178.10/24 und verbinde deinen Computer mit einem LAN-Anschluss der Box.

3. Stecke die Box an. Sobald der LAN-Port deines Computers eine Verbindung anzeigt, führe das Skript 'eva_ramboot.py' mit folgendem Befehl aus. (Um den richtigen Moment zu treffen, kann es hilfreich sein eine Switch zwischen Box und Computer zu benutzen.)

 ./eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz1200.bin

Bei Erfolg wird folgendes angezeigt:

  > SETENV memsize 0x00080000
  < 200 SETENV command successful
  > SETENV kernel_args_tmp mtdram1=0x85000000,0x88000000
  < 200 SETENV command successful
  > MEDIA SDRAM
  < 200 Media set to MEDIA_SDRAM

4. U-Boot startet nun. (Die LED der Box bleibt aber dunkel.) Ändere nun deine IP-Adresse auf 192.168.1.70/24. Bennene das OpenWRT initramfs (!) Image um in 'FRITZ1200.bin'. Starte einen TFTP-Server mit dem umbenannten OpenWRT initramfs (!) image im Root-Verzeichnis. Das kannst du mit folgende, Befehl tun:

sudo dnsmasq -kd -p 0 -u nobody --enable-tftp --tftp-root=/path/to/the/directory

5. Die Box wird nun das Image von deinem Computer herunterladen in OpenWRT aus dem RAM neustarten.

Das kann ein paar Minuten dauern. (Die LED blinkt unregelmäßig, bis sie schließlich durchgehend brennt.)

6. Kopiere U-Boot und das OpenWRT sysupgrade (!) Image mit Hilfe von scp auf die Box:

 scp uboot-fritz1200.bin root@192.168.1.1.:/tmp/
 scp sysupgrade.bin root@192.168.1.1.:/tmp/ (Dateinamen entsprechend anpassen!)

7. Mede dich dann perr SSH an der Box an und schreibe den Bootloader auf beide früheren Kernel-Partitionen.

 ssh root@192.168.1.1

In Box:

 mtd write /tmp/uboot-fritz1200.bin uboot0
 mtd write /tmp/uboot-fritz1200.bin uboot1

8. Entferne die AVM Dateisystem Partitionen um Platz für den neuen Kernel, das Root-Dateisystem und das Overlay-Dateisystem zu machen.

In Box:

 ubirmvol /dev/ubi0 --name=avm_filesys_0
 ubirmvol /dev/ubi0 --name=avm_filesys_1

9. Flashe OpenWRT dauerhaft, indem du ein sysupgrade machst.

In Box:

 sysupgrade -n /tmp/openwrt-sysupgrade.bin (Dateinamen entsprechend anpassen!)

10. Die Box startet nun neu und ist dann fertig geflasht. Sie ist wie gewohnt unter 192.168.1.1 erreichbar und über das User-Interface kann dann die passende Freifunkfirmware (Gluon) geflasht werden.

faq/fb-ac1200.txt · Zuletzt geändert: 2021/04/28 22:36 von aufhaxer

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki