Skip to content

Instantly share code, notes, and snippets.

@njanirudh
Last active July 10, 2025 19:51
Show Gist options
  • Save njanirudh/79496a396e1e3702d0d59aede31eeb42 to your computer and use it in GitHub Desktop.
Save njanirudh/79496a396e1e3702d0d59aede31eeb42 to your computer and use it in GitHub Desktop.
Using OpenWRT with TP-Link WR841N

πŸ“˜ Installing OpenWRT on TP-Link TL-WR841N (v14)

⚠️ Warning: Flashing custom firmware may void your warranty or brick your device if not done correctly. Proceed with caution.


βœ… Prerequisites

If you are upgrading from OpenWRT, follow the sysupgrade steps below.


πŸ”§ 1. Download the Firmware

Download the correct firmware for your use case:

Here's the markdown table you requested:

Configuration File Name Size
Default openwrt-ramips-mt76x8-tplink_tl-wr841n-v14-squashfs-sysupgrade-default.bin.gz 3.41 MB
Tiniest-luci openwrt-ramips-mt76x8-tplink_tl-wr841n-v14-squashfs-sysupgrade-tiniest-luci.bin.gz 3.26 MB
Tiniest openwrt-ramips-mt76x8-tplink_tl-wr841n-v14-squashfs-sysupgrade-tiniest.bin.gz 2.9 MB
  • Rename the downloaded file for convenience:
mv  openwrt-ramips-mt76x8-tplink_tl-wr841n-v14-squashfs-sysupgrade-default.bin.gz  openwrt-image.bin

πŸ’» 2. Connect to the Router via Ethernet

  • Connect your PC to a LAN port on the router.

  • Set a static IP on your PC:

    • IP: 192.168.1.100
    • Netmask: 255.255.255.0
  • Confirm the connection by pinging the router:

ping 192.168.1.1

πŸ“€ 3. Transfer the Firmware to the Router

  • Use scp to copy the firmware image to the router's /tmp directory:
scp openwrt-image.bin [email protected]:/tmp

πŸ” 4. SSH into the Router

  • Connect to the router via SSH:
ssh [email protected]

πŸ’Ύ 5. Flash the Firmware

  • Run the following command on the router to flash the firmware:
sysupgrade /tmp/openwrt-image.bin

⚠️ The router will reboot automatically after flashing.
Do not unplug or power off the router during the process.


βœ… 6. After Reboot

  • Wait for about 2 minutes, then reconnect via SSH:
ssh [email protected]

If the login succeeds, OpenWRT has been successfully installed.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment