2
0

tp-link.mk 27 KB

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