generic-tp-link.mk 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. include ./common-tp-link.mk
  2. define Device/archer-cxx
  3. $(Device/tplink-safeloader)
  4. KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
  5. endef
  6. define Device/archer-c5-v1
  7. $(Device/tplink-16mlzma)
  8. DEVICE_TITLE := TP-LINK Archer C5 v1
  9. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  10. BOARDNAME := ARCHER-C5
  11. DEVICE_PROFILE := ARCHERC7
  12. TPLINK_HWID := 0xc5000001
  13. endef
  14. TARGET_DEVICES += archer-c5-v1
  15. define Device/archer-c7-v1
  16. $(Device/tplink-8mlzma)
  17. DEVICE_TITLE := TP-LINK Archer C7 v1
  18. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  19. BOARDNAME := ARCHER-C7
  20. DEVICE_PROFILE := ARCHERC7
  21. TPLINK_HWID := 0x75000001
  22. endef
  23. TARGET_DEVICES += archer-c7-v1
  24. define Device/archer-c7-v2
  25. $(Device/tplink-16mlzma)
  26. DEVICE_TITLE := TP-LINK Archer C7 v2
  27. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  28. BOARDNAME := ARCHER-C7-V2
  29. DEVICE_PROFILE := ARCHERC7
  30. TPLINK_HWID := 0xc7000002
  31. IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin
  32. IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
  33. IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
  34. endef
  35. TARGET_DEVICES += archer-c7-v2
  36. define Device/archer-c7-v2-il
  37. $(Device/tplink-16mlzma)
  38. DEVICE_TITLE := TP-LINK Archer C7 v2 (IL)
  39. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  40. BOARDNAME := ARCHER-C7-V2
  41. DEVICE_PROFILE := ARCHERC7
  42. TPLINK_HWID := 0xc7000002
  43. TPLINK_HWREV := 0x494c0001
  44. endef
  45. TARGET_DEVICES += archer-c7-v2-il
  46. define Device/cpe510-520-v1
  47. DEVICE_TITLE := TP-LINK CPE510/520 v1
  48. BOARDNAME := CPE510
  49. TPLINK_BOARD_ID := CPE510
  50. LOADER_TYPE := elf
  51. LOADER_FLASH_OFFS := 0x43000
  52. COMPILE := loader-$(1).elf
  53. COMPILE/loader-$(1).elf := loader-okli-compile
  54. KERNEL := kernel-bin | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 12288
  55. IMAGES += factory.bin
  56. IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
  57. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  58. DEVICE_PACKAGES := rssileds
  59. MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1792k(kernel),5888k(rootfs),192k(config)ro,64k(ART)ro,7680k@0x40000(firmware)
  60. IMAGE_SIZE := 7680k
  61. endef
  62. TARGET_DEVICES += cpe510-520-v1
  63. define Device/cpe510-v2
  64. $(Device/cpe510-520-v1)
  65. DEVICE_TITLE := TP-LINK CPE510 v2
  66. BOARDNAME := CPE510V2
  67. TPLINK_BOARD_ID := CPE510V2
  68. endef
  69. TARGET_DEVICES += cpe510-v2
  70. define Device/cpe210-220-v1
  71. $(Device/cpe510-520-v1)
  72. DEVICE_TITLE := TP-LINK CPE210/220 v1
  73. BOARDNAME := CPE210
  74. TPLINK_BOARD_ID := CPE210
  75. endef
  76. TARGET_DEVICES += cpe210-220-v1
  77. define Device/cpe210-v2
  78. $(Device/tplink-safeloader)
  79. DEVICE_TITLE := TP-LINK CPE210 v2
  80. BOARDNAME := CPE210V2
  81. TPLINK_BOARD_ID := CPE210V2
  82. TPLINK_HWID := 0x0
  83. TPLINK_HWREV := 0
  84. MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,7680k(firmware),192k(config)ro,64k(ART)ro
  85. IMAGE_SIZE := 7680k
  86. KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header -O
  87. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | tplink-v1-header
  88. DEVICE_PACKAGES := rssileds
  89. endef
  90. TARGET_DEVICES += cpe210-v2
  91. define Device/cpe210-v3
  92. $(Device/tplink-safeloader)
  93. DEVICE_TITLE := TP-LINK CPE210 v3
  94. BOARDNAME := CPE210V3
  95. TPLINK_BOARD_ID := CPE210V3
  96. TPLINK_HWID := 0x0
  97. TPLINK_HWREV := 0
  98. MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,7680k(firmware),192k(config)ro,64k(ART)ro
  99. IMAGE_SIZE := 7680k
  100. KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header -O
  101. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | tplink-v1-header
  102. DEVICE_PACKAGES := rssileds
  103. endef
  104. TARGET_DEVICES += cpe210-v3
  105. define Device/wbs210-v1
  106. $(Device/cpe510-520-v1)
  107. DEVICE_TITLE := TP-LINK WBS210 v1
  108. BOARDNAME := WBS210
  109. TPLINK_BOARD_ID := WBS210
  110. endef
  111. TARGET_DEVICES += wbs210-v1
  112. define Device/wbs510-v1
  113. $(Device/cpe510-520-v1)
  114. DEVICE_TITLE := TP-LINK WBS510 v1
  115. BOARDNAME := WBS510
  116. TPLINK_BOARD_ID := WBS510
  117. endef
  118. TARGET_DEVICES += wbs510-v1
  119. define Device/eap120-v1
  120. DEVICE_TITLE := TP-LINK EAP120 v1
  121. MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware)
  122. IMAGE_SIZE := 15872k
  123. BOARDNAME := EAP120
  124. TPLINK_BOARD_ID := EAP120
  125. DEVICE_PROFILE := EAP120
  126. LOADER_TYPE := elf
  127. KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
  128. IMAGES := sysupgrade.bin factory.bin
  129. IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
  130. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  131. endef
  132. TARGET_DEVICES += eap120-v1
  133. define Device/tl-mr6400-v1
  134. $(Device/tplink-8mlzma)
  135. DEVICE_TITLE := TP-LINK TL-MR6400 v1
  136. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
  137. BOARDNAME := TL-MR6400
  138. DEVICE_PROFILE := TLMR6400
  139. TPLINK_HWID := 0x64000001
  140. endef
  141. TARGET_DEVICES += tl-mr6400-v1
  142. define Device/tl-wdr3500-v1
  143. $(Device/tplink-8mlzma)
  144. DEVICE_TITLE := TP-LINK TL-WDR3500 v1
  145. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  146. BOARDNAME := TL-WDR3500
  147. DEVICE_PROFILE := TLWDR4300
  148. TPLINK_HWID := 0x35000001
  149. endef
  150. TARGET_DEVICES += tl-wdr3500-v1
  151. define Device/tl-wdr3600-v1
  152. $(Device/tl-wdr3500-v1)
  153. DEVICE_TITLE := TP-LINK TL-WDR3600 v1
  154. BOARDNAME := TL-WDR4300
  155. TPLINK_HWID := 0x36000001
  156. IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
  157. endef
  158. TARGET_DEVICES += tl-wdr3600-v1
  159. define Device/tl-wdr4300-v1
  160. $(Device/tl-wdr3600-v1)
  161. DEVICE_TITLE := TP-LINK TL-WDR4300 v1
  162. TPLINK_HWID := 0x43000001
  163. endef
  164. TARGET_DEVICES += tl-wdr4300-v1
  165. define Device/tl-wdr4300-v1-il
  166. $(Device/tl-wdr3500-v1)
  167. DEVICE_TITLE := TP-LINK TL-WDR4300 v1 (IL)
  168. BOARDNAME := TL-WDR4300
  169. TPLINK_HWID := 0x43008001
  170. endef
  171. TARGET_DEVICES += tl-wdr4300-v1-il
  172. define Device/tl-wdr4310-v1
  173. $(Device/tl-wdr4300-v1-il)
  174. DEVICE_TITLE := TP-LINK TL-WDR4310 v1
  175. TPLINK_HWID := 0x43100001
  176. endef
  177. TARGET_DEVICES += tl-wdr4310-v1
  178. define Device/tl-wdr4900-v2
  179. $(Device/tplink-8mlzma)
  180. DEVICE_TITLE := TP-LINK TL-WDR4900 v2
  181. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  182. BOARDNAME := TL-WDR4900-v2
  183. DEVICE_PROFILE := TLWDR4900V2
  184. TPLINK_HWID := 0x49000002
  185. endef
  186. TARGET_DEVICES += tl-wdr4900-v2
  187. define Device/mw4530r-v1
  188. $(Device/tl-wdr4300-v1)
  189. DEVICE_TITLE := Mercury MW4530R v1
  190. TPLINK_HWID := 0x45300001
  191. endef
  192. TARGET_DEVICES += mw4530r-v1
  193. define Device/tl-wr1043n-v5
  194. $(Device/archer-cxx)
  195. DEVICE_TITLE := TP-LINK TL-WR1043N v5
  196. BOARDNAME := TL-WR1043N-v5
  197. SUPPORTED_DEVICES := tl-wr1043n-v5
  198. DEVICE_PROFILE := TLWR1043
  199. 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
  200. IMAGE_SIZE := 15104k
  201. TPLINK_BOARD_ID := TLWR1043NV5
  202. endef
  203. TARGET_DEVICES += tl-wr1043n-v5
  204. define Device/tl-wr1043nd-v1
  205. $(Device/tplink-8m)
  206. DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
  207. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  208. BOARDNAME := TL-WR1043ND
  209. DEVICE_PROFILE := TLWR1043
  210. TPLINK_HWID := 0x10430001
  211. endef
  212. TARGET_DEVICES += tl-wr1043nd-v1
  213. define Device/tl-wr1043nd-v2
  214. $(Device/tplink-8mlzma)
  215. DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
  216. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  217. BOARDNAME := TL-WR1043ND-v2
  218. DEVICE_PROFILE := TLWR1043
  219. TPLINK_HWID := 0x10430002
  220. endef
  221. TARGET_DEVICES += tl-wr1043nd-v2
  222. define Device/tl-wr1043nd-v3
  223. $(Device/tl-wr1043nd-v2)
  224. DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
  225. TPLINK_HWID := 0x10430003
  226. endef
  227. TARGET_DEVICES += tl-wr1043nd-v3
  228. define Device/tl-wr1043nd-v4
  229. $(Device/tplink-safeloader)
  230. DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
  231. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  232. BOARDNAME := TL-WR1043ND-v4
  233. DEVICE_PROFILE := TLWR1043
  234. TPLINK_HWID := 0x10430004
  235. MTDPARTS := spi0.0:128k(u-boot)ro,15552k(firmware),128k(product-info)ro,320k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(ART)ro
  236. IMAGE_SIZE := 15552k
  237. TPLINK_BOARD_ID := TLWR1043NDV4
  238. KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header -O
  239. KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | tplink-v1-header
  240. endef
  241. TARGET_DEVICES += tl-wr1043nd-v4
  242. define Device/tl-wr2543-v1
  243. $(Device/tplink-8mlzma)
  244. DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1
  245. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  246. BOARDNAME := TL-WR2543N
  247. DEVICE_PROFILE := TLWR2543
  248. TPLINK_HWID := 0x25430001
  249. IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
  250. IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
  251. endef
  252. TARGET_DEVICES += tl-wr2543-v1
  253. define Device/tl-wr710n-v1
  254. $(Device/tplink-8mlzma)
  255. DEVICE_TITLE := TP-LINK TL-WR710N v1
  256. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  257. BOARDNAME := TL-WR710N
  258. DEVICE_PROFILE := TLWR710
  259. TPLINK_HWID := 0x07100001
  260. CONSOLE := ttyATH0,115200
  261. IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
  262. endef
  263. TARGET_DEVICES += tl-wr710n-v1
  264. define Device/tl-wr710n-v2.1
  265. $(Device/tl-wr710n-v1)
  266. DEVICE_TITLE := TP-LINK TL-WR710N v2.1
  267. TPLINK_HWID := 0x07100002
  268. TPLINK_HWREV := 0x00000002
  269. endef
  270. TARGET_DEVICES += tl-wr710n-v2.1
  271. define Device/tl-wr810n-v1
  272. $(Device/tplink-8mlzma)
  273. DEVICE_TITLE := TP-LINK TL-WR810N v1
  274. DEVICE_PACKAGES := kmod-usb-core kmod-usb2
  275. BOARDNAME := TL-WR810N
  276. DEVICE_PROFILE := TLWR810
  277. TPLINK_HWID := 0x08100001
  278. endef
  279. TARGET_DEVICES += tl-wr810n-v1
  280. define Device/tl-wr810n-v2
  281. $(Device/tplink-8mlzma)
  282. DEVICE_TITLE := TP-LINK TL-WR810N v2
  283. BOARDNAME := TL-WR810N-v2
  284. DEVICE_PROFILE := TLWR810
  285. TPLINK_HWID := 0x08100002
  286. endef
  287. TARGET_DEVICES += tl-wr810n-v2
  288. define Device/tl-wr842n-v1
  289. $(Device/tplink-8m)
  290. DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
  291. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  292. BOARDNAME := TL-MR3420
  293. DEVICE_PROFILE := TLWR842
  294. TPLINK_HWID := 0x08420001
  295. endef
  296. TARGET_DEVICES += tl-wr842n-v1
  297. define Device/tl-wr842n-v2
  298. $(Device/tplink-8mlzma)
  299. DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
  300. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  301. BOARDNAME := TL-WR842N-v2
  302. DEVICE_PROFILE := TLWR842
  303. TPLINK_HWID := 0x8420002
  304. endef
  305. TARGET_DEVICES += tl-wr842n-v2
  306. define Device/tl-wr842n-v3
  307. $(Device/tplink-16mlzma)
  308. DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
  309. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  310. BOARDNAME := TL-WR842N-v3
  311. DEVICE_PROFILE := TLWR842
  312. TPLINK_HWID := 0x08420003
  313. endef
  314. TARGET_DEVICES += tl-wr842n-v3
  315. define Device/tl-wr942n-v1
  316. $(Device/archer-cxx)
  317. DEVICE_TITLE := TP-LINK TL-WR942N v1
  318. DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
  319. BOARDNAME := TL-WR942N-V1
  320. TPLINK_BOARD_ID := TLWR942NV1
  321. DEVICE_PROFILE := TLWR942
  322. IMAGE_SIZE := 14464k
  323. MTDPARTS := spi0.0:128k(u-boot)ro,14464k(firmware),64k(product-info)ro,64k(partition-table)ro,256k(oem-config)ro,1344k(oem-vars)ro,64k(ART)ro
  324. SUPPORTED_DEVICES := tl-wr942n-v1
  325. endef
  326. TARGET_DEVICES += tl-wr942n-v1