generic.mk 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
  2. DEVICE_VARS += TPLINK_BOARD_ID
  3. define Device/kernel-size-migration
  4. DEVICE_COMPAT_VERSION := 2.0
  5. DEVICE_COMPAT_MESSAGE := *** Kernel partition size has changed from earlier \
  6. versions. You need to sysupgrade with the OpenWrt factory image and \
  7. use the force flag when image check fails. Settings will be lost. ***
  8. endef
  9. define Device/dsa-migration
  10. DEVICE_COMPAT_VERSION := 1.1
  11. DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
  12. endef
  13. define Device/dsa-migration-from-2_0
  14. DEVICE_COMPAT_VERSION := 2.1
  15. DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
  16. endef
  17. define Build/buffalo-rootfs-cksum
  18. ( \
  19. echo -ne "\x$$(od -A n -t u1 $@ | tr -s ' ' '\n' | \
  20. $(STAGING_DIR_HOST)/bin/awk '{s+=$$0}END{printf "%x", 255-s%256}')"; \
  21. ) >> $@
  22. endef
  23. define Build/edimax-header
  24. $(eval edimax_model=$(word 1,$(1)))
  25. $(STAGING_DIR_HOST)/bin/mkedimaximg \
  26. -b -s CSYS -m $(edimax_model) \
  27. -f 0x70000 -S 0x1200000 \
  28. -i $@ -o [email protected]
  29. @mv [email protected] $@
  30. endef
  31. define Device/DniImage
  32. KERNEL_SUFFIX := -uImage
  33. KERNEL = kernel-bin | append-dtb | uImage none
  34. KERNEL_NAME := zImage
  35. NETGEAR_BOARD_ID :=
  36. NETGEAR_HW_ID :=
  37. UBINIZE_OPTS := -E 5
  38. IMAGES += factory.img
  39. IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
  40. append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
  41. append-ubi | netgear-dni
  42. IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
  43. append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
  44. append-metadata
  45. endef
  46. define Device/TpSafeImage
  47. KERNEL_SUFFIX := -uImage
  48. KERNEL = kernel-bin | append-dtb | uImage none
  49. KERNEL_NAME := zImage
  50. TPLINK_BOARD_ID :=
  51. IMAGES += factory.bin
  52. IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
  53. IMAGE/sysupgrade.bin := append-rootfs | \
  54. tplink-safeloader sysupgrade | append-metadata
  55. endef
  56. define Device/ZyXELImage
  57. KERNEL_SUFFIX := -uImage
  58. KERNEL = kernel-bin | append-dtb | uImage none | \
  59. pad-to $$(KERNEL_SIZE)
  60. KERNEL_NAME := zImage
  61. IMAGES += factory.bin
  62. IMAGE/factory.bin := append-rootfs | pad-rootfs | \
  63. pad-to $$$$(BLOCKSIZE) | zyxel-ras-image separate-kernel
  64. IMAGE/sysupgrade.bin/squashfs := append-rootfs | \
  65. pad-to $$$$(BLOCKSIZE) | sysupgrade-tar rootfs=$$$$@ | \
  66. append-metadata
  67. endef
  68. define Device/arris_tr4400-v2
  69. $(call Device/LegacyImage)
  70. $(Device/dsa-migration)
  71. DEVICE_VENDOR := Arris
  72. DEVICE_MODEL := TR4400
  73. DEVICE_VARIANT := v2
  74. SOC := qcom-ipq8065
  75. BLOCKSIZE := 128k
  76. PAGESIZE := 2048
  77. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct ath10k-firmware-qca99x0-ct
  78. KERNEL_IN_UBI := 1
  79. endef
  80. TARGET_DEVICES += arris_tr4400-v2
  81. define Device/askey_rt4230w-rev6
  82. $(call Device/LegacyImage)
  83. $(Device/dsa-migration)
  84. DEVICE_VENDOR := Askey
  85. DEVICE_MODEL := RT4230W
  86. DEVICE_VARIANT := REV6
  87. SOC := qcom-ipq8065
  88. BLOCKSIZE := 128k
  89. PAGESIZE := 2048
  90. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
  91. KERNEL_IN_UBI := 1
  92. endef
  93. TARGET_DEVICES += askey_rt4230w-rev6
  94. define Device/asrock_g10
  95. $(call Device/FitImage)
  96. $(call Device/UbiFit)
  97. $(Device/dsa-migration)
  98. SOC := qcom-ipq8064
  99. DEVICE_VENDOR := ASRock
  100. DEVICE_MODEL := G10
  101. BLOCKSIZE := 128k
  102. PAGESIZE := 2048
  103. KERNEL_SIZE := 5332k
  104. DEVICE_PACKAGES := kmod-i2c-gpio ath10k-firmware-qca99x0-ct
  105. IMAGE/nand-factory.bin := append-ubi | edimax-header RN67
  106. endef
  107. TARGET_DEVICES += asrock_g10
  108. define Device/buffalo_wxr-2533dhp
  109. $(call Device/LegacyImage)
  110. $(Device/dsa-migration)
  111. SOC := qcom-ipq8064
  112. DEVICE_VENDOR := Buffalo
  113. DEVICE_MODEL := WXR-2533DHP
  114. BLOCKSIZE := 128k
  115. PAGESIZE := 2048
  116. IMAGE_SIZE := 65536k
  117. KERNEL_IN_UBI := 1
  118. IMAGE/sysupgrade.bin := append-rootfs | buffalo-rootfs-cksum | \
  119. sysupgrade-tar rootfs=$$$$@ | append-metadata
  120. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  121. endef
  122. TARGET_DEVICES += buffalo_wxr-2533dhp
  123. define Device/compex_wpq864
  124. $(call Device/FitImage)
  125. $(call Device/UbiFit)
  126. $(Device/dsa-migration)
  127. DEVICE_VENDOR := Compex
  128. DEVICE_MODEL := WPQ864
  129. BLOCKSIZE := 128k
  130. PAGESIZE := 2048
  131. SOC := qcom-ipq8064
  132. DEVICE_PACKAGES := kmod-gpio-beeper
  133. endef
  134. TARGET_DEVICES += compex_wpq864
  135. define Device/edgecore_ecw5410
  136. $(call Device/FitImage)
  137. $(call Device/UbiFit)
  138. DEVICE_VENDOR := Edgecore
  139. DEVICE_MODEL := ECW5410
  140. SOC := qcom-ipq8068
  141. BLOCKSIZE := 128k
  142. PAGESIZE := 2048
  143. DEVICE_DTS_CONFIG := [email protected]
  144. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
  145. endef
  146. TARGET_DEVICES += edgecore_ecw5410
  147. define Device/extreme_ap3935
  148. $(call Device/LegacyImage)
  149. $(call Device/UbiFit)
  150. DEVICE_VENDOR := Extreme Networks
  151. DEVICE_MODEL := AP3935
  152. SOC := qcom-ipq8068
  153. PAGESIZE := 2048
  154. BLOCKSIZE := 128k
  155. KERNEL = kernel-bin | append-dtb | uImage none | append-uImage-fakehdr filesystem
  156. KERNEL_LOADADDR = 0x41408000
  157. KERNEL_SIZE := 14400k
  158. KERNEL_SUFFIX := -uImage
  159. UBINIZE_OPTS := -E 5
  160. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  161. endef
  162. TARGET_DEVICES += extreme_ap3935
  163. define Device/fortinet_fap-421e
  164. $(call Device/FitImage)
  165. DEVICE_VENDOR := Fortinet
  166. DEVICE_MODEL := FAP-421E
  167. SOC := qcom-ipq8064
  168. BLOCKSIZE := 128k
  169. PAGESIZE := 2048
  170. BOARD_NAME := fap-421e
  171. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  172. endef
  173. TARGET_DEVICES += fortinet_fap-421e
  174. define Device/linksys_ea7500-v1
  175. $(call Device/LegacyImage)
  176. $(Device/kernel-size-migration)
  177. $(Device/dsa-migration-from-2_0)
  178. DEVICE_VENDOR := Linksys
  179. DEVICE_MODEL := EA7500
  180. DEVICE_VARIANT := v1
  181. SOC := qcom-ipq8064
  182. PAGESIZE := 2048
  183. BLOCKSIZE := 128k
  184. KERNEL_SIZE := 4096k
  185. KERNEL = kernel-bin | append-dtb | uImage none | \
  186. append-uImage-fakehdr filesystem
  187. UBINIZE_OPTS := -E 5
  188. IMAGES := factory.bin sysupgrade.bin
  189. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
  190. append-ubi | pad-to $$$$(PAGESIZE)
  191. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  192. endef
  193. TARGET_DEVICES += linksys_ea7500-v1
  194. define Device/linksys_ea8500
  195. $(call Device/LegacyImage)
  196. $(Device/kernel-size-migration)
  197. $(Device/dsa-migration-from-2_0)
  198. DEVICE_VENDOR := Linksys
  199. DEVICE_MODEL := EA8500
  200. SOC := qcom-ipq8064
  201. PAGESIZE := 2048
  202. BLOCKSIZE := 128k
  203. KERNEL_SIZE := 4096k
  204. KERNEL = kernel-bin | append-dtb | uImage none | \
  205. append-uImage-fakehdr filesystem
  206. BOARD_NAME := ea8500
  207. SUPPORTED_DEVICES += ea8500
  208. UBINIZE_OPTS := -E 5
  209. IMAGES += factory.bin
  210. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
  211. append-ubi
  212. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  213. endef
  214. TARGET_DEVICES += linksys_ea8500
  215. define Device/meraki_mr42
  216. $(call Device/FitImage)
  217. DEVICE_VENDOR := Cisco Meraki
  218. DEVICE_MODEL := MR42
  219. SOC := qcom-ipq8068
  220. BLOCKSIZE := 128k
  221. PAGESIZE := 2048
  222. KERNEL_LOADADDR = 0x44208000
  223. DEVICE_PACKAGES := -kmod-ata-ahci -kmod-ata-ahci-platform \
  224. -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
  225. -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
  226. -uboot-envtools ath10k-firmware-qca9887-ct \
  227. ath10k-firmware-qca99x0-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
  228. kmod-leds-tlc591xx
  229. endef
  230. TARGET_DEVICES += meraki_mr42
  231. define Device/meraki_mr52
  232. $(call Device/FitImage)
  233. DEVICE_VENDOR := Cisco Meraki
  234. DEVICE_MODEL := MR52
  235. SOC := qcom-ipq8068
  236. BLOCKSIZE := 128k
  237. PAGESIZE := 2048
  238. KERNEL_LOADADDR = 0x44208000
  239. DEVICE_DTS_CONFIG := config@2
  240. DEVICE_PACKAGES := -kmod-ata-ahci -kmod-ata-ahci-platform \
  241. -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
  242. -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
  243. -uboot-envtools ath10k-firmware-qca9887-ct \
  244. ath10k-firmware-qca9984-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
  245. kmod-leds-tlc591xx
  246. endef
  247. TARGET_DEVICES += meraki_mr52
  248. define Device/nec_wg2600hp
  249. $(call Device/LegacyImage)
  250. $(Device/dsa-migration)
  251. DEVICE_VENDOR := NEC
  252. DEVICE_MODEL := Aterm WG2600HP
  253. SOC := qcom-ipq8064
  254. BLOCKSIZE := 64k
  255. BOARD_NAME := wg2600hp
  256. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
  257. pad-rootfs | append-metadata
  258. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  259. endef
  260. TARGET_DEVICES += nec_wg2600hp
  261. define Device/nec_wg2600hp3
  262. $(call Device/LegacyImage)
  263. $(Device/dsa-migration)
  264. DEVICE_VENDOR := NEC Platforms
  265. DEVICE_MODEL := Aterm WG2600HP3
  266. SOC := qcom-ipq8062
  267. BLOCKSIZE := 64k
  268. IMAGES := sysupgrade.bin
  269. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
  270. pad-rootfs | append-metadata
  271. DEVICE_PACKAGES := -kmod-ata-ahci -kmod-ata-ahci-platform \
  272. -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
  273. -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
  274. ath10k-firmware-qca9984-ct
  275. endef
  276. TARGET_DEVICES += nec_wg2600hp3
  277. define Device/netgear_d7800
  278. $(call Device/DniImage)
  279. $(Device/dsa-migration)
  280. DEVICE_VENDOR := NETGEAR
  281. DEVICE_MODEL := Nighthawk X4 D7800
  282. SOC := qcom-ipq8064
  283. KERNEL_SIZE := 4096k
  284. NETGEAR_BOARD_ID := D7800
  285. NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4
  286. BLOCKSIZE := 128k
  287. PAGESIZE := 2048
  288. BOARD_NAME := d7800
  289. SUPPORTED_DEVICES += d7800
  290. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  291. DEVICE_COMPAT_VERSION := 2.0
  292. DEVICE_COMPAT_MESSAGE := Sysupgrade does not work due to rootfs ubi partition size change. \
  293. Use factory image with the TFTP recovery flash routine.
  294. endef
  295. TARGET_DEVICES += netgear_d7800
  296. define Device/netgear_r7500
  297. $(call Device/DniImage)
  298. $(Device/dsa-migration)
  299. DEVICE_VENDOR := NETGEAR
  300. DEVICE_MODEL := Nighthawk X4 R7500
  301. DEVICE_VARIANT := v1
  302. SOC := qcom-ipq8064
  303. KERNEL_SIZE := 4096k
  304. NETGEAR_BOARD_ID := R7500
  305. NETGEAR_HW_ID := 29764841+0+128+256+3x3+4x4
  306. BLOCKSIZE := 128k
  307. PAGESIZE := 2048
  308. BOARD_NAME := r7500
  309. SUPPORTED_DEVICES += r7500
  310. DEVICE_PACKAGES := ath10k-firmware-qca988x-ct
  311. endef
  312. TARGET_DEVICES += netgear_r7500
  313. define Device/netgear_r7500v2
  314. $(call Device/DniImage)
  315. $(Device/dsa-migration)
  316. DEVICE_VENDOR := NETGEAR
  317. DEVICE_MODEL := Nighthawk X4 R7500
  318. DEVICE_VARIANT := v2
  319. SOC := qcom-ipq8064
  320. KERNEL_SIZE := 4096k
  321. NETGEAR_BOARD_ID := R7500v2
  322. NETGEAR_HW_ID := 29764958+0+128+512+3x3+4x4
  323. BLOCKSIZE := 128k
  324. PAGESIZE := 2048
  325. BOARD_NAME := r7500v2
  326. SUPPORTED_DEVICES += r7500v2
  327. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct \
  328. ath10k-firmware-qca988x-ct
  329. endef
  330. TARGET_DEVICES += netgear_r7500v2
  331. define Device/netgear_r7800
  332. $(call Device/DniImage)
  333. $(Device/dsa-migration)
  334. DEVICE_VENDOR := NETGEAR
  335. DEVICE_MODEL := Nighthawk X4S R7800
  336. SOC := qcom-ipq8065
  337. KERNEL_SIZE := 4096k
  338. NETGEAR_BOARD_ID := R7800
  339. NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4+cascade
  340. BLOCKSIZE := 128k
  341. PAGESIZE := 2048
  342. BOARD_NAME := r7800
  343. SUPPORTED_DEVICES += r7800
  344. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ramoops
  345. endef
  346. TARGET_DEVICES += netgear_r7800
  347. define Device/netgear_xr450
  348. $(call Device/DniImage)
  349. $(Device/dsa-migration)
  350. DEVICE_VENDOR := NETGEAR
  351. DEVICE_MODEL := Nighthawk XR450
  352. SOC := qcom-ipq8065
  353. KERNEL_SIZE := 4096k
  354. NETGEAR_BOARD_ID := XR450
  355. NETGEAR_HW_ID := 29764958+0+256+512+4x4+4x4+cascade
  356. BLOCKSIZE := 128k
  357. PAGESIZE := 2048
  358. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ramoops
  359. endef
  360. TARGET_DEVICES += netgear_xr450
  361. define Device/netgear_xr500
  362. $(call Device/DniImage)
  363. $(Device/dsa-migration)
  364. DEVICE_VENDOR := NETGEAR
  365. DEVICE_MODEL := Nighthawk XR500
  366. SOC := qcom-ipq8065
  367. KERNEL_SIZE := 4096k
  368. NETGEAR_BOARD_ID := XR500
  369. NETGEAR_HW_ID := 29764958+0+256+512+4x4+4x4+cascade
  370. BLOCKSIZE := 128k
  371. PAGESIZE := 2048
  372. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ramoops
  373. endef
  374. TARGET_DEVICES += netgear_xr500
  375. define Device/nokia_ac400i
  376. $(call Device/FitImage)
  377. $(call Device/UbiFit)
  378. $(Device/dsa-migration)
  379. DEVICE_VENDOR := Nokia
  380. DEVICE_MODEL := AC400i
  381. SOC := qcom-ipq8065
  382. DEVICE_DTS := qcom-ipq8065-ac400i
  383. BLOCKSIZE := 128k
  384. PAGESIZE := 2048
  385. BOARD_NAME := ac400i
  386. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
  387. endef
  388. TARGET_DEVICES += nokia_ac400i
  389. define Device/qcom_ipq8064-ap148
  390. $(call Device/FitImage)
  391. $(call Device/UbiFit)
  392. $(Device/dsa-migration)
  393. DEVICE_VENDOR := Qualcomm
  394. DEVICE_MODEL := AP148
  395. DEVICE_VARIANT := standard
  396. SOC := qcom-ipq8064
  397. DEVICE_DTS := qcom-ipq8064-ap148
  398. KERNEL_INSTALL := 1
  399. BLOCKSIZE := 128k
  400. PAGESIZE := 2048
  401. BOARD_NAME := ap148
  402. SUPPORTED_DEVICES += ap148
  403. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  404. endef
  405. TARGET_DEVICES += qcom_ipq8064-ap148
  406. define Device/qcom_ipq8064-ap148-legacy
  407. $(call Device/LegacyImage)
  408. $(call Device/UbiFit)
  409. $(Device/dsa-migration)
  410. DEVICE_VENDOR := Qualcomm
  411. DEVICE_MODEL := AP148
  412. DEVICE_VARIANT := legacy
  413. SOC := qcom-ipq8064
  414. DEVICE_DTS := qcom-ipq8064-ap148
  415. BLOCKSIZE := 128k
  416. PAGESIZE := 2048
  417. BOARD_NAME := ap148
  418. SUPPORTED_DEVICES := qcom,ipq8064-ap148 ap148
  419. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  420. endef
  421. TARGET_DEVICES += qcom_ipq8064-ap148-legacy
  422. define Device/qcom_ipq8064-ap161
  423. $(call Device/FitImage)
  424. $(call Device/UbiFit)
  425. $(Device/dsa-migration)
  426. DEVICE_VENDOR := Qualcomm
  427. DEVICE_MODEL := AP161
  428. SOC := qcom-ipq8064
  429. DEVICE_DTS := qcom-ipq8064-ap161
  430. KERNEL_INSTALL := 1
  431. BLOCKSIZE := 128k
  432. PAGESIZE := 2048
  433. BOARD_NAME := ap161
  434. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  435. endef
  436. TARGET_DEVICES += qcom_ipq8064-ap161
  437. define Device/qcom_ipq8064-db149
  438. $(call Device/FitImage)
  439. $(Device/dsa-migration)
  440. DEVICE_VENDOR := Qualcomm
  441. DEVICE_MODEL := DB149
  442. SOC := qcom-ipq8064
  443. DEVICE_DTS := qcom-ipq8064-db149
  444. KERNEL_INSTALL := 1
  445. BOARD_NAME := db149
  446. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  447. endef
  448. TARGET_DEVICES += qcom_ipq8064-db149
  449. define Device/tplink_ad7200
  450. $(call Device/TpSafeImage)
  451. $(Device/dsa-migration)
  452. DEVICE_VENDOR := TP-Link
  453. DEVICE_MODEL := AD7200
  454. DEVICE_VARIANT := v1/v2
  455. DEVICE_ALT0_VENDOR := TP-Link
  456. DEVICE_ALT0_MODEL := Talon AD7200
  457. DEVICE_ALT0_VARIANT := v1/v2
  458. SOC := qcom-ipq8064
  459. BLOCKSIZE := 128k
  460. PAGESIZE := 2048
  461. TPLINK_BOARD_ID := AD7200
  462. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ramoops kmod-wil6210
  463. endef
  464. TARGET_DEVICES += tplink_ad7200
  465. define Device/tplink_c2600
  466. $(call Device/TpSafeImage)
  467. $(Device/dsa-migration)
  468. DEVICE_VENDOR := TP-Link
  469. DEVICE_MODEL := Archer C2600
  470. DEVICE_VARIANT := v1
  471. SOC := qcom-ipq8064
  472. BLOCKSIZE := 128k
  473. PAGESIZE := 2048
  474. BOARD_NAME := c2600
  475. SUPPORTED_DEVICES += c2600
  476. TPLINK_BOARD_ID := C2600
  477. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ramoops
  478. endef
  479. TARGET_DEVICES += tplink_c2600
  480. define Device/tplink_vr2600v
  481. $(Device/dsa-migration)
  482. DEVICE_VENDOR := TP-Link
  483. DEVICE_MODEL := Archer VR2600v
  484. DEVICE_VARIANT := v1
  485. KERNEL_SUFFIX := -uImage
  486. KERNEL = kernel-bin | append-dtb | uImage none
  487. KERNEL_NAME := zImage
  488. IMAGE_SIZE := 12672k
  489. SOC := qcom-ipq8064
  490. BLOCKSIZE := 128k
  491. PAGESIZE := 2048
  492. BOARD_NAME := vr2600v
  493. SUPPORTED_DEVICES += vr2600v
  494. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  495. IMAGE/sysupgrade.bin := pad-extra 512 | append-kernel | \
  496. append-rootfs | pad-rootfs | append-metadata
  497. endef
  498. TARGET_DEVICES += tplink_vr2600v
  499. define Device/ubnt_unifi-ac-hd
  500. $(call Device/FitImageLzma)
  501. DEVICE_VENDOR := Ubiquiti
  502. DEVICE_MODEL := UniFi AC HD
  503. SOC := qcom-ipq8064
  504. BLOCKSIZE := 64k
  505. IMAGE_SIZE := 14784k
  506. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
  507. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  508. append-rootfs | pad-rootfs | check-size | append-metadata
  509. endef
  510. TARGET_DEVICES += ubnt_unifi-ac-hd
  511. define Device/zyxel_nbg6817
  512. $(Device/dsa-migration)
  513. DEVICE_VENDOR := ZyXEL
  514. DEVICE_MODEL := NBG6817
  515. SOC := qcom-ipq8065
  516. KERNEL_SIZE := 4096k
  517. BLOCKSIZE := 64k
  518. BOARD_NAME := nbg6817
  519. RAS_BOARD := NBG6817
  520. RAS_ROOTFS_SIZE := 20934k
  521. RAS_VERSION := "V1.99(OWRT.9999)C0"
  522. SUPPORTED_DEVICES += nbg6817
  523. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs \
  524. kmod-fs-ext4 losetup
  525. $(call Device/ZyXELImage)
  526. endef
  527. TARGET_DEVICES += zyxel_nbg6817