ath79: add support for MikroTik RouterBOARD 493G (rb4xx series)
authorChristopher Hill <ch6574@gmail.com>
Tue, 26 May 2020 01:10:00 +0000 (21:10 -0400)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 15 Jun 2020 19:16:18 +0000 (21:16 +0200)
commitb7a8a5454226f34256c5d76480dda5abb1308395
tree73e01cab13df38509f747e3dec442cf3442cfb7c
parentfa70b3a4bbc65d372d735004d9df894bd1c89c81
ath79: add support for MikroTik RouterBOARD 493G (rb4xx series)

This patch adds support for the MikroTik RouterBOARD RB493G, ported
from the ar71xx target.

See https://routerboard.com/RB493G for details

Specification:
- SoC Qualcomm Atheros AR7161
- RAM: 256 MiB
- Storage: 128MiB NAND
- Ethernet: 9x 1000/100/10 Mbps
- USB 1x 2.0 / 1.0 type A
- PCIe: 3x Mini slot
- MicroSD slot

Working:
- Board/system detection
- Ethernet
- SPI
- NAND
- LEDs
- USB
- Sysupgrade

Enabled (but untested due to lack of hardware):
- PCIe - ath79_pci_irq struct has the slot/pin/IRQ mappings if needed

Installation methods:
- tftp boot initramfs image, scp then flash via "sysupgrade -n"
- nand boot existing OpenWrt, scp then flash via "sysupgrade -n"

Notes:
- initramfs image will not work if uncompressed image size over ~8.5Mb
- The "rb4xx" drivers have been enabled

Signed-off-by: Christopher Hill <ch6574@gmail.com>
config/Config-images.in
target/linux/ath79/dts/ar7100_mikrotik_routerboard-4xx.dtsi [new file with mode: 0644]
target/linux/ath79/dts/ar7161_mikrotik_routerboard-493g.dts [new file with mode: 0644]
target/linux/ath79/image/mikrotik.mk
target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh
target/linux/ath79/mikrotik/config-default