generic.mk 16 KB

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