2
0

generic.mk 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  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/ignitenet_ss-w2-ac2600
  185. $(call Device/FitImage)
  186. $(call Device/UbiFit)
  187. DEVICE_VENDOR := IgniteNet
  188. DEVICE_MODEL := SunSpot AC Wave2
  189. DEVICE_ALT0_VENDOR := Accton Technology Corporation
  190. DEVICE_ALT0_MODEL := EAP1024A
  191. DEVICE_ALT0_VARIANT := V2
  192. SOC := qcom-ipq8068
  193. BLOCKSIZE := 128k
  194. PAGESIZE := 2048
  195. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct ipq-wifi-ignitenet_ss-w2-ac2600
  196. endef
  197. TARGET_DEVICES += ignitenet_ss-w2-ac2600
  198. define Device/linksys_e8350-v1
  199. $(call Device/LegacyImage)
  200. DEVICE_VENDOR := Linksys
  201. DEVICE_MODEL := E8350
  202. DEVICE_VARIANT := v1
  203. SOC := qcom-ipq8064
  204. FW_VERSION := v1.0.03.003
  205. FW_DEVICE_ID := 8350
  206. PAGESIZE := 2048
  207. BLOCKSIZE := 128k
  208. KERNEL_IN_UBI := 1
  209. IMAGES = factory.bin sysupgrade.bin
  210. IMAGE/factory.bin := append-ubi | check-size 0x04000000 | linksys-addfwhdr | linksys-bin
  211. DEVICE_PACKAGES := ath10k-firmware-qca988x-ct
  212. endef
  213. TARGET_DEVICES += linksys_e8350-v1
  214. define Device/linksys_ea7500-v1
  215. $(call Device/LegacyImage)
  216. $(Device/kernel-size-migration)
  217. $(Device/dsa-migration-from-2_0)
  218. DEVICE_VENDOR := Linksys
  219. DEVICE_MODEL := EA7500
  220. DEVICE_VARIANT := v1
  221. SOC := qcom-ipq8064
  222. PAGESIZE := 2048
  223. BLOCKSIZE := 128k
  224. KERNEL_SIZE := 4096k
  225. KERNEL = kernel-bin | append-dtb | uImage none | \
  226. append-uImage-fakehdr filesystem
  227. UBINIZE_OPTS := -E 5
  228. IMAGES := factory.bin sysupgrade.bin
  229. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
  230. append-ubi | pad-to $$$$(PAGESIZE)
  231. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  232. endef
  233. TARGET_DEVICES += linksys_ea7500-v1
  234. define Device/linksys_ea8500
  235. $(call Device/LegacyImage)
  236. $(Device/kernel-size-migration)
  237. $(Device/dsa-migration-from-2_0)
  238. DEVICE_VENDOR := Linksys
  239. DEVICE_MODEL := EA8500
  240. SOC := qcom-ipq8064
  241. PAGESIZE := 2048
  242. BLOCKSIZE := 128k
  243. KERNEL_SIZE := 4096k
  244. KERNEL = kernel-bin | append-dtb | uImage none | \
  245. append-uImage-fakehdr filesystem
  246. BOARD_NAME := ea8500
  247. SUPPORTED_DEVICES += ea8500
  248. UBINIZE_OPTS := -E 5
  249. IMAGES += factory.bin
  250. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
  251. append-ubi
  252. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  253. endef
  254. TARGET_DEVICES += linksys_ea8500
  255. define Device/meraki_mr42
  256. $(call Device/FitImage)
  257. DEVICE_VENDOR := Cisco Meraki
  258. DEVICE_MODEL := MR42
  259. SOC := qcom-ipq8068
  260. BLOCKSIZE := 128k
  261. PAGESIZE := 2048
  262. KERNEL_LOADADDR = 0x44208000
  263. DEVICE_PACKAGES := -kmod-ata-ahci -kmod-ata-ahci-platform \
  264. -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
  265. -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
  266. -uboot-envtools ath10k-firmware-qca9887-ct \
  267. ath10k-firmware-qca99x0-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
  268. kmod-leds-tlc591xx
  269. endef
  270. TARGET_DEVICES += meraki_mr42
  271. define Device/meraki_mr52
  272. $(call Device/FitImage)
  273. DEVICE_VENDOR := Cisco Meraki
  274. DEVICE_MODEL := MR52
  275. SOC := qcom-ipq8068
  276. BLOCKSIZE := 128k
  277. PAGESIZE := 2048
  278. KERNEL_LOADADDR = 0x44208000
  279. DEVICE_DTS_CONFIG := config@2
  280. DEVICE_PACKAGES := -kmod-ata-ahci -kmod-ata-ahci-platform \
  281. -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
  282. -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
  283. -uboot-envtools ath10k-firmware-qca9887-ct \
  284. ath10k-firmware-qca9984-ct kmod-eeprom-at24 kmod-hwmon-ina2xx \
  285. kmod-leds-tlc591xx
  286. endef
  287. TARGET_DEVICES += meraki_mr52
  288. define Device/nec_wg2600hp
  289. $(call Device/LegacyImage)
  290. $(Device/dsa-migration)
  291. DEVICE_VENDOR := NEC
  292. DEVICE_MODEL := Aterm WG2600HP
  293. SOC := qcom-ipq8064
  294. BLOCKSIZE := 64k
  295. BOARD_NAME := wg2600hp
  296. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
  297. pad-rootfs | append-metadata
  298. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  299. endef
  300. TARGET_DEVICES += nec_wg2600hp
  301. define Device/nec_wg2600hp3
  302. $(call Device/LegacyImage)
  303. $(Device/dsa-migration)
  304. DEVICE_VENDOR := NEC Platforms
  305. DEVICE_MODEL := Aterm WG2600HP3
  306. SOC := qcom-ipq8062
  307. BLOCKSIZE := 64k
  308. IMAGES := sysupgrade.bin
  309. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
  310. pad-rootfs | append-metadata
  311. DEVICE_PACKAGES := -kmod-ata-ahci -kmod-ata-ahci-platform \
  312. -kmod-usb-ohci -kmod-usb2 -kmod-usb-ledtrig-usbport \
  313. -kmod-phy-qcom-ipq806x-usb -kmod-usb3 -kmod-usb-dwc3-qcom \
  314. ath10k-firmware-qca9984-ct
  315. endef
  316. TARGET_DEVICES += nec_wg2600hp3
  317. define Device/netgear_d7800
  318. $(call Device/DniImage)
  319. $(Device/dsa-migration)
  320. DEVICE_VENDOR := NETGEAR
  321. DEVICE_MODEL := Nighthawk X4 D7800
  322. SOC := qcom-ipq8064
  323. KERNEL_SIZE := 4096k
  324. NETGEAR_BOARD_ID := D7800
  325. NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4
  326. BLOCKSIZE := 128k
  327. PAGESIZE := 2048
  328. BOARD_NAME := d7800
  329. SUPPORTED_DEVICES += d7800
  330. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  331. DEVICE_COMPAT_VERSION := 2.0
  332. DEVICE_COMPAT_MESSAGE := Sysupgrade does not work due to rootfs ubi partition size change. \
  333. Use factory image with the TFTP recovery flash routine.
  334. endef
  335. TARGET_DEVICES += netgear_d7800
  336. define Device/netgear_r7500
  337. $(call Device/DniImage)
  338. $(Device/dsa-migration)
  339. DEVICE_VENDOR := NETGEAR
  340. DEVICE_MODEL := Nighthawk X4 R7500
  341. DEVICE_VARIANT := v1
  342. SOC := qcom-ipq8064
  343. KERNEL_SIZE := 4096k
  344. NETGEAR_BOARD_ID := R7500
  345. NETGEAR_HW_ID := 29764841+0+128+256+3x3+4x4
  346. BLOCKSIZE := 128k
  347. PAGESIZE := 2048
  348. BOARD_NAME := r7500
  349. SUPPORTED_DEVICES += r7500
  350. DEVICE_PACKAGES := ath10k-firmware-qca988x-ct
  351. endef
  352. TARGET_DEVICES += netgear_r7500
  353. define Device/netgear_r7500v2
  354. $(call Device/DniImage)
  355. $(Device/dsa-migration)
  356. DEVICE_VENDOR := NETGEAR
  357. DEVICE_MODEL := Nighthawk X4 R7500
  358. DEVICE_VARIANT := v2
  359. SOC := qcom-ipq8064
  360. KERNEL_SIZE := 4096k
  361. NETGEAR_BOARD_ID := R7500v2
  362. NETGEAR_HW_ID := 29764958+0+128+512+3x3+4x4
  363. BLOCKSIZE := 128k
  364. PAGESIZE := 2048
  365. BOARD_NAME := r7500v2
  366. SUPPORTED_DEVICES += r7500v2
  367. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct \
  368. ath10k-firmware-qca988x-ct
  369. endef
  370. TARGET_DEVICES += netgear_r7500v2
  371. define Device/netgear_r7800
  372. $(call Device/DniImage)
  373. $(Device/dsa-migration)
  374. DEVICE_VENDOR := NETGEAR
  375. DEVICE_MODEL := Nighthawk X4S R7800
  376. SOC := qcom-ipq8065
  377. KERNEL_SIZE := 4096k
  378. NETGEAR_BOARD_ID := R7800
  379. NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4+cascade
  380. BLOCKSIZE := 128k
  381. PAGESIZE := 2048
  382. BOARD_NAME := r7800
  383. SUPPORTED_DEVICES += r7800
  384. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ramoops
  385. endef
  386. TARGET_DEVICES += netgear_r7800
  387. define Device/netgear_xr450
  388. $(call Device/DniImage)
  389. $(Device/dsa-migration)
  390. DEVICE_VENDOR := NETGEAR
  391. DEVICE_MODEL := Nighthawk XR450
  392. SOC := qcom-ipq8065
  393. KERNEL_SIZE := 4096k
  394. NETGEAR_BOARD_ID := XR450
  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_xr450
  401. define Device/netgear_xr500
  402. $(call Device/DniImage)
  403. $(Device/dsa-migration)
  404. DEVICE_VENDOR := NETGEAR
  405. DEVICE_MODEL := Nighthawk XR500
  406. SOC := qcom-ipq8065
  407. KERNEL_SIZE := 4096k
  408. NETGEAR_BOARD_ID := XR500
  409. NETGEAR_HW_ID := 29764958+0+256+512+4x4+4x4+cascade
  410. BLOCKSIZE := 128k
  411. PAGESIZE := 2048
  412. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ramoops
  413. endef
  414. TARGET_DEVICES += netgear_xr500
  415. define Device/nokia_ac400i
  416. $(call Device/FitImage)
  417. $(call Device/UbiFit)
  418. $(Device/dsa-migration)
  419. DEVICE_VENDOR := Nokia
  420. DEVICE_MODEL := AC400i
  421. SOC := qcom-ipq8065
  422. DEVICE_DTS := qcom-ipq8065-ac400i
  423. BLOCKSIZE := 128k
  424. PAGESIZE := 2048
  425. BOARD_NAME := ac400i
  426. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
  427. endef
  428. TARGET_DEVICES += nokia_ac400i
  429. define Device/qcom_ipq8064-ap148
  430. $(call Device/FitImage)
  431. $(call Device/UbiFit)
  432. $(Device/dsa-migration)
  433. DEVICE_VENDOR := Qualcomm
  434. DEVICE_MODEL := AP148
  435. DEVICE_VARIANT := standard
  436. SOC := qcom-ipq8064
  437. DEVICE_DTS := qcom-ipq8064-ap148
  438. KERNEL_INSTALL := 1
  439. BLOCKSIZE := 128k
  440. PAGESIZE := 2048
  441. BOARD_NAME := ap148
  442. SUPPORTED_DEVICES += ap148
  443. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  444. endef
  445. TARGET_DEVICES += qcom_ipq8064-ap148
  446. define Device/qcom_ipq8064-ap148-legacy
  447. $(call Device/LegacyImage)
  448. $(call Device/UbiFit)
  449. $(Device/dsa-migration)
  450. DEVICE_VENDOR := Qualcomm
  451. DEVICE_MODEL := AP148
  452. DEVICE_VARIANT := legacy
  453. SOC := qcom-ipq8064
  454. DEVICE_DTS := qcom-ipq8064-ap148
  455. BLOCKSIZE := 128k
  456. PAGESIZE := 2048
  457. BOARD_NAME := ap148
  458. SUPPORTED_DEVICES := qcom,ipq8064-ap148 ap148
  459. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  460. endef
  461. TARGET_DEVICES += qcom_ipq8064-ap148-legacy
  462. define Device/qcom_ipq8064-ap161
  463. $(call Device/FitImage)
  464. $(call Device/UbiFit)
  465. $(Device/dsa-migration)
  466. DEVICE_VENDOR := Qualcomm
  467. DEVICE_MODEL := AP161
  468. SOC := qcom-ipq8064
  469. DEVICE_DTS := qcom-ipq8064-ap161
  470. KERNEL_INSTALL := 1
  471. BLOCKSIZE := 128k
  472. PAGESIZE := 2048
  473. BOARD_NAME := ap161
  474. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  475. endef
  476. TARGET_DEVICES += qcom_ipq8064-ap161
  477. define Device/qcom_ipq8064-db149
  478. $(call Device/FitImage)
  479. $(Device/dsa-migration)
  480. DEVICE_VENDOR := Qualcomm
  481. DEVICE_MODEL := DB149
  482. SOC := qcom-ipq8064
  483. DEVICE_DTS := qcom-ipq8064-db149
  484. KERNEL_INSTALL := 1
  485. BOARD_NAME := db149
  486. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  487. endef
  488. TARGET_DEVICES += qcom_ipq8064-db149
  489. define Device/tplink_ad7200
  490. $(call Device/TpSafeImage)
  491. $(Device/dsa-migration)
  492. DEVICE_VENDOR := TP-Link
  493. DEVICE_MODEL := AD7200
  494. DEVICE_VARIANT := v1/v2
  495. DEVICE_ALT0_VENDOR := TP-Link
  496. DEVICE_ALT0_MODEL := Talon AD7200
  497. DEVICE_ALT0_VARIANT := v1/v2
  498. SOC := qcom-ipq8064
  499. BLOCKSIZE := 128k
  500. PAGESIZE := 2048
  501. TPLINK_BOARD_ID := AD7200
  502. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ramoops kmod-wil6210
  503. endef
  504. TARGET_DEVICES += tplink_ad7200
  505. define Device/tplink_c2600
  506. $(call Device/TpSafeImage)
  507. $(Device/dsa-migration)
  508. DEVICE_VENDOR := TP-Link
  509. DEVICE_MODEL := Archer C2600
  510. DEVICE_VARIANT := v1
  511. SOC := qcom-ipq8064
  512. BLOCKSIZE := 128k
  513. PAGESIZE := 2048
  514. BOARD_NAME := c2600
  515. SUPPORTED_DEVICES += c2600
  516. TPLINK_BOARD_ID := C2600
  517. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ramoops
  518. endef
  519. TARGET_DEVICES += tplink_c2600
  520. define Device/tplink_vr2600v
  521. $(Device/dsa-migration)
  522. DEVICE_VENDOR := TP-Link
  523. DEVICE_MODEL := Archer VR2600v
  524. DEVICE_VARIANT := v1
  525. KERNEL_SUFFIX := -uImage
  526. KERNEL = kernel-bin | append-dtb | uImage none
  527. KERNEL_NAME := zImage
  528. IMAGE_SIZE := 12672k
  529. SOC := qcom-ipq8064
  530. BLOCKSIZE := 128k
  531. PAGESIZE := 2048
  532. BOARD_NAME := vr2600v
  533. SUPPORTED_DEVICES += vr2600v
  534. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  535. IMAGE/sysupgrade.bin := pad-extra 512 | append-kernel | \
  536. append-rootfs | pad-rootfs | append-metadata
  537. endef
  538. TARGET_DEVICES += tplink_vr2600v
  539. define Device/ubnt_unifi-ac-hd
  540. $(call Device/FitImageLzma)
  541. DEVICE_VENDOR := Ubiquiti
  542. DEVICE_MODEL := UniFi AC HD
  543. SOC := qcom-ipq8064
  544. BLOCKSIZE := 64k
  545. IMAGE_SIZE := 14784k
  546. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
  547. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  548. append-rootfs | pad-rootfs | check-size | append-metadata
  549. endef
  550. TARGET_DEVICES += ubnt_unifi-ac-hd
  551. define Device/zyxel_nbg6817
  552. $(Device/dsa-migration)
  553. DEVICE_VENDOR := Zyxel
  554. DEVICE_MODEL := NBG6817
  555. SOC := qcom-ipq8065
  556. KERNEL_SIZE := 4096k
  557. BLOCKSIZE := 64k
  558. BOARD_NAME := nbg6817
  559. RAS_BOARD := NBG6817
  560. RAS_ROOTFS_SIZE := 20934k
  561. RAS_VERSION := "V1.99(OWRT.9999)C0"
  562. SUPPORTED_DEVICES += nbg6817
  563. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs \
  564. kmod-fs-ext4 losetup
  565. $(call Device/ZyxelImage)
  566. endef
  567. TARGET_DEVICES += zyxel_nbg6817