diff options
author | Christopher Hill <ch6574@gmail.com> | 2020-05-25 21:10:00 -0400 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-06-15 21:16:18 +0200 |
commit | b7a8a5454226f34256c5d76480dda5abb1308395 (patch) | |
tree | 73e01cab13df38509f747e3dec442cf3442cfb7c /target/linux/ath79/mikrotik/base-files/etc | |
parent | fa70b3a4bbc65d372d735004d9df894bd1c89c81 (diff) | |
download | upstream-b7a8a5454226f34256c5d76480dda5abb1308395.tar.gz upstream-b7a8a5454226f34256c5d76480dda5abb1308395.tar.bz2 upstream-b7a8a5454226f34256c5d76480dda5abb1308395.zip |
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>
Diffstat (limited to 'target/linux/ath79/mikrotik/base-files/etc')
-rwxr-xr-x | target/linux/ath79/mikrotik/base-files/etc/board.d/02_network | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network index 7f8327f764..96e0f5610a 100755 --- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network +++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network @@ -8,6 +8,13 @@ ath79_setup_interfaces() local board="$1" case "$board" in + mikrotik,routerboard-493g) + ucidef_set_interfaces_lan_wan "eth0.1 eth1.1" "eth0.2" + ucidef_add_switch "switch0" \ + "0@eth0" "1:lan:4" "2:lan:1" "3:lan:3" "4:lan:2" "5:wan" + ucidef_add_switch "switch1" \ + "0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3" + ;; mikrotik,routerboard-922uags-5hpacd|\ mikrotik,routerboard-wap-g-5hact2hnd) ucidef_set_interface_lan "eth0" |