asus,tuf-ax6000)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" eth1
;;
- netgear,wax220|\
- ubnt,unifi-6-plus|\
- zyxel,nwa50ax-pro)
- ucidef_set_interface_lan "eth0"
- ;;
bananapi,bpi-r3)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 sfp2" "eth1 wan"
;;
- cudy,wr3000-v1)
- ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
- ;;
- glinet,gl-mt3000)
- ucidef_set_interfaces_lan_wan eth1 eth0
+ cetron,ct3003|\
+ cudy,wr3000-v1|\
+ jcg,q30-pro|\
+ qihoo,360t7)
+ ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" wan
;;
cmcc,rax3000m|\
h3c,magic-nx30-pro)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1
;;
+ glinet,gl-mt3000)
+ ucidef_set_interfaces_lan_wan eth1 eth0
+ ;;
+ glinet,gl-mt6000|\
+ tplink,tl-xdr4288|\
+ tplink,tl-xdr6088)
+ ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" eth1
+ ;;
mediatek,mt7986a-rfb)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan6" "eth1 wan"
;;
mercusys,mr90x-v1)
ucidef_set_interfaces_lan_wan "lan0 lan1 lan2" eth1
;;
- cetron,ct3003|\
- jcg,q30-pro|\
- qihoo,360t7)
- ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" wan
- ;;
- glinet,gl-mt6000|\
- tplink,tl-xdr4288|\
- tplink,tl-xdr6088)
- ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" eth1
+ netgear,wax220|\
+ ubnt,unifi-6-plus|\
+ zyxel,nwa50ax-pro)
+ ucidef_set_interface_lan "eth0"
;;
tplink,tl-xdr6086)
ucidef_set_interfaces_lan_wan "lan1 lan2" eth1
[ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
[ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 3 > /sys${DEVPATH}/macaddress
;;
- ubnt,unifi-6-plus)
- addr=$(mtd_get_mac_binary EEPROM 0x6)
- [ "$PHYNBR" = "0" ] && echo "$addr" > /sys${DEVPATH}/macaddress
- [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
- ;;
qihoo,360t7)
addr=$(mtd_get_mac_ascii factory lanMac)
[ "$PHYNBR" = "0" ] && macaddr_add $addr 2 > /sys${DEVPATH}/macaddress
tplink,tl-xdr6088)
[ "$PHYNBR" = "0" ] && get_mac_label > /sys${DEVPATH}/macaddress
;;
+ ubnt,unifi-6-plus)
+ addr=$(mtd_get_mac_binary EEPROM 0x6)
+ [ "$PHYNBR" = "0" ] && echo "$addr" > /sys${DEVPATH}/macaddress
+ [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
+ ;;
zbtlink,zbt-z8102ax|\
zyxel,ex5601-t0)
addr=$(mtd_get_mac_binary "Factory" 0x4)
rm $@.tmp
endef
+define Device/acer_predator-w6
+ DEVICE_VENDOR := Acer
+ DEVICE_MODEL := Predator W6
+ DEVICE_DTS := mt7986a-acer-predator-w6
+ DEVICE_DTS_DIR := ../dts
+ DEVICE_DTS_LOADADDR := 0x47000000
+ DEVICE_PACKAGES := kmod-usb3 kmod-mt7986-firmware kmod-mt7916-firmware mt7986-wo-firmware e2fsprogs f2fsck mkf2fs
+ IMAGES := sysupgrade.bin
+ KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
+ KERNEL_INITRAMFS := kernel-bin | lzma | \
+ fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
+ IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+endef
+TARGET_DEVICES += acer_predator-w6
+
define Device/asus_tuf-ax4200
DEVICE_VENDOR := ASUS
DEVICE_MODEL := TUF-AX4200
endef
TARGET_DEVICES += asus_tuf-ax6000
-define Device/acer_predator-w6
- DEVICE_VENDOR := Acer
- DEVICE_MODEL := Predator W6
- DEVICE_DTS := mt7986a-acer-predator-w6
- DEVICE_DTS_DIR := ../dts
- DEVICE_DTS_LOADADDR := 0x47000000
- DEVICE_PACKAGES := kmod-usb3 kmod-mt7986-firmware kmod-mt7916-firmware mt7986-wo-firmware e2fsprogs f2fsck mkf2fs
- IMAGES := sysupgrade.bin
- KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
- KERNEL_INITRAMFS := kernel-bin | lzma | \
- fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
- IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
-endef
-TARGET_DEVICES += acer_predator-w6
-
define Device/bananapi_bpi-r3
DEVICE_VENDOR := Bananapi
DEVICE_MODEL := BPi-R3
endef
TARGET_DEVICES += jcg_q30-pro
-define Device/netgear_wax220
- DEVICE_VENDOR := NETGEAR
- DEVICE_MODEL := WAX220
- DEVICE_DTS := mt7986b-netgear-wax220
- DEVICE_DTS_DIR := ../dts
- NETGEAR_ENC_MODEL := WAX220
- NETGEAR_ENC_REGION := US
- DEVICE_PACKAGES := kmod-mt7986-firmware mt7986-wo-firmware
- KERNEL_INITRAMFS_SUFFIX := -recovery.itb
- IMAGE_SIZE := 32768k
- IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
- IMAGES += factory.img
- # Padding to 10M seems to be required by OEM web interface
- IMAGE/factory.img := sysupgrade-tar | \
- pad-to 10M | check-size | netgear-encrypted-factory
-endef
-TARGET_DEVICES += netgear_wax220
-
define Device/mediatek_mt7981-rfb
DEVICE_VENDOR := MediaTek
DEVICE_MODEL := MT7981 rfb
endef
TARGET_DEVICES += mercusys_mr90x-v1
+define Device/netgear_wax220
+ DEVICE_VENDOR := NETGEAR
+ DEVICE_MODEL := WAX220
+ DEVICE_DTS := mt7986b-netgear-wax220
+ DEVICE_DTS_DIR := ../dts
+ NETGEAR_ENC_MODEL := WAX220
+ NETGEAR_ENC_REGION := US
+ DEVICE_PACKAGES := kmod-mt7986-firmware mt7986-wo-firmware
+ KERNEL_INITRAMFS_SUFFIX := -recovery.itb
+ IMAGE_SIZE := 32768k
+ IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+ IMAGES += factory.img
+ # Padding to 10M seems to be required by OEM web interface
+ IMAGE/factory.img := sysupgrade-tar | \
+ pad-to 10M | check-size | netgear-encrypted-factory
+endef
+TARGET_DEVICES += netgear_wax220
+
define Device/qihoo_360t7
DEVICE_VENDOR := Qihoo
DEVICE_MODEL := 360T7