bcm53xx: add support for Luxul FullMAC WiFi devices
This prepares support for models XAP-1610 and XWR-3150. Flashing requires using Luxul firmware version: 1) 8.1.0 or newer for XAP-1610 2) 6.4.0 or newer for XWR-3150 and uploading firmware using "Firmware Update" web UI page. Signed-off-by: Dan Haab <dan.haab@legrand.com>
This commit is contained in:
parent
7daab62861
commit
c459a6bf48
2 changed files with 36 additions and 1 deletions
|
@ -36,6 +36,15 @@ bcm53xx_setup_interfaces()
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"0:wan" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5@eth0"
|
"0:wan" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5@eth0"
|
||||||
;;
|
;;
|
||||||
|
luxul,xap-1610-v1)
|
||||||
|
ucidef_add_switch "switch0" \
|
||||||
|
"0:lan" "1:lan" "5@eth0"
|
||||||
|
ucidef_set_interface_lan "eth0.1" "dhcp"
|
||||||
|
;;
|
||||||
|
luxul,xwr-3150-v1)
|
||||||
|
ucidef_add_switch "switch0" \
|
||||||
|
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "4:wan" "5@eth0"
|
||||||
|
;;
|
||||||
phicomm,k3)
|
phicomm,k3)
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"0:lan" "1:lan" "2:lan" "3:wan" "5@eth0"
|
"0:lan" "1:lan" "2:lan" "3:wan" "5@eth0"
|
||||||
|
@ -87,20 +96,28 @@ bcm53xx_setup_macs()
|
||||||
case "$board" in
|
case "$board" in
|
||||||
asus,rt-ac87u)
|
asus,rt-ac87u)
|
||||||
etXmacaddr=$(nvram get et1macaddr)
|
etXmacaddr=$(nvram get et1macaddr)
|
||||||
|
offset=1
|
||||||
;;
|
;;
|
||||||
dlink,dir-885l | \
|
dlink,dir-885l | \
|
||||||
netgear,r7900 | \
|
netgear,r7900 | \
|
||||||
netgear,r8000 | \
|
netgear,r8000 | \
|
||||||
netgear,r8500)
|
netgear,r8500)
|
||||||
etXmacaddr=$(nvram get et2macaddr)
|
etXmacaddr=$(nvram get et2macaddr)
|
||||||
|
offset=1
|
||||||
|
;;
|
||||||
|
luxul,xwr-3100v1 | \
|
||||||
|
luxul,xwr-3150-v1)
|
||||||
|
etXmacaddr=$(nvram get et0macaddr)
|
||||||
|
offset=5
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
etXmacaddr=$(nvram get et0macaddr)
|
etXmacaddr=$(nvram get et0macaddr)
|
||||||
|
offset=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# If WAN MAC isn't explicitly set, calculate it using base MAC as reference.
|
# If WAN MAC isn't explicitly set, calculate it using base MAC as reference.
|
||||||
[ -z "$wan_macaddr" -a -n "$etXmacaddr" ] && wan_macaddr=$(macaddr_add "$etXmacaddr" 1)
|
[ -z "$wan_macaddr" -a -n "$etXmacaddr" ] && wan_macaddr=$(macaddr_add "$etXmacaddr" $offset)
|
||||||
|
|
||||||
[ -n "$wan_macaddr" ] && ucidef_set_interface_macaddr "wan" "$wan_macaddr"
|
[ -n "$wan_macaddr" ] && ucidef_set_interface_macaddr "wan" "$wan_macaddr"
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,6 +291,15 @@ define Device/luxul-abr-4500
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += luxul-abr-4500
|
TARGET_DEVICES += luxul-abr-4500
|
||||||
|
|
||||||
|
define Device/luxul-xap-1610
|
||||||
|
$(Device/luxul)
|
||||||
|
DEVICE_MODEL := XAP-1610
|
||||||
|
DEVICE_PACKAGES := $(BRCMFMAC_4366C0)
|
||||||
|
IMAGE/lxl := append-rootfs | trx-serial | luxul-lxl
|
||||||
|
LUXUL_BOARD := XAP-1610
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += luxul-xap-1610
|
||||||
|
|
||||||
define Device/luxul-xbr-4500
|
define Device/luxul-xbr-4500
|
||||||
$(Device/luxul)
|
$(Device/luxul)
|
||||||
DEVICE_MODEL := XBR-4500
|
DEVICE_MODEL := XBR-4500
|
||||||
|
@ -299,6 +308,15 @@ define Device/luxul-xbr-4500
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += luxul-xbr-4500
|
TARGET_DEVICES += luxul-xbr-4500
|
||||||
|
|
||||||
|
define Device/luxul-xwr-3150
|
||||||
|
$(Device/luxul)
|
||||||
|
DEVICE_MODEL := XWR-3150
|
||||||
|
DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
|
||||||
|
DEVICE_DTS := bcm47094-luxul-xwr-3150-v1
|
||||||
|
LUXUL_BOARD := XWR-3150
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += luxul-xwr-3150
|
||||||
|
|
||||||
define Device/netgear
|
define Device/netgear
|
||||||
DEVICE_VENDOR := NETGEAR
|
DEVICE_VENDOR := NETGEAR
|
||||||
IMAGES := chk
|
IMAGES := chk
|
||||||
|
|
Loading…
Reference in a new issue