tp-link.mk 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006
  1. DEVICE_VARS += TPLINK_HWID TPLINK_HWREV TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION TPLINK_BOARD_NAME
  2. # combine kernel and rootfs into one image
  3. # mktplinkfw <type> <optional extra arguments to mktplinkfw binary>
  4. # <type> is "sysupgrade" or "factory"
  5. #
  6. # -a align the rootfs start on an <align> bytes boundary
  7. # -j add jffs2 end-of-filesystem markers
  8. # -s strip padding from end of the image
  9. # -X reserve <size> bytes in the firmware image (hexval prefixed with 0x)
  10. define Build/mktplinkfw
  11. -$(STAGING_DIR_HOST)/bin/mktplinkfw \
  12. -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) \
  13. -m $(TPLINK_HEADER_VERSION) \
  14. -k $(IMAGE_KERNEL) \
  15. -r $@ \
  16. -o $@.new \
  17. -j -X 0x40000 \
  18. -a $(call rootfs_align,$(FILESYSTEM)) \
  19. $(wordlist 2,$(words $(1)),$(1)) \
  20. $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@
  21. endef
  22. # mktplinkfw-combined
  23. #
  24. # -c combined image
  25. define Build/mktplinkfw-combined
  26. $(STAGING_DIR_HOST)/bin/mktplinkfw \
  27. -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) -N OpenWrt -V $(REVISION) $(1) \
  28. -m $(TPLINK_HEADER_VERSION) \
  29. -k $@ \
  30. -o $@.new \
  31. -s -S \
  32. -c
  33. @mv $@.new $@
  34. endef
  35. # add RE450 and similar header to the kernel image
  36. define Build/mktplinkfw-kernel
  37. $(STAGING_DIR_HOST)/bin/mktplinkfw-kernel \
  38. -H $(TPLINK_HWID) -N OpenWrt -V $(REVISION) \
  39. -L $(KERNEL_LOADADDR) -E $(KERNEL_LOADADDR) \
  40. -k $@ \
  41. -o $@.new
  42. @mv $@.new $@
  43. endef
  44. define Device/tplink
  45. TPLINK_HWREV := 0x1
  46. TPLINK_HEADER_VERSION := 1
  47. LOADER_TYPE := gz
  48. KERNEL := kernel-bin | patch-cmdline | lzma
  49. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | mktplinkfw-combined
  50. IMAGES := sysupgrade.bin factory.bin
  51. IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade
  52. IMAGE/factory.bin := append-rootfs | mktplinkfw factory
  53. endef
  54. define Device/tplink-nolzma
  55. $(Device/tplink)
  56. LOADER_FLASH_OFFS := 0x22000
  57. COMPILE := loader-$(1).gz
  58. COMPILE/loader-$(1).gz := loader-okli-compile
  59. KERNEL := copy-file $(KDIR)/vmlinux.bin.lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1)
  60. KERNEL_INITRAMFS := copy-file $(KDIR)/vmlinux-initramfs.bin.lzma | loader-kernel-cmdline | mktplinkfw-combined
  61. endef
  62. define Device/tplink-4m
  63. $(Device/tplink-nolzma)
  64. TPLINK_FLASHLAYOUT := 4M
  65. IMAGE_SIZE := 3904k
  66. endef
  67. define Device/tplink-8m
  68. $(Device/tplink-nolzma)
  69. TPLINK_FLASHLAYOUT := 8M
  70. IMAGE_SIZE := 7936k
  71. endef
  72. define Device/tplink-4mlzma
  73. $(Device/tplink)
  74. TPLINK_FLASHLAYOUT := 4Mlzma
  75. IMAGE_SIZE := 3904k
  76. endef
  77. define Device/tplink-8mlzma
  78. $(Device/tplink)
  79. TPLINK_FLASHLAYOUT := 8Mlzma
  80. IMAGE_SIZE := 7936k
  81. endef
  82. define Device/tplink-16mlzma
  83. $(Device/tplink)
  84. TPLINK_FLASHLAYOUT := 16Mlzma
  85. IMAGE_SIZE := 15872k
  86. endef
  87. define Device/cpe510-520
  88. DEVICE_TITLE := TP-LINK CPE510/520
  89. DEVICE_PACKAGES := rssileds
  90. MTDPARTS := spi0.0:128k(u-boot)ro,64k(pation-table)ro,64k(product-info)ro,1536k(kernel),6144k(rootfs),192k(config)ro,64k(ART)ro,7680k@0x40000(firmware)
  91. IMAGE_SIZE := 7680k
  92. BOARDNAME := CPE510
  93. TPLINK_BOARD_NAME := CPE510
  94. DEVICE_PROFILE := CPE510
  95. LOADER_TYPE := elf
  96. KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
  97. IMAGES := sysupgrade.bin factory.bin
  98. IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
  99. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  100. endef
  101. define Device/cpe210-220
  102. $(Device/cpe510-520)
  103. DEVICE_TITLE := TP-LINK CPE210/220
  104. DEVICE_PACKAGES := rssileds
  105. BOARDNAME := CPE210
  106. TPLINK_BOARD_NAME := CPE210
  107. endef
  108. define Device/wbs210
  109. $(Device/cpe510-520)
  110. DEVICE_TITLE := TP-LINK WBS210
  111. DEVICE_PACKAGES := rssileds
  112. BOARDNAME := WBS210
  113. TPLINK_BOARD_NAME := WBS210
  114. endef
  115. define Device/wbs510
  116. $(Device/cpe510-520)
  117. DEVICE_TITLE := TP-LINK WBS510
  118. DEVICE_PACKAGES := rssileds
  119. BOARDNAME := WBS510
  120. TPLINK_BOARD_NAME := WBS510
  121. endef
  122. TARGET_DEVICES += cpe210-220 cpe510-520 wbs210 wbs510
  123. define Device/re450
  124. DEVICE_TITLE := TP-LINK RE450
  125. DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
  126. MTDPARTS := spi0.0:128k(u-boot)ro,1344k(kernel),4672k(rootfs),64k(pation-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro,6016k@0x20000(firmware)
  127. IMAGE_SIZE := 7936k
  128. BOARDNAME := RE450
  129. TPLINK_BOARD_NAME := RE450
  130. DEVICE_PROFILE := RE450
  131. LOADER_TYPE := elf
  132. KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-kernel
  133. IMAGES := sysupgrade.bin factory.bin
  134. IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
  135. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  136. endef
  137. TARGET_DEVICES += re450
  138. define Device/eap120
  139. DEVICE_TITLE := TP-LINK EAP120
  140. MTDPARTS := spi0.0:128k(u-boot)ro,64k(pation-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware)
  141. IMAGE_SIZE := 15872k
  142. BOARDNAME := EAP120
  143. TPLINK_BOARD_NAME := EAP120
  144. DEVICE_PROFILE := EAP120
  145. LOADER_TYPE := elf
  146. KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
  147. IMAGES := sysupgrade.bin factory.bin
  148. IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
  149. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  150. endef
  151. TARGET_DEVICES += eap120
  152. define Device/tl-wdr4300-v1
  153. $(Device/tplink-8mlzma)
  154. DEVICE_TITLE := TP-LINK TL-WDR4300 v1
  155. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  156. BOARDNAME := TL-WDR4300
  157. DEVICE_PROFILE := TLWDR4300
  158. TPLINK_HWID := 0x43000001
  159. IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
  160. endef
  161. define Device/tl-wdr3500-v1
  162. $(Device/tplink-8mlzma)
  163. DEVICE_TITLE := TP-LINK TL-WDR3500 v1
  164. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  165. BOARDNAME := TL-WDR3500
  166. DEVICE_PROFILE := TLWDR4300
  167. TPLINK_HWID := 0x35000001
  168. endef
  169. define Device/tl-wdr3600-v1
  170. $(Device/tplink-8mlzma)
  171. DEVICE_TITLE := TP-LINK TL-WDR3600 v1
  172. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  173. BOARDNAME := TL-WDR4300
  174. DEVICE_PROFILE := TLWDR4300
  175. TPLINK_HWID := 0x36000001
  176. IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
  177. endef
  178. define Device/tl-wdr4300-v1-il
  179. $(Device/tplink-8mlzma)
  180. DEVICE_TITLE := TP-LINK TL-WDR4300 v1 IL
  181. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  182. BOARDNAME := TL-WDR4300
  183. DEVICE_PROFILE := TLWDR4300
  184. TPLINK_HWID := 0x43008001
  185. endef
  186. define Device/tl-wdr4310-v1
  187. $(Device/tplink-8mlzma)
  188. DEVICE_TITLE := TP-LINK TL-WDR4310 v1
  189. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  190. BOARDNAME := TL-WDR4300
  191. DEVICE_PROFILE = TLWDR4300
  192. TPLINK_HWID := 0x43100001
  193. endef
  194. define Device/mw4530r-v1
  195. $(Device/tl-wdr4300-v1)
  196. DEVICE_TITLE := Mercury MW4530R v1
  197. TPLINK_HWID := 0x45300001
  198. endef
  199. TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1
  200. define Device/tl-wdr6500-v2
  201. $(Device/tplink-8mlzma)
  202. DEVICE_TITLE := TP-LINK TL-WDR6500v2
  203. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
  204. KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
  205. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | mktplinkfw-combined
  206. BOARDNAME = TL-WDR6500-v2
  207. DEVICE_PROFILE = TLWDR6500V2
  208. TPLINK_HWID := 0x65000002
  209. TPLINK_HEADER_VERSION := 2
  210. endef
  211. TARGET_DEVICES += tl-wdr6500-v2
  212. define Device/tl-wdr3320-v2
  213. $(Device/tplink-4mlzma)
  214. DEVICE_TITLE := TP-LINK TL-WDR3320v2
  215. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  216. BOARDNAME = TL-WDR3320-v2
  217. DEVICE_PROFILE = TLWDR3320V2
  218. TPLINK_HWID := 0x33200002
  219. TPLINK_HEADER_VERSION := 2
  220. endef
  221. TARGET_DEVICES += tl-wdr3320-v2
  222. define Device/archer-c5-v1
  223. $(Device/tplink-16mlzma)
  224. DEVICE_TITLE := TP-LINK Archer C5
  225. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
  226. BOARDNAME := ARCHER-C5
  227. DEVICE_PROFILE := ARCHERC7
  228. TPLINK_HWID := 0xc5000001
  229. endef
  230. define Device/archer-c7-v1
  231. $(Device/tplink-8mlzma)
  232. DEVICE_TITLE := TP-LINK Archer C7 v1
  233. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
  234. BOARDNAME := ARCHER-C7
  235. DEVICE_PROFILE := ARCHERC7
  236. TPLINK_HWID := 0x75000001
  237. endef
  238. define Device/archer-c7-v2
  239. $(Device/tplink-16mlzma)
  240. DEVICE_TITLE := TP-LINK Archer C7 v2
  241. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
  242. BOARDNAME := ARCHER-C7-V2
  243. DEVICE_PROFILE := ARCHERC7
  244. TPLINK_HWID := 0xc7000002
  245. IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin
  246. IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
  247. IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
  248. endef
  249. define Device/archer-c7-v2-il
  250. $(Device/tplink-16mlzma)
  251. DEVICE_TITLE := TP-LINK Archer C7 v2 IL
  252. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
  253. BOARDNAME := ARCHER-C7-V2
  254. DEVICE_PROFILE := ARCHERC7
  255. TPLINK_HWID := 0xc7000002
  256. TPLINK_HWREV := 0x494c0001
  257. endef
  258. define Device/tl-wdr7500-v3
  259. $(Device/tplink-8mlzma)
  260. DEVICE_TITLE := TP-LINK Archer C7 v3
  261. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
  262. BOARDNAME := ARCHER-C7
  263. DEVICE_PROFILE := ARCHERC7
  264. TPLINK_HWID := 0x75000003
  265. endef
  266. TARGET_DEVICES += archer-c5-v1 archer-c7-v1 archer-c7-v2 archer-c7-v2-il tl-wdr7500-v3
  267. define Device/tl-mr10u-v1
  268. $(Device/tplink-4mlzma)
  269. DEVICE_TITLE := TP-LINK TL-MR10U
  270. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  271. BOARDNAME := TL-MR10U
  272. DEVICE_PROFILE := TLMR10U
  273. TPLINK_HWID := 0x00100101
  274. CONSOLE := ttyATH0,115200
  275. endef
  276. define Device/tl-mr11u-v1
  277. $(Device/tplink-4mlzma)
  278. DEVICE_TITLE := TP-LINK TL-MR11U
  279. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  280. BOARDNAME := TL-MR11U
  281. DEVICE_PROFILE := TLMR11U
  282. TPLINK_HWID := 0x00110101
  283. CONSOLE := ttyATH0,115200
  284. endef
  285. define Device/tl-mr11u-v2
  286. $(Device/tplink-4mlzma)
  287. DEVICE_TITLE := TP-LINK TL-MR11U v2
  288. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  289. BOARDNAME := TL-MR11U
  290. DEVICE_PROFILE := TLMR11U
  291. TPLINK_HWID := 0x00110102
  292. CONSOLE := ttyATH0,115200
  293. endef
  294. define Device/tl-mr12u-v1
  295. $(Device/tplink-4mlzma)
  296. DEVICE_TITLE := TP-LINK TL-MR12U
  297. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  298. BOARDNAME := TL-MR13U
  299. DEVICE_PROFILE := TLMR12U
  300. TPLINK_HWID := 0x00120101
  301. CONSOLE := ttyATH0,115200
  302. endef
  303. define Device/tl-mr13u-v1
  304. $(Device/tplink-4mlzma)
  305. DEVICE_TITLE := TP-LINK TL-MR13U
  306. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  307. BOARDNAME := TL-MR13U
  308. DEVICE_PROFILE := TLMR13U
  309. TPLINK_HWID := 0x00130101
  310. CONSOLE := ttyATH0,115200
  311. endef
  312. TARGET_DEVICES += tl-mr10u-v1 tl-mr11u-v1 tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1
  313. define Device/tl-mr3020-v1
  314. $(Device/tplink-4mlzma)
  315. DEVICE_TITLE := TP-LINK TL-MR3020
  316. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  317. BOARDNAME := TL-MR3020
  318. DEVICE_PROFILE := TLMR3020
  319. TPLINK_HWID := 0x30200001
  320. CONSOLE := ttyATH0,115200
  321. endef
  322. define Device/tl-mr3040-v1
  323. $(Device/tplink-4mlzma)
  324. DEVICE_TITLE := TP-LINK TL-MR3040
  325. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  326. BOARDNAME := TL-MR3040
  327. DEVICE_PROFILE := TLMR3040
  328. TPLINK_HWID := 0x30400001
  329. CONSOLE := ttyATH0,115200
  330. endef
  331. define Device/tl-mr3040-v2
  332. $(Device/tplink-4mlzma)
  333. DEVICE_TITLE := TP-LINK TL-MR3040
  334. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  335. BOARDNAME := TL-MR3040-v2
  336. DEVICE_PROFILE := TLMR3040
  337. TPLINK_HWID := 0x30400002
  338. CONSOLE := ttyATH0,115200
  339. endef
  340. define Device/tl-mr3220-v1
  341. $(Device/tplink-4m)
  342. DEVICE_TITLE := TP-LINK TL-MR3220
  343. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  344. BOARDNAME := TL-MR3220
  345. DEVICE_PROFILE := TLMR3220
  346. TPLINK_HWID := 0x32200001
  347. endef
  348. define Device/tl-mr3220-v2
  349. $(Device/tplink-4mlzma)
  350. DEVICE_TITLE := TP-LINK TL-MR3220 v2
  351. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  352. BOARDNAME := TL-MR3220-v2
  353. DEVICE_PROFILE := TLMR3220
  354. TPLINK_HWID := 0x32200002
  355. CONSOLE := ttyATH0,115200
  356. endef
  357. define Device/tl-mr3420-v1
  358. $(Device/tplink-4m)
  359. DEVICE_TITLE := TP-LINK TL-MR3420
  360. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  361. BOARDNAME := TL-MR3420
  362. DEVICE_PROFILE := TLMR3420
  363. TPLINK_HWID := 0x34200001
  364. endef
  365. define Device/tl-mr3420-v2
  366. $(Device/tplink-4mlzma)
  367. DEVICE_TITLE := TP-LINK TL-MR3420 v2
  368. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  369. BOARDNAME := TL-MR3420-v2
  370. DEVICE_PROFILE := TLMR3420
  371. TPLINK_HWID := 0x34200002
  372. endef
  373. TARGET_DEVICES += tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v1 tl-mr3220-v2 tl-mr3420-v1 tl-mr3420-v2
  374. define Device/tl-wpa8630
  375. $(Device/tplink-8mlzma)
  376. DEVICE_TITLE := TP-LINK TL-WPA8630
  377. DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
  378. BOARDNAME := TL-WPA8630
  379. DEVICE_PROFILE := TL-WPA8630
  380. TPLINK_HWID := 0x86300001
  381. endef
  382. TARGET_DEVICES += tl-wpa8630
  383. define Device/tl-wr703n-v1
  384. $(Device/tplink-4mlzma)
  385. DEVICE_TITLE := TP-LINK TL-WR703N
  386. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  387. BOARDNAME := TL-WR703N
  388. DEVICE_PROFILE := TLWR703
  389. TPLINK_HWID := 0x07030101
  390. CONSOLE := ttyATH0,115200
  391. endef
  392. define Device/tl-wr710n-v1
  393. $(Device/tplink-8mlzma)
  394. DEVICE_TITLE := TP-LINK TL-WR710N
  395. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  396. BOARDNAME := TL-WR710N
  397. DEVICE_PROFILE := TLWR710
  398. TPLINK_HWID := 0x07100001
  399. CONSOLE := ttyATH0,115200
  400. IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
  401. endef
  402. define Device/tl-wr710n-v2
  403. $(Device/tplink-4mlzma)
  404. DEVICE_TITLE := TP-LINK TL-WR710N v2
  405. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  406. BOARDNAME := TL-WR710N v2
  407. DEVICE_PROFILE := TLWR710
  408. TPLINK_HWID := 0x07100002
  409. CONSOLE := ttyATH0,115200
  410. endef
  411. define Device/tl-wr710n-v2.1
  412. $(Device/tplink-8mlzma)
  413. DEVICE_TITLE := TP-LINK TL-WR710N v2.1
  414. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  415. BOARDNAME := TL-WR710N v2.1
  416. DEVICE_PROFILE := TLWR710
  417. TPLINK_HWID := 0x07100002
  418. TPLINK_HWREV := 0x00000002
  419. CONSOLE := ttyATH0,115200
  420. endef
  421. define Device/tl-wr720n-v3
  422. $(Device/tplink-4mlzma)
  423. DEVICE_TITLE := TP-LINK TL-WR720N v3
  424. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  425. BOARDNAME := TL-WR720N-v3
  426. DEVICE_PROFILE := TLWR720
  427. TPLINK_HWID := 0x07200103
  428. CONSOLE := ttyATH0,115200
  429. endef
  430. define Device/tl-wr720n-v4
  431. $(Device/tplink-4mlzma)
  432. DEVICE_TITLE := TP-LINK TL-WR720N v4
  433. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  434. BOARDNAME := TL-WR720N-v3
  435. DEVICE_PROFILE := TLWR720
  436. TPLINK_HWID := 0x07200104
  437. CONSOLE := ttyATH0,115200
  438. endef
  439. TARGET_DEVICES += tl-wr703n-v1 tl-wr710n-v1 tl-wr710n-v2 tl-wr710n-v2.1 tl-wr720n-v3 tl-wr720n-v4
  440. define Device/tl-wr740n-v1
  441. $(Device/tplink-4m)
  442. DEVICE_TITLE := TP-LINK TL-WR740N/ND v1
  443. BOARDNAME := TL-WR741ND
  444. DEVICE_PROFILE := TLWR740
  445. TPLINK_HWID := 0x07400001
  446. endef
  447. define Device/tl-wr740n-v3
  448. $(Device/tplink-4m)
  449. DEVICE_TITLE := TP-LINK TL-WR740N/ND v3
  450. BOARDNAME := TL-WR741ND
  451. DEVICE_PROFILE := TLWR740
  452. TPLINK_HWID := 0x07400003
  453. endef
  454. define Device/tl-wr740n-v4
  455. $(Device/tplink-4mlzma)
  456. DEVICE_TITLE := TP-LINK TL-WR740N/ND v4
  457. BOARDNAME := TL-WR741ND-v4
  458. DEVICE_PROFILE := TLWR740
  459. TPLINK_HWID := 0x07400004
  460. CONSOLE := ttyATH0,115200
  461. endef
  462. define Device/tl-wr740n-v5
  463. $(Device/tplink-4mlzma)
  464. DEVICE_TITLE := TP-LINK TL-WR740N/ND v5
  465. BOARDNAME := TL-WR741ND-v4
  466. DEVICE_PROFILE := TLWR740
  467. TPLINK_HWID := 0x07400005
  468. CONSOLE := ttyATH0,115200
  469. endef
  470. define Device/tl-wr740n-v6
  471. $(Device/tplink-4mlzma)
  472. DEVICE_TITLE := TP-LINK TL-WR740N/ND v6
  473. BOARDNAME := TL-WR841N-v9
  474. DEVICE_PROFILE := TLWR740
  475. TPLINK_HWID := 0x07400006
  476. endef
  477. define Device/tl-wr741nd-v1
  478. $(Device/tplink-4m)
  479. DEVICE_TITLE := TP-LINK TL-WR741N/ND v1
  480. BOARDNAME := TL-WR741ND
  481. DEVICE_PROFILE := TLWR741
  482. TPLINK_HWID := 0x07410001
  483. endef
  484. define Device/tl-wr741nd-v2
  485. $(Device/tplink-4m)
  486. DEVICE_TITLE := TP-LINK TL-WR741N/ND v2
  487. BOARDNAME := TL-WR741ND
  488. DEVICE_PROFILE := TLWR741
  489. TPLINK_HWID := 0x07410001
  490. endef
  491. define Device/tl-wr741nd-v4
  492. $(Device/tplink-4mlzma)
  493. DEVICE_TITLE := TP-LINK TL-WR741N/ND v4
  494. BOARDNAME := TL-WR741ND-v4
  495. DEVICE_PROFILE := TLWR741
  496. TPLINK_HWID := 0x07410004
  497. CONSOLE := ttyATH0,115200
  498. endef
  499. define Device/tl-wr741nd-v5
  500. $(Device/tplink-4mlzma)
  501. DEVICE_TITLE := TP-LINK TL-WR741N/ND v5
  502. BOARDNAME := TL-WR741ND-v4
  503. DEVICE_PROFILE := TLWR741
  504. TPLINK_HWID := 0x07400005
  505. CONSOLE := ttyATH0,115200
  506. endef
  507. define Device/tl-wr810n
  508. $(Device/tplink-8mlzma)
  509. DEVICE_TITLE := TP-Link TL-WR810N
  510. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  511. BOARDNAME := TL-WR810N
  512. DEVICE_PROFILE := TLWR810
  513. TPLINK_HWID := 0x08100001
  514. endef
  515. TARGET_DEVICES += tl-wr810n
  516. define Device/tl-wr743nd-v1
  517. $(Device/tplink-4m)
  518. DEVICE_TITLE := TP-LINK TL-WR743N/ND v1
  519. BOARDNAME := TL-WR741ND
  520. DEVICE_PROFILE := TLWR743
  521. TPLINK_HWID := 0x07430001
  522. endef
  523. define Device/tl-wr743nd-v2
  524. $(Device/tplink-4mlzma)
  525. DEVICE_TITLE := TP-LINK TL-WR743N/ND v2
  526. BOARDNAME := TL-WR741ND-v4
  527. DEVICE_PROFILE := TLWR743
  528. TPLINK_HWID := 0x07430002
  529. CONSOLE := ttyATH0,115200
  530. endef
  531. TARGET_DEVICES += tl-wr740n-v1 tl-wr740n-v3 tl-wr740n-v4 tl-wr740n-v5 tl-wr740n-v6 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v1 tl-wr743nd-v2
  532. define Device/tl-wr802n-v1
  533. $(Device/tplink-4mlzma)
  534. DEVICE_TITLE := TP-LINK TL-WR802N v1
  535. BOARDNAME := TL-WR802N-v1
  536. DEVICE_PROFILE := TLWR802
  537. TPLINK_HWID := 0x08020001
  538. TPLINK_HWREV := 1
  539. endef
  540. TARGET_DEVICES += tl-wr802n-v1
  541. define Device/tl-wr841-v1.5
  542. $(Device/tplink-4m)
  543. DEVICE_TITLE := TP-LINK TL-WR841N/ND v1.5
  544. BOARDNAME := TL-WR841N-v1.5
  545. DEVICE_PROFILE := TLWR841
  546. TPLINK_HWID := 0x08410002
  547. TPLINK_HWREV := 2
  548. endef
  549. define Device/tl-wr841-v3
  550. $(Device/tplink-4m)
  551. DEVICE_TITLE := TP-LINK TL-WR841N/ND v3
  552. BOARDNAME := TL-WR941ND
  553. DEVICE_PROFILE := TLWR841
  554. TPLINK_HWID := 0x08410003
  555. TPLINK_HWREV := 3
  556. endef
  557. define Device/tl-wr841-v5
  558. $(Device/tplink-4m)
  559. DEVICE_TITLE := TP-LINK TL-WR841N/ND v5
  560. BOARDNAME := TL-WR741ND
  561. DEVICE_PROFILE := TLWR841
  562. TPLINK_HWID := 0x08410005
  563. endef
  564. define Device/tl-wr841-v7
  565. $(Device/tplink-4m)
  566. DEVICE_TITLE := TP-LINK TL-WR841N/ND v7
  567. BOARDNAME := TL-WR841N-v7
  568. DEVICE_PROFILE := TLWR841
  569. TPLINK_HWID := 0x08410007
  570. endef
  571. define Device/tl-wr841-v8
  572. $(Device/tplink-4mlzma)
  573. DEVICE_TITLE := TP-LINK TL-WR841N/ND v8
  574. BOARDNAME := TL-WR841N-v8
  575. DEVICE_PROFILE := TLWR841
  576. TPLINK_HWID := 0x08410008
  577. endef
  578. define Device/tl-wr841-v9
  579. $(Device/tplink-4mlzma)
  580. DEVICE_TITLE := TP-LINK TL-WR841N/ND v9
  581. BOARDNAME := TL-WR841N-v9
  582. DEVICE_PROFILE := TLWR841
  583. TPLINK_HWID := 0x08410009
  584. endef
  585. define Device/tl-wr841-v10
  586. $(Device/tplink-4mlzma)
  587. DEVICE_TITLE := TP-LINK TL-WR841N/ND v10
  588. BOARDNAME := TL-WR841N-v9
  589. DEVICE_PROFILE := TLWR841
  590. TPLINK_HWID := 0x08410010
  591. endef
  592. define Device/tl-wr841-v11
  593. $(Device/tplink-4mlzma)
  594. DEVICE_TITLE := TP-LINK TL-WR841N/ND v11
  595. BOARDNAME := TL-WR841N-v11
  596. DEVICE_PROFILE := TLWR841
  597. TPLINK_HWID := 0x08410011
  598. IMAGES += factory-us.bin factory-eu.bin
  599. IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
  600. IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
  601. endef
  602. define Device/tl-wr841-v12
  603. $(Device/tl-wr841-v11)
  604. DEVICE_TITLE := TP-LINK TL-WR841N/ND v12
  605. TPLINK_HWID := 0x08410012
  606. endef
  607. define Device/tl-wr842n-v1
  608. $(Device/tplink-8m)
  609. DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
  610. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  611. BOARDNAME := TL-MR3420
  612. DEVICE_PROFILE := TLWR842
  613. TPLINK_HWID := 0x08420001
  614. endef
  615. define Device/tl-wr842n-v2
  616. $(Device/tplink-8mlzma)
  617. DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
  618. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  619. BOARDNAME := TL-WR842N-v2
  620. DEVICE_PROFILE := TLWR842
  621. TPLINK_HWID := 0x8420002
  622. endef
  623. define Device/tl-wr842n-v3
  624. $(Device/tplink-16mlzma)
  625. DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
  626. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  627. BOARDNAME := TL-WR842N-v3
  628. DEVICE_PROFILE := TLWR842
  629. TPLINK_HWID := 0x08420003
  630. endef
  631. define Device/tl-wr843nd-v1
  632. $(Device/tplink-4mlzma)
  633. DEVICE_TITLE := TP-LINK TL-WR843N/ND
  634. BOARDNAME := TL-WR841N-v8
  635. DEVICE_PROFILE := TLWR843
  636. TPLINK_HWID := 0x08430001
  637. endef
  638. define Device/tl-wr847n-v8
  639. $(Device/tplink-4mlzma)
  640. DEVICE_TITLE := TP-LINK TL-WR847N/ND v8
  641. BOARDNAME := TL-WR841N-v8
  642. DEVICE_PROFILE := TLWR841
  643. TPLINK_HWID := 0x08470008
  644. endef
  645. TARGET_DEVICES += tl-wr841-v1.5 tl-wr841-v3 tl-wr841-v5 tl-wr841-v7 tl-wr841-v8 tl-wr841-v9 tl-wr841-v10 tl-wr841-v11 tl-wr841-v12 tl-wr842n-v1 tl-wr842n-v2 tl-wr842n-v3 tl-wr843nd-v1 tl-wr847n-v8
  646. define Device/tl-wr941nd-v2
  647. $(Device/tplink-4m)
  648. DEVICE_TITLE := TP-LINK TL-WR941N/ND v2
  649. BOARDNAME := TL-WR941ND
  650. DEVICE_PROFILE := TLWR941
  651. TPLINK_HWID := 0x09410002
  652. TPLINK_HWREV := 2
  653. endef
  654. define Device/tl-wr941nd-v3
  655. $(Device/tplink-4m)
  656. DEVICE_TITLE := TP-LINK TL-WR941N/ND v3
  657. BOARDNAME := TL-WR941ND
  658. DEVICE_PROFILE := TLWR941
  659. TPLINK_HWID := 0x09410002
  660. TPLINK_HWREV := 2
  661. endef
  662. define Device/tl-wr941nd-v4
  663. $(Device/tplink-4m)
  664. DEVICE_TITLE := TP-LINK TL-WR941N/ND v4
  665. BOARDNAME := TL-WR741ND
  666. DEVICE_PROFILE := TLWR941
  667. TPLINK_HWID := 0x09410004
  668. endef
  669. define Device/tl-wr941nd-v5
  670. $(Device/tplink-4mlzma)
  671. DEVICE_TITLE := TP-LINK TL-WR941N/ND v5
  672. BOARDNAME := TL-WR941ND-v5
  673. DEVICE_PROFILE := TLWR941
  674. TPLINK_HWID := 0x09410005
  675. endef
  676. define Device/tl-wr941nd-v6
  677. $(Device/tplink-4mlzma)
  678. DEVICE_TITLE := TP-LINK TL-WR941N/ND v6
  679. BOARDNAME := TL-WR941ND-v6
  680. DEVICE_PROFILE := TLWR941
  681. TPLINK_HWID := 0x09410006
  682. endef
  683. define Device/tl-wr940n-v4
  684. $(Device/tplink-4mlzma)
  685. DEVICE_TITLE := TP-LINK TL-WR940N v4
  686. BOARDNAME := TL-WR940N-v4
  687. DEVICE_PROFILE := TLWR941
  688. TPLINK_HWID := 0x09400004
  689. IMAGES += factory-us.bin factory-eu.bin
  690. IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
  691. IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
  692. endef
  693. # Chinese version (unlike European) is similar to the TL-WDR3500
  694. define Device/tl-wr941nd-v6-cn
  695. $(Device/tplink-4mlzma)
  696. DEVICE_TITLE := TP-LINK TL-WR941N/ND v6 (CN)
  697. BOARDNAME := TL-WDR3500
  698. DEVICE_PROFILE := TLWR941
  699. TPLINK_HWID := 0x09410006
  700. endef
  701. TARGET_DEVICES += tl-wr941nd-v2 tl-wr941nd-v3 tl-wr941nd-v4 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr941nd-v6-cn tl-wr940n-v4
  702. define Device/tl-wr1041n-v2
  703. $(Device/tplink-4mlzma)
  704. DEVICE_TITLE := TP-LINK TL-WR1041N
  705. BOARDNAME := TL-WR1041N-v2
  706. DEVICE_PROFILE := TLWR1041
  707. TPLINK_HWID := 0x10410002
  708. endef
  709. TARGET_DEVICES += tl-wr1041n-v2
  710. define Device/tl-wr1043nd-v1
  711. $(Device/tplink-8m)
  712. DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
  713. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  714. BOARDNAME := TL-WR1043ND
  715. DEVICE_PROFILE := TLWR1043
  716. TPLINK_HWID := 0x10430001
  717. endef
  718. define Device/tl-wr1043nd-v2
  719. $(Device/tplink-8mlzma)
  720. DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
  721. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  722. BOARDNAME := TL-WR1043ND-v2
  723. DEVICE_PROFILE := TLWR1043
  724. TPLINK_HWID := 0x10430002
  725. endef
  726. define Device/tl-wr1043nd-v3
  727. $(Device/tplink-8mlzma)
  728. DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
  729. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  730. BOARDNAME := TL-WR1043ND-v2
  731. DEVICE_PROFILE := TLWR1043
  732. TPLINK_HWID := 0x10430003
  733. endef
  734. define Device/tl-wr1043nd-v4
  735. $(Device/tplink)
  736. DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
  737. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  738. BOARDNAME := TL-WR1043ND-v4
  739. DEVICE_PROFILE := TLWR1043
  740. TPLINK_HWID := 0x10430004
  741. TPLINK_FLASHLAYOUT := 16Msafeloader
  742. 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)
  743. IMAGE_SIZE := 15552k
  744. TPLINK_BOARD_NAME := TLWR1043NDV4
  745. KERNEL := kernel-bin | patch-cmdline | lzma | mktplinkfw-combined
  746. IMAGES := sysupgrade.bin factory.bin
  747. IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
  748. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  749. endef
  750. TARGET_DEVICES += tl-wr1043nd-v1 tl-wr1043nd-v2 tl-wr1043nd-v3 tl-wr1043nd-v4
  751. define Device/tl-wr2543-v1
  752. $(Device/tplink-8mlzma)
  753. DEVICE_TITLE := TP-LINK TL-WR2543N/ND
  754. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  755. BOARDNAME := TL-WR2543N
  756. DEVICE_PROFILE := TLWR2543
  757. TPLINK_HWID := 0x25430001
  758. IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
  759. IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
  760. endef
  761. TARGET_DEVICES += tl-wr2543-v1
  762. define Device/tl-wdr4900-v2
  763. $(Device/tplink-8mlzma)
  764. DEVICE_TITLE := TP-LINK TL-WDR4900v2
  765. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  766. BOARDNAME := TL-WDR4900-v2
  767. DEVICE_PROFILE := TLWDR4900V2
  768. TPLINK_HWID := 0x49000002
  769. endef
  770. TARGET_DEVICES += tl-wdr4900-v2
  771. define Device/tl-wa701nd-v1
  772. $(Device/tplink-4m)
  773. DEVICE_TITLE := TP-LINK TL-WA701N/ND v1
  774. BOARDNAME := TL-WA901ND
  775. DEVICE_PROFILE := TLWA701
  776. TPLINK_HWID := 0x07010001
  777. endef
  778. define Device/tl-wa701nd-v2
  779. $(Device/tplink-4mlzma)
  780. DEVICE_TITLE := TP-LINK TL-WA701N/ND v2
  781. BOARDNAME := TL-WA701ND-v2
  782. DEVICE_PROFILE := TLWA701
  783. TPLINK_HWID := 0x07010002
  784. CONSOLE := ttyATH0,115200
  785. endef
  786. define Device/tl-wa730re-v1
  787. $(Device/tplink-4m)
  788. DEVICE_TITLE := TP-LINK TL-WA730RE
  789. BOARDNAME := TL-WA901ND
  790. DEVICE_PROFILE := TLWA730RE
  791. TPLINK_HWID := 0x07300001
  792. endef
  793. define Device/tl-wa750re-v1
  794. $(Device/tplink-4mlzma)
  795. DEVICE_TITLE := TP-LINK TL-WA750RE
  796. DEVICE_PACKAGES := rssileds
  797. BOARDNAME := TL-WA750RE
  798. DEVICE_PROFILE := TLWA750
  799. TPLINK_HWID := 0x07500001
  800. endef
  801. define Device/tl-wa7510n
  802. $(Device/tplink-4m)
  803. DEVICE_TITLE := TP-LINK TL-WA7510N
  804. BOARDNAME := TL-WA7510N
  805. DEVICE_PROFILE := TLWA7510
  806. TPLINK_HWID := 0x75100001
  807. endef
  808. TARGET_DEVICES += tl-wa701nd-v1 tl-wa701nd-v2 tl-wa730re-v1 tl-wa750re-v1 tl-wa7510n
  809. define Device/tl-wa801nd-v1
  810. $(Device/tplink-4m)
  811. DEVICE_TITLE := TP-LINK TL-WA801N/ND v1
  812. BOARDNAME := TL-WA901ND
  813. DEVICE_PROFILE := TLWA801
  814. TPLINK_HWID := 0x08010001
  815. endef
  816. define Device/tl-wa801nd-v2
  817. $(Device/tplink-4mlzma)
  818. DEVICE_TITLE := TP-LINK TL-WA801N/ND v2
  819. BOARDNAME := TL-WA801ND-v2
  820. DEVICE_PROFILE := TLWA801
  821. TPLINK_HWID := 0x08010002
  822. endef
  823. define Device/tl-wa801nd-v3
  824. $(Device/tplink-4mlzma)
  825. DEVICE_TITLE := TP-LINK TL-WA801N/ND v3
  826. BOARDNAME := TL-WA801ND-v3
  827. DEVICE_PROFILE := TLWA801
  828. TPLINK_HWID := 0x08010003
  829. endef
  830. define Device/tl-wa830re-v1
  831. $(Device/tplink-4m)
  832. DEVICE_TITLE := TP-LINK TL-WA830RE
  833. BOARDNAME := TL-WA901ND
  834. DEVICE_PROFILE := TLWA830
  835. TPLINK_HWID := 0x08300010
  836. endef
  837. define Device/tl-wa830re-v2
  838. $(Device/tplink-4mlzma)
  839. DEVICE_TITLE := TP-LINK TL-WA830RE
  840. BOARDNAME := TL-WA830RE-v2
  841. DEVICE_PROFILE := TLWA830
  842. TPLINK_HWID := 0x08300002
  843. endef
  844. define Device/tl-wa850re-v1
  845. $(Device/tplink-4mlzma)
  846. DEVICE_TITLE := TP-LINK TL-WA850RE
  847. DEVICE_PACKAGES := rssileds
  848. BOARDNAME := TL-WA850RE
  849. DEVICE_PROFILE := TLWA850
  850. TPLINK_HWID := 0x08500001
  851. endef
  852. define Device/tl-wa860re-v1
  853. $(Device/tplink-4mlzma)
  854. DEVICE_TITLE := TP-LINK TL-WA860RE
  855. BOARDNAME := TL-WA860RE
  856. DEVICE_PROFILE := TLWA860
  857. TPLINK_HWID := 0x08600001
  858. endef
  859. TARGET_DEVICES += tl-wa801nd-v1 tl-wa801nd-v2 tl-wa801nd-v3 tl-wa830re-v1 tl-wa830re-v2 tl-wa850re-v1 tl-wa860re-v1
  860. define Device/tl-wa901nd-v1
  861. $(Device/tplink-4m)
  862. DEVICE_TITLE := TP-LINK TL-WA901N/ND v1
  863. BOARDNAME := TL-WA901ND
  864. DEVICE_PROFILE := TLWA901
  865. TPLINK_HWID := 0x09010001
  866. endef
  867. define Device/tl-wa901nd-v2
  868. $(Device/tplink-4m)
  869. DEVICE_TITLE := TP-LINK TL-WA901N/ND v2
  870. BOARDNAME := TL-WA901ND-v2
  871. DEVICE_PROFILE := TLWA901
  872. TPLINK_HWID := 0x09010002
  873. endef
  874. define Device/tl-wa901nd-v3
  875. $(Device/tplink-4mlzma)
  876. DEVICE_TITLE := TP-LINK TL-WA901N/ND v3
  877. BOARDNAME := TL-WA901ND-v3
  878. DEVICE_PROFILE := TLWA901
  879. TPLINK_HWID := 0x09010003
  880. endef
  881. define Device/tl-wa901nd-v4
  882. $(Device/tplink-4mlzma)
  883. DEVICE_TITLE := TP-LINK TL-WA901N/ND v4
  884. BOARDNAME := TL-WA901ND-v4
  885. DEVICE_PROFILE := TLWA901
  886. TPLINK_HWID := 0x09010004
  887. IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU
  888. endef
  889. TARGET_DEVICES += tl-wa901nd-v1 tl-wa901nd-v2 tl-wa901nd-v3 tl-wa901nd-v4
  890. define Device/tl-wa7210n-v2
  891. $(Device/tplink-4mlzma)
  892. DEVICE_TITLE := TP-LINK TL-WA7210N
  893. DEVICE_PACKAGES := rssileds kmod-ledtrig-netdev
  894. BOARDNAME := TL-WA7210N-v2
  895. DEVICE_PROFILE := TLWA7210
  896. TPLINK_HWID := 0x72100002
  897. CONSOLE := ttyATH0,115200
  898. endef
  899. TARGET_DEVICES += tl-wa7210n-v2