From: Matthias Schiffer Date: Fri, 12 Jan 2018 00:42:11 +0000 (+0100) Subject: ar71xx/generic: add generic- prefix to vendor-specific image Makefile snippets X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=29d126b5c13a8581cbc0961523eb3fd60320111d;p=openwrt%2Fstaging%2F981213.git ar71xx/generic: add generic- prefix to vendor-specific image Makefile snippets Signed-off-by: Matthias Schiffer --- diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 6c70babc56..e14271df53 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -13,11 +13,11 @@ KERNEL_LOADADDR = 0x80060000 DEVICE_VARS += BOARDNAME CMDLINE CONSOLE IMAGE_SIZE LOADER_TYPE ifeq ($(SUBTARGET),generic) -include ./tp-link.mk -include ./ubnt.mk include ./generic.mk -include ./legacy-devices.mk -include ./senao.mk +include ./generic-legacy-devices.mk +include ./generic-senao.mk +include ./generic-tp-link.mk +include ./generic-ubnt.mk endif ifeq ($(SUBTARGET),nand) include ./nand.mk diff --git a/target/linux/ar71xx/image/generic-legacy-devices.mk b/target/linux/ar71xx/image/generic-legacy-devices.mk new file mode 100644 index 0000000000..e418282dd0 --- /dev/null +++ b/target/linux/ar71xx/image/generic-legacy-devices.mk @@ -0,0 +1,591 @@ +define LegacyDevice/A60 + DEVICE_TITLE := OpenMesh A40/A60 + DEVICE_PACKAGES := om-watchdog kmod-ath10k ath10k-firmware-qca988x \ + mod-usb-core kmod-usb2 +endef +LEGACY_DEVICES += A60 + +define LegacyDevice/ALFANX + DEVICE_TITLE := ALFA Network N2/N5 board +endef +LEGACY_DEVICES += ALFANX + +define LegacyDevice/HORNETUB + DEVICE_TITLE := ALFA Network Hornet-UB board (8MB flash, 32MB ram) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += HORNETUB + +define LegacyDevice/TUBE2H8M + DEVICE_TITLE := ALFA Network Tube2H board (8MB flash) +endef +LEGACY_DEVICES += TUBE2H8M + +define LegacyDevice/AP96 + DEVICE_TITLE := Atheros AP96 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 +endef +LEGACY_DEVICES += AP96 + +define LegacyDevice/WNDAP360 + DEVICE_TITLE := NETGEAR WNDAP360 +endef +LEGACY_DEVICES += WNDAP360 + +define LegacyDevice/ALFAAP120C + DEVICE_TITLE := ALFA Network AP120C board +endef +LEGACY_DEVICES += ALFAAP120C + +define LegacyDevice/ALFAAP96 + DEVICE_TITLE := ALFA Network AP96 board + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-rtc-pcf2123 +endef +LEGACY_DEVICES += ALFAAP96 + +define LegacyDevice/ALL0258N + DEVICE_TITLE := Allnet ALL0258N + DEVICE_PACKAGES := rssileds +endef +LEGACY_DEVICES += ALL0258N + +define LegacyDevice/ALL0315N + DEVICE_TITLE := Allnet ALL0315N + DEVICE_PACKAGES := rssileds +endef +LEGACY_DEVICES += ALL0315N + +define LegacyDevice/AP121_8M + DEVICE_TITLE := Atheros AP121 reference board (8MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 +endef +LEGACY_DEVICES += AP121_8M + +define LegacyDevice/AP121_16M + DEVICE_TITLE := Atheros AP121 reference board (16MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 +endef +LEGACY_DEVICES += AP121_16M + +define LegacyDevice/AP132 + DEVICE_TITLE := Atheros AP132 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += AP132 + +define LegacyDevice/AP135 + DEVICE_TITLE := Atheros AP135 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += AP135 + +define LegacyDevice/AP136_010 + DEVICE_TITLE := Atheros AP136-010 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += AP136_010 + +define LegacyDevice/AP136_020 + DEVICE_TITLE := Atheros AP136-020 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += AP136_020 + +define LegacyDevice/AP143_8M + DEVICE_TITLE := Qualcomm Atheros AP143 reference board (8MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += AP143_8M + +define LegacyDevice/AP143_16M + DEVICE_TITLE := Qualcomm Atheros AP143 reference board (16MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += AP143_16M + +define LegacyDevice/AP147_010 + DEVICE_TITLE := Qualcomm Atheros AP147-010 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += AP147_010 + +define LegacyDevice/AP152_16M + DEVICE_TITLE := Qualcomm Atheros AP152 reference board (16MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += AP152_16M + +define LegacyDevice/BXU2000N2 + DEVICE_TITLE := BHU BXU2000n-2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += BXU2000N2 + +define LegacyDevice/CAP4200AG + DEVICE_TITLE := Senao CAP4200AG +endef +LEGACY_DEVICES += CAP4200AG + +define LegacyDevice/DB120 + DEVICE_TITLE := Atheros DB120 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += DB120 + +define LegacyDevice/HORNETUBx2 + DEVICE_TITLE := ALFA Network Hornet-UB-x2 board (16MB flash, 64MB ram) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += HORNETUBx2 + +define LegacyDevice/TUBE2H16M + DEVICE_TITLE := ALFA Network Tube2H board (16MB flash) +endef +LEGACY_DEVICES += TUBE2H16M + +define LegacyDevice/WLR8100 + DEVICE_TITLE := Sitecom WLR-8100 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-usb3 +endef +LEGACY_DEVICES += WLR8100 + +define LegacyDevice/F9K1115V2 + DEVICE_TITLE := Belkin AC1750DB (F9K1115V2) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb3 kmod-usb-ledtrig-usbport \ + kmod-ath10k ath10k-firmware-qca988x +endef +LEGACY_DEVICES += F9K1115V2 + +define LegacyDevice/DIR600A1 + DEVICE_TITLE := D-Link DIR-600 rev. A1 +endef +LEGACY_DEVICES += DIR600A1 + +define LegacyDevice/DIR601A1 + DEVICE_TITLE := D-Link DIR-601 rev. A1 +endef +LEGACY_DEVICES += DIR601A1 + +define LegacyDevice/FR54RTR + DEVICE_TITLE := Frys FR-54RTR +endef +LEGACY_DEVICES += FR54RTR + +define LegacyDevice/EBR2310C1 + DEVICE_TITLE := D-Link EBR-2310 rev. C1 +endef +LEGACY_DEVICES += EBR2310C1 + +define LegacyDevice/DIR615E1 + DEVICE_TITLE := D-Link DIR-615 rev. E1 +endef +LEGACY_DEVICES += DIR615E1 + +define LegacyDevice/DIR615E4 + DEVICE_TITLE := D-Link DIR-615 rev. E4 +endef +LEGACY_DEVICES += DIR615E4 + +define LegacyDevice/DIR615I1 + DEVICE_TITLE := D-Link DIR-615 rev. I1 +endef +LEGACY_DEVICES += DIR615I1 + +define LegacyDevice/DIR615I3 + DEVICE_TITLE := D-Link DIR-615 rev. I3 +endef +LEGACY_DEVICES += DIR615I3 + +define LegacyDevice/A02RBW300N + DEVICE_TITLE := Atlantis-Land A02-RB-W300N +endef +LEGACY_DEVICES += A02RBW300N + +define LegacyDevice/DIR615C1 + DEVICE_TITLE := D-Link DIR-615 rev. C1 +endef +LEGACY_DEVICES += DIR615C1 + +define LegacyDevice/TEW632BRP + DEVICE_TITLE := TRENDNet TEW-632BRP +endef +LEGACY_DEVICES += TEW632BRP + +define LegacyDevice/TEW652BRP_FW + DEVICE_TITLE := TRENDNet TEW-652BRP +endef +LEGACY_DEVICES += TEW652BRP_FW + +define LegacyDevice/TEW652BRP_RECOVERY + DEVICE_TITLE := TRENDNet TEW-652BRP (recovery) +endef +LEGACY_DEVICES += TEW652BRP_RECOVERY + +define LegacyDevice/TEW712BR + DEVICE_TITLE := TRENDNet TEW-712BR +endef +LEGACY_DEVICES += TEW712BR + +define LegacyDevice/DIR601B1 + DEVICE_TITLE := D-Link DIR-601 rev. B1 +endef +LEGACY_DEVICES += DIR601B1 + +define LegacyDevice/DIR505A1 + DEVICE_TITLE := D-Link DIR-505 rev. A1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += DIR505A1 + +define LegacyDevice/DGL5500A1 + DEVICE_TITLE := D-Link DGL-5500 rev. A1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca988x +endef +LEGACY_DEVICES += DGL5500A1 + +define LegacyDevice/TEW823DRU + DEVICE_TITLE := TRENDNet TEW-823DRU + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca988x +endef +LEGACY_DEVICES += TEW823DRU + +define LegacyDevice/DHP1565A1 + DEVICE_TITLE := D-Link DHP-1565 rev. A1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 +endef +LEGACY_DEVICES += DHP1565A1 + +define LegacyDevice/DIR825C1 + DEVICE_TITLE := D-Link DIR-825 rev. C1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += DIR825C1 + +define LegacyDevice/DIR835A1 + DEVICE_TITLE := D-Link DIR-835 rev. A1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 +endef +LEGACY_DEVICES += DIR835A1 + +define LegacyDevice/TEW732BR + DEVICE_TITLE := TRENDNet TEW-732BR +endef +LEGACY_DEVICES += TEW732BR + +define LegacyDevice/WRT160NL + DEVICE_TITLE := Linksys WRT160NL + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 +endef +LEGACY_DEVICES += WRT160NL + +define LegacyDevice/MYNETREXT + DEVICE_TITLE := Western Digital My Net Wi-Fi Range Extender + DEVICE_PACKAGES := rssileds +endef +LEGACY_DEVICES += MYNETREXT + +define LegacyDevice/DIR825B1 + DEVICE_TITLE := D-Link DIR-825 rev. B1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += DIR825B1 + +define LegacyDevice/TEW673GRU + DEVICE_TITLE := TRENDNet TEW-673GRU + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += TEW673GRU + +define LegacyDevice/DLRTDEV01 + DEVICE_TITLE := PowerCloud Systems dlrtdev01 model + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += DLRTDEV01 + +define LegacyDevice/dLAN_Hotspot + DEVICE_TITLE := devolo dLAN Hotspot +endef +LEGACY_DEVICES += dLAN_Hotspot + +define LegacyDevice/dLAN_pro_500_wp + DEVICE_TITLE := devolo dLAN pro 500 Wireless+ +endef +LEGACY_DEVICES += dLAN_pro_500_wp + +define LegacyDevice/dLAN_pro_1200_ac + DEVICE_TITLE := devolo dLAN pro 1200+ WiFi ac + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x +endef +LEGACY_DEVICES += dLAN_pro_1200_ac + +define LegacyDevice/ESR900 + DEVICE_TITLE := EnGenius ESR900 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += ESR900 + +define LegacyDevice/ESR1750 + DEVICE_TITLE := EnGenius ESR1750 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-ath10k ath10k-firmware-qca988x +endef +LEGACY_DEVICES += ESR1750 + +define LegacyDevice/EPG5000 + DEVICE_TITLE := EnGenius EPG5000 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-ath10k ath10k-firmware-qca988x +endef +LEGACY_DEVICES += EPG5000 + +define LegacyDevice/WP543_4M + DEVICE_TITLE := Compex WP543/WPJ543 (4MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += WP543_4M + +define LegacyDevice/WP543_8M + DEVICE_TITLE := Compex WP543/WPJ543 (8MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += WP543_8M + +define LegacyDevice/WP543_16M + DEVICE_TITLE := Compex WP543/WPJ543 (16MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += WP543_16M + +define LegacyDevice/WPE72_4M + DEVICE_TITLE := Compex WPE72/WPE72NX (4MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += WPE72_4M + +define LegacyDevice/WPE72_8M + DEVICE_TITLE := Compex WPE72/WPE72NX (8MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += WPE72_8M + +define LegacyDevice/WPE72_16M + DEVICE_TITLE := Compex WPE72/WPE72NX (16MB flash) + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += WPE72_16M + +define LegacyDevice/WNR2000 + DEVICE_TITLE := NETGEAR WNR2000V1 +endef +LEGACY_DEVICES += WNR2000 + +define LegacyDevice/WNR2000V3 + DEVICE_TITLE := NETGEAR WNR2000V3 +endef +LEGACY_DEVICES += WNR2000V3 + +define LegacyDevice/WNR2000V4 + DEVICE_TITLE := NETGEAR WNR2000V4 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += WNR2000V4 + +define LegacyDevice/WNR2200 + DEVICE_TITLE := NETGEAR WNR2200 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += WNR2200 + +define LegacyDevice/REALWNR612V2 + DEVICE_TITLE := NETGEAR WNR612V2 +endef +LEGACY_DEVICES += REALWNR612V2 + +define LegacyDevice/N150R + DEVICE_TITLE := On Networks N150 +endef +LEGACY_DEVICES += N150R + +define LegacyDevice/REALWNR1000V2 + DEVICE_TITLE := NETGEAR WNR1000V2 +endef +LEGACY_DEVICES += REALWNR1000V2 + +define LegacyDevice/WNR1000V2_VC + DEVICE_TITLE := NETGEAR WNR1000V2-VC +endef +LEGACY_DEVICES += WNR1000V2_VC + +define LegacyDevice/WPN824N + DEVICE_TITLE := NETGEAR WPN824N +endef +LEGACY_DEVICES += WPN824N + +define LegacyDevice/OM2P + DEVICE_TITLE := OpenMesh OM2P/OM2P-HS/OM2P-LC + DEVICE_PACKAGES := om-watchdog +endef +LEGACY_DEVICES += OM2P + +define LegacyDevice/OM5P + DEVICE_TITLE := OpenMesh OM5P/OM5P-AN + DEVICE_PACKAGES := om-watchdog +endef +LEGACY_DEVICES += OM5P + +define LegacyDevice/OM5PAC + DEVICE_TITLE := OpenMesh OM5P-AC + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x om-watchdog +endef +LEGACY_DEVICES += OM5PAC + +define LegacyDevice/MR600 + DEVICE_TITLE := OpenMesh MR600 + DEVICE_PACKAGES := om-watchdog +endef +LEGACY_DEVICES += MR600 + +define LegacyDevice/MR900 + DEVICE_TITLE := OpenMesh MR900 + DEVICE_PACKAGES := om-watchdog +endef +LEGACY_DEVICES += MR900 + +define LegacyDevice/MR1750 + DEVICE_TITLE := OpenMesh MR1750 + DEVICE_PACKAGES := om-watchdog kmod-ath10k ath10k-firmware-qca988x +endef +LEGACY_DEVICES += MR1750 + +define LegacyDevice/ALL0305 + DEVICE_TITLE := Allnet ALL0305 + DEVICE_PACKAGES := fconfig kmod-ath5k -kmod-ath9k +endef +LEGACY_DEVICES += ALL0305 + +define LegacyDevice/EAP7660D + DEVICE_TITLE := Senao EAP7660D +endef +LEGACY_DEVICES += EAP7660D + +define LegacyDevice/JA76PF + DEVICE_TITLE := jjPlus JA76PF + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-hwmon-core kmod-i2c-core kmod-hwmon-lm75 +endef +LEGACY_DEVICES += JA76PF + +define LegacyDevice/JA76PF2 + DEVICE_TITLE := jjPlus JA76PF2 +endef +LEGACY_DEVICES += JA76PF2 + +define LegacyDevice/JWAP003 + DEVICE_TITLE := jjPlus JWAP003 + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += JWAP003 + +define LegacyDevice/PB42 + DEVICE_TITLE := Atheros PB42 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 +endef +LEGACY_DEVICES += PB42 + +define LegacyDevice/PB44 + DEVICE_TITLE := Atheros PB44 reference board + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \ + vsc7385-ucode-pb44 vsc7395-ucode-pb44 +endef +LEGACY_DEVICES += PB44 + +define LegacyDevice/MZKW04NU + DEVICE_TITLE := Planex MZK-W04NU + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += MZKW04NU + +define LegacyDevice/MZKW300NH + DEVICE_TITLE := Planex MZK-W300NH +endef +LEGACY_DEVICES += MZKW300NH + +define LegacyDevice/EAP300V2 + DEVICE_TITLE := EnGenius EAP300V2 +endef +LEGACY_DEVICES += EAP300V2 + +define LegacyDevice/WHRG301N + DEVICE_TITLE := Buffalo WHR-G301N +endef +LEGACY_DEVICES += WHRG301N + +define LegacyDevice/WHRHPG300N + DEVICE_TITLE := Buffalo WHR-HP-G300N +endef +LEGACY_DEVICES += WHRHPG300N + +define LegacyDevice/WHRHPGN + DEVICE_TITLE := Buffalo WHR-HP-GN +endef +LEGACY_DEVICES += WHRHPGN + +define LegacyDevice/WLAEAG300N + DEVICE_TITLE := Buffalo WLAE-AG300N + DEVICE_PACKAGES := kmod-ledtrig-netdev +endef +LEGACY_DEVICES += WLAEAG300N + +define LegacyDevice/WRT400N + DEVICE_TITLE := Linksys WRT400N +endef +LEGACY_DEVICES += WRT400N + +define LegacyDevice/WZRHPG300NH + DEVICE_TITLE := Buffalo WZR-HP-G300NH + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += WZRHPG300NH + +define LegacyDevice/WZRHPG300NH2 + DEVICE_TITLE := Buffalo WZR-HP-G300NH2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += WZRHPG300NH2 + +define LegacyDevice/WZRHPAG300H + DEVICE_TITLE := Buffalo WZR-HP-AG300H + DEVICE_PACKAGES := kmod-usb-ohci kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += WZRHPAG300H + +define LegacyDevice/WZRHPG450H + DEVICE_TITLE := Buffalo WZR-HP-G450H + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += WZRHPG450H + +define LegacyDevice/WZR600DHP + DEVICE_TITLE := Buffalo WZR-600DHP + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += WZR600DHP + +define LegacyDevice/WZR450HP2 + DEVICE_TITLE := Buffalo WZR-450HP2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport +endef +LEGACY_DEVICES += WZR450HP2 + +define LegacyDevice/ZCN1523H28 + DEVICE_TITLE := Zcomax ZCN-1523H-2-8 +endef +LEGACY_DEVICES += ZCN1523H28 + +define LegacyDevice/ZCN1523H516 + DEVICE_TITLE := Zcomax ZCN-1523H-5-16 +endef +LEGACY_DEVICES += ZCN1523H516 + +define LegacyDevice/NBG_460N_550N_550NH + DEVICE_TITLE := ZyXEL NBG 460N/550N/550NH + DEVICE_PACKAGES := kmod-rtc-pcf8563 +endef +LEGACY_DEVICES += NBG_460N_550N_550NH diff --git a/target/linux/ar71xx/image/generic-senao.mk b/target/linux/ar71xx/image/generic-senao.mk new file mode 100644 index 0000000000..dbb7b69f94 --- /dev/null +++ b/target/linux/ar71xx/image/generic-senao.mk @@ -0,0 +1,31 @@ +define Build/senao-factory-image + $(eval board=$(word 1,$(1))) + $(eval rootfs=$(word 2,$(1))) + + mkdir -p $@.senao + + touch $@.senao/FWINFO-OpenWrt-$(REVISION)-$(board) + $(CP) $(IMAGE_KERNEL) $@.senao/openwrt-senao-$(board)-uImage-lzma.bin + $(CP) $(rootfs) $@.senao/openwrt-senao-$(board)-root.squashfs + + $(TAR) -c \ + --numeric-owner --owner=0 --group=0 --sort=name \ + $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \ + -C $@.senao . | gzip -9nc > $@ + + rm -rf $@.senao +endef + + +define Device/ens202ext + DEVICE_TITLE := EnGenius ENS202EXT + BOARDNAME := ENS202EXT + DEVICE_PACKAGES := rssileds + KERNEL_SIZE := 1536k + IMAGE_SIZE := 13632k + IMAGES += factory.bin + MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),320k(custom)ro,1536k(kernel),12096k(rootfs),2048k(failsafe)ro,64k(art)ro,13632k@0xa0000(firmware) + IMAGE/factory.bin/squashfs := append-rootfs | pad-rootfs | senao-factory-image ens202ext $$$$@ + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) +endef +TARGET_DEVICES += ens202ext diff --git a/target/linux/ar71xx/image/generic-tp-link.mk b/target/linux/ar71xx/image/generic-tp-link.mk new file mode 100644 index 0000000000..18178a3a81 --- /dev/null +++ b/target/linux/ar71xx/image/generic-tp-link.mk @@ -0,0 +1,1237 @@ +DEVICE_VARS += LOADER_FLASH_OFFS TPLINK_BOARD_ID TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION TPLINK_HWID TPLINK_HWREV + +define Build/copy-file + cat "$(1)" > "$@" +endef + +define Build/loader-okli + dd if=$(KDIR)/loader-$(1).gz bs=7680 conv=sync of="$@.new" + cat "$@" >> "$@.new" + mv "$@.new" "$@" +endef + +define Build/loader-okli-compile + $(call Build/loader-common,FLASH_OFFS=$(LOADER_FLASH_OFFS) FLASH_MAX=0 KERNEL_CMDLINE="$(CMDLINE)") +endef + +# combine kernel and rootfs into one image +# mktplinkfw +# is "sysupgrade" or "factory" +# +# -a align the rootfs start on an bytes boundary +# -j add jffs2 end-of-filesystem markers +# -s strip padding from end of the image +# -X reserve bytes in the firmware image (hexval prefixed with 0x) +define Build/mktplinkfw + -$(STAGING_DIR_HOST)/bin/mktplinkfw \ + -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \ + -m $(TPLINK_HEADER_VERSION) \ + -k $(IMAGE_KERNEL) \ + -r $@ \ + -o $@.new \ + -j -X 0x40000 \ + -a $(call rootfs_align,$(FILESYSTEM)) \ + $(wordlist 2,$(words $(1)),$(1)) \ + $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@ +endef + +define Build/uImageArcher + mkimage -A $(LINUX_KARCH) \ + -O linux -T kernel \ + -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -n '$(call toupper,$(LINUX_KARCH)) OpenWrt Linux-$(LINUX_VERSION)' -d $@ $@.new + @mv $@.new $@ +endef + + +define Device/tplink + TPLINK_HWREV := 0x1 + TPLINK_HEADER_VERSION := 1 + LOADER_TYPE := gz + KERNEL := kernel-bin | patch-cmdline | lzma + KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | tplink-v1-header + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade + IMAGE/factory.bin := append-rootfs | mktplinkfw factory +endef + +define Device/tplink-nolzma + $(Device/tplink) + LOADER_FLASH_OFFS := 0x22000 + COMPILE := loader-$(1).gz + COMPILE/loader-$(1).gz := loader-okli-compile + KERNEL := copy-file $(KDIR)/vmlinux.bin.lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) + KERNEL_INITRAMFS := copy-file $(KDIR)/vmlinux-initramfs.bin.lzma | loader-kernel-cmdline | tplink-v1-header +endef + +define Device/tplink-4m + $(Device/tplink-nolzma) + TPLINK_FLASHLAYOUT := 4M + IMAGE_SIZE := 3904k +endef + +define Device/tplink-8m + $(Device/tplink-nolzma) + TPLINK_FLASHLAYOUT := 8M + IMAGE_SIZE := 7936k +endef + +define Device/tplink-4mlzma + $(Device/tplink) + TPLINK_FLASHLAYOUT := 4Mlzma + IMAGE_SIZE := 3904k +endef + +define Device/tplink-8mlzma + $(Device/tplink) + TPLINK_FLASHLAYOUT := 8Mlzma + IMAGE_SIZE := 7936k +endef + +define Device/tplink-16mlzma + $(Device/tplink) + TPLINK_FLASHLAYOUT := 16Mlzma + IMAGE_SIZE := 15872k +endef + +define Device/archer-cxx + KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \ + append-metadata | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory +endef + +define Device/archer-c25-v1 + $(Device/archer-cxx) + DEVICE_TITLE := TP-LINK Archer C25 v1 + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887 + BOARDNAME := ARCHER-C25-V1 + TPLINK_BOARD_ID := ARCHER-C25-V1 + DEVICE_PROFILE := ARCHERC25V1 + IMAGE_SIZE := 7808k + LOADER_TYPE := elf + MTDPARTS := spi0.0:128k(factory-uboot)ro,64k(u-boot)ro,1536k(kernel),6272k(rootfs),128k(config)ro,64k(art)ro,7808k@0x30000(firmware) + SUPPORTED_DEVICES := archer-c25-v1 +endef +TARGET_DEVICES += archer-c25-v1 + +define Device/archer-c58-v1 + $(Device/archer-cxx) + DEVICE_TITLE := TP-LINK Archer C58 v1 + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888 + BOARDNAME := ARCHER-C58-V1 + TPLINK_BOARD_ID := ARCHER-C58-V1 + DEVICE_PROFILE := ARCHERC58V1 + IMAGE_SIZE := 7936k + MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro + SUPPORTED_DEVICES := archer-c58-v1 +endef +TARGET_DEVICES += archer-c58-v1 + +define Device/archer-c59-v1 + $(Device/archer-cxx) + DEVICE_TITLE := TP-LINK Archer C59 v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca9888 + BOARDNAME := ARCHER-C59-V1 + TPLINK_BOARD_ID := ARCHER-C59-V1 + DEVICE_PROFILE := ARCHERC59V1 + IMAGE_SIZE := 14528k + MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1536k(kernel),12992k(rootfs),1664k(tplink)ro,64k(art)ro,14528k@0x20000(firmware) + SUPPORTED_DEVICES := archer-c59-v1 +endef +TARGET_DEVICES += archer-c59-v1 + +define Device/archer-c60-v1 + $(Device/archer-cxx) + DEVICE_TITLE := TP-LINK Archer C60 v1 + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888 + BOARDNAME := ARCHER-C60-V1 + TPLINK_BOARD_ID := ARCHER-C60-V1 + DEVICE_PROFILE := ARCHERC60V1 + IMAGE_SIZE := 7936k + MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro + SUPPORTED_DEVICES := archer-c60-v1 +endef +TARGET_DEVICES += archer-c60-v1 + +define Device/archer-c5-v1 + $(Device/tplink-16mlzma) + DEVICE_TITLE := TP-LINK Archer C5 v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x + BOARDNAME := ARCHER-C5 + DEVICE_PROFILE := ARCHERC7 + TPLINK_HWID := 0xc5000001 +endef +TARGET_DEVICES += archer-c5-v1 + +define Device/archer-c7-v1 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK Archer C7 v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x + BOARDNAME := ARCHER-C7 + DEVICE_PROFILE := ARCHERC7 + TPLINK_HWID := 0x75000001 +endef +TARGET_DEVICES += archer-c7-v1 + +define Device/archer-c7-v2 + $(Device/tplink-16mlzma) + DEVICE_TITLE := TP-LINK Archer C7 v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x + BOARDNAME := ARCHER-C7-V2 + DEVICE_PROFILE := ARCHERC7 + TPLINK_HWID := 0xc7000002 + IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin + IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US + IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU +endef +TARGET_DEVICES += archer-c7-v2 + +define Device/archer-c7-v2-il + $(Device/tplink-16mlzma) + DEVICE_TITLE := TP-LINK Archer C7 v2 (IL) + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x + BOARDNAME := ARCHER-C7-V2 + DEVICE_PROFILE := ARCHERC7 + TPLINK_HWID := 0xc7000002 + TPLINK_HWREV := 0x494c0001 +endef +TARGET_DEVICES += archer-c7-v2-il + +define Device/tl-wdr7500-v3 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK Archer C7 v3 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x + BOARDNAME := ARCHER-C7 + DEVICE_PROFILE := ARCHERC7 + TPLINK_HWID := 0x75000003 +endef +TARGET_DEVICES += tl-wdr7500-v3 + +define Device/archer-c7-v4 + $(Device/archer-cxx) + DEVICE_TITLE := TP-LINK Archer C7 v4 + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x + BOARDNAME := ARCHER-C7-V4 + TPLINK_BOARD_ID := ARCHER-C7-V4 + IMAGE_SIZE := 15104k + LOADER_TYPE := elf + MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,1536k(kernel),13568k(rootfs),960k(config)ro,64k(art)ro,15104k@0x40000(firmware) + SUPPORTED_DEVICES := archer-c7-v4 +endef +TARGET_DEVICES += archer-c7-v4 + +define Device/cpe510-520-v1 + DEVICE_TITLE := TP-LINK CPE510/520 v1 + DEVICE_PACKAGES := rssileds + MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),6144k(rootfs),192k(config)ro,64k(ART)ro,7680k@0x40000(firmware) + IMAGE_SIZE := 7680k + BOARDNAME := CPE510 + TPLINK_BOARD_ID := CPE510 + DEVICE_PROFILE := CPE510 + LOADER_TYPE := elf + KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory +endef +TARGET_DEVICES += cpe510-520-v1 + +define Device/cpe210-220-v1 + $(Device/cpe510-520-v1) + DEVICE_TITLE := TP-LINK CPE210/220 v1 + BOARDNAME := CPE210 + TPLINK_BOARD_ID := CPE210 +endef +TARGET_DEVICES += cpe210-220-v1 + +define Device/wbs210-v1 + $(Device/cpe510-520-v1) + DEVICE_TITLE := TP-LINK WBS210 v1 + BOARDNAME := WBS210 + TPLINK_BOARD_ID := WBS210 +endef +TARGET_DEVICES += wbs210-v1 + +define Device/wbs510-v1 + $(Device/cpe510-520-v1) + DEVICE_TITLE := TP-LINK WBS510 v1 + BOARDNAME := WBS510 + TPLINK_BOARD_ID := WBS510 +endef +TARGET_DEVICES += wbs510-v1 + +define Device/eap120-v1 + DEVICE_TITLE := TP-LINK EAP120 v1 + MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware) + IMAGE_SIZE := 15872k + BOARDNAME := EAP120 + TPLINK_BOARD_ID := EAP120 + DEVICE_PROFILE := EAP120 + LOADER_TYPE := elf + KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory +endef +TARGET_DEVICES += eap120-v1 + +define Device/re450-v1 + DEVICE_TITLE := TP-LINK RE450 v1 + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x + MTDPARTS := spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro + IMAGE_SIZE := 7936k + BOARDNAME := RE450 + TPLINK_BOARD_ID := RE450 + DEVICE_PROFILE := RE450 + LOADER_TYPE := elf + TPLINK_HWID := 0x0 + TPLINK_HWREV := 0 + TPLINK_HEADER_VERSION := 1 + KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory +endef +TARGET_DEVICES += re450-v1 + +define Device/tl-mr10u-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-MR10U v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + BOARDNAME := TL-MR10U + DEVICE_PROFILE := TLMR10U + TPLINK_HWID := 0x00100101 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-mr10u-v1 + +define Device/tl-mr11u-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-MR11U v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-MR11U + DEVICE_PROFILE := TLMR11U + TPLINK_HWID := 0x00110101 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-mr11u-v1 + +define Device/tl-mr11u-v2 + $(Device/tl-mr11u-v1) + DEVICE_TITLE := TP-LINK TL-MR11U v2 + TPLINK_HWID := 0x00110102 +endef +TARGET_DEVICES += tl-mr11u-v2 + +define Device/tl-mr12u-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-MR12U v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-MR13U + DEVICE_PROFILE := TLMR12U + TPLINK_HWID := 0x00120101 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-mr12u-v1 + +define Device/tl-mr13u-v1 + $(Device/tl-mr12u-v1) + DEVICE_TITLE := TP-LINK TL-MR13U v1 + DEVICE_PROFILE := TLMR13U + TPLINK_HWID := 0x00130101 +endef +TARGET_DEVICES += tl-mr13u-v1 + +define Device/tl-mr3020-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-MR3020 v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-MR3020 + DEVICE_PROFILE := TLMR3020 + TPLINK_HWID := 0x30200001 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-mr3020-v1 + +define Device/tl-mr3040-v1 + $(Device/tl-mr3020-v1) + DEVICE_TITLE := TP-LINK TL-MR3040 v1 + BOARDNAME := TL-MR3040 + DEVICE_PROFILE := TLMR3040 + TPLINK_HWID := 0x30400001 +endef +TARGET_DEVICES += tl-mr3040-v1 + +define Device/tl-mr3040-v2 + $(Device/tl-mr3040-v1) + DEVICE_TITLE := TP-LINK TL-MR3040 v2 + BOARDNAME := TL-MR3040-v2 + TPLINK_HWID := 0x30400002 +endef +TARGET_DEVICES += tl-mr3040-v2 + +define Device/tl-mr3220-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-MR3220 v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-MR3220 + DEVICE_PROFILE := TLMR3220 + TPLINK_HWID := 0x32200001 +endef +TARGET_DEVICES += tl-mr3220-v1 + +define Device/tl-mr3220-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-MR3220 v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-MR3220-v2 + DEVICE_PROFILE := TLMR3220 + TPLINK_HWID := 0x32200002 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-mr3220-v2 + +define Device/tl-mr3420-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-MR3420 v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-MR3420 + DEVICE_PROFILE := TLMR3420 + TPLINK_HWID := 0x34200001 +endef +TARGET_DEVICES += tl-mr3420-v1 + +define Device/tl-mr3420-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-MR3420 v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-MR3420-v2 + DEVICE_PROFILE := TLMR3420 + TPLINK_HWID := 0x34200002 +endef +TARGET_DEVICES += tl-mr3420-v2 + +define Device/tl-mr6400-v1 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-MR6400 v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem + BOARDNAME := TL-MR6400 + DEVICE_PROFILE := TLMR6400 + TPLINK_HWID := 0x64000001 +endef +TARGET_DEVICES += tl-mr6400-v1 + +define Device/tl-wa701nd-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WA701N/ND v1 + BOARDNAME := TL-WA901ND + DEVICE_PROFILE := TLWA701 + TPLINK_HWID := 0x07010001 +endef +TARGET_DEVICES += tl-wa701nd-v1 + +define Device/tl-wa701nd-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA701N/ND v2 + BOARDNAME := TL-WA701ND-v2 + DEVICE_PROFILE := TLWA701 + TPLINK_HWID := 0x07010002 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-wa701nd-v2 + +define Device/tl-wa7210n-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA7210N v2 + DEVICE_PACKAGES := rssileds kmod-ledtrig-netdev + BOARDNAME := TL-WA7210N-v2 + DEVICE_PROFILE := TLWA7210 + TPLINK_HWID := 0x72100002 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-wa7210n-v2 + +define Device/tl-wa730re-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WA730RE v1 + BOARDNAME := TL-WA901ND + DEVICE_PROFILE := TLWA730RE + TPLINK_HWID := 0x07300001 +endef +TARGET_DEVICES += tl-wa730re-v1 + +define Device/tl-wa750re-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA750RE v1 + DEVICE_PACKAGES := rssileds + BOARDNAME := TL-WA750RE + DEVICE_PROFILE := TLWA750 + TPLINK_HWID := 0x07500001 +endef +TARGET_DEVICES += tl-wa750re-v1 + +define Device/tl-wa7510n-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WA7510N v1 + BOARDNAME := TL-WA7510N + DEVICE_PROFILE := TLWA7510 + TPLINK_HWID := 0x75100001 +endef +TARGET_DEVICES += tl-wa7510n-v1 + +define Device/tl-wa801nd-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WA801N/ND v1 + BOARDNAME := TL-WA901ND + DEVICE_PROFILE := TLWA801 + TPLINK_HWID := 0x08010001 +endef +TARGET_DEVICES += tl-wa801nd-v1 + +define Device/tl-wa801nd-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA801N/ND v2 + BOARDNAME := TL-WA801ND-v2 + DEVICE_PROFILE := TLWA801 + TPLINK_HWID := 0x08010002 +endef +TARGET_DEVICES += tl-wa801nd-v2 + +define Device/tl-wa801nd-v3 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA801N/ND v3 + BOARDNAME := TL-WA801ND-v3 + DEVICE_PROFILE := TLWA801 + TPLINK_HWID := 0x08010003 +endef +TARGET_DEVICES += tl-wa801nd-v3 + +define Device/tl-wa830re-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WA830RE v1 + BOARDNAME := TL-WA901ND + DEVICE_PROFILE := TLWA830 + TPLINK_HWID := 0x08300010 +endef +TARGET_DEVICES += tl-wa830re-v1 + +define Device/tl-wa830re-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA830RE v2 + BOARDNAME := TL-WA830RE-v2 + DEVICE_PROFILE := TLWA830 + TPLINK_HWID := 0x08300002 +endef +TARGET_DEVICES += tl-wa830re-v2 + +define Device/tl-wa850re-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA850RE v1 + DEVICE_PACKAGES := rssileds + BOARDNAME := TL-WA850RE + DEVICE_PROFILE := TLWA850 + TPLINK_HWID := 0x08500001 +endef +TARGET_DEVICES += tl-wa850re-v1 + +define Device/tl-wa85xre + $(Device/tplink) + TPLINK_HWREV := 0 + KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory + MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),2304k(rootfs),256k(config)ro,64k(art)ro,3648k@0x20000(firmware) +endef + +define Device/tl-wa850re-v2 + $(Device/tl-wa85xre) + DEVICE_TITLE := TP-LINK TL-WA850RE v2 + DEVICE_PACKAGES := rssileds + BOARDNAME := TL-WA850RE-V2 + DEVICE_PROFILE := TLWA850 + TPLINK_BOARD_ID := TLWA850REV2 + TPLINK_HWID := 0x08500002 +endef +TARGET_DEVICES += tl-wa850re-v2 + +define Device/tl-wa855re-v1 + $(Device/tl-wa85xre) + DEVICE_TITLE := TP-LINK TL-WA855RE v1 + BOARDNAME := TL-WA855RE-v1 + DEVICE_PROFILE := TLWA855RE + TPLINK_HWID := 0x08550001 + TPLINK_BOARD_ID := TLWA855REV1 +endef +TARGET_DEVICES += tl-wa855re-v1 + + +define Device/tl-wa860re-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA860RE v1 + BOARDNAME := TL-WA860RE + DEVICE_PROFILE := TLWA860 + TPLINK_HWID := 0x08600001 +endef +TARGET_DEVICES += tl-wa860re-v1 + +define Device/tl-wa901nd-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WA901N/ND v1 + BOARDNAME := TL-WA901ND + DEVICE_PROFILE := TLWA901 + TPLINK_HWID := 0x09010001 +endef +TARGET_DEVICES += tl-wa901nd-v1 + +define Device/tl-wa901nd-v2 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WA901N/ND v2 + BOARDNAME := TL-WA901ND-v2 + DEVICE_PROFILE := TLWA901 + TPLINK_HWID := 0x09010002 +endef +TARGET_DEVICES += tl-wa901nd-v2 + +define Device/tl-wa901nd-v3 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA901N/ND v3 + BOARDNAME := TL-WA901ND-v3 + DEVICE_PROFILE := TLWA901 + TPLINK_HWID := 0x09010003 +endef +TARGET_DEVICES += tl-wa901nd-v3 + +define Device/tl-wa901nd-v4 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WA901N/ND v4 + BOARDNAME := TL-WA901ND-v4 + DEVICE_PROFILE := TLWA901 + TPLINK_HWID := 0x09010004 + IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU +endef +TARGET_DEVICES += tl-wa901nd-v4 + +define Device/tl-wa901nd-v5 + $(Device/tl-wa901nd-v4) + DEVICE_TITLE := TP-LINK TL-WA901N/ND v5 + BOARDNAME := TL-WA901ND-v5 + TPLINK_HWID := 0x09010005 +endef +TARGET_DEVICES += tl-wa901nd-v5 + +define Device/tl-wdr3320-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WDR3320 v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WDR3320-v2 + DEVICE_PROFILE := TLWDR3320V2 + TPLINK_HWID := 0x33200002 + TPLINK_HEADER_VERSION := 2 +endef +TARGET_DEVICES += tl-wdr3320-v2 + +define Device/tl-wdr3500-v1 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WDR3500 v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WDR3500 + DEVICE_PROFILE := TLWDR4300 + TPLINK_HWID := 0x35000001 +endef +TARGET_DEVICES += tl-wdr3500-v1 + +define Device/tl-wdr3600-v1 + $(Device/tl-wdr3500-v1) + DEVICE_TITLE := TP-LINK TL-WDR3600 v1 + BOARDNAME := TL-WDR4300 + TPLINK_HWID := 0x36000001 + IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US +endef +TARGET_DEVICES += tl-wdr3600-v1 + +define Device/tl-wdr4300-v1 + $(Device/tl-wdr3600-v1) + DEVICE_TITLE := TP-LINK TL-WDR4300 v1 + TPLINK_HWID := 0x43000001 +endef +TARGET_DEVICES += tl-wdr4300-v1 + +define Device/tl-wdr4300-v1-il + $(Device/tl-wdr3500-v1) + DEVICE_TITLE := TP-LINK TL-WDR4300 v1 (IL) + BOARDNAME := TL-WDR4300 + TPLINK_HWID := 0x43008001 +endef +TARGET_DEVICES += tl-wdr4300-v1-il + +define Device/tl-wdr4310-v1 + $(Device/tl-wdr4300-v1-il) + DEVICE_TITLE := TP-LINK TL-WDR4310 v1 + TPLINK_HWID := 0x43100001 +endef +TARGET_DEVICES += tl-wdr4310-v1 + +define Device/tl-wdr4900-v2 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WDR4900 v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WDR4900-v2 + DEVICE_PROFILE := TLWDR4900V2 + TPLINK_HWID := 0x49000002 +endef +TARGET_DEVICES += tl-wdr4900-v2 + +define Device/tl-wdr6500-v2 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WDR6500 v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x + KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma + KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | tplink-v1-header + BOARDNAME := TL-WDR6500-v2 + DEVICE_PROFILE := TLWDR6500V2 + TPLINK_HWID := 0x65000002 + TPLINK_HEADER_VERSION := 2 +endef +TARGET_DEVICES += tl-wdr6500-v2 + +define Device/mw4530r-v1 + $(Device/tl-wdr4300-v1) + DEVICE_TITLE := Mercury MW4530R v1 + TPLINK_HWID := 0x45300001 +endef +TARGET_DEVICES += mw4530r-v1 + +define Device/tl-wpa8630-v1 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WPA8630 v1 + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x + BOARDNAME := TL-WPA8630 + DEVICE_PROFILE := TL-WPA8630 + TPLINK_HWID := 0x86300001 +endef +TARGET_DEVICES += tl-wpa8630-v1 + +define Device/tl-wr1041n-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR1041N v2 + BOARDNAME := TL-WR1041N-v2 + DEVICE_PROFILE := TLWR1041 + TPLINK_HWID := 0x10410002 +endef +TARGET_DEVICES += tl-wr1041n-v2 + +define Device/tl-wr1043n-v5 + $(Device/archer-cxx) + DEVICE_TITLE := TP-LINK TL-WR1043N v5 + BOARDNAME := TL-WR1043N-v5 + SUPPORTED_DEVICES := tl-wr1043n-v5 + DEVICE_PROFILE := TLWR1043 + MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,15104k(firmware),128k(product-info)ro,640k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(art)ro + IMAGE_SIZE := 15104k + TPLINK_BOARD_ID := TLWR1043NV5 +endef +TARGET_DEVICES += tl-wr1043n-v5 + +define Device/tl-wr1043nd-v1 + $(Device/tplink-8m) + DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WR1043ND + DEVICE_PROFILE := TLWR1043 + TPLINK_HWID := 0x10430001 +endef +TARGET_DEVICES += tl-wr1043nd-v1 + +define Device/tl-wr1043nd-v2 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WR1043ND-v2 + DEVICE_PROFILE := TLWR1043 + TPLINK_HWID := 0x10430002 +endef +TARGET_DEVICES += tl-wr1043nd-v2 + +define Device/tl-wr1043nd-v3 + $(Device/tl-wr1043nd-v2) + DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3 + TPLINK_HWID := 0x10430003 +endef +TARGET_DEVICES += tl-wr1043nd-v3 + +define Device/tl-wr1043nd-v4 + $(Device/tplink) + DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WR1043ND-v4 + DEVICE_PROFILE := TLWR1043 + TPLINK_HWID := 0x10430004 + MTDPARTS := spi0.0:128k(u-boot)ro,1536k(kernel),14016k(rootfs),128k(product-info)ro,320k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(ART)ro,15552k@0x20000(firmware) + IMAGE_SIZE := 15552k + TPLINK_BOARD_ID := TLWR1043NDV4 + KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory +endef +TARGET_DEVICES += tl-wr1043nd-v4 + +define Device/tl-wr2543-v1 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WR2543N + DEVICE_PROFILE := TLWR2543 + TPLINK_HWID := 0x25430001 + IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99 + IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99 +endef +TARGET_DEVICES += tl-wr2543-v1 + +define Device/tl-wr703n-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR703N v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + BOARDNAME := TL-WR703N + DEVICE_PROFILE := TLWR703 + TPLINK_HWID := 0x07030101 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-wr703n-v1 + +define Device/tl-wr710n-v1 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WR710N v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + BOARDNAME := TL-WR710N + DEVICE_PROFILE := TLWR710 + TPLINK_HWID := 0x07100001 + CONSOLE := ttyATH0,115200 + IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US +endef +TARGET_DEVICES += tl-wr710n-v1 + +define Device/tl-wr710n-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR710N v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + BOARDNAME := TL-WR710N + DEVICE_PROFILE := TLWR710 + TPLINK_HWID := 0x07100002 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-wr710n-v2 + +define Device/tl-wr710n-v2.1 + $(Device/tl-wr710n-v1) + DEVICE_TITLE := TP-LINK TL-WR710N v2.1 + TPLINK_HWID := 0x07100002 + TPLINK_HWREV := 0x00000002 +endef +TARGET_DEVICES += tl-wr710n-v2.1 + +define Device/tl-wr720n-v3 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR720N v3 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + BOARDNAME := TL-WR720N-v3 + DEVICE_PROFILE := TLWR720 + TPLINK_HWID := 0x07200103 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-wr720n-v3 + +define Device/tl-wr720n-v4 + $(Device/tl-wr720n-v3) + DEVICE_TITLE := TP-LINK TL-WR720N v4 + TPLINK_HWID := 0x07200104 +endef +TARGET_DEVICES += tl-wr720n-v4 + +define Device/tl-wr740n-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR740N/ND v1 + BOARDNAME := TL-WR741ND + DEVICE_PROFILE := TLWR740 + TPLINK_HWID := 0x07400001 +endef +TARGET_DEVICES += tl-wr740n-v1 + +define Device/tl-wr740n-v3 + $(Device/tl-wr740n-v1) + DEVICE_TITLE := TP-LINK TL-WR740N/ND v3 + TPLINK_HWID := 0x07400003 +endef +TARGET_DEVICES += tl-wr740n-v3 + +define Device/tl-wr740n-v4 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR740N/ND v4 + BOARDNAME := TL-WR741ND-v4 + DEVICE_PROFILE := TLWR740 + TPLINK_HWID := 0x07400004 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-wr740n-v4 + +define Device/tl-wr740n-v5 + $(Device/tl-wr740n-v4) + DEVICE_TITLE := TP-LINK TL-WR740N/ND v5 + TPLINK_HWID := 0x07400005 +endef +TARGET_DEVICES += tl-wr740n-v5 + +define Device/tl-wr740n-v6 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR740N/ND v6 + BOARDNAME := TL-WR740N-v6 + DEVICE_PROFILE := TLWR740 + TPLINK_HWID := 0x07400006 +endef +TARGET_DEVICES += tl-wr740n-v6 + +define Device/tl-wr741nd-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR741N/ND v1 + BOARDNAME := TL-WR741ND + DEVICE_PROFILE := TLWR741 + TPLINK_HWID := 0x07410001 +endef +TARGET_DEVICES += tl-wr741nd-v1 + +define Device/tl-wr741nd-v2 + $(Device/tl-wr741nd-v1) + DEVICE_TITLE := TP-LINK TL-WR741N/ND v2 +endef +TARGET_DEVICES += tl-wr741nd-v2 + +define Device/tl-wr741nd-v4 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR741N/ND v4 + BOARDNAME := TL-WR741ND-v4 + DEVICE_PROFILE := TLWR741 + TPLINK_HWID := 0x07410004 + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += tl-wr741nd-v4 + +define Device/tl-wr741nd-v5 + $(Device/tl-wr741nd-v4) + DEVICE_TITLE := TP-LINK TL-WR741N/ND v5 + TPLINK_HWID := 0x07400005 +endef +TARGET_DEVICES += tl-wr741nd-v5 + +define Device/tl-wr743nd-v1 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR743N/ND v1 + BOARDNAME := TL-WR741ND + DEVICE_PROFILE := TLWR743 + TPLINK_HWID := 0x07430001 +endef +TARGET_DEVICES += tl-wr743nd-v1 + +define Device/tl-wr743nd-v2 + $(Device/tl-wr741nd-v4) + DEVICE_TITLE := TP-LINK TL-WR743N/ND v2 + DEVICE_PROFILE := TLWR743 + TPLINK_HWID := 0x07430002 +endef +TARGET_DEVICES += tl-wr743nd-v2 + +define Device/tl-wr802n-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR802N v1 + BOARDNAME := TL-WR802N-v1 + DEVICE_PROFILE := TLWR802 + TPLINK_HWID := 0x08020001 + TPLINK_HWREV := 1 +endef +TARGET_DEVICES += tl-wr802n-v1 + +define Device/tl-wr802n-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR802N v2 + BOARDNAME := TL-WR802N-v2 + DEVICE_PROFILE := TLWR802 + TPLINK_HWID := 0x08020002 + TPLINK_HWREV := 2 + IMAGES += factory-us.bin factory-eu.bin + IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US + IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU +endef +TARGET_DEVICES += tl-wr802n-v2 + +define Device/tl-wr810n-v1 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WR810N v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + BOARDNAME := TL-WR810N + DEVICE_PROFILE := TLWR810 + TPLINK_HWID := 0x08100001 +endef +TARGET_DEVICES += tl-wr810n-v1 + +define Device/tl-wr810n-v2 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WR810N v2 + BOARDNAME := TL-WR810N-v2 + DEVICE_PROFILE := TLWR810 + TPLINK_HWID := 0x08100002 +endef +TARGET_DEVICES += tl-wr810n-v2 + +define Device/tl-wr840n-v2 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR840N v2 + BOARDNAME := TL-WR840N-v2 + DEVICE_PROFILE := TLWR840 + TPLINK_HWID := 0x08400002 + IMAGES += factory-eu.bin + IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU +endef +TARGET_DEVICES += tl-wr840n-v2 + +define Device/tl-wr840n-v3 + $(Device/tl-wr840n-v2) + DEVICE_TITLE := TP-LINK TL-WR840N v3 + BOARDNAME := TL-WR840N-v3 + TPLINK_HWID := 0x08400003 +endef +TARGET_DEVICES += tl-wr840n-v3 + +define Device/tl-wr841-v1.5 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v1.5 + BOARDNAME := TL-WR841N-v1.5 + DEVICE_PROFILE := TLWR841 + TPLINK_HWID := 0x08410002 + TPLINK_HWREV := 2 +endef +TARGET_DEVICES += tl-wr841-v1.5 + +define Device/tl-wr841-v3 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v3 + BOARDNAME := TL-WR941ND + DEVICE_PROFILE := TLWR841 + TPLINK_HWID := 0x08410003 + TPLINK_HWREV := 3 +endef +TARGET_DEVICES += tl-wr841-v3 + +define Device/tl-wr841-v5 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v5 + BOARDNAME := TL-WR741ND + DEVICE_PROFILE := TLWR841 + TPLINK_HWID := 0x08410005 +endef +TARGET_DEVICES += tl-wr841-v5 + +define Device/tl-wr841-v7 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v7 + BOARDNAME := TL-WR841N-v7 + DEVICE_PROFILE := TLWR841 + TPLINK_HWID := 0x08410007 +endef +TARGET_DEVICES += tl-wr841-v7 + +define Device/tl-wr841-v8 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v8 + BOARDNAME := TL-WR841N-v8 + DEVICE_PROFILE := TLWR841 + TPLINK_HWID := 0x08410008 +endef +TARGET_DEVICES += tl-wr841-v8 + +define Device/tl-wr841-v9 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v9 + BOARDNAME := TL-WR841N-v9 + DEVICE_PROFILE := TLWR841 + TPLINK_HWID := 0x08410009 +endef +TARGET_DEVICES += tl-wr841-v9 + +define Device/tl-wr841-v10 + $(Device/tl-wr841-v9) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v10 + TPLINK_HWID := 0x08410010 +endef +TARGET_DEVICES += tl-wr841-v10 + +define Device/tl-wr841-v11 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v11 + BOARDNAME := TL-WR841N-v11 + DEVICE_PROFILE := TLWR841 + TPLINK_HWID := 0x08410011 + IMAGES += factory-us.bin factory-eu.bin + IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US + IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU +endef +TARGET_DEVICES += tl-wr841-v11 + +define Device/tl-wr841-v12 + $(Device/tl-wr841-v11) + DEVICE_TITLE := TP-LINK TL-WR841N/ND v12 + TPLINK_HWID := 0x08410012 +endef +TARGET_DEVICES += tl-wr841-v12 + +define Device/tl-wr842n-v1 + $(Device/tplink-8m) + DEVICE_TITLE := TP-LINK TL-WR842N/ND v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-MR3420 + DEVICE_PROFILE := TLWR842 + TPLINK_HWID := 0x08420001 +endef +TARGET_DEVICES += tl-wr842n-v1 + +define Device/tl-wr842n-v2 + $(Device/tplink-8mlzma) + DEVICE_TITLE := TP-LINK TL-WR842N/ND v2 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WR842N-v2 + DEVICE_PROFILE := TLWR842 + TPLINK_HWID := 0x8420002 +endef +TARGET_DEVICES += tl-wr842n-v2 + +define Device/tl-wr842n-v3 + $(Device/tplink-16mlzma) + DEVICE_TITLE := TP-LINK TL-WR842N/ND v3 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WR842N-v3 + DEVICE_PROFILE := TLWR842 + TPLINK_HWID := 0x08420003 +endef +TARGET_DEVICES += tl-wr842n-v3 + +define Device/tl-wr843nd-v1 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR843N/ND v1 + BOARDNAME := TL-WR841N-v8 + DEVICE_PROFILE := TLWR843 + TPLINK_HWID := 0x08430001 +endef +TARGET_DEVICES += tl-wr843nd-v1 + +define Device/tl-wr847n-v8 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR847N/ND v8 + BOARDNAME := TL-WR841N-v8 + DEVICE_PROFILE := TLWR841 + TPLINK_HWID := 0x08470008 +endef +TARGET_DEVICES += tl-wr847n-v8 + +define Device/tl-wr902ac-v1 + DEVICE_TITLE := TP-LINK TL-WR902AC v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport \ + kmod-ath10k ath10k-firmware-qca9887 -swconfig -uboot-envtools + BOARDNAME := TL-WR902AC-V1 + DEVICE_PROFILE := TLWR902 + TPLINK_BOARD_ID := TL-WR902AC-V1 + TPLINK_HWID := 0x0 + TPLINK_HWREV := 0 + TPLINK_HEADER_VERSION := 1 + SUPPORTED_DEVICES := tl-wr902ac-v1 + IMAGE_SIZE := 7360k + KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header + IMAGES += factory.bin + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \ + append-metadata | check-size $$$$(IMAGE_SIZE) + MTDPARTS := spi0.0:128k(u-boot)ro,7360k(firmware),640k(tplink)ro,64k(art)ro +endef +TARGET_DEVICES += tl-wr902ac-v1 + +define Device/tl-wr940n-v4 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR940N v4 + BOARDNAME := TL-WR940N-v4 + DEVICE_PROFILE := TLWR941 + TPLINK_HWID := 0x09400004 + IMAGES += factory-us.bin factory-eu.bin factory-br.bin + IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US + IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU + IMAGE/factory-br.bin := append-rootfs | mktplinkfw factory -C BR +endef +TARGET_DEVICES += tl-wr940n-v4 + +define Device/tl-wr941nd-v2 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR941N/ND v2 + BOARDNAME := TL-WR941ND + DEVICE_PROFILE := TLWR941 + TPLINK_HWID := 0x09410002 + TPLINK_HWREV := 2 +endef +TARGET_DEVICES += tl-wr941nd-v2 + +define Device/tl-wr941nd-v3 + $(Device/tl-wr941nd-v2) + DEVICE_TITLE := TP-LINK TL-WR941N/ND v3 +endef +TARGET_DEVICES += tl-wr941nd-v3 + +define Device/tl-wr941nd-v4 + $(Device/tplink-4m) + DEVICE_TITLE := TP-LINK TL-WR941N/ND v4 + BOARDNAME := TL-WR741ND + DEVICE_PROFILE := TLWR941 + TPLINK_HWID := 0x09410004 +endef +TARGET_DEVICES += tl-wr941nd-v4 + +define Device/tl-wr941nd-v5 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR941N/ND v5 + BOARDNAME := TL-WR941ND-v5 + DEVICE_PROFILE := TLWR941 + TPLINK_HWID := 0x09410005 +endef +TARGET_DEVICES += tl-wr941nd-v5 + +define Device/tl-wr941nd-v6 + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 + BOARDNAME := TL-WR941ND-v6 + DEVICE_PROFILE := TLWR941 + TPLINK_HWID := 0x09410006 +endef +TARGET_DEVICES += tl-wr941nd-v6 + +# Chinese version (unlike European) is similar to the TL-WDR3500 +define Device/tl-wr941nd-v6-cn + $(Device/tplink-4mlzma) + DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 (CN) + BOARDNAME := TL-WDR3500 + DEVICE_PROFILE := TLWR941 + TPLINK_HWID := 0x09410006 +endef +TARGET_DEVICES += tl-wr941nd-v6-cn + +define Device/tl-wr942n-v1 + DEVICE_TITLE := TP-LINK TL-WR942N v1 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + BOARDNAME := TL-WR942N-V1 + TPLINK_BOARD_ID := TLWR942NV1 + DEVICE_PROFILE := TLWR942 + IMAGE_SIZE := 14464k + KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \ + append-metadata | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := append-rootfs | tplink-safeloader factory + MTDPARTS := spi0.0:128k(u-boot)ro,14464k(firmware),64k(product-info)ro,64k(partition-table)ro,256k(oem-config)ro,1344k(oem-vars)ro,64k(ART)ro + SUPPORTED_DEVICES := tl-wr942n-v1 +endef +TARGET_DEVICES += tl-wr942n-v1 diff --git a/target/linux/ar71xx/image/generic-ubnt.mk b/target/linux/ar71xx/image/generic-ubnt.mk new file mode 100644 index 0000000000..2735c7491d --- /dev/null +++ b/target/linux/ar71xx/image/generic-ubnt.mk @@ -0,0 +1,273 @@ +DEVICE_VARS += UBNT_BOARD UBNT_CHIP UBNT_TYPE + +# mkubntimage is using the kernel image direct +# routerboard creates partitions out of the ubnt header +define Build/mkubntimage + -$(STAGING_DIR_HOST)/bin/mkfwimage \ + -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ + -k $(IMAGE_KERNEL) \ + -r $@ \ + -o $@ +endef + +# all UBNT XM device expect the kernel image to have 1024k while flash, when +# booting the image, the size doesn't matter. +define Build/mkubntimage-split + -[ -f $@ ] && ( \ + dd if=$@ of=$@.old1 bs=1024k count=1; \ + dd if=$@ of=$@.old2 bs=1024k skip=1; \ + $(STAGING_DIR_HOST)/bin/mkfwimage \ + -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ + -k $@.old1 \ + -r $@.old2 \ + -o $@; \ + rm $@.old1 $@.old2 ) +endef + +define Build/mkubntimage2 + -$(STAGING_DIR_HOST)/bin/mkfwimage2 -f 0x9f000000 \ + -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ + -p jffs2:0x50000:0xf60000:0:0:$@ \ + -o $@.new + @mv $@.new $@ +endef + + +# UBNT_BOARD e.g. one of (XS2, XS5, RS, XM) +# UBNT_TYPE e.g. one of (BZ, XM, XW) +# UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x) +define Device/ubnt + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + DEVICE_PROFILE := UBNT + IMAGE_SIZE := 7552k + MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro + UBNT_BOARD := XM + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage-split +endef + +define Device/ubnt-xm + $(Device/ubnt) + DEVICE_PACKAGES += kmod-usb-ohci + UBNT_TYPE := XM + UBNT_CHIP := ar7240 +endef + +define Device/ubnt-xw + $(Device/ubnt) + UBNT_TYPE := XW + UBNT_CHIP := ar934x +endef + +define Device/ubnt-bz + $(Device/ubnt) + UBNT_TYPE := BZ + UBNT_CHIP := ar7240 +endef + +define Device/rw2458n + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti RW2458N + BOARDNAME := RW2458N +endef +TARGET_DEVICES += rw2458n + +define Device/ubnt-airrouter + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti AirRouter + BOARDNAME := UBNT-AR +endef +TARGET_DEVICES += ubnt-airrouter + +define Device/ubnt-bullet-m + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti Bullet-M + BOARDNAME := UBNT-BM +endef +TARGET_DEVICES += ubnt-bullet-m + +define Device/ubnt-rocket-m + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti Rocket-M + BOARDNAME := UBNT-RM +endef +TARGET_DEVICES += ubnt-rocket-m + +define Device/ubnt-nano-m + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti Nano-M + BOARDNAME := UBNT-NM +endef +TARGET_DEVICES += ubnt-nano-m + +define Device/ubnt-unifi + $(Device/ubnt-bz) + DEVICE_TITLE := Ubiquiti UniFi + BOARDNAME := UBNT-UF + DEVICE_PROFILE += UBNTUNIFI +endef +TARGET_DEVICES += ubnt-unifi + +define Device/ubnt-unifiac + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 + DEVICE_PROFILE := UBNT + IMAGE_SIZE := 7744k + MTDPARTS := spi0.0:384k(u-boot)ro,64k(u-boot-env)ro,7744k(firmware),7744k(ubnt-airos)ro,128k(bs)ro,256k(cfg)ro,64k(EEPROM)ro + IMAGES := sysupgrade.bin + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) +endef + +define Device/ubnt-unifiac-lite + $(Device/ubnt-unifiac) + DEVICE_TITLE := Ubiquiti UniFi AC-Lite + DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x + DEVICE_PROFILE += UBNTUNIFIACLITE + BOARDNAME := UBNT-UF-AC-LITE +endef +TARGET_DEVICES += ubnt-unifiac-lite + +define Device/ubnt-unifiac-mesh + $(Device/ubnt-unifiac-lite) + DEVICE_TITLE := Ubiquiti UniFi AC-Mesh +endef +TARGET_DEVICES += ubnt-unifiac-mesh + +define Device/ubnt-unifiac-pro + $(Device/ubnt-unifiac) + DEVICE_TITLE := Ubiquiti UniFi AC-Pro + DEVICE_PACKAGES += kmod-ath10k ath10k-firmware-qca988x + DEVICE_PROFILE += UBNTUNIFIACPRO + BOARDNAME := UBNT-UF-AC-PRO +endef +TARGET_DEVICES += ubnt-unifiac-pro + +define Device/ubnt-unifi-outdoor + $(Device/ubnt-bz) + DEVICE_TITLE := Ubiquiti UniFi Outdoor + BOARDNAME := UBNT-U20 + DEVICE_PROFILE += UBNTUNIFIOUTDOOR +endef +TARGET_DEVICES += ubnt-unifi-outdoor + +define Device/ubnt-nano-m-xw + $(Device/ubnt-xw) + DEVICE_TITLE := Ubiquiti Nano M XW + BOARDNAME := UBNT-NM-XW +endef +TARGET_DEVICES += ubnt-nano-m-xw + +define Device/ubnt-loco-m-xw + $(Device/ubnt-xw) + DEVICE_TITLE := Ubiquiti Loco XW + BOARDNAME := UBNT-LOCO-XW +endef +TARGET_DEVICES += ubnt-loco-m-xw + +define Device/ubnt-rocket-m-xw + $(Device/ubnt-xw) + DEVICE_TITLE := Ubiquiti Rocket M XW + BOARDNAME := UBNT-RM-XW +endef +TARGET_DEVICES += ubnt-rocket-m-xw + +define Device/ubnt-rocket-m-ti + $(Device/ubnt-xw) + DEVICE_TITLE := Ubiquiti Rocket M TI + BOARDNAME := UBNT-RM-TI + UBNT_TYPE := TI +endef +TARGET_DEVICES += ubnt-rocket-m-ti + +define Device/ubnt-air-gateway + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti Air Gateway + BOARDNAME := UBNT-AGW + UBNT_TYPE := AirGW + UBNT_CHIP := ar933x + CONSOLE := ttyATH0,115200 +endef +TARGET_DEVICES += ubnt-air-gateway + +define Device/ubnt-air-gateway-pro + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti Air Gateway Pro + BOARDNAME := UBNT-AGWP + UBNT_TYPE := AirGWP + UBNT_CHIP := ar934x +endef +TARGET_DEVICES += ubnt-air-gateway-pro + +define Device/ubdev01 + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti ubDEV01 + MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7488k(firmware),64k(certs),256k(cfg)ro,64k(EEPROM)ro + BOARDNAME := UBNT-UF + UBNT_BOARD := UBDEV01 +endef +TARGET_DEVICES += ubdev01 + +define Device/ubnt-routerstation + DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 + DEVICE_PROFILE := UBNT + IMAGE_SIZE := 16128k + IMAGES := sysupgrade.bin factory.bin + IMAGE/factory.bin := append-rootfs | pad-rootfs | mkubntimage + IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE) + KERNEL := kernel-bin | patch-cmdline | lzma | pad-to $$(BLOCKSIZE) +endef + +define Device/ubnt-rs + $(Device/ubnt-routerstation) + DEVICE_TITLE := Ubiquiti RouterStation + BOARDNAME := UBNT-RS + DEVICE_PROFILE += UBNTRS + UBNT_BOARD := RS + UBNT_TYPE := RSx + UBNT_CHIP := ar7100 +endef +TARGET_DEVICES += ubnt-rs + +define Device/ubnt-rspro + $(Device/ubnt-routerstation) + DEVICE_TITLE := Ubiquiti RouterStation Pro + BOARDNAME := UBNT-RSPRO + DEVICE_PROFILE += UBNTRSPRO + UBNT_BOARD := RSPRO + UBNT_TYPE := RSPRO + UBNT_CHIP := ar7100pro +endef +TARGET_DEVICES += ubnt-rspro + +define Device/ubnt-ls-sr71 + $(Device/ubnt-routerstation) + DEVICE_TITLE := Ubiquiti LS-SR71 + BOARDNAME := UBNT-LS-SR71 + UBNT_BOARD := LS-SR71 + UBNT_TYPE := LS-SR71 + UBNT_CHIP := ar7100 +endef +TARGET_DEVICES += ubnt-ls-sr71 + +define Device/ubnt-uap-pro + DEVICE_TITLE := Ubiquiti UAP Pro + KERNEL_SIZE := 1536k + IMAGE_SIZE := 15744k + MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1536k(kernel),14208k(rootfs),256k(cfg)ro,64k(EEPROM)ro,15744k@0x50000(firmware) + UBNT_TYPE := BZ + UBNT_CHIP := ar934x + BOARDNAME := UAP-PRO + DEVICE_PROFILE := UBNT UAPPRO + KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0 + IMAGES := sysupgrade.bin factory.bin + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage2 +endef + +define Device/ubnt-unifi-outdoor-plus + $(Device/ubnt-uap-pro) + DEVICE_TITLE := Ubiquiti UniFi Outdoor Plus + UBNT_CHIP := ar7240 + BOARDNAME := UBNT-UOP + DEVICE_PROFILE := UBNT +endef diff --git a/target/linux/ar71xx/image/legacy-devices.mk b/target/linux/ar71xx/image/legacy-devices.mk deleted file mode 100644 index e418282dd0..0000000000 --- a/target/linux/ar71xx/image/legacy-devices.mk +++ /dev/null @@ -1,591 +0,0 @@ -define LegacyDevice/A60 - DEVICE_TITLE := OpenMesh A40/A60 - DEVICE_PACKAGES := om-watchdog kmod-ath10k ath10k-firmware-qca988x \ - mod-usb-core kmod-usb2 -endef -LEGACY_DEVICES += A60 - -define LegacyDevice/ALFANX - DEVICE_TITLE := ALFA Network N2/N5 board -endef -LEGACY_DEVICES += ALFANX - -define LegacyDevice/HORNETUB - DEVICE_TITLE := ALFA Network Hornet-UB board (8MB flash, 32MB ram) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += HORNETUB - -define LegacyDevice/TUBE2H8M - DEVICE_TITLE := ALFA Network Tube2H board (8MB flash) -endef -LEGACY_DEVICES += TUBE2H8M - -define LegacyDevice/AP96 - DEVICE_TITLE := Atheros AP96 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -endef -LEGACY_DEVICES += AP96 - -define LegacyDevice/WNDAP360 - DEVICE_TITLE := NETGEAR WNDAP360 -endef -LEGACY_DEVICES += WNDAP360 - -define LegacyDevice/ALFAAP120C - DEVICE_TITLE := ALFA Network AP120C board -endef -LEGACY_DEVICES += ALFAAP120C - -define LegacyDevice/ALFAAP96 - DEVICE_TITLE := ALFA Network AP96 board - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-rtc-pcf2123 -endef -LEGACY_DEVICES += ALFAAP96 - -define LegacyDevice/ALL0258N - DEVICE_TITLE := Allnet ALL0258N - DEVICE_PACKAGES := rssileds -endef -LEGACY_DEVICES += ALL0258N - -define LegacyDevice/ALL0315N - DEVICE_TITLE := Allnet ALL0315N - DEVICE_PACKAGES := rssileds -endef -LEGACY_DEVICES += ALL0315N - -define LegacyDevice/AP121_8M - DEVICE_TITLE := Atheros AP121 reference board (8MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -endef -LEGACY_DEVICES += AP121_8M - -define LegacyDevice/AP121_16M - DEVICE_TITLE := Atheros AP121 reference board (16MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -endef -LEGACY_DEVICES += AP121_16M - -define LegacyDevice/AP132 - DEVICE_TITLE := Atheros AP132 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += AP132 - -define LegacyDevice/AP135 - DEVICE_TITLE := Atheros AP135 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += AP135 - -define LegacyDevice/AP136_010 - DEVICE_TITLE := Atheros AP136-010 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += AP136_010 - -define LegacyDevice/AP136_020 - DEVICE_TITLE := Atheros AP136-020 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += AP136_020 - -define LegacyDevice/AP143_8M - DEVICE_TITLE := Qualcomm Atheros AP143 reference board (8MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += AP143_8M - -define LegacyDevice/AP143_16M - DEVICE_TITLE := Qualcomm Atheros AP143 reference board (16MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += AP143_16M - -define LegacyDevice/AP147_010 - DEVICE_TITLE := Qualcomm Atheros AP147-010 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += AP147_010 - -define LegacyDevice/AP152_16M - DEVICE_TITLE := Qualcomm Atheros AP152 reference board (16MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += AP152_16M - -define LegacyDevice/BXU2000N2 - DEVICE_TITLE := BHU BXU2000n-2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += BXU2000N2 - -define LegacyDevice/CAP4200AG - DEVICE_TITLE := Senao CAP4200AG -endef -LEGACY_DEVICES += CAP4200AG - -define LegacyDevice/DB120 - DEVICE_TITLE := Atheros DB120 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage -endef -LEGACY_DEVICES += DB120 - -define LegacyDevice/HORNETUBx2 - DEVICE_TITLE := ALFA Network Hornet-UB-x2 board (16MB flash, 64MB ram) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += HORNETUBx2 - -define LegacyDevice/TUBE2H16M - DEVICE_TITLE := ALFA Network Tube2H board (16MB flash) -endef -LEGACY_DEVICES += TUBE2H16M - -define LegacyDevice/WLR8100 - DEVICE_TITLE := Sitecom WLR-8100 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-usb3 -endef -LEGACY_DEVICES += WLR8100 - -define LegacyDevice/F9K1115V2 - DEVICE_TITLE := Belkin AC1750DB (F9K1115V2) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb3 kmod-usb-ledtrig-usbport \ - kmod-ath10k ath10k-firmware-qca988x -endef -LEGACY_DEVICES += F9K1115V2 - -define LegacyDevice/DIR600A1 - DEVICE_TITLE := D-Link DIR-600 rev. A1 -endef -LEGACY_DEVICES += DIR600A1 - -define LegacyDevice/DIR601A1 - DEVICE_TITLE := D-Link DIR-601 rev. A1 -endef -LEGACY_DEVICES += DIR601A1 - -define LegacyDevice/FR54RTR - DEVICE_TITLE := Frys FR-54RTR -endef -LEGACY_DEVICES += FR54RTR - -define LegacyDevice/EBR2310C1 - DEVICE_TITLE := D-Link EBR-2310 rev. C1 -endef -LEGACY_DEVICES += EBR2310C1 - -define LegacyDevice/DIR615E1 - DEVICE_TITLE := D-Link DIR-615 rev. E1 -endef -LEGACY_DEVICES += DIR615E1 - -define LegacyDevice/DIR615E4 - DEVICE_TITLE := D-Link DIR-615 rev. E4 -endef -LEGACY_DEVICES += DIR615E4 - -define LegacyDevice/DIR615I1 - DEVICE_TITLE := D-Link DIR-615 rev. I1 -endef -LEGACY_DEVICES += DIR615I1 - -define LegacyDevice/DIR615I3 - DEVICE_TITLE := D-Link DIR-615 rev. I3 -endef -LEGACY_DEVICES += DIR615I3 - -define LegacyDevice/A02RBW300N - DEVICE_TITLE := Atlantis-Land A02-RB-W300N -endef -LEGACY_DEVICES += A02RBW300N - -define LegacyDevice/DIR615C1 - DEVICE_TITLE := D-Link DIR-615 rev. C1 -endef -LEGACY_DEVICES += DIR615C1 - -define LegacyDevice/TEW632BRP - DEVICE_TITLE := TRENDNet TEW-632BRP -endef -LEGACY_DEVICES += TEW632BRP - -define LegacyDevice/TEW652BRP_FW - DEVICE_TITLE := TRENDNet TEW-652BRP -endef -LEGACY_DEVICES += TEW652BRP_FW - -define LegacyDevice/TEW652BRP_RECOVERY - DEVICE_TITLE := TRENDNet TEW-652BRP (recovery) -endef -LEGACY_DEVICES += TEW652BRP_RECOVERY - -define LegacyDevice/TEW712BR - DEVICE_TITLE := TRENDNet TEW-712BR -endef -LEGACY_DEVICES += TEW712BR - -define LegacyDevice/DIR601B1 - DEVICE_TITLE := D-Link DIR-601 rev. B1 -endef -LEGACY_DEVICES += DIR601B1 - -define LegacyDevice/DIR505A1 - DEVICE_TITLE := D-Link DIR-505 rev. A1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += DIR505A1 - -define LegacyDevice/DGL5500A1 - DEVICE_TITLE := D-Link DGL-5500 rev. A1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca988x -endef -LEGACY_DEVICES += DGL5500A1 - -define LegacyDevice/TEW823DRU - DEVICE_TITLE := TRENDNet TEW-823DRU - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k ath10k-firmware-qca988x -endef -LEGACY_DEVICES += TEW823DRU - -define LegacyDevice/DHP1565A1 - DEVICE_TITLE := D-Link DHP-1565 rev. A1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -endef -LEGACY_DEVICES += DHP1565A1 - -define LegacyDevice/DIR825C1 - DEVICE_TITLE := D-Link DIR-825 rev. C1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += DIR825C1 - -define LegacyDevice/DIR835A1 - DEVICE_TITLE := D-Link DIR-835 rev. A1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -endef -LEGACY_DEVICES += DIR835A1 - -define LegacyDevice/TEW732BR - DEVICE_TITLE := TRENDNet TEW-732BR -endef -LEGACY_DEVICES += TEW732BR - -define LegacyDevice/WRT160NL - DEVICE_TITLE := Linksys WRT160NL - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 -endef -LEGACY_DEVICES += WRT160NL - -define LegacyDevice/MYNETREXT - DEVICE_TITLE := Western Digital My Net Wi-Fi Range Extender - DEVICE_PACKAGES := rssileds -endef -LEGACY_DEVICES += MYNETREXT - -define LegacyDevice/DIR825B1 - DEVICE_TITLE := D-Link DIR-825 rev. B1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += DIR825B1 - -define LegacyDevice/TEW673GRU - DEVICE_TITLE := TRENDNet TEW-673GRU - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += TEW673GRU - -define LegacyDevice/DLRTDEV01 - DEVICE_TITLE := PowerCloud Systems dlrtdev01 model - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += DLRTDEV01 - -define LegacyDevice/dLAN_Hotspot - DEVICE_TITLE := devolo dLAN Hotspot -endef -LEGACY_DEVICES += dLAN_Hotspot - -define LegacyDevice/dLAN_pro_500_wp - DEVICE_TITLE := devolo dLAN pro 500 Wireless+ -endef -LEGACY_DEVICES += dLAN_pro_500_wp - -define LegacyDevice/dLAN_pro_1200_ac - DEVICE_TITLE := devolo dLAN pro 1200+ WiFi ac - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x -endef -LEGACY_DEVICES += dLAN_pro_1200_ac - -define LegacyDevice/ESR900 - DEVICE_TITLE := EnGenius ESR900 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += ESR900 - -define LegacyDevice/ESR1750 - DEVICE_TITLE := EnGenius ESR1750 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-ath10k ath10k-firmware-qca988x -endef -LEGACY_DEVICES += ESR1750 - -define LegacyDevice/EPG5000 - DEVICE_TITLE := EnGenius EPG5000 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-ath10k ath10k-firmware-qca988x -endef -LEGACY_DEVICES += EPG5000 - -define LegacyDevice/WP543_4M - DEVICE_TITLE := Compex WP543/WPJ543 (4MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += WP543_4M - -define LegacyDevice/WP543_8M - DEVICE_TITLE := Compex WP543/WPJ543 (8MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += WP543_8M - -define LegacyDevice/WP543_16M - DEVICE_TITLE := Compex WP543/WPJ543 (16MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += WP543_16M - -define LegacyDevice/WPE72_4M - DEVICE_TITLE := Compex WPE72/WPE72NX (4MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += WPE72_4M - -define LegacyDevice/WPE72_8M - DEVICE_TITLE := Compex WPE72/WPE72NX (8MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += WPE72_8M - -define LegacyDevice/WPE72_16M - DEVICE_TITLE := Compex WPE72/WPE72NX (16MB flash) - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += WPE72_16M - -define LegacyDevice/WNR2000 - DEVICE_TITLE := NETGEAR WNR2000V1 -endef -LEGACY_DEVICES += WNR2000 - -define LegacyDevice/WNR2000V3 - DEVICE_TITLE := NETGEAR WNR2000V3 -endef -LEGACY_DEVICES += WNR2000V3 - -define LegacyDevice/WNR2000V4 - DEVICE_TITLE := NETGEAR WNR2000V4 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += WNR2000V4 - -define LegacyDevice/WNR2200 - DEVICE_TITLE := NETGEAR WNR2200 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += WNR2200 - -define LegacyDevice/REALWNR612V2 - DEVICE_TITLE := NETGEAR WNR612V2 -endef -LEGACY_DEVICES += REALWNR612V2 - -define LegacyDevice/N150R - DEVICE_TITLE := On Networks N150 -endef -LEGACY_DEVICES += N150R - -define LegacyDevice/REALWNR1000V2 - DEVICE_TITLE := NETGEAR WNR1000V2 -endef -LEGACY_DEVICES += REALWNR1000V2 - -define LegacyDevice/WNR1000V2_VC - DEVICE_TITLE := NETGEAR WNR1000V2-VC -endef -LEGACY_DEVICES += WNR1000V2_VC - -define LegacyDevice/WPN824N - DEVICE_TITLE := NETGEAR WPN824N -endef -LEGACY_DEVICES += WPN824N - -define LegacyDevice/OM2P - DEVICE_TITLE := OpenMesh OM2P/OM2P-HS/OM2P-LC - DEVICE_PACKAGES := om-watchdog -endef -LEGACY_DEVICES += OM2P - -define LegacyDevice/OM5P - DEVICE_TITLE := OpenMesh OM5P/OM5P-AN - DEVICE_PACKAGES := om-watchdog -endef -LEGACY_DEVICES += OM5P - -define LegacyDevice/OM5PAC - DEVICE_TITLE := OpenMesh OM5P-AC - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x om-watchdog -endef -LEGACY_DEVICES += OM5PAC - -define LegacyDevice/MR600 - DEVICE_TITLE := OpenMesh MR600 - DEVICE_PACKAGES := om-watchdog -endef -LEGACY_DEVICES += MR600 - -define LegacyDevice/MR900 - DEVICE_TITLE := OpenMesh MR900 - DEVICE_PACKAGES := om-watchdog -endef -LEGACY_DEVICES += MR900 - -define LegacyDevice/MR1750 - DEVICE_TITLE := OpenMesh MR1750 - DEVICE_PACKAGES := om-watchdog kmod-ath10k ath10k-firmware-qca988x -endef -LEGACY_DEVICES += MR1750 - -define LegacyDevice/ALL0305 - DEVICE_TITLE := Allnet ALL0305 - DEVICE_PACKAGES := fconfig kmod-ath5k -kmod-ath9k -endef -LEGACY_DEVICES += ALL0305 - -define LegacyDevice/EAP7660D - DEVICE_TITLE := Senao EAP7660D -endef -LEGACY_DEVICES += EAP7660D - -define LegacyDevice/JA76PF - DEVICE_TITLE := jjPlus JA76PF - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-hwmon-core kmod-i2c-core kmod-hwmon-lm75 -endef -LEGACY_DEVICES += JA76PF - -define LegacyDevice/JA76PF2 - DEVICE_TITLE := jjPlus JA76PF2 -endef -LEGACY_DEVICES += JA76PF2 - -define LegacyDevice/JWAP003 - DEVICE_TITLE := jjPlus JWAP003 - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += JWAP003 - -define LegacyDevice/PB42 - DEVICE_TITLE := Atheros PB42 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 -endef -LEGACY_DEVICES += PB42 - -define LegacyDevice/PB44 - DEVICE_TITLE := Atheros PB44 reference board - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \ - vsc7385-ucode-pb44 vsc7395-ucode-pb44 -endef -LEGACY_DEVICES += PB44 - -define LegacyDevice/MZKW04NU - DEVICE_TITLE := Planex MZK-W04NU - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += MZKW04NU - -define LegacyDevice/MZKW300NH - DEVICE_TITLE := Planex MZK-W300NH -endef -LEGACY_DEVICES += MZKW300NH - -define LegacyDevice/EAP300V2 - DEVICE_TITLE := EnGenius EAP300V2 -endef -LEGACY_DEVICES += EAP300V2 - -define LegacyDevice/WHRG301N - DEVICE_TITLE := Buffalo WHR-G301N -endef -LEGACY_DEVICES += WHRG301N - -define LegacyDevice/WHRHPG300N - DEVICE_TITLE := Buffalo WHR-HP-G300N -endef -LEGACY_DEVICES += WHRHPG300N - -define LegacyDevice/WHRHPGN - DEVICE_TITLE := Buffalo WHR-HP-GN -endef -LEGACY_DEVICES += WHRHPGN - -define LegacyDevice/WLAEAG300N - DEVICE_TITLE := Buffalo WLAE-AG300N - DEVICE_PACKAGES := kmod-ledtrig-netdev -endef -LEGACY_DEVICES += WLAEAG300N - -define LegacyDevice/WRT400N - DEVICE_TITLE := Linksys WRT400N -endef -LEGACY_DEVICES += WRT400N - -define LegacyDevice/WZRHPG300NH - DEVICE_TITLE := Buffalo WZR-HP-G300NH - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += WZRHPG300NH - -define LegacyDevice/WZRHPG300NH2 - DEVICE_TITLE := Buffalo WZR-HP-G300NH2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += WZRHPG300NH2 - -define LegacyDevice/WZRHPAG300H - DEVICE_TITLE := Buffalo WZR-HP-AG300H - DEVICE_PACKAGES := kmod-usb-ohci kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += WZRHPAG300H - -define LegacyDevice/WZRHPG450H - DEVICE_TITLE := Buffalo WZR-HP-G450H - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += WZRHPG450H - -define LegacyDevice/WZR600DHP - DEVICE_TITLE := Buffalo WZR-600DHP - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += WZR600DHP - -define LegacyDevice/WZR450HP2 - DEVICE_TITLE := Buffalo WZR-450HP2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport -endef -LEGACY_DEVICES += WZR450HP2 - -define LegacyDevice/ZCN1523H28 - DEVICE_TITLE := Zcomax ZCN-1523H-2-8 -endef -LEGACY_DEVICES += ZCN1523H28 - -define LegacyDevice/ZCN1523H516 - DEVICE_TITLE := Zcomax ZCN-1523H-5-16 -endef -LEGACY_DEVICES += ZCN1523H516 - -define LegacyDevice/NBG_460N_550N_550NH - DEVICE_TITLE := ZyXEL NBG 460N/550N/550NH - DEVICE_PACKAGES := kmod-rtc-pcf8563 -endef -LEGACY_DEVICES += NBG_460N_550N_550NH diff --git a/target/linux/ar71xx/image/senao.mk b/target/linux/ar71xx/image/senao.mk deleted file mode 100644 index dbb7b69f94..0000000000 --- a/target/linux/ar71xx/image/senao.mk +++ /dev/null @@ -1,31 +0,0 @@ -define Build/senao-factory-image - $(eval board=$(word 1,$(1))) - $(eval rootfs=$(word 2,$(1))) - - mkdir -p $@.senao - - touch $@.senao/FWINFO-OpenWrt-$(REVISION)-$(board) - $(CP) $(IMAGE_KERNEL) $@.senao/openwrt-senao-$(board)-uImage-lzma.bin - $(CP) $(rootfs) $@.senao/openwrt-senao-$(board)-root.squashfs - - $(TAR) -c \ - --numeric-owner --owner=0 --group=0 --sort=name \ - $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \ - -C $@.senao . | gzip -9nc > $@ - - rm -rf $@.senao -endef - - -define Device/ens202ext - DEVICE_TITLE := EnGenius ENS202EXT - BOARDNAME := ENS202EXT - DEVICE_PACKAGES := rssileds - KERNEL_SIZE := 1536k - IMAGE_SIZE := 13632k - IMAGES += factory.bin - MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),320k(custom)ro,1536k(kernel),12096k(rootfs),2048k(failsafe)ro,64k(art)ro,13632k@0xa0000(firmware) - IMAGE/factory.bin/squashfs := append-rootfs | pad-rootfs | senao-factory-image ens202ext $$$$@ - IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) -endef -TARGET_DEVICES += ens202ext diff --git a/target/linux/ar71xx/image/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk deleted file mode 100644 index 18178a3a81..0000000000 --- a/target/linux/ar71xx/image/tp-link.mk +++ /dev/null @@ -1,1237 +0,0 @@ -DEVICE_VARS += LOADER_FLASH_OFFS TPLINK_BOARD_ID TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION TPLINK_HWID TPLINK_HWREV - -define Build/copy-file - cat "$(1)" > "$@" -endef - -define Build/loader-okli - dd if=$(KDIR)/loader-$(1).gz bs=7680 conv=sync of="$@.new" - cat "$@" >> "$@.new" - mv "$@.new" "$@" -endef - -define Build/loader-okli-compile - $(call Build/loader-common,FLASH_OFFS=$(LOADER_FLASH_OFFS) FLASH_MAX=0 KERNEL_CMDLINE="$(CMDLINE)") -endef - -# combine kernel and rootfs into one image -# mktplinkfw -# is "sysupgrade" or "factory" -# -# -a align the rootfs start on an bytes boundary -# -j add jffs2 end-of-filesystem markers -# -s strip padding from end of the image -# -X reserve bytes in the firmware image (hexval prefixed with 0x) -define Build/mktplinkfw - -$(STAGING_DIR_HOST)/bin/mktplinkfw \ - -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \ - -m $(TPLINK_HEADER_VERSION) \ - -k $(IMAGE_KERNEL) \ - -r $@ \ - -o $@.new \ - -j -X 0x40000 \ - -a $(call rootfs_align,$(FILESYSTEM)) \ - $(wordlist 2,$(words $(1)),$(1)) \ - $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@ -endef - -define Build/uImageArcher - mkimage -A $(LINUX_KARCH) \ - -O linux -T kernel \ - -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ - -n '$(call toupper,$(LINUX_KARCH)) OpenWrt Linux-$(LINUX_VERSION)' -d $@ $@.new - @mv $@.new $@ -endef - - -define Device/tplink - TPLINK_HWREV := 0x1 - TPLINK_HEADER_VERSION := 1 - LOADER_TYPE := gz - KERNEL := kernel-bin | patch-cmdline | lzma - KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | tplink-v1-header - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade - IMAGE/factory.bin := append-rootfs | mktplinkfw factory -endef - -define Device/tplink-nolzma - $(Device/tplink) - LOADER_FLASH_OFFS := 0x22000 - COMPILE := loader-$(1).gz - COMPILE/loader-$(1).gz := loader-okli-compile - KERNEL := copy-file $(KDIR)/vmlinux.bin.lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) - KERNEL_INITRAMFS := copy-file $(KDIR)/vmlinux-initramfs.bin.lzma | loader-kernel-cmdline | tplink-v1-header -endef - -define Device/tplink-4m - $(Device/tplink-nolzma) - TPLINK_FLASHLAYOUT := 4M - IMAGE_SIZE := 3904k -endef - -define Device/tplink-8m - $(Device/tplink-nolzma) - TPLINK_FLASHLAYOUT := 8M - IMAGE_SIZE := 7936k -endef - -define Device/tplink-4mlzma - $(Device/tplink) - TPLINK_FLASHLAYOUT := 4Mlzma - IMAGE_SIZE := 3904k -endef - -define Device/tplink-8mlzma - $(Device/tplink) - TPLINK_FLASHLAYOUT := 8Mlzma - IMAGE_SIZE := 7936k -endef - -define Device/tplink-16mlzma - $(Device/tplink) - TPLINK_FLASHLAYOUT := 16Mlzma - IMAGE_SIZE := 15872k -endef - -define Device/archer-cxx - KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \ - append-metadata | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.bin := append-rootfs | tplink-safeloader factory -endef - -define Device/archer-c25-v1 - $(Device/archer-cxx) - DEVICE_TITLE := TP-LINK Archer C25 v1 - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887 - BOARDNAME := ARCHER-C25-V1 - TPLINK_BOARD_ID := ARCHER-C25-V1 - DEVICE_PROFILE := ARCHERC25V1 - IMAGE_SIZE := 7808k - LOADER_TYPE := elf - MTDPARTS := spi0.0:128k(factory-uboot)ro,64k(u-boot)ro,1536k(kernel),6272k(rootfs),128k(config)ro,64k(art)ro,7808k@0x30000(firmware) - SUPPORTED_DEVICES := archer-c25-v1 -endef -TARGET_DEVICES += archer-c25-v1 - -define Device/archer-c58-v1 - $(Device/archer-cxx) - DEVICE_TITLE := TP-LINK Archer C58 v1 - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888 - BOARDNAME := ARCHER-C58-V1 - TPLINK_BOARD_ID := ARCHER-C58-V1 - DEVICE_PROFILE := ARCHERC58V1 - IMAGE_SIZE := 7936k - MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro - SUPPORTED_DEVICES := archer-c58-v1 -endef -TARGET_DEVICES += archer-c58-v1 - -define Device/archer-c59-v1 - $(Device/archer-cxx) - DEVICE_TITLE := TP-LINK Archer C59 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca9888 - BOARDNAME := ARCHER-C59-V1 - TPLINK_BOARD_ID := ARCHER-C59-V1 - DEVICE_PROFILE := ARCHERC59V1 - IMAGE_SIZE := 14528k - MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1536k(kernel),12992k(rootfs),1664k(tplink)ro,64k(art)ro,14528k@0x20000(firmware) - SUPPORTED_DEVICES := archer-c59-v1 -endef -TARGET_DEVICES += archer-c59-v1 - -define Device/archer-c60-v1 - $(Device/archer-cxx) - DEVICE_TITLE := TP-LINK Archer C60 v1 - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888 - BOARDNAME := ARCHER-C60-V1 - TPLINK_BOARD_ID := ARCHER-C60-V1 - DEVICE_PROFILE := ARCHERC60V1 - IMAGE_SIZE := 7936k - MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro - SUPPORTED_DEVICES := archer-c60-v1 -endef -TARGET_DEVICES += archer-c60-v1 - -define Device/archer-c5-v1 - $(Device/tplink-16mlzma) - DEVICE_TITLE := TP-LINK Archer C5 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x - BOARDNAME := ARCHER-C5 - DEVICE_PROFILE := ARCHERC7 - TPLINK_HWID := 0xc5000001 -endef -TARGET_DEVICES += archer-c5-v1 - -define Device/archer-c7-v1 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK Archer C7 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x - BOARDNAME := ARCHER-C7 - DEVICE_PROFILE := ARCHERC7 - TPLINK_HWID := 0x75000001 -endef -TARGET_DEVICES += archer-c7-v1 - -define Device/archer-c7-v2 - $(Device/tplink-16mlzma) - DEVICE_TITLE := TP-LINK Archer C7 v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x - BOARDNAME := ARCHER-C7-V2 - DEVICE_PROFILE := ARCHERC7 - TPLINK_HWID := 0xc7000002 - IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin - IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US - IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU -endef -TARGET_DEVICES += archer-c7-v2 - -define Device/archer-c7-v2-il - $(Device/tplink-16mlzma) - DEVICE_TITLE := TP-LINK Archer C7 v2 (IL) - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x - BOARDNAME := ARCHER-C7-V2 - DEVICE_PROFILE := ARCHERC7 - TPLINK_HWID := 0xc7000002 - TPLINK_HWREV := 0x494c0001 -endef -TARGET_DEVICES += archer-c7-v2-il - -define Device/tl-wdr7500-v3 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK Archer C7 v3 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x - BOARDNAME := ARCHER-C7 - DEVICE_PROFILE := ARCHERC7 - TPLINK_HWID := 0x75000003 -endef -TARGET_DEVICES += tl-wdr7500-v3 - -define Device/archer-c7-v4 - $(Device/archer-cxx) - DEVICE_TITLE := TP-LINK Archer C7 v4 - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x - BOARDNAME := ARCHER-C7-V4 - TPLINK_BOARD_ID := ARCHER-C7-V4 - IMAGE_SIZE := 15104k - LOADER_TYPE := elf - MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,1536k(kernel),13568k(rootfs),960k(config)ro,64k(art)ro,15104k@0x40000(firmware) - SUPPORTED_DEVICES := archer-c7-v4 -endef -TARGET_DEVICES += archer-c7-v4 - -define Device/cpe510-520-v1 - DEVICE_TITLE := TP-LINK CPE510/520 v1 - DEVICE_PACKAGES := rssileds - MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),6144k(rootfs),192k(config)ro,64k(ART)ro,7680k@0x40000(firmware) - IMAGE_SIZE := 7680k - BOARDNAME := CPE510 - TPLINK_BOARD_ID := CPE510 - DEVICE_PROFILE := CPE510 - LOADER_TYPE := elf - KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade - IMAGE/factory.bin := append-rootfs | tplink-safeloader factory -endef -TARGET_DEVICES += cpe510-520-v1 - -define Device/cpe210-220-v1 - $(Device/cpe510-520-v1) - DEVICE_TITLE := TP-LINK CPE210/220 v1 - BOARDNAME := CPE210 - TPLINK_BOARD_ID := CPE210 -endef -TARGET_DEVICES += cpe210-220-v1 - -define Device/wbs210-v1 - $(Device/cpe510-520-v1) - DEVICE_TITLE := TP-LINK WBS210 v1 - BOARDNAME := WBS210 - TPLINK_BOARD_ID := WBS210 -endef -TARGET_DEVICES += wbs210-v1 - -define Device/wbs510-v1 - $(Device/cpe510-520-v1) - DEVICE_TITLE := TP-LINK WBS510 v1 - BOARDNAME := WBS510 - TPLINK_BOARD_ID := WBS510 -endef -TARGET_DEVICES += wbs510-v1 - -define Device/eap120-v1 - DEVICE_TITLE := TP-LINK EAP120 v1 - MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware) - IMAGE_SIZE := 15872k - BOARDNAME := EAP120 - TPLINK_BOARD_ID := EAP120 - DEVICE_PROFILE := EAP120 - LOADER_TYPE := elf - KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade - IMAGE/factory.bin := append-rootfs | tplink-safeloader factory -endef -TARGET_DEVICES += eap120-v1 - -define Device/re450-v1 - DEVICE_TITLE := TP-LINK RE450 v1 - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x - MTDPARTS := spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro - IMAGE_SIZE := 7936k - BOARDNAME := RE450 - TPLINK_BOARD_ID := RE450 - DEVICE_PROFILE := RE450 - LOADER_TYPE := elf - TPLINK_HWID := 0x0 - TPLINK_HWREV := 0 - TPLINK_HEADER_VERSION := 1 - KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade - IMAGE/factory.bin := append-rootfs | tplink-safeloader factory -endef -TARGET_DEVICES += re450-v1 - -define Device/tl-mr10u-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-MR10U v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - BOARDNAME := TL-MR10U - DEVICE_PROFILE := TLMR10U - TPLINK_HWID := 0x00100101 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-mr10u-v1 - -define Device/tl-mr11u-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-MR11U v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-MR11U - DEVICE_PROFILE := TLMR11U - TPLINK_HWID := 0x00110101 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-mr11u-v1 - -define Device/tl-mr11u-v2 - $(Device/tl-mr11u-v1) - DEVICE_TITLE := TP-LINK TL-MR11U v2 - TPLINK_HWID := 0x00110102 -endef -TARGET_DEVICES += tl-mr11u-v2 - -define Device/tl-mr12u-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-MR12U v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-MR13U - DEVICE_PROFILE := TLMR12U - TPLINK_HWID := 0x00120101 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-mr12u-v1 - -define Device/tl-mr13u-v1 - $(Device/tl-mr12u-v1) - DEVICE_TITLE := TP-LINK TL-MR13U v1 - DEVICE_PROFILE := TLMR13U - TPLINK_HWID := 0x00130101 -endef -TARGET_DEVICES += tl-mr13u-v1 - -define Device/tl-mr3020-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-MR3020 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-MR3020 - DEVICE_PROFILE := TLMR3020 - TPLINK_HWID := 0x30200001 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-mr3020-v1 - -define Device/tl-mr3040-v1 - $(Device/tl-mr3020-v1) - DEVICE_TITLE := TP-LINK TL-MR3040 v1 - BOARDNAME := TL-MR3040 - DEVICE_PROFILE := TLMR3040 - TPLINK_HWID := 0x30400001 -endef -TARGET_DEVICES += tl-mr3040-v1 - -define Device/tl-mr3040-v2 - $(Device/tl-mr3040-v1) - DEVICE_TITLE := TP-LINK TL-MR3040 v2 - BOARDNAME := TL-MR3040-v2 - TPLINK_HWID := 0x30400002 -endef -TARGET_DEVICES += tl-mr3040-v2 - -define Device/tl-mr3220-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-MR3220 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-MR3220 - DEVICE_PROFILE := TLMR3220 - TPLINK_HWID := 0x32200001 -endef -TARGET_DEVICES += tl-mr3220-v1 - -define Device/tl-mr3220-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-MR3220 v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-MR3220-v2 - DEVICE_PROFILE := TLMR3220 - TPLINK_HWID := 0x32200002 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-mr3220-v2 - -define Device/tl-mr3420-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-MR3420 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-MR3420 - DEVICE_PROFILE := TLMR3420 - TPLINK_HWID := 0x34200001 -endef -TARGET_DEVICES += tl-mr3420-v1 - -define Device/tl-mr3420-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-MR3420 v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-MR3420-v2 - DEVICE_PROFILE := TLMR3420 - TPLINK_HWID := 0x34200002 -endef -TARGET_DEVICES += tl-mr3420-v2 - -define Device/tl-mr6400-v1 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-MR6400 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem - BOARDNAME := TL-MR6400 - DEVICE_PROFILE := TLMR6400 - TPLINK_HWID := 0x64000001 -endef -TARGET_DEVICES += tl-mr6400-v1 - -define Device/tl-wa701nd-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WA701N/ND v1 - BOARDNAME := TL-WA901ND - DEVICE_PROFILE := TLWA701 - TPLINK_HWID := 0x07010001 -endef -TARGET_DEVICES += tl-wa701nd-v1 - -define Device/tl-wa701nd-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA701N/ND v2 - BOARDNAME := TL-WA701ND-v2 - DEVICE_PROFILE := TLWA701 - TPLINK_HWID := 0x07010002 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-wa701nd-v2 - -define Device/tl-wa7210n-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA7210N v2 - DEVICE_PACKAGES := rssileds kmod-ledtrig-netdev - BOARDNAME := TL-WA7210N-v2 - DEVICE_PROFILE := TLWA7210 - TPLINK_HWID := 0x72100002 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-wa7210n-v2 - -define Device/tl-wa730re-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WA730RE v1 - BOARDNAME := TL-WA901ND - DEVICE_PROFILE := TLWA730RE - TPLINK_HWID := 0x07300001 -endef -TARGET_DEVICES += tl-wa730re-v1 - -define Device/tl-wa750re-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA750RE v1 - DEVICE_PACKAGES := rssileds - BOARDNAME := TL-WA750RE - DEVICE_PROFILE := TLWA750 - TPLINK_HWID := 0x07500001 -endef -TARGET_DEVICES += tl-wa750re-v1 - -define Device/tl-wa7510n-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WA7510N v1 - BOARDNAME := TL-WA7510N - DEVICE_PROFILE := TLWA7510 - TPLINK_HWID := 0x75100001 -endef -TARGET_DEVICES += tl-wa7510n-v1 - -define Device/tl-wa801nd-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WA801N/ND v1 - BOARDNAME := TL-WA901ND - DEVICE_PROFILE := TLWA801 - TPLINK_HWID := 0x08010001 -endef -TARGET_DEVICES += tl-wa801nd-v1 - -define Device/tl-wa801nd-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA801N/ND v2 - BOARDNAME := TL-WA801ND-v2 - DEVICE_PROFILE := TLWA801 - TPLINK_HWID := 0x08010002 -endef -TARGET_DEVICES += tl-wa801nd-v2 - -define Device/tl-wa801nd-v3 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA801N/ND v3 - BOARDNAME := TL-WA801ND-v3 - DEVICE_PROFILE := TLWA801 - TPLINK_HWID := 0x08010003 -endef -TARGET_DEVICES += tl-wa801nd-v3 - -define Device/tl-wa830re-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WA830RE v1 - BOARDNAME := TL-WA901ND - DEVICE_PROFILE := TLWA830 - TPLINK_HWID := 0x08300010 -endef -TARGET_DEVICES += tl-wa830re-v1 - -define Device/tl-wa830re-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA830RE v2 - BOARDNAME := TL-WA830RE-v2 - DEVICE_PROFILE := TLWA830 - TPLINK_HWID := 0x08300002 -endef -TARGET_DEVICES += tl-wa830re-v2 - -define Device/tl-wa850re-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA850RE v1 - DEVICE_PACKAGES := rssileds - BOARDNAME := TL-WA850RE - DEVICE_PROFILE := TLWA850 - TPLINK_HWID := 0x08500001 -endef -TARGET_DEVICES += tl-wa850re-v1 - -define Device/tl-wa85xre - $(Device/tplink) - TPLINK_HWREV := 0 - KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header - IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade - IMAGE/factory.bin := append-rootfs | tplink-safeloader factory - MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),2304k(rootfs),256k(config)ro,64k(art)ro,3648k@0x20000(firmware) -endef - -define Device/tl-wa850re-v2 - $(Device/tl-wa85xre) - DEVICE_TITLE := TP-LINK TL-WA850RE v2 - DEVICE_PACKAGES := rssileds - BOARDNAME := TL-WA850RE-V2 - DEVICE_PROFILE := TLWA850 - TPLINK_BOARD_ID := TLWA850REV2 - TPLINK_HWID := 0x08500002 -endef -TARGET_DEVICES += tl-wa850re-v2 - -define Device/tl-wa855re-v1 - $(Device/tl-wa85xre) - DEVICE_TITLE := TP-LINK TL-WA855RE v1 - BOARDNAME := TL-WA855RE-v1 - DEVICE_PROFILE := TLWA855RE - TPLINK_HWID := 0x08550001 - TPLINK_BOARD_ID := TLWA855REV1 -endef -TARGET_DEVICES += tl-wa855re-v1 - - -define Device/tl-wa860re-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA860RE v1 - BOARDNAME := TL-WA860RE - DEVICE_PROFILE := TLWA860 - TPLINK_HWID := 0x08600001 -endef -TARGET_DEVICES += tl-wa860re-v1 - -define Device/tl-wa901nd-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WA901N/ND v1 - BOARDNAME := TL-WA901ND - DEVICE_PROFILE := TLWA901 - TPLINK_HWID := 0x09010001 -endef -TARGET_DEVICES += tl-wa901nd-v1 - -define Device/tl-wa901nd-v2 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WA901N/ND v2 - BOARDNAME := TL-WA901ND-v2 - DEVICE_PROFILE := TLWA901 - TPLINK_HWID := 0x09010002 -endef -TARGET_DEVICES += tl-wa901nd-v2 - -define Device/tl-wa901nd-v3 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA901N/ND v3 - BOARDNAME := TL-WA901ND-v3 - DEVICE_PROFILE := TLWA901 - TPLINK_HWID := 0x09010003 -endef -TARGET_DEVICES += tl-wa901nd-v3 - -define Device/tl-wa901nd-v4 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WA901N/ND v4 - BOARDNAME := TL-WA901ND-v4 - DEVICE_PROFILE := TLWA901 - TPLINK_HWID := 0x09010004 - IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU -endef -TARGET_DEVICES += tl-wa901nd-v4 - -define Device/tl-wa901nd-v5 - $(Device/tl-wa901nd-v4) - DEVICE_TITLE := TP-LINK TL-WA901N/ND v5 - BOARDNAME := TL-WA901ND-v5 - TPLINK_HWID := 0x09010005 -endef -TARGET_DEVICES += tl-wa901nd-v5 - -define Device/tl-wdr3320-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WDR3320 v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WDR3320-v2 - DEVICE_PROFILE := TLWDR3320V2 - TPLINK_HWID := 0x33200002 - TPLINK_HEADER_VERSION := 2 -endef -TARGET_DEVICES += tl-wdr3320-v2 - -define Device/tl-wdr3500-v1 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WDR3500 v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WDR3500 - DEVICE_PROFILE := TLWDR4300 - TPLINK_HWID := 0x35000001 -endef -TARGET_DEVICES += tl-wdr3500-v1 - -define Device/tl-wdr3600-v1 - $(Device/tl-wdr3500-v1) - DEVICE_TITLE := TP-LINK TL-WDR3600 v1 - BOARDNAME := TL-WDR4300 - TPLINK_HWID := 0x36000001 - IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US -endef -TARGET_DEVICES += tl-wdr3600-v1 - -define Device/tl-wdr4300-v1 - $(Device/tl-wdr3600-v1) - DEVICE_TITLE := TP-LINK TL-WDR4300 v1 - TPLINK_HWID := 0x43000001 -endef -TARGET_DEVICES += tl-wdr4300-v1 - -define Device/tl-wdr4300-v1-il - $(Device/tl-wdr3500-v1) - DEVICE_TITLE := TP-LINK TL-WDR4300 v1 (IL) - BOARDNAME := TL-WDR4300 - TPLINK_HWID := 0x43008001 -endef -TARGET_DEVICES += tl-wdr4300-v1-il - -define Device/tl-wdr4310-v1 - $(Device/tl-wdr4300-v1-il) - DEVICE_TITLE := TP-LINK TL-WDR4310 v1 - TPLINK_HWID := 0x43100001 -endef -TARGET_DEVICES += tl-wdr4310-v1 - -define Device/tl-wdr4900-v2 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WDR4900 v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WDR4900-v2 - DEVICE_PROFILE := TLWDR4900V2 - TPLINK_HWID := 0x49000002 -endef -TARGET_DEVICES += tl-wdr4900-v2 - -define Device/tl-wdr6500-v2 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WDR6500 v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x - KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma - KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | tplink-v1-header - BOARDNAME := TL-WDR6500-v2 - DEVICE_PROFILE := TLWDR6500V2 - TPLINK_HWID := 0x65000002 - TPLINK_HEADER_VERSION := 2 -endef -TARGET_DEVICES += tl-wdr6500-v2 - -define Device/mw4530r-v1 - $(Device/tl-wdr4300-v1) - DEVICE_TITLE := Mercury MW4530R v1 - TPLINK_HWID := 0x45300001 -endef -TARGET_DEVICES += mw4530r-v1 - -define Device/tl-wpa8630-v1 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WPA8630 v1 - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x - BOARDNAME := TL-WPA8630 - DEVICE_PROFILE := TL-WPA8630 - TPLINK_HWID := 0x86300001 -endef -TARGET_DEVICES += tl-wpa8630-v1 - -define Device/tl-wr1041n-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR1041N v2 - BOARDNAME := TL-WR1041N-v2 - DEVICE_PROFILE := TLWR1041 - TPLINK_HWID := 0x10410002 -endef -TARGET_DEVICES += tl-wr1041n-v2 - -define Device/tl-wr1043n-v5 - $(Device/archer-cxx) - DEVICE_TITLE := TP-LINK TL-WR1043N v5 - BOARDNAME := TL-WR1043N-v5 - SUPPORTED_DEVICES := tl-wr1043n-v5 - DEVICE_PROFILE := TLWR1043 - MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,15104k(firmware),128k(product-info)ro,640k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(art)ro - IMAGE_SIZE := 15104k - TPLINK_BOARD_ID := TLWR1043NV5 -endef -TARGET_DEVICES += tl-wr1043n-v5 - -define Device/tl-wr1043nd-v1 - $(Device/tplink-8m) - DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WR1043ND - DEVICE_PROFILE := TLWR1043 - TPLINK_HWID := 0x10430001 -endef -TARGET_DEVICES += tl-wr1043nd-v1 - -define Device/tl-wr1043nd-v2 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WR1043ND-v2 - DEVICE_PROFILE := TLWR1043 - TPLINK_HWID := 0x10430002 -endef -TARGET_DEVICES += tl-wr1043nd-v2 - -define Device/tl-wr1043nd-v3 - $(Device/tl-wr1043nd-v2) - DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3 - TPLINK_HWID := 0x10430003 -endef -TARGET_DEVICES += tl-wr1043nd-v3 - -define Device/tl-wr1043nd-v4 - $(Device/tplink) - DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WR1043ND-v4 - DEVICE_PROFILE := TLWR1043 - TPLINK_HWID := 0x10430004 - MTDPARTS := spi0.0:128k(u-boot)ro,1536k(kernel),14016k(rootfs),128k(product-info)ro,320k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(ART)ro,15552k@0x20000(firmware) - IMAGE_SIZE := 15552k - TPLINK_BOARD_ID := TLWR1043NDV4 - KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade - IMAGE/factory.bin := append-rootfs | tplink-safeloader factory -endef -TARGET_DEVICES += tl-wr1043nd-v4 - -define Device/tl-wr2543-v1 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WR2543N - DEVICE_PROFILE := TLWR2543 - TPLINK_HWID := 0x25430001 - IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99 - IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99 -endef -TARGET_DEVICES += tl-wr2543-v1 - -define Device/tl-wr703n-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR703N v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - BOARDNAME := TL-WR703N - DEVICE_PROFILE := TLWR703 - TPLINK_HWID := 0x07030101 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-wr703n-v1 - -define Device/tl-wr710n-v1 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WR710N v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - BOARDNAME := TL-WR710N - DEVICE_PROFILE := TLWR710 - TPLINK_HWID := 0x07100001 - CONSOLE := ttyATH0,115200 - IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US -endef -TARGET_DEVICES += tl-wr710n-v1 - -define Device/tl-wr710n-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR710N v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - BOARDNAME := TL-WR710N - DEVICE_PROFILE := TLWR710 - TPLINK_HWID := 0x07100002 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-wr710n-v2 - -define Device/tl-wr710n-v2.1 - $(Device/tl-wr710n-v1) - DEVICE_TITLE := TP-LINK TL-WR710N v2.1 - TPLINK_HWID := 0x07100002 - TPLINK_HWREV := 0x00000002 -endef -TARGET_DEVICES += tl-wr710n-v2.1 - -define Device/tl-wr720n-v3 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR720N v3 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - BOARDNAME := TL-WR720N-v3 - DEVICE_PROFILE := TLWR720 - TPLINK_HWID := 0x07200103 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-wr720n-v3 - -define Device/tl-wr720n-v4 - $(Device/tl-wr720n-v3) - DEVICE_TITLE := TP-LINK TL-WR720N v4 - TPLINK_HWID := 0x07200104 -endef -TARGET_DEVICES += tl-wr720n-v4 - -define Device/tl-wr740n-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR740N/ND v1 - BOARDNAME := TL-WR741ND - DEVICE_PROFILE := TLWR740 - TPLINK_HWID := 0x07400001 -endef -TARGET_DEVICES += tl-wr740n-v1 - -define Device/tl-wr740n-v3 - $(Device/tl-wr740n-v1) - DEVICE_TITLE := TP-LINK TL-WR740N/ND v3 - TPLINK_HWID := 0x07400003 -endef -TARGET_DEVICES += tl-wr740n-v3 - -define Device/tl-wr740n-v4 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR740N/ND v4 - BOARDNAME := TL-WR741ND-v4 - DEVICE_PROFILE := TLWR740 - TPLINK_HWID := 0x07400004 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-wr740n-v4 - -define Device/tl-wr740n-v5 - $(Device/tl-wr740n-v4) - DEVICE_TITLE := TP-LINK TL-WR740N/ND v5 - TPLINK_HWID := 0x07400005 -endef -TARGET_DEVICES += tl-wr740n-v5 - -define Device/tl-wr740n-v6 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR740N/ND v6 - BOARDNAME := TL-WR740N-v6 - DEVICE_PROFILE := TLWR740 - TPLINK_HWID := 0x07400006 -endef -TARGET_DEVICES += tl-wr740n-v6 - -define Device/tl-wr741nd-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR741N/ND v1 - BOARDNAME := TL-WR741ND - DEVICE_PROFILE := TLWR741 - TPLINK_HWID := 0x07410001 -endef -TARGET_DEVICES += tl-wr741nd-v1 - -define Device/tl-wr741nd-v2 - $(Device/tl-wr741nd-v1) - DEVICE_TITLE := TP-LINK TL-WR741N/ND v2 -endef -TARGET_DEVICES += tl-wr741nd-v2 - -define Device/tl-wr741nd-v4 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR741N/ND v4 - BOARDNAME := TL-WR741ND-v4 - DEVICE_PROFILE := TLWR741 - TPLINK_HWID := 0x07410004 - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += tl-wr741nd-v4 - -define Device/tl-wr741nd-v5 - $(Device/tl-wr741nd-v4) - DEVICE_TITLE := TP-LINK TL-WR741N/ND v5 - TPLINK_HWID := 0x07400005 -endef -TARGET_DEVICES += tl-wr741nd-v5 - -define Device/tl-wr743nd-v1 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR743N/ND v1 - BOARDNAME := TL-WR741ND - DEVICE_PROFILE := TLWR743 - TPLINK_HWID := 0x07430001 -endef -TARGET_DEVICES += tl-wr743nd-v1 - -define Device/tl-wr743nd-v2 - $(Device/tl-wr741nd-v4) - DEVICE_TITLE := TP-LINK TL-WR743N/ND v2 - DEVICE_PROFILE := TLWR743 - TPLINK_HWID := 0x07430002 -endef -TARGET_DEVICES += tl-wr743nd-v2 - -define Device/tl-wr802n-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR802N v1 - BOARDNAME := TL-WR802N-v1 - DEVICE_PROFILE := TLWR802 - TPLINK_HWID := 0x08020001 - TPLINK_HWREV := 1 -endef -TARGET_DEVICES += tl-wr802n-v1 - -define Device/tl-wr802n-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR802N v2 - BOARDNAME := TL-WR802N-v2 - DEVICE_PROFILE := TLWR802 - TPLINK_HWID := 0x08020002 - TPLINK_HWREV := 2 - IMAGES += factory-us.bin factory-eu.bin - IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US - IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU -endef -TARGET_DEVICES += tl-wr802n-v2 - -define Device/tl-wr810n-v1 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WR810N v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - BOARDNAME := TL-WR810N - DEVICE_PROFILE := TLWR810 - TPLINK_HWID := 0x08100001 -endef -TARGET_DEVICES += tl-wr810n-v1 - -define Device/tl-wr810n-v2 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WR810N v2 - BOARDNAME := TL-WR810N-v2 - DEVICE_PROFILE := TLWR810 - TPLINK_HWID := 0x08100002 -endef -TARGET_DEVICES += tl-wr810n-v2 - -define Device/tl-wr840n-v2 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR840N v2 - BOARDNAME := TL-WR840N-v2 - DEVICE_PROFILE := TLWR840 - TPLINK_HWID := 0x08400002 - IMAGES += factory-eu.bin - IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU -endef -TARGET_DEVICES += tl-wr840n-v2 - -define Device/tl-wr840n-v3 - $(Device/tl-wr840n-v2) - DEVICE_TITLE := TP-LINK TL-WR840N v3 - BOARDNAME := TL-WR840N-v3 - TPLINK_HWID := 0x08400003 -endef -TARGET_DEVICES += tl-wr840n-v3 - -define Device/tl-wr841-v1.5 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v1.5 - BOARDNAME := TL-WR841N-v1.5 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410002 - TPLINK_HWREV := 2 -endef -TARGET_DEVICES += tl-wr841-v1.5 - -define Device/tl-wr841-v3 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v3 - BOARDNAME := TL-WR941ND - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410003 - TPLINK_HWREV := 3 -endef -TARGET_DEVICES += tl-wr841-v3 - -define Device/tl-wr841-v5 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v5 - BOARDNAME := TL-WR741ND - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410005 -endef -TARGET_DEVICES += tl-wr841-v5 - -define Device/tl-wr841-v7 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v7 - BOARDNAME := TL-WR841N-v7 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410007 -endef -TARGET_DEVICES += tl-wr841-v7 - -define Device/tl-wr841-v8 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v8 - BOARDNAME := TL-WR841N-v8 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410008 -endef -TARGET_DEVICES += tl-wr841-v8 - -define Device/tl-wr841-v9 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v9 - BOARDNAME := TL-WR841N-v9 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410009 -endef -TARGET_DEVICES += tl-wr841-v9 - -define Device/tl-wr841-v10 - $(Device/tl-wr841-v9) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v10 - TPLINK_HWID := 0x08410010 -endef -TARGET_DEVICES += tl-wr841-v10 - -define Device/tl-wr841-v11 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v11 - BOARDNAME := TL-WR841N-v11 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08410011 - IMAGES += factory-us.bin factory-eu.bin - IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US - IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU -endef -TARGET_DEVICES += tl-wr841-v11 - -define Device/tl-wr841-v12 - $(Device/tl-wr841-v11) - DEVICE_TITLE := TP-LINK TL-WR841N/ND v12 - TPLINK_HWID := 0x08410012 -endef -TARGET_DEVICES += tl-wr841-v12 - -define Device/tl-wr842n-v1 - $(Device/tplink-8m) - DEVICE_TITLE := TP-LINK TL-WR842N/ND v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-MR3420 - DEVICE_PROFILE := TLWR842 - TPLINK_HWID := 0x08420001 -endef -TARGET_DEVICES += tl-wr842n-v1 - -define Device/tl-wr842n-v2 - $(Device/tplink-8mlzma) - DEVICE_TITLE := TP-LINK TL-WR842N/ND v2 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WR842N-v2 - DEVICE_PROFILE := TLWR842 - TPLINK_HWID := 0x8420002 -endef -TARGET_DEVICES += tl-wr842n-v2 - -define Device/tl-wr842n-v3 - $(Device/tplink-16mlzma) - DEVICE_TITLE := TP-LINK TL-WR842N/ND v3 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WR842N-v3 - DEVICE_PROFILE := TLWR842 - TPLINK_HWID := 0x08420003 -endef -TARGET_DEVICES += tl-wr842n-v3 - -define Device/tl-wr843nd-v1 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR843N/ND v1 - BOARDNAME := TL-WR841N-v8 - DEVICE_PROFILE := TLWR843 - TPLINK_HWID := 0x08430001 -endef -TARGET_DEVICES += tl-wr843nd-v1 - -define Device/tl-wr847n-v8 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR847N/ND v8 - BOARDNAME := TL-WR841N-v8 - DEVICE_PROFILE := TLWR841 - TPLINK_HWID := 0x08470008 -endef -TARGET_DEVICES += tl-wr847n-v8 - -define Device/tl-wr902ac-v1 - DEVICE_TITLE := TP-LINK TL-WR902AC v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport \ - kmod-ath10k ath10k-firmware-qca9887 -swconfig -uboot-envtools - BOARDNAME := TL-WR902AC-V1 - DEVICE_PROFILE := TLWR902 - TPLINK_BOARD_ID := TL-WR902AC-V1 - TPLINK_HWID := 0x0 - TPLINK_HWREV := 0 - TPLINK_HEADER_VERSION := 1 - SUPPORTED_DEVICES := tl-wr902ac-v1 - IMAGE_SIZE := 7360k - KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header - IMAGES += factory.bin - IMAGE/factory.bin := append-rootfs | tplink-safeloader factory - IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \ - append-metadata | check-size $$$$(IMAGE_SIZE) - MTDPARTS := spi0.0:128k(u-boot)ro,7360k(firmware),640k(tplink)ro,64k(art)ro -endef -TARGET_DEVICES += tl-wr902ac-v1 - -define Device/tl-wr940n-v4 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR940N v4 - BOARDNAME := TL-WR940N-v4 - DEVICE_PROFILE := TLWR941 - TPLINK_HWID := 0x09400004 - IMAGES += factory-us.bin factory-eu.bin factory-br.bin - IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US - IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU - IMAGE/factory-br.bin := append-rootfs | mktplinkfw factory -C BR -endef -TARGET_DEVICES += tl-wr940n-v4 - -define Device/tl-wr941nd-v2 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR941N/ND v2 - BOARDNAME := TL-WR941ND - DEVICE_PROFILE := TLWR941 - TPLINK_HWID := 0x09410002 - TPLINK_HWREV := 2 -endef -TARGET_DEVICES += tl-wr941nd-v2 - -define Device/tl-wr941nd-v3 - $(Device/tl-wr941nd-v2) - DEVICE_TITLE := TP-LINK TL-WR941N/ND v3 -endef -TARGET_DEVICES += tl-wr941nd-v3 - -define Device/tl-wr941nd-v4 - $(Device/tplink-4m) - DEVICE_TITLE := TP-LINK TL-WR941N/ND v4 - BOARDNAME := TL-WR741ND - DEVICE_PROFILE := TLWR941 - TPLINK_HWID := 0x09410004 -endef -TARGET_DEVICES += tl-wr941nd-v4 - -define Device/tl-wr941nd-v5 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR941N/ND v5 - BOARDNAME := TL-WR941ND-v5 - DEVICE_PROFILE := TLWR941 - TPLINK_HWID := 0x09410005 -endef -TARGET_DEVICES += tl-wr941nd-v5 - -define Device/tl-wr941nd-v6 - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 - BOARDNAME := TL-WR941ND-v6 - DEVICE_PROFILE := TLWR941 - TPLINK_HWID := 0x09410006 -endef -TARGET_DEVICES += tl-wr941nd-v6 - -# Chinese version (unlike European) is similar to the TL-WDR3500 -define Device/tl-wr941nd-v6-cn - $(Device/tplink-4mlzma) - DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 (CN) - BOARDNAME := TL-WDR3500 - DEVICE_PROFILE := TLWR941 - TPLINK_HWID := 0x09410006 -endef -TARGET_DEVICES += tl-wr941nd-v6-cn - -define Device/tl-wr942n-v1 - DEVICE_TITLE := TP-LINK TL-WR942N v1 - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport - BOARDNAME := TL-WR942N-V1 - TPLINK_BOARD_ID := TLWR942NV1 - DEVICE_PROFILE := TLWR942 - IMAGE_SIZE := 14464k - KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \ - append-metadata | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.bin := append-rootfs | tplink-safeloader factory - MTDPARTS := spi0.0:128k(u-boot)ro,14464k(firmware),64k(product-info)ro,64k(partition-table)ro,256k(oem-config)ro,1344k(oem-vars)ro,64k(ART)ro - SUPPORTED_DEVICES := tl-wr942n-v1 -endef -TARGET_DEVICES += tl-wr942n-v1 diff --git a/target/linux/ar71xx/image/ubnt.mk b/target/linux/ar71xx/image/ubnt.mk deleted file mode 100644 index 2735c7491d..0000000000 --- a/target/linux/ar71xx/image/ubnt.mk +++ /dev/null @@ -1,273 +0,0 @@ -DEVICE_VARS += UBNT_BOARD UBNT_CHIP UBNT_TYPE - -# mkubntimage is using the kernel image direct -# routerboard creates partitions out of the ubnt header -define Build/mkubntimage - -$(STAGING_DIR_HOST)/bin/mkfwimage \ - -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ - -k $(IMAGE_KERNEL) \ - -r $@ \ - -o $@ -endef - -# all UBNT XM device expect the kernel image to have 1024k while flash, when -# booting the image, the size doesn't matter. -define Build/mkubntimage-split - -[ -f $@ ] && ( \ - dd if=$@ of=$@.old1 bs=1024k count=1; \ - dd if=$@ of=$@.old2 bs=1024k skip=1; \ - $(STAGING_DIR_HOST)/bin/mkfwimage \ - -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ - -k $@.old1 \ - -r $@.old2 \ - -o $@; \ - rm $@.old1 $@.old2 ) -endef - -define Build/mkubntimage2 - -$(STAGING_DIR_HOST)/bin/mkfwimage2 -f 0x9f000000 \ - -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ - -p jffs2:0x50000:0xf60000:0:0:$@ \ - -o $@.new - @mv $@.new $@ -endef - - -# UBNT_BOARD e.g. one of (XS2, XS5, RS, XM) -# UBNT_TYPE e.g. one of (BZ, XM, XW) -# UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x) -define Device/ubnt - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - DEVICE_PROFILE := UBNT - IMAGE_SIZE := 7552k - MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro - UBNT_BOARD := XM - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage-split -endef - -define Device/ubnt-xm - $(Device/ubnt) - DEVICE_PACKAGES += kmod-usb-ohci - UBNT_TYPE := XM - UBNT_CHIP := ar7240 -endef - -define Device/ubnt-xw - $(Device/ubnt) - UBNT_TYPE := XW - UBNT_CHIP := ar934x -endef - -define Device/ubnt-bz - $(Device/ubnt) - UBNT_TYPE := BZ - UBNT_CHIP := ar7240 -endef - -define Device/rw2458n - $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti RW2458N - BOARDNAME := RW2458N -endef -TARGET_DEVICES += rw2458n - -define Device/ubnt-airrouter - $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti AirRouter - BOARDNAME := UBNT-AR -endef -TARGET_DEVICES += ubnt-airrouter - -define Device/ubnt-bullet-m - $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti Bullet-M - BOARDNAME := UBNT-BM -endef -TARGET_DEVICES += ubnt-bullet-m - -define Device/ubnt-rocket-m - $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti Rocket-M - BOARDNAME := UBNT-RM -endef -TARGET_DEVICES += ubnt-rocket-m - -define Device/ubnt-nano-m - $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti Nano-M - BOARDNAME := UBNT-NM -endef -TARGET_DEVICES += ubnt-nano-m - -define Device/ubnt-unifi - $(Device/ubnt-bz) - DEVICE_TITLE := Ubiquiti UniFi - BOARDNAME := UBNT-UF - DEVICE_PROFILE += UBNTUNIFI -endef -TARGET_DEVICES += ubnt-unifi - -define Device/ubnt-unifiac - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 - DEVICE_PROFILE := UBNT - IMAGE_SIZE := 7744k - MTDPARTS := spi0.0:384k(u-boot)ro,64k(u-boot-env)ro,7744k(firmware),7744k(ubnt-airos)ro,128k(bs)ro,256k(cfg)ro,64k(EEPROM)ro - IMAGES := sysupgrade.bin - IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) -endef - -define Device/ubnt-unifiac-lite - $(Device/ubnt-unifiac) - DEVICE_TITLE := Ubiquiti UniFi AC-Lite - DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x - DEVICE_PROFILE += UBNTUNIFIACLITE - BOARDNAME := UBNT-UF-AC-LITE -endef -TARGET_DEVICES += ubnt-unifiac-lite - -define Device/ubnt-unifiac-mesh - $(Device/ubnt-unifiac-lite) - DEVICE_TITLE := Ubiquiti UniFi AC-Mesh -endef -TARGET_DEVICES += ubnt-unifiac-mesh - -define Device/ubnt-unifiac-pro - $(Device/ubnt-unifiac) - DEVICE_TITLE := Ubiquiti UniFi AC-Pro - DEVICE_PACKAGES += kmod-ath10k ath10k-firmware-qca988x - DEVICE_PROFILE += UBNTUNIFIACPRO - BOARDNAME := UBNT-UF-AC-PRO -endef -TARGET_DEVICES += ubnt-unifiac-pro - -define Device/ubnt-unifi-outdoor - $(Device/ubnt-bz) - DEVICE_TITLE := Ubiquiti UniFi Outdoor - BOARDNAME := UBNT-U20 - DEVICE_PROFILE += UBNTUNIFIOUTDOOR -endef -TARGET_DEVICES += ubnt-unifi-outdoor - -define Device/ubnt-nano-m-xw - $(Device/ubnt-xw) - DEVICE_TITLE := Ubiquiti Nano M XW - BOARDNAME := UBNT-NM-XW -endef -TARGET_DEVICES += ubnt-nano-m-xw - -define Device/ubnt-loco-m-xw - $(Device/ubnt-xw) - DEVICE_TITLE := Ubiquiti Loco XW - BOARDNAME := UBNT-LOCO-XW -endef -TARGET_DEVICES += ubnt-loco-m-xw - -define Device/ubnt-rocket-m-xw - $(Device/ubnt-xw) - DEVICE_TITLE := Ubiquiti Rocket M XW - BOARDNAME := UBNT-RM-XW -endef -TARGET_DEVICES += ubnt-rocket-m-xw - -define Device/ubnt-rocket-m-ti - $(Device/ubnt-xw) - DEVICE_TITLE := Ubiquiti Rocket M TI - BOARDNAME := UBNT-RM-TI - UBNT_TYPE := TI -endef -TARGET_DEVICES += ubnt-rocket-m-ti - -define Device/ubnt-air-gateway - $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti Air Gateway - BOARDNAME := UBNT-AGW - UBNT_TYPE := AirGW - UBNT_CHIP := ar933x - CONSOLE := ttyATH0,115200 -endef -TARGET_DEVICES += ubnt-air-gateway - -define Device/ubnt-air-gateway-pro - $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti Air Gateway Pro - BOARDNAME := UBNT-AGWP - UBNT_TYPE := AirGWP - UBNT_CHIP := ar934x -endef -TARGET_DEVICES += ubnt-air-gateway-pro - -define Device/ubdev01 - $(Device/ubnt-xm) - DEVICE_TITLE := Ubiquiti ubDEV01 - MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7488k(firmware),64k(certs),256k(cfg)ro,64k(EEPROM)ro - BOARDNAME := UBNT-UF - UBNT_BOARD := UBDEV01 -endef -TARGET_DEVICES += ubdev01 - -define Device/ubnt-routerstation - DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 - DEVICE_PROFILE := UBNT - IMAGE_SIZE := 16128k - IMAGES := sysupgrade.bin factory.bin - IMAGE/factory.bin := append-rootfs | pad-rootfs | mkubntimage - IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE) - KERNEL := kernel-bin | patch-cmdline | lzma | pad-to $$(BLOCKSIZE) -endef - -define Device/ubnt-rs - $(Device/ubnt-routerstation) - DEVICE_TITLE := Ubiquiti RouterStation - BOARDNAME := UBNT-RS - DEVICE_PROFILE += UBNTRS - UBNT_BOARD := RS - UBNT_TYPE := RSx - UBNT_CHIP := ar7100 -endef -TARGET_DEVICES += ubnt-rs - -define Device/ubnt-rspro - $(Device/ubnt-routerstation) - DEVICE_TITLE := Ubiquiti RouterStation Pro - BOARDNAME := UBNT-RSPRO - DEVICE_PROFILE += UBNTRSPRO - UBNT_BOARD := RSPRO - UBNT_TYPE := RSPRO - UBNT_CHIP := ar7100pro -endef -TARGET_DEVICES += ubnt-rspro - -define Device/ubnt-ls-sr71 - $(Device/ubnt-routerstation) - DEVICE_TITLE := Ubiquiti LS-SR71 - BOARDNAME := UBNT-LS-SR71 - UBNT_BOARD := LS-SR71 - UBNT_TYPE := LS-SR71 - UBNT_CHIP := ar7100 -endef -TARGET_DEVICES += ubnt-ls-sr71 - -define Device/ubnt-uap-pro - DEVICE_TITLE := Ubiquiti UAP Pro - KERNEL_SIZE := 1536k - IMAGE_SIZE := 15744k - MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1536k(kernel),14208k(rootfs),256k(cfg)ro,64k(EEPROM)ro,15744k@0x50000(firmware) - UBNT_TYPE := BZ - UBNT_CHIP := ar934x - BOARDNAME := UAP-PRO - DEVICE_PROFILE := UBNT UAPPRO - KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | jffs2 kernel0 - IMAGES := sysupgrade.bin factory.bin - IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage2 -endef - -define Device/ubnt-unifi-outdoor-plus - $(Device/ubnt-uap-pro) - DEVICE_TITLE := Ubiquiti UniFi Outdoor Plus - UBNT_CHIP := ar7240 - BOARDNAME := UBNT-UOP - DEVICE_PROFILE := UBNT -endef