ALFA Network AP120C-AX is a dual-band ceiling AP, based on Qualcomm IPQ6000 + QCN5021 + QCN5052 + QCA8072 chipsets bundle. Specifications: - SOC: Qualcomm IPQ6000 (quad-core Cortex-A53 1.2 GHz) - DRAM: DDR3 512 MB (Micron MT41K256M16TW-107) - Flash: 16 MB SPI NOR (Macronix MX25U12832F, boot device) 128 MB NAND (Macronix MX30UF1G18AC, dual-firmware) - Ethernet: 2x 10/100/1000 Mbps Ethernet (QCA8072) 802.3at/af PoE input in WAN port - Wi-Fi: 2x2 2.4 GHz Wi-Fi 6 (QCN5021 + RFFM8227 FEM) 2x2 5 GHz Wi-Fi 6 (QCN5152 + QPF4568 FEM) - Antenna: for indoor version: dual-band, internal 2x (or 4x) U.FL antenna connectors on the PCB - LED: for indoor/outdoor versions: 5x on external module (status, 2x Wi-Fi, 2x Ethernet), PoE LED on-board 8-pin on-board header for LED module (1.27 mm pitch, J14) - Button: 1x button (reset) - USB: 1x 4-pin on-board header for USB 2.0 (2.54 mm pitch, J22) - UART: 1x micro USB Type-B for system console (Holtek HT42B534) 1x 4-pin on-board header (2.54 mm pitch, J11) - Power: 802.3at/af PoE or 12 V DC/2 A (DC jack) - Other: 8-pin and 4-pin on-board headers for external Bluetooth module (1.27 mm pitch, J15, J16, unavailable, thus untested) MAC addresses: - WAN: 00:c0:ca:xx:xx:6c (art 0x0, device's label -2) - LAN: 00:c0:ca:xx:xx:6d (art 0x6, device's label -1) - 2.4 GHz (IPQ6000): 00:c0:ca:xx:xx:6e (art 0xc, device's label) - 5 GHz (IPQ6000): 00:c0:ca:xx:xx:6f (device's label + 1) Flash instructions: Due to the lack of direct GUI based update capability and dual-firmware partition configuration, it is recommended to use TFTP + serial console based approach (console is available in micro USB connector): 1. Set a static IP 192.168.1.1/24 on PC and start TFTP server with the '...-factory.ubi' image renamed to 'firmware.bin'. 2. Make sure you can access board's serial console over micro USB. 3. Power up the device, hit any key to enter U-Boot CLI and issue below commands. 3.1 Restore U-Boot's environment to default values (double check first the '0:APPSBLENV' partition offset using 'smem' command): sf probe sf erase 0x510000 0x10000 saveenv 3.2 Download and install OpenWrt in both partitions and reset the board: tftpb 0x44000000 firmware.bin flash rootfs flash rootfs_1 reset Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
91 lines
2.3 KiB
Bash
91 lines
2.3 KiB
Bash
#!/bin/sh
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
. /lib/functions/caldata.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$FIRMWARE" in
|
|
"ath11k/IPQ6018/hw1.0/cal-ahb-c000000.wifi.bin")
|
|
case "$board" in
|
|
8devices,mango-dvk)
|
|
caldata_extract "0:ART" 0x1000 0x20000
|
|
;;
|
|
alfa-network,ap120c-ax)
|
|
caldata_extract "0:ART" 0x1000 0x20000
|
|
label_mac=$(mtd_get_mac_binary 0:ART 12)
|
|
ath11k_patch_mac $label_mac 1
|
|
ath11k_patch_mac $(macaddr_add $label_mac 1) 0
|
|
ath11k_set_macflag
|
|
;;
|
|
cambiumnetworks,xe3-4)
|
|
caldata_extract "0:ART" 0x1000 0x10000
|
|
;;
|
|
glinet,gl-ax1800|\
|
|
glinet,gl-axt1800)
|
|
caldata_extract "0:art" 0x1000 0x10000
|
|
label_mac=$(get_mac_label)
|
|
ath11k_patch_mac $(macaddr_add $label_mac 3) 0
|
|
ath11k_patch_mac $(macaddr_add $label_mac 2) 1
|
|
ath11k_set_macflag
|
|
;;
|
|
linksys,mr7350|\
|
|
linksys,mr7500)
|
|
caldata_extract "0:art" 0x1000 0x10000
|
|
addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
|
ath11k_patch_mac $(macaddr_add $addr 2) 0
|
|
ath11k_patch_mac $(macaddr_add $addr 1) 1
|
|
ath11k_set_macflag
|
|
ath11k_remove_regdomain
|
|
;;
|
|
netgear,wax214)
|
|
caldata_extract "0:art" 0x1000 0x10000
|
|
;;
|
|
netgear,wax610|\
|
|
netgear,wax610y)
|
|
caldata_extract "0:art" 0x1000 0x10000
|
|
label_mac=$(get_mac_label)
|
|
ath11k_patch_mac $(macaddr_add $label_mac -30) 1
|
|
ath11k_patch_mac $(macaddr_add $label_mac 2) 0
|
|
ath11k_set_macflag
|
|
;;
|
|
qihoo,360v6)
|
|
caldata_extract "0:art" 0x1000 0x10000
|
|
label_mac=$(mtd_get_mac_ascii factory lanMac)
|
|
ath11k_patch_mac $(macaddr_add $label_mac 3) 0
|
|
ath11k_patch_mac $(macaddr_add $label_mac 2) 1
|
|
ath11k_set_macflag
|
|
;;
|
|
tplink,eap610-outdoor|\
|
|
tplink,eap623od-hd-v1|\
|
|
tplink,eap625-outdoor-hd-v1)
|
|
caldata_from_file "/tmp/factory_data/radio" 0 0x10000
|
|
label_mac=$(get_mac_binary /tmp/factory_data/default-mac 0)
|
|
ath11k_patch_mac $label_mac 1
|
|
ath11k_patch_mac $(macaddr_add $label_mac 1) 0
|
|
ath11k_set_macflag
|
|
;;
|
|
yuncore,fap650)
|
|
caldata_extract "0:art" 0x1000 0x20000
|
|
;;
|
|
esac
|
|
;;
|
|
"ath11k/QCN9074/hw1.0/cal-pci-0000:01:00.0.bin")
|
|
case "$board" in
|
|
cambiumnetworks,xe3-4)
|
|
caldata_extract "0:ART" 0x26800 0x20000
|
|
;;
|
|
linksys,mr7500)
|
|
caldata_extract "0:art" 0x26800 0x20000
|
|
addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
|
ath11k_patch_mac $(macaddr_add $addr 3) 0
|
|
ath11k_set_macflag
|
|
ath11k_remove_regdomain
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|