generic.mk 16 KB

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