1
0

tp-link.mk 26 KB

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