tp-link.mk 28 KB

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