2018-03-02 11:56:53 +01:00
|
|
|
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
|
|
|
board=$(board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
2020-03-09 21:16:43 +01:00
|
|
|
cellc,rtl30vw)
|
|
|
|
ucidef_add_gpio_switch "w_disable" "W_DISABLE mPCIE pin" "398" "1"
|
|
|
|
ucidef_add_gpio_switch "pmd_resin_n" "PMD_RESIN_N pin" "399" "1"
|
|
|
|
ucidef_add_gpio_switch "mcpie_vcc" "LTE power" "400" "0"
|
|
|
|
ucidef_add_gpio_switch "usb_vcc" "USB power" "401" "0"
|
|
|
|
;;
|
2019-11-25 15:25:00 +01:00
|
|
|
cilab,meshpoint-one)
|
|
|
|
ucidef_add_gpio_switch "poe_passtrough" "POE passtrough enable" "413" "1"
|
|
|
|
;;
|
2018-03-02 11:56:53 +01:00
|
|
|
compex,wpj428)
|
|
|
|
ucidef_add_gpio_switch "sim_card_select" "SIM card select" "3" "0"
|
|
|
|
;;
|
ipq40xx: add support for MikroTik hAP ac3
This adds support for the MikroTik RouterBOARD RBD53iG-5HacD2HnD
(hAP ac³), a indoor dual band, dual-radio 802.11ac
wireless AP with external omnidirectional antennae, USB port, five
10/100/1000 Mbps Ethernet ports and PoE passthrough.
See https://mikrotik.com/product/hap_ac3 for more info.
Specifications:
- SoC: Qualcomm Atheros IPQ4019
- RAM: 256 MB
- Storage: 16 MB NOR + 128 MB NAND
- Wireless:
· Built-in IPQ4019 (SoC) 802.11b/g/n 2x2:2, 3 dBi antennae
· Built-in IPQ4019 (SoC) 802.11a/n/ac 2x2:2, 5.5 dBi antennae
- Ethernet: Built-in IPQ4019 (SoC, QCA8075) , 5x 1000/100/10 port,
passive PoE in, PoE passtrough on port 5
- 1x USB Type A port
Installation:
1. Boot the initramfs image via TFTP
2. Run "cat /proc/mtd" and look for "ubi" partition mtd device number, ex. "mtd1"
3. Use ubiformat to remove MikroTik specific UBI volumes
* Detach the UBI partition by running: "ubidetach -d 0"
* Format the partition by running: "ubiformat /dev/mtdN -y"
Replace mtdN with the correct mtd index from step 2.
3. Flash the sysupgrade image using "sysupgrade -n"
Signed-off-by: Robert Marko <robimarko@gmail.com>
Tested-by: Mark Birss <markbirss@gmail.com>
Tested-by: Michael Büchler <michael.buechler@posteo.net>
Tested-by: Alex Tomkins <tomkins@darkzone.net>
2021-10-09 20:13:25 +02:00
|
|
|
mikrotik,hap-ac3)
|
|
|
|
ucidef_add_gpio_switch "poe_passtrough" "PoE Passthrough" "452" "0"
|
|
|
|
;;
|
2018-03-02 11:56:53 +01:00
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|