openwrtv4/target/linux/ath79/image
Matt Merhar d03c89838e ath79: initial support for Ubiquiti RouterStation and RouterStation Pro
This adds a shared ar7161_ubnt_routerstation.dtsi as well as two other
.dts files that utilize it, ar7161_ubnt_routerstation.dts and
ar7161_ubnt_routerstation-pro.dts.

The modifications to generic-ubnt.mk, config-default, and base-files
necessary for image generation, parsing RedBoot FIS partitions, network
configuration, and sysupgrade are also included.

This reintroduces vital bits from platform_do_upgrade_combined() and its
supporting functions to /lib/upgrade/platform.sh, which were previously
removed from ath79 in 3e9d9f6225 "ath79:
sysupgrade: drop unused platform checks". The new function is called
"routerstation_do_upgrade" and will *only* work for the RouterStation
series of boards. It does however retain the ability to downgrade (e.g.
from master -> 17.01.x using sysupgrade -F).

All hardware is functional including the AR8216 switch (for the Pro),
wireless via ath5k/ath9k using the miniPCI slots, flash, USB, button,
and LED.

Switch and LAN/WAN configuration is the same as it is with the
equivalent ar71xx targets. MAC addresses are assigned based upon the
content stored in the RedBoot config partition.

Flashing via both sysupgrade and TFTP has been confirmed to work. Also,
the initramfs images are now raw .bin files instead of being wrapped in
a uImage (as they currently are in ar71xx), which makes them bootable
with RedBoot.

One notable difference to ar71xx is the inclusion of the RedBoot
"fconfig" utility (analogous to U-Boot’s fw_printenv/fw_setenv) in
DEVICE_PACKAGES. The FIS partitions are probed using the RedBoot MTD
parser’s DT binding, whose proper usage is mutually exclusive to
defining a separate fixed-partitions node for "RedBoot config". This
config partition contains the board's base MAC address. The lack of a
hard-coded flash location means that the mtd-mac-address property cannot
be used in the .dts, so instead fconfig is used to read the MAC
addresses from flash in userspace during first boot.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
2018-08-27 19:31:17 +02:00
..
lzma-loader ath79: lzma-loader: sync with ar71xx target 2018-06-06 22:25:53 +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 Archer C7 v1 2018-08-19 18:48:43 +02:00
generic-ubnt.mk ath79: initial support for Ubiquiti RouterStation and RouterStation Pro 2018-08-27 19:31:17 +02:00
generic.mk ath79: add support for I-O DATA ETG3-R 2018-08-23 22:42:15 +02:00
Makefile ath79: add support for Buffalo BHR-4GRV2 2018-08-09 18:44:57 +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: fix TL-MR3020 image metadata 2018-08-19 18:58:04 +02:00
tiny.mk ath79: add support for Buffalo WHR-G301N 2018-08-16 21:20:57 +02:00