90 ‐ Hardware ‐ ASUS TUF AX4200 - freifunk-darmstadt/projects GitHub Wiki
Asus Filogic Factory Image
...
Supported devices
- TUF-AX4200
General information
IP-Adress of device with stock firmware: 192.168.50.1 IP-Adress of device with freifunk firmware: 192.168.1.1
Instructions
-
Download the Factory-Initramfs image. Place it into a web-server directory root as openwrt.bin.
mkdir -p /tmp/openwrt-webroot cp openwrt-mediatek-filogic-asus_tuf-ax4200-initramfs-kernel.bin /tmp/openwrt-webroot/openwrt.bin python3 -m http.server -d /tmp/openwrt-webroot 8080 -
Open the router configuration page. Complete the first-time setup wizard.
Enable SSH Access (with Password-Login) on the Router
Find this Setting at Administration --> System --> Service --> Enable ssh (LAN Only)
Make sure the SSH-Port is set to
22 -
Connect to the device using ssh (replace admin with the username you just configured)
ssh [email protected] -
Modify the
/etc/hostsfile usingvion the device. Add an entry to the bottom of the file that resolves to the computer serving the factory-initramfs image.Name the DNS name
openwrtimage.lanExample for
192.168.50.196:192.168.50.196 openwrtimage.lan -
Transfer the OpenWrt factory-initramfs to the device by downloading it from the http server using wget
wget -O /tmp/openwrt.bin http://openwrtimage.lan:8080/openwrt.bin -
Erase the linux-partition
mtd-erase -d linux -
Write OpenWrt to the
linuxpartitionmtd-write -i /tmp/openwrt.bin -d linux -
Power-Cycle your router.
-
Download firmwareimage of your local Freifunk Comunity, rename it to openwrt-sysupgrade.bin
-
At your local PC - Transfer the OpenWrt sysupgrade image to the router using
scp.scp -O /path/to/openwrt-sysupgrade.bin [email protected]:/tmp -
connect to the router with ssh [email protected]
-
Install OpenWrt persistently using
sysupgrade.sysupgrade -n /tmp/<openwrt-sysupgrade.bin>