Last active
January 4, 2026 22:02
-
-
Save Tahutipai/32cf09b03fb99fa20b8035e99a81568f to your computer and use it in GitHub Desktop.
Creates patched OpenWrt firmware for TP-Link EAP610-Outdoor v1.2 (PowerShell version - UNTESTED)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Creates patched OpenWrt firmware for TP-Link EAP610-Outdoor v1.2 **UNTESTED** | |
| # Author [email protected] script version 1.0 | |
| # Fixes two issues that prevent stock OpenWrt from flashing: | |
| # 1. Adds |TS1 suffix to support-list (required by TSLS=TS1 devices) | |
| # 2. Sets AddiHardwareVer=2 (required by hardware revision 2 devices) | |
| $ErrorActionPreference = "Stop" | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| if (-not (Get-Command python -ErrorAction SilentlyContinue)) { Write-Error "Please install Python first"; exit 1 } | |
| $PATCH = "tplink-mkimage-2026.py" | |
| $MKIMAGE_URL = "https://gist.githubusercontent.com/Tahutipai/b4ebb4fcb4e04134d8999678e616f084/raw/$PATCH" | |
| $OPENWRT_URL = "https://downloads.openwrt.org/snapshots/targets/qualcommax/ipq60xx/openwrt-qualcommax-ipq60xx-tplink_eap610-outdoor-squashfs-factory.ubi" | |
| Write-Host "Downloading $PATCH..." | |
| if (Test-Path $PATCH) { Write-Host " already on disk" } else { Invoke-WebRequest -Uri $MKIMAGE_URL -OutFile $PATCH -UseBasicParsing } | |
| Write-Host "Downloading OpenWrt factory.ubi (~13MB)..." | |
| if (Test-Path factory.ubi) { Write-Host " already on disk" } else { Invoke-WebRequest -Uri $OPENWRT_URL -OutFile factory.ubi -UseBasicParsing } | |
| $SUPPORT = "SupportList:" | |
| foreach ($region in @("UN","US","EU","AU","CA","JP","KR","EG")) { $SUPPORT += " EAP610-Outdoor(TP-Link|$region|AX1800-D|TS1):1.0" } | |
| Write-Host "Creating patched firmware..." | |
| python $PATCH --create patchedfirmware.bin --rootfs factory.ubi --support "$SUPPORT" --hwver 2 | |
| Write-Host "Done! Output: patchedfirmware.bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment