Freifunk HIL Controller Setup

Aus bytewerk-Wiki
Zur Navigation springen Zur Suche springen

Controller

Raspberry Pi 3
2x USB-2-Ethernet link to Router1 (connected to Uplink port and LAN1)
2x USB-2-Ethernet link to Router2 (connected to Uplink port and LAN1)
2x USB-2-Serial link to Serial console of Router1 and Router2
1x USB-2-Serial link to I/O Controlboard


Setup

Predictable Network Interface Names
Neue Datei erstellen /etc/udev/rules.d/75-predictableNetworNames.rules
 SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:5d:bc:ff", NAME="pi_uplink"
 SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="b8:27:eb:08:e9:aa", NAME="pi_wlan"
 SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="ac:7f:3e:e5:f0:3e", NAME="r1_lan1"
 SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:e1:00:00:68:55", NAME="r1_uplink"
ATTR ist hier die MAC Adresse des adapters
Danach udev neustarten

Flash vorgang

Der TFTP server atftpd befindet sich im paket atftpd

 /usr/sbin/atftpd --logfile=/root/scripts/flash_841/atftpd.log --daemon --no-fork /srv/tftp/

TODO: herausfinden, ob TFTP transfer abgeschlossen ist.