Quelle: forum.freifunk.net

https://ffmuc.net/wiki/index.php?title=Firmware_selberbauen

$git clone -b next https://github.com/freifunk-gluon/gluon.git && cd gluon  
(z.B.) 
$git clone -b lede https://github.com/ffac/site.git 

in targets/ramips-mt76x8 folgendes hinzufügen:
device tp-link-tl-wr841n-v13 tl-wr841n-v13
factory


$wget https://raw.githubusercontent.com/freifunkMUC/site-ffm/stable/extra/ffmuc_umland.conf

$cp ffmuc_umland.conf site/site.conf  
$make update && make -j1 V=s BROKEN=1 GLUON_TARGET=ramips-mt76x8 

:warning:️ Es wird kein factory image erzeugt, nur ein sysupgrade (output/images/sysupgrade)!
**Flashen

OpenWrt recovery image1 (https://downloads.lede-project.org/snapshots/targets/ramips/mt76x8/openwrt-ramips-mt76x8-tl-wr841n-v13-squashfs-tftp-recovery.bin) herunterladen und als /tmp/tftp/tp_recovery.bin ablegen

static IP 192.168.0.66/24

#atftpd –daemon –no-fork –verbose=7 –trace –bind-address 192.168.0.66 /tmp/tftp

#tcpdump -i eth0 udp port 69

router per Lan mit PC verbinden, reset Schalter halten und router einschalten bis tcpdump etwas anzeigt

Router will download file from server, write it to flash and reboot.

#scp output/images/sysupgrade/gluon-ffac-2017.1.5-1\~exp20180223-tp-link-tl-wr841n-v13-sysupgrade.bin 192.168.1.1:/tmp  
#ssh 192.168.1.1 sysupgrade -v -n /tmp/gluon-ffac-2017.1.5-1~exp20180223-tp-link-tl-wr841n-v13-sysupgrade.bin

TL-WR841N v13 Image bauen und flashen