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

  1. 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
    
  2. 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

  3. Connect to the device using ssh (replace admin with the username you just configured)

    ssh [email protected]
    
  4. Modify the /etc/hosts file using vi on 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.lan

    Example for 192.168.50.196:

    192.168.50.196 openwrtimage.lan
    
  5. 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
    
  6. Erase the linux-partition

    mtd-erase -d linux
    
  7. Write OpenWrt to the linux partition

    mtd-write -i /tmp/openwrt.bin -d linux
    
  8. Power-Cycle your router.

  9. Download firmwareimage of your local Freifunk Comunity, rename it to openwrt-sysupgrade.bin

  10. At your local PC - Transfer the OpenWrt sysupgrade image to the router using scp.

    scp -O /path/to/openwrt-sysupgrade.bin [email protected]:/tmp
    
  11. connect to the router with ssh [email protected]

  12. Install OpenWrt persistently using sysupgrade.

    sysupgrade -n /tmp/<openwrt-sysupgrade.bin>