mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-18 05:03:56 +02:00
4891b86538
There are two versions which are identical apart from the enclosure: YunCore AX820: indoor ceiling mount AP with integrated antennas YunCore HWAP-AX820: outdoor enclosure with external (N) connectors Hardware specs: SoC: MediaTek MT7621DAT Flash: 16 MiB SPI NOR RAM: 128MiB (DDR3, integrated) WiFi: MT7905DAN+MT7975DN 2.4/5GHz 2T2R 802.11ax Ethernet: 10/100/1000 Mbps x2 (WAN/PoE+LAN) LED: Status (green) Button: Reset Power: 802.11af/at PoE; DC 12V,1A Antennas: AX820(indoor): 4dBi internal; HWAP-AX820(outdoor): external Flash instructions: The "OpenWRT support" version of the AX820 comes with a LEDE-based firmware with proprietary MTK drivers and a luci webinterface and ssh accessible under 192.168.1.1 on LAN; user root, no password. The sysupgrade.bin can be flashed using luci or sysupgrade via ssh, you will have to force the upgrade due to a different factory name. Remember: Do *not* preserve factory configuration! MAC addresses as used by OEM firmware: use address source 2g 44:D1:FA:*:0b Factory 0x0004 (label) 5g 46:D1:FA:*:0b LAA of 2g lan 44:D1:FA:*:0c Factory 0xe000 wan 44:D1:FA:*:0d Factory 0xe000 + 1 The wan MAC can also be found in 0xe006 but is not used by OEM dtb. Due to different MAC handling in mt76 the LAA derived from lan is used for 2g to prevent duplicate MACs when creating multiple interfaces. Signed-off-by: Clemens Hopfer <openwrt@wireloss.net>
94 lines
2.9 KiB
Plaintext
94 lines
2.9 KiB
Plaintext
[ "$ACTION" == "add" ] || exit 0
|
|
|
|
PHYNBR=${DEVPATH##*/phy}
|
|
|
|
[ -n $PHYNBR ] || exit 0
|
|
|
|
. /lib/functions.sh
|
|
. /lib/functions/system.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
beeline,smartbox-flash)
|
|
hw_mac_addr_ra0="$(mtd_get_mac_ascii u-boot-env ra0macaddr)"
|
|
hw_mac_addr_rax0="$(mtd_get_mac_ascii u-boot-env rax0macaddr)"
|
|
[ "$PHYNBR" = "0" ] && echo -n $hw_mac_addr_ra0 > /sys${DEVPATH}/macaddress
|
|
[ "$PHYNBR" = "1" ] && echo -n $hw_mac_addr_rax0 > /sys${DEVPATH}/macaddress
|
|
;;
|
|
dlink,dir-853-a3)
|
|
[ "$PHYNBR" = "0" ] && \
|
|
macaddr_setbit_la "$(mtd_get_mac_binary factory 0xe000)" \
|
|
> /sys${DEVPATH}/macaddress
|
|
;;
|
|
dlink,dir-853-r1|\
|
|
phicomm,k2p)
|
|
if [ "$PHYNBR" = "0" ]; then
|
|
base_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" -1)
|
|
macaddr_setbit_la "$base_mac" > /sys${DEVPATH}/macaddress
|
|
fi
|
|
;;
|
|
glinet,gl-mt1300)
|
|
[ "$PHYNBR" = "1" ] && \
|
|
macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress
|
|
;;
|
|
hiwifi,hc5962)
|
|
label_mac=$(mtd_get_mac_ascii bdinfo "Vfac_mac ")
|
|
[ "$PHYNBR" = "0" ] && [ -n "$label_mac" ] && \
|
|
echo -n "$label_mac" > /sys${DEVPATH}/macaddress
|
|
[ "$PHYNBR" = "1" ] && [ -n "$label_mac" ] && \
|
|
macaddr_unsetbit "$label_mac" 6 > /sys${DEVPATH}/macaddress
|
|
;;
|
|
iptime,a3002mesh|\
|
|
iptime,a3004t)
|
|
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
|
|
[ "$PHYNBR" = "0" ] && \
|
|
macaddr_setbit_la "$(macaddr_add $hw_mac_addr 3)" > /sys${DEVPATH}/macaddress
|
|
[ "$PHYNBR" = "1" ] && echo -n "$hw_mac_addr" > /sys${DEVPATH}/macaddress
|
|
;;
|
|
iptime,ax2004m)
|
|
if [ "$PHYNBR" = "1" ]; then
|
|
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
|
|
macaddr_setbit_la "$(macaddr_add $hw_mac_addr 3)" > /sys${DEVPATH}/macaddress
|
|
fi
|
|
;;
|
|
jcg,q20)
|
|
[ "$PHYNBR" = "1" ] && \
|
|
macaddr_setbit_la "$(mtd_get_mac_binary Factory 0x4)" > /sys${DEVPATH}/macaddress
|
|
;;
|
|
jcg,y2)
|
|
[ "$PHYNBR" = "1" ] && \
|
|
macaddr_setbit_la "$(mtd_get_mac_binary factory 0x4)" > /sys${DEVPATH}/macaddress
|
|
;;
|
|
linksys,e5600|\
|
|
linksys,ea6350-v4|\
|
|
linksys,ea7300-v1|\
|
|
linksys,ea7300-v2|\
|
|
linksys,ea7500-v2|\
|
|
linksys,ea8100-v1|\
|
|
linksys,ea8100-v2)
|
|
hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
|
[ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 1 > /sys${DEVPATH}/macaddress
|
|
[ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
|
|
;;
|
|
oraybox,x3a)
|
|
if [ "$PHYNBR" = "1" ]; then
|
|
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
|
|
macaddr_setbit_la "$(macaddr_add $hw_mac_addr 0x100000)" > /sys${DEVPATH}/macaddress
|
|
fi
|
|
;;
|
|
raisecom,msg1500-x-00)
|
|
[ "$PHYNBR" = "0" ] && \
|
|
macaddr_setbit_la "$(mtd_get_mac_ascii Config protest_lan_mac)" \
|
|
> /sys${DEVPATH}/macaddress
|
|
;;
|
|
tenbay,t-mb5eu-v01)
|
|
hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
|
|
[ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr "0x100000" > /sys${DEVPATH}/macaddress
|
|
;;
|
|
yuncore,ax820)
|
|
[ "$PHYNBR" = "1" ] && \
|
|
macaddr_setbit_la "$(mtd_get_mac_binary Factory 0xe000)" > /sys${DEVPATH}/macaddress
|
|
;;
|
|
esac
|