openwrt/target/linux/ath79/image
Petr Štetiar d42a7c4699 ath79: ubnt-m-xw: Fix factory image flashing using TFTP recovery method
Ubiquity allows flashing of unsigned factory images via TFTP recovery
method[1]. They claim in airOS v6.0.7 release changelog[2] following:

 All future airOS versions will be signed in this way and not allow
 unsigned firmware to be loaded except via TFTP.

U-boot bootloader on M-XW devices expects factory image revision
version in specific format. On airOS v6.1.7 with `U-Boot 1.1.4-s1039
(May 24 2017 - 15:58:18)` bootloader checks if the revision major(?)
number is actually a number, but in currently generated images there's
OpenWrt text and so the check fails:

 Hit any key to stop autoboot:  0
 Setting default IP 192.168.1.20
 Starting TFTP server...
 Receiving file from 192.168.1.25:38438
 Received 4981148 bytes
 Firmware check failed! (1)

By placing arbitrary correct number first in major version, we make the
bootloader happy and we can flash factory images over TFTP again:

 Received 3735964 bytes
 Firmware Version: XW.ar934x.v6.0.4-42.r8474-56aa1ac-OpenWrt
 Setting U-Boot environment variables
 Un-Protected 1 sectors
 Erasing Flash.... done

Patch provided by AREDN[3] project, tested on Bullet M2 XW (ynezz) and
Nanostation M5 XW (ae6xe).

1. https://help.ubnt.com/hc/en-us/articles/204910124-UniFi-TFTP-Recovery-for-Bricked-Access-Points
2. https://dl.ubnt.com/firmwares/XW-fw/v6.0.7/changelog.txt
3. https://github.com/aredn

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2018-11-26 12:05:44 +01:00
..
lzma-loader ath79: lzma-loader: sync with ar71xx target 2018-06-06 22:25:53 +02:00
Makefile ath79: add support for Buffalo BHR-4GRV2 2018-08-09 18:44:57 +02:00
common-buffalo.mk ath79: add hwver parameter to buffalo-tag 2018-10-07 15:44:19 +02:00
common-netgear.mk ath79: mark netgear variables as device specific 2018-08-08 08:11:11 +02:00
common-tp-link.mk ath79: add support for TP-Link RE450 v2 2018-07-02 07:05:33 +02:00
generic-tp-link.mk ath79: Add support for TP-Link TL-WR842N-v2 2018-10-07 15:44:19 +02:00
generic-ubnt.mk ath79: ubnt-m-xw: Fix factory image flashing using TFTP recovery method 2018-11-26 12:05:44 +01:00
generic.mk ath79: add support for Buffalo WZR-HP-G302H A1A0 2018-10-07 15:44:19 +02:00
nand.mk ath79: add initial nand support for gl-ar300m 2018-06-18 20:29:38 +02:00
tiny-netgear.mk ath79: cleanup netgear wnr612-v2 supported devices 2018-08-08 08:11:11 +02:00
tiny-tp-link.mk ath79: add support for TP-Link TL-WA901ND v2 2018-10-07 15:49:25 +02:00
tiny.mk ath79: add support for PQI Air Pen 2018-10-28 10:59:14 +01:00