2
0

generic.mk 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438
  1. DTS_DIR := $(DTS_DIR)/qcom
  2. DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
  3. DEVICE_VARS += RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
  4. DEVICE_VARS += WRGG_DEVNAME WRGG_SIGNATURE
  5. DEVICE_VARS += SUPPORTED_TELTONIKA_DEVICES
  6. DEVICE_VARS += SUPPORTED_TELTONIKA_HW_MODS
  7. define Build/netgear-fit-padding
  8. ./netgear-fit-padding.py $@ [email protected]
  9. mv [email protected] $@
  10. endef
  11. define Device/FitImage
  12. KERNEL_SUFFIX := -uImage.itb
  13. KERNEL = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
  14. KERNEL_NAME := Image
  15. endef
  16. define Device/FitImageLzma
  17. KERNEL_SUFFIX := -uImage.itb
  18. KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
  19. KERNEL_NAME := Image
  20. endef
  21. define Device/FitzImage
  22. KERNEL_SUFFIX := -zImage.itb
  23. KERNEL = kernel-bin | fit none $$(KDIR)/image-$$(DEVICE_DTS).dtb
  24. KERNEL_NAME := zImage
  25. endef
  26. define Device/UbiFit
  27. KERNEL_IN_UBI := 1
  28. IMAGES := factory.ubi sysupgrade.bin
  29. IMAGE/factory.ubi := append-ubi
  30. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  31. endef
  32. define Device/DniImage
  33. $(call Device/FitzImage)
  34. NETGEAR_BOARD_ID :=
  35. NETGEAR_HW_ID :=
  36. IMAGES += factory.img
  37. IMAGE/factory.img := append-kernel | netgear-fit-padding | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
  38. IMAGE/sysupgrade.bin := append-kernel | netgear-fit-padding | append-uImage-fakehdr filesystem | \
  39. append-rootfs | pad-rootfs | check-size | append-metadata
  40. endef
  41. define Build/append-rootfshdr
  42. mkimage -A $(LINUX_KARCH) \
  43. -O linux -T filesystem \
  44. -C lzma -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
  45. -n root.squashfs -d $(IMAGE_ROOTFS) [email protected]
  46. cat $(IMAGE_KERNEL) > $@.$1
  47. dd [email protected] bs=64 count=1 >> $@.$1
  48. endef
  49. define Build/copy-file
  50. cat "$(1)" > "$@"
  51. endef
  52. define Build/mkmylofw_32m
  53. $(eval device_id=$(word 1,$(1)))
  54. $(eval revision=$(word 2,$(1)))
  55. let \
  56. size="$$(stat -c%s $@)" \
  57. pad="$(call exp_units,$(BLOCKSIZE))" \
  58. pad="(pad - (size % pad)) % pad" \
  59. newsize='size + pad'; \
  60. $(STAGING_DIR_HOST)/bin/mkmylofw \
  61. -B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
  62. -s 0x2000000 -p0x180000:$$newsize:al:0x80208000:"OpenWrt":$@ \
  63. [email protected]
  64. @mv [email protected] $@
  65. endef
  66. define Build/wac5xx-netgear-tar
  67. mkdir [email protected]
  68. mv $@ [email protected]/wac5xx-ubifs-root.img
  69. md5sum [email protected]/wac5xx-ubifs-root.img > [email protected]/wac5xx-ubifs-root.md5sum
  70. echo "WAC505 WAC510" > [email protected]/metadata.txt
  71. echo "WAC505_V9.9.9.9" > [email protected]/version
  72. tar -C [email protected]/ -cf $@ .
  73. rm -rf [email protected]
  74. endef
  75. define Build/qsdk-ipq-factory-nand-askey
  76. $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh [email protected]\
  77. askey_kernel $@.$1 \
  78. askey_fs $(IMAGE_ROOTFS) \
  79. ubifs $@
  80. PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f [email protected] [email protected]
  81. @mv [email protected] $@
  82. endef
  83. define Build/qsdk-ipq-app-gpt
  84. cp $@ [email protected] 2>/dev/null || true
  85. ptgen -g -o [email protected] -a 1 -l 1024 \
  86. -t 0x2e -N 0:HLOS -r -p 32M \
  87. -t 0x83 -N rootfs -r -p 128M \
  88. -N rootfs_data -p 512M
  89. cat [email protected] >> $@
  90. rm [email protected]
  91. endef
  92. define Build/SenaoFW
  93. -$(STAGING_DIR_HOST)/bin/mksenaofw \
  94. -n $(BOARD_NAME) -r $(VENDOR_ID) -p $(1) \
  95. -c $(DATECODE) -w $(2) -x $(CW_VER) -t 0 \
  96. -e $@ \
  97. -o [email protected]
  98. @cp [email protected] $@
  99. endef
  100. define Build/wrgg-image
  101. mkwrggimg -i $@ \
  102. -o [email protected] \
  103. -d "$(WRGG_DEVNAME)" \
  104. -s "$(WRGG_SIGNATURE)" \
  105. -v "" -m "" -B ""
  106. mv [email protected] $@
  107. endef
  108. define Device/8dev_habanero-dvk
  109. $(call Device/FitImageLzma)
  110. DEVICE_VENDOR := 8devices
  111. DEVICE_MODEL := Habanero DVK
  112. IMAGE_SIZE := 30976k
  113. SOC := qcom-ipq4019
  114. IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | check-size | append-metadata
  115. endef
  116. TARGET_DEVICES += 8dev_habanero-dvk
  117. define Device/8dev_jalapeno-common
  118. $(call Device/FitImage)
  119. $(call Device/UbiFit)
  120. BLOCKSIZE := 128k
  121. PAGESIZE := 2048
  122. SOC := qcom-ipq4018
  123. endef
  124. define Device/8dev_jalapeno
  125. $(call Device/8dev_jalapeno-common)
  126. DEVICE_VENDOR := 8devices
  127. DEVICE_MODEL := Jalapeno
  128. endef
  129. TARGET_DEVICES += 8dev_jalapeno
  130. define Device/alfa-network_ap120c-ac
  131. $(call Device/FitImage)
  132. $(call Device/UbiFit)
  133. DEVICE_VENDOR := ALFA Network
  134. DEVICE_MODEL := AP120C-AC
  135. SOC := qcom-ipq4018
  136. DEVICE_PACKAGES := kmod-usb-acm kmod-tpm-i2c-atmel
  137. BLOCKSIZE := 128k
  138. PAGESIZE := 2048
  139. IMAGE_SIZE := 65536k
  140. IMAGES := factory.bin sysupgrade.bin
  141. IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
  142. endef
  143. TARGET_DEVICES += alfa-network_ap120c-ac
  144. define Device/aruba_glenmorangie
  145. $(call Device/FitImageLzma)
  146. DEVICE_VENDOR := Aruba
  147. SOC := qcom-ipq4029
  148. endef
  149. define Device/aruba_ap-303
  150. $(call Device/aruba_glenmorangie)
  151. DEVICE_MODEL := AP-303
  152. DEVICE_DTS_CONFIG := Glenmorangie@1
  153. endef
  154. TARGET_DEVICES += aruba_ap-303
  155. define Device/aruba_ap-303h
  156. $(call Device/aruba_glenmorangie)
  157. DEVICE_MODEL := AP-303H
  158. DEVICE_DTS_CONFIG := Aberlour@1
  159. endef
  160. TARGET_DEVICES += aruba_ap-303h
  161. define Device/aruba_ap-365
  162. $(call Device/aruba_glenmorangie)
  163. DEVICE_MODEL := AP-365
  164. DEVICE_PACKAGES := kmod-hwmon-ad7418
  165. DEVICE_DTS_CONFIG := Bunker@1
  166. endef
  167. TARGET_DEVICES += aruba_ap-365
  168. define Device/asus_map-ac1300
  169. $(call Device/FitImageLzma)
  170. DEVICE_VENDOR := ASUS
  171. DEVICE_MODEL := Lyra Mini (MAP-AC1300)
  172. SOC := qcom-ipq4018
  173. DEVICE_PACKAGES := kmod-ath3k
  174. endef
  175. TARGET_DEVICES += asus_map-ac1300
  176. define Device/asus_map-ac2200
  177. $(call Device/FitImageLzma)
  178. DEVICE_VENDOR := ASUS
  179. DEVICE_MODEL := Lyra (MAP-AC2200)
  180. SOC := qcom-ipq4019
  181. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
  182. endef
  183. TARGET_DEVICES += asus_map-ac2200
  184. # WARNING: this is an initramfs image that gets you half of the way there
  185. # you need to delete the jffs2 ubi volume and sysupgrade to the final image
  186. # to get a "trx" you can flash via web UI for ac42u/ac58u:
  187. # - change call Device/FitImageLzma to Device/FitImage
  188. # - add the following below UIMAGE_NAME
  189. # UIMAGE_MAGIC := 0x27051956
  190. # IMAGES += factory.trx
  191. # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
  192. define Device/asus_rt-ac42u
  193. $(call Device/FitImageLzma)
  194. DEVICE_VENDOR := ASUS
  195. DEVICE_MODEL := RT-AC42U
  196. DEVICE_ALT0_VENDOR := ASUS
  197. DEVICE_ALT0_MODEL := RT-ACRH17
  198. DEVICE_ALT1_VENDOR := ASUS
  199. DEVICE_ALT1_MODEL := RT-AC2200
  200. SOC := qcom-ipq4019
  201. BLOCKSIZE := 128k
  202. PAGESIZE := 2048
  203. IMAGE_SIZE := 20439364
  204. FILESYSTEMS := squashfs
  205. # RT-AC82U is nowhere to be found online
  206. # Rather, this device is a/k/a RT-AC42U
  207. # But we'll go with what the vendor firmware has...
  208. UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC82U')
  209. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-usb-ledtrig-usbport
  210. endef
  211. TARGET_DEVICES += asus_rt-ac42u
  212. define Device/asus_rt-ac58u
  213. $(call Device/FitImageLzma)
  214. DEVICE_VENDOR := ASUS
  215. DEVICE_MODEL := RT-AC58U
  216. DEVICE_ALT0_VENDOR := ASUS
  217. DEVICE_ALT0_MODEL := RT-ACRH13
  218. SOC := qcom-ipq4018
  219. BLOCKSIZE := 128k
  220. PAGESIZE := 2048
  221. IMAGE_SIZE := 20439364
  222. FILESYSTEMS := squashfs
  223. # Someone - in their infinite wisdom - decided to put the firmware
  224. # version in front of the image name \03\00\00\04 => Version 3.0.0.4
  225. # Since u-boot works with strings we either need another fixup step
  226. # to add a version... or we are very careful not to add '\0' into that
  227. # string and call it a day.... Yeah, we do the latter!
  228. UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
  229. DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
  230. kmod-usb-ledtrig-usbport
  231. endef
  232. TARGET_DEVICES += asus_rt-ac58u
  233. define Device/avm_fritzbox-4040
  234. $(call Device/FitImageLzma)
  235. DEVICE_VENDOR := AVM
  236. DEVICE_MODEL := FRITZ!Box 4040
  237. SOC := qcom-ipq4018
  238. BOARD_NAME := fritz4040
  239. IMAGE_SIZE := 29056k
  240. UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
  241. UBOOT_PARTITION_SIZE := 524288
  242. IMAGES += eva.bin
  243. IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
  244. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  245. DEVICE_PACKAGES := fritz-tffs fritz-caldata
  246. endef
  247. TARGET_DEVICES += avm_fritzbox-4040
  248. define Device/avm_fritzbox-7530
  249. $(call Device/FitImageLzma)
  250. DEVICE_VENDOR := AVM
  251. DEVICE_MODEL := FRITZ!Box 7530
  252. DEVICE_ALT0_VENDOR := AVM
  253. DEVICE_ALT0_MODEL := FRITZ!Box 7520
  254. SOC := qcom-ipq4019
  255. DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand ltq-vdsl-vr11-app
  256. endef
  257. TARGET_DEVICES += avm_fritzbox-7530
  258. define Device/avm_fritzrepeater-1200
  259. $(call Device/FitImageLzma)
  260. DEVICE_VENDOR := AVM
  261. DEVICE_MODEL := FRITZ!Repeater 1200
  262. SOC := qcom-ipq4019
  263. DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
  264. endef
  265. TARGET_DEVICES += avm_fritzrepeater-1200
  266. define Device/avm_fritzrepeater-3000
  267. $(call Device/FitImageLzma)
  268. DEVICE_VENDOR := AVM
  269. DEVICE_MODEL := FRITZ!Repeater 3000
  270. SOC := qcom-ipq4019
  271. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
  272. endef
  273. TARGET_DEVICES += avm_fritzrepeater-3000
  274. define Device/buffalo_wtr-m2133hp
  275. $(call Device/FitImage)
  276. $(call Device/UbiFit)
  277. DEVICE_VENDOR := Buffalo
  278. DEVICE_MODEL := WTR-M2133HP
  279. SOC := qcom-ipq4019
  280. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct
  281. BLOCKSIZE := 128k
  282. PAGESIZE := 2048
  283. endef
  284. TARGET_DEVICES += buffalo_wtr-m2133hp
  285. define Device/cellc_rtl30vw
  286. KERNEL_SUFFIX := -zImage.itb
  287. KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
  288. KERNEL = kernel-bin | fit none $$(KDIR)/image-$$(DEVICE_DTS).dtb | uImage lzma | pad-to 2048
  289. KERNEL_NAME := zImage
  290. KERNEL_IN_UBI :=
  291. IMAGES := factory.bin sysupgrade.bin
  292. IMAGE/factory.bin := append-rootfshdr kernel | append-ubi | qsdk-ipq-factory-nand-askey kernel
  293. IMAGE/sysupgrade.bin := append-rootfshdr kernel | sysupgrade-tar [email protected] | append-metadata
  294. DEVICE_VENDOR := Cell C
  295. DEVICE_MODEL := RTL30VW
  296. SOC := qcom-ipq4019
  297. DEVICE_DTS_CONFIG := config@5
  298. KERNEL_INSTALL := 1
  299. KERNEL_SIZE := 4096k
  300. IMAGE_SIZE := 57344k
  301. BLOCKSIZE := 128k
  302. PAGESIZE := 2048
  303. DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
  304. endef
  305. TARGET_DEVICES += cellc_rtl30vw
  306. define Device/cilab_meshpoint-one
  307. $(call Device/8dev_jalapeno-common)
  308. DEVICE_VENDOR := Crisis Innovation Lab
  309. DEVICE_MODEL := MeshPoint.One
  310. DEVICE_PACKAGES += kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
  311. endef
  312. TARGET_DEVICES += cilab_meshpoint-one
  313. define Device/compex_wpj419
  314. $(call Device/FitImage)
  315. $(call Device/UbiFit)
  316. DEVICE_VENDOR := Compex
  317. DEVICE_MODEL := WPJ419
  318. SOC := qcom-ipq4019
  319. DEVICE_DTS_CONFIG := config@12
  320. KERNEL_INSTALL := 1
  321. BLOCKSIZE := 128k
  322. PAGESIZE := 2048
  323. FILESYSTEMS := squashfs
  324. endef
  325. # Missing DSA Setup
  326. #TARGET_DEVICES += compex_wpj419
  327. define Device/compex_wpj428
  328. $(call Device/FitzImage)
  329. DEVICE_VENDOR := Compex
  330. DEVICE_MODEL := WPJ428
  331. SOC := qcom-ipq4028
  332. DEVICE_DTS_CONFIG := config@4
  333. BLOCKSIZE := 64k
  334. IMAGE_SIZE := 31232k
  335. KERNEL_SIZE := 4096k
  336. IMAGES += cpximg-6a04.bin
  337. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  338. IMAGE/cpximg-6a04.bin := append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m 0x8A2 3
  339. DEVICE_PACKAGES := kmod-gpio-beeper
  340. DEFAULT := n
  341. endef
  342. TARGET_DEVICES += compex_wpj428
  343. define Device/devolo_magic-2-wifi-next
  344. $(call Device/FitzImage)
  345. DEVICE_VENDOR := devolo
  346. DEVICE_MODEL := Magic 2 WiFi next
  347. SOC := qcom-ipq4018
  348. KERNEL_SIZE := 4096k
  349. # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
  350. # it will bootm it, just like we want for the initramfs.
  351. KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to 64k |\
  352. append-string -e '\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
  353. IMAGE_SIZE := 26624k
  354. IMAGES := sysupgrade.bin
  355. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  356. endef
  357. TARGET_DEVICES += devolo_magic-2-wifi-next
  358. define Device/dlink_dap-2610
  359. $(call Device/FitImageLzma)
  360. DEVICE_VENDOR := D-Link
  361. DEVICE_MODEL := DAP-2610
  362. SOC := qcom-ipq4018
  363. DEVICE_DTS_CONFIG := [email protected]
  364. BLOCKSIZE := 64k
  365. WRGG_DEVNAME := /dev/mtdblock/8
  366. WRGG_SIGNATURE := wapac30_dkbs_dap2610
  367. IMAGE_SIZE := 14080k
  368. IMAGES += factory.bin
  369. # Bootloader expects a special 160 byte header which is added by
  370. # wrgg-image.
  371. # Factory image size must be larger than 6MB, and size in wrgg header must
  372. # match actual factory image size to be flashable from D-Link http server.
  373. # Bootloader verifies checksum of wrgg image before booting, thus jffs2
  374. # cannot be part of the wrgg image. This is solved in the factory image by
  375. # having the rootfs at the end of the image (without pad-rootfs). And in
  376. # the sysupgrade image only the kernel is included in the wrgg checksum,
  377. # but this is not flashable from the D-link http server.
  378. # append-rootfs must start on an erase block boundary.
  379. IMAGE/factory.bin := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size
  380. IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | append-metadata
  381. endef
  382. TARGET_DEVICES += dlink_dap-2610
  383. define Device/edgecore_ecw5211
  384. $(call Device/FitImage)
  385. $(call Device/UbiFit)
  386. DEVICE_VENDOR := Edgecore
  387. DEVICE_MODEL := ECW5211
  388. SOC := qcom-ipq4018
  389. BLOCKSIZE := 128k
  390. PAGESIZE := 2048
  391. DEVICE_DTS_CONFIG := [email protected]
  392. DEVICE_PACKAGES := kmod-tpm-i2c-atmel kmod-usb-acm
  393. endef
  394. TARGET_DEVICES += edgecore_ecw5211
  395. define Device/edgecore_oap100
  396. $(call Device/FitImage)
  397. $(call Device/UbiFit)
  398. DEVICE_VENDOR := Edgecore
  399. DEVICE_MODEL := OAP100
  400. SOC := qcom-ipq4019
  401. BLOCKSIZE := 128k
  402. PAGESIZE := 2048
  403. IMAGES := sysupgrade.bin
  404. DEVICE_DTS_CONFIG := [email protected]
  405. DEVICE_PACKAGES := kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
  406. endef
  407. # Missing DSA Setup
  408. #TARGET_DEVICES += edgecore_oap100
  409. define Device/engenius_eap1300
  410. $(call Device/FitImage)
  411. DEVICE_VENDOR := EnGenius
  412. DEVICE_MODEL := EAP1300
  413. DEVICE_ALT0_VENDOR := EnGenius
  414. DEVICE_ALT0_MODEL := EAP1300EXT
  415. DEVICE_DTS_CONFIG := config@4
  416. BOARD_NAME := eap1300
  417. SOC := qcom-ipq4018
  418. KERNEL_SIZE := 5120k
  419. IMAGE_SIZE := 25344k
  420. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  421. DEFAULT := n
  422. endef
  423. TARGET_DEVICES += engenius_eap1300
  424. define Device/engenius_eap2200
  425. $(call Device/FitImage)
  426. $(call Device/UbiFit)
  427. DEVICE_VENDOR := EnGenius
  428. DEVICE_MODEL := EAP2200
  429. SOC := qcom-ipq4019
  430. BLOCKSIZE := 128k
  431. PAGESIZE := 2048
  432. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
  433. endef
  434. # Missing DSA Setup
  435. #TARGET_DEVICES += engenius_eap2200
  436. define Device/engenius_emd1
  437. $(call Device/FitImage)
  438. DEVICE_VENDOR := EnGenius
  439. DEVICE_MODEL := EMD1
  440. DEVICE_DTS_CONFIG := config@4
  441. SOC := qcom-ipq4018
  442. IMAGE_SIZE := 30720k
  443. IMAGES += factory.bin
  444. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  445. IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
  446. endef
  447. # Missing DSA Setup
  448. #TARGET_DEVICES += engenius_emd1
  449. define Device/engenius_emr3500
  450. $(call Device/FitImage)
  451. DEVICE_VENDOR := EnGenius
  452. DEVICE_MODEL := EMR3500
  453. DEVICE_DTS_CONFIG := config@4
  454. SOC := qcom-ipq4018
  455. KERNEL_SIZE := 4096k
  456. IMAGE_SIZE := 30720k
  457. IMAGES += factory.bin
  458. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  459. IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
  460. DEFAULT := n
  461. endef
  462. # Missing DSA Setup
  463. #TARGET_DEVICES += engenius_emr3500
  464. define Device/engenius_ens620ext
  465. $(call Device/FitImage)
  466. DEVICE_VENDOR := EnGenius
  467. DEVICE_MODEL := ENS620EXT
  468. SOC := qcom-ipq4018
  469. DEVICE_DTS_CONFIG := config@4
  470. BLOCKSIZE := 64k
  471. PAGESIZE := 256
  472. BOARD_NAME := ENS620EXT
  473. VENDOR_ID := 0x0101
  474. PRODUCT_ID := 0x79
  475. PRODUCT_ID_NEW := 0xA4
  476. DATECODE := 190507
  477. FW_VER := 3.1.2
  478. FW_VER_NEW := 3.5.6
  479. CW_VER := 1.8.99
  480. IMAGE_SIZE := 21312k
  481. KERNEL_SIZE := 5120k
  482. FILESYSTEMS := squashfs
  483. IMAGES += factory_30.bin factory_35.bin
  484. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  485. IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
  486. IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
  487. DEFAULT := n
  488. endef
  489. # Missing DSA Setup
  490. #TARGET_DEVICES += engenius_ens620ext
  491. define Device/extreme-networks_ws-ap3915i
  492. $(call Device/FitImage)
  493. DEVICE_VENDOR := Extreme Networks
  494. DEVICE_MODEL := WS-AP3915i
  495. IMAGE_SIZE := 30080k
  496. SOC := qcom-ipq4029
  497. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  498. endef
  499. TARGET_DEVICES += extreme-networks_ws-ap3915i
  500. define Device/extreme-networks_ws-ap391x
  501. $(call Device/FitImage)
  502. DEVICE_VENDOR := Extreme Networks
  503. DEVICE_MODEL := WS-AP391x
  504. IMAGE_SIZE := 15040k
  505. SOC := qcom-ipq4029
  506. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  507. endef
  508. TARGET_DEVICES += extreme-networks_ws-ap391x
  509. define Device/ezviz_cs-w3-wd1200g-eup
  510. $(call Device/FitImage)
  511. DEVICE_VENDOR := EZVIZ
  512. DEVICE_MODEL := CS-W3-WD1200G
  513. DEVICE_VARIANT := EUP
  514. IMAGE_SIZE := 14848k
  515. KERNEL_SIZE = 6m
  516. SOC := qcom-ipq4018
  517. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
  518. append-metadata
  519. DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
  520. DEVICE_COMPAT_VERSION := 2.0
  521. DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
  522. Upgrade via sysupgrade mechanism is not possible.
  523. endef
  524. TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
  525. define Device/glinet_gl-a1300
  526. $(call Device/FitImage)
  527. $(call Device/UbiFit)
  528. DEVICE_VENDOR := GL.iNet
  529. DEVICE_MODEL := GL-A1300
  530. SOC := qcom-ipq4018
  531. DEVICE_DTS_CONFIG := [email protected]
  532. BLOCKSIZE := 128k
  533. PAGESIZE := 2048
  534. IMAGE_SIZE := 131072k
  535. endef
  536. TARGET_DEVICES += glinet_gl-a1300
  537. define Device/glinet_gl-ap1300
  538. $(call Device/FitImage)
  539. $(call Device/UbiFit)
  540. DEVICE_VENDOR := GL.iNet
  541. DEVICE_MODEL := GL-AP1300
  542. SOC := qcom-ipq4018
  543. DEVICE_DTS_CONFIG := [email protected]
  544. BLOCKSIZE := 128k
  545. PAGESIZE := 2048
  546. IMAGE_SIZE := 131072k
  547. KERNEL_INSTALL := 1
  548. DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
  549. endef
  550. TARGET_DEVICES += glinet_gl-ap1300
  551. define Device/glinet_gl-b1300
  552. $(call Device/FitzImage)
  553. DEVICE_VENDOR := GL.iNet
  554. DEVICE_MODEL := GL-B1300
  555. BOARD_NAME := gl-b1300
  556. SOC := qcom-ipq4029
  557. KERNEL_SIZE := 4096k
  558. IMAGE_SIZE := 26624k
  559. IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
  560. endef
  561. TARGET_DEVICES += glinet_gl-b1300
  562. define Device/glinet_gl-b2200
  563. $(call Device/FitzImage)
  564. DEVICE_VENDOR := GL.iNet
  565. DEVICE_MODEL := GL-B2200
  566. SOC := qcom-ipq4019
  567. DEVICE_DTS_CONFIG := [email protected]
  568. KERNEL_INITRAMFS_SUFFIX := -recovery.itb
  569. IMAGES := emmc.img.gz sysupgrade.bin
  570. IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
  571. pad-to 1024k | append-kernel |\
  572. pad-to 33792k | append-rootfs |\
  573. append-metadata | gzip
  574. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  575. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct \
  576. kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
  577. endef
  578. TARGET_DEVICES += glinet_gl-b2200
  579. define Device/glinet_gl-s1300
  580. $(call Device/FitzImage)
  581. DEVICE_VENDOR := GL.iNet
  582. DEVICE_MODEL := GL-S1300
  583. SOC := qcom-ipq4029
  584. KERNEL_SIZE := 4096k
  585. IMAGE_SIZE := 26624k
  586. IMAGES := sysupgrade.bin
  587. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  588. DEVICE_PACKAGES := kmod-fs-ext4 kmod-mmc kmod-spi-dev
  589. endef
  590. TARGET_DEVICES += glinet_gl-s1300
  591. define Device/huawei_ap4050dn
  592. $(call Device/FitImageLzma)
  593. DEVICE_VENDOR := Huawei
  594. DEVICE_MODEL := AP4050DN
  595. SOC := qcom-ipq4018
  596. IMAGE_SIZE := 51200k
  597. DEVICE_PACKAGES := ipq-wifi-huawei_ap4050dn
  598. KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
  599. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  600. endef
  601. TARGET_DEVICES += huawei_ap4050dn
  602. define Device/kernel-size-6350-8300
  603. DEVICE_COMPAT_VERSION := 2.0
  604. DEVICE_COMPAT_MESSAGE := Kernel partition size must be increased for \
  605. this OpenWrt version. Before continuing, you MUST issue either the \
  606. command "fw_setenv kernsize 500000" from the OpenWrt command line, \
  607. or "setenv kernsize 500000 ; saveenv" from the U-Boot serial console. \
  608. Instead of the sysupgrade image, you must then install the OpenWrt \
  609. factory image, setting the force flag and wiping the configuration. \
  610. (e.g. "sysupgrade -n -F openwrt-squashfs-factory.bin" on command line)
  611. endef
  612. define Device/linksys_ea6350v3
  613. # The Linksys EA6350v3 has a uboot bootloader that does not
  614. # support either booting lzma kernel images nor booting UBI
  615. # partitions. This uboot, however, supports raw kernel images and
  616. # gzipped images.
  617. #
  618. # As configured by the OEM factory, the device will boot the kernel
  619. # from a fixed address with a fixed length of 3 MiB. Also, the
  620. # device has a hard-coded kernel command line that requires the
  621. # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
  622. # Oh... and the kernel partition overlaps with the rootfs
  623. # partition (the same for alt_kernel and alt_rootfs).
  624. #
  625. # If you are planing re-partitioning the device, you may want to
  626. # keep these details in mind:
  627. # 1. The kernel addresses you should honor are 0x00000000 and
  628. # 0x02800000 respectively.
  629. # 2. The kernel size (plus the dtb) cannot exceed 3 MiB in size
  630. # unless the uboot environment variable "kernsize" is increased.
  631. # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
  632. # 4. The kernel command line from uboot is harcoded to boot with
  633. # rootfs either in mtd11 or mtd13.
  634. $(call Device/FitzImage)
  635. $(call Device/kernel-size-6350-8300)
  636. DEVICE_VENDOR := Linksys
  637. DEVICE_MODEL := EA6350
  638. DEVICE_VARIANT := v3
  639. SOC := qcom-ipq4018
  640. BLOCKSIZE := 128k
  641. PAGESIZE := 2048
  642. KERNEL_SIZE := 5120k
  643. IMAGE_SIZE := 35840k
  644. NAND_SIZE := 128m
  645. UBINIZE_OPTS := -E 5
  646. IMAGES += factory.bin
  647. IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
  648. endef
  649. TARGET_DEVICES += linksys_ea6350v3
  650. define Device/linksys_ea8300
  651. $(call Device/FitzImage)
  652. $(call Device/kernel-size-6350-8300)
  653. DEVICE_VENDOR := Linksys
  654. DEVICE_MODEL := EA8300
  655. SOC := qcom-ipq4019
  656. KERNEL_SIZE := 5120k
  657. IMAGE_SIZE := 84992k
  658. NAND_SIZE := 256m
  659. BLOCKSIZE := 128k
  660. PAGESIZE := 2048
  661. UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
  662. IMAGES += factory.bin
  663. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
  664. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
  665. endef
  666. TARGET_DEVICES += linksys_ea8300
  667. define Device/linksys_mr6350
  668. $(call Device/FitzImage)
  669. $(call Device/kernel-size-6350-8300)
  670. DEVICE_VENDOR := Linksys
  671. DEVICE_MODEL := MR6350
  672. SOC := qcom-ipq4019
  673. KERNEL_SIZE := 5120k
  674. IMAGE_SIZE := 84992k
  675. BLOCKSIZE := 128k
  676. PAGESIZE := 2048
  677. UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
  678. IMAGES += factory.bin
  679. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR6350
  680. DEVICE_PACKAGES := ipq-wifi-linksys_mr6350 kmod-usb-ledtrig-usbport
  681. endef
  682. TARGET_DEVICES += linksys_mr6350
  683. define Device/linksys_mr8300
  684. $(call Device/FitzImage)
  685. $(call Device/kernel-size-6350-8300)
  686. DEVICE_VENDOR := Linksys
  687. DEVICE_MODEL := MR8300
  688. SOC := qcom-ipq4019
  689. KERNEL_SIZE := 5120k
  690. IMAGE_SIZE := 84992k
  691. NAND_SIZE := 256m
  692. BLOCKSIZE := 128k
  693. PAGESIZE := 2048
  694. UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
  695. IMAGES += factory.bin
  696. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
  697. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-usb-ledtrig-usbport
  698. endef
  699. TARGET_DEVICES += linksys_mr8300
  700. define Device/linksys_whw01
  701. $(call Device/FitzImage)
  702. DEVICE_VENDOR := Linksys
  703. DEVICE_MODEL := WHW01
  704. DEVICE_ALT0_VENDOR := Linksys
  705. DEVICE_ALT0_MODEL := VLP01
  706. KERNEL_SIZE := 6144k
  707. IMAGE_SIZE := 75776k
  708. NAND_SIZE := 256m
  709. SOC := qcom-ipq4018
  710. BLOCKSIZE := 128k
  711. PAGESIZE := 2048
  712. UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
  713. IMAGES += factory.bin
  714. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW01
  715. DEVICE_PACKAGES := uboot-envtools kmod-leds-pca963x
  716. endef
  717. TARGET_DEVICES += linksys_whw01
  718. define Device/linksys_whw03
  719. $(call Device/FitzImage)
  720. DEVICE_VENDOR := Linksys
  721. DEVICE_MODEL := WHW03
  722. SOC := qcom-ipq4019
  723. KERNEL_SIZE := 8192k
  724. IMAGE_SIZE := 131072k
  725. IMAGES += factory.bin
  726. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | linksys-image type=WHW03
  727. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-leds-pca963x kmod-spi-dev kmod-hci-uart \
  728. kmod-fs-ext4 e2fsprogs kmod-fs-f2fs mkf2fs losetup ipq-wifi-linksys_whw03
  729. endef
  730. TARGET_DEVICES += linksys_whw03
  731. define Device/linksys_whw03v2
  732. $(call Device/FitzImage)
  733. DEVICE_VENDOR := Linksys
  734. DEVICE_MODEL := WHW03
  735. DEVICE_VARIANT := V2
  736. SOC := qcom-ipq4019
  737. KERNEL_SIZE := 6144k
  738. IMAGE_SIZE := 158720k
  739. NAND_SIZE := 512m
  740. BLOCKSIZE := 128k
  741. PAGESIZE := 2048
  742. UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
  743. IMAGES += factory.bin
  744. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=WHW03v2
  745. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-leds-pca963x kmod-spi-dev kmod-hci-uart
  746. endef
  747. TARGET_DEVICES += linksys_whw03v2
  748. define Device/luma_wrtq-329acn
  749. $(call Device/FitImage)
  750. DEVICE_VENDOR := Luma Home
  751. DEVICE_MODEL := WRTQ-329ACN
  752. SOC := qcom-ipq4018
  753. DEVICE_PACKAGES := kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
  754. IMAGE_SIZE := 76632k
  755. BLOCKSIZE := 128k
  756. PAGESIZE := 2048
  757. endef
  758. TARGET_DEVICES += luma_wrtq-329acn
  759. define Device/meraki_common
  760. $(call Device/FitImage)
  761. DEVICE_VENDOR := Cisco Meraki
  762. SOC := qcom-ipq4029
  763. BLOCKSIZE := 128k
  764. PAGESIZE := 2048
  765. DEVICE_DTS_LOADADDR := 0x89000000
  766. DEVICE_PACKAGES := ath10k-firmware-qca9887-ct
  767. endef
  768. define Device/meraki_mr20
  769. $(call Device/meraki_common)
  770. DEVICE_MODEL := MR20
  771. DEVICE_DTS_CONFIG := config@4
  772. DEVICE_PACKAGES := ipq-wifi-meraki_underdog
  773. endef
  774. TARGET_DEVICES += meraki_mr20
  775. define Device/meraki_mr30h
  776. $(call Device/meraki_common)
  777. DEVICE_MODEL := MR30H
  778. DEVICE_DTS_CONFIG := config@2
  779. DEVICE_PACKAGES += ipq-wifi-meraki_mr30h
  780. endef
  781. TARGET_DEVICES += meraki_mr30h
  782. define Device/meraki_mr33
  783. $(call Device/meraki_common)
  784. DEVICE_MODEL := MR33
  785. endef
  786. TARGET_DEVICES += meraki_mr33
  787. define Device/meraki_mr70
  788. $(call Device/meraki_common)
  789. DEVICE_MODEL := MR70
  790. DEVICE_DTS_CONFIG := config@5
  791. DEVICE_PACKAGES := ipq-wifi-meraki_underdog
  792. endef
  793. TARGET_DEVICES += meraki_mr70
  794. define Device/meraki_mr74
  795. $(call Device/meraki_common)
  796. DEVICE_MODEL := MR74
  797. DEVICE_DTS_CONFIG := config@3
  798. endef
  799. TARGET_DEVICES += meraki_mr74
  800. define Device/meraki_z3
  801. $(call Device/meraki_common)
  802. DEVICE_MODEL := Z3
  803. DEVICE_DTS_CONFIG := config@1
  804. DEVICE_PACKAGES := -ath10k-firmware-qca9887-ct ipq-wifi-meraki_z3
  805. endef
  806. TARGET_DEVICES += meraki_z3
  807. define Device/meraki_gx20
  808. $(call Device/meraki_common)
  809. DEVICE_MODEL := GX20
  810. DEVICE_DTS_CONFIG := config@2
  811. DEVICE_PACKAGES := -ath10k-board-qca4019 -ath10k-firmware-qca9887-ct
  812. endef
  813. TARGET_DEVICES += meraki_gx20
  814. define Device/mobipromo_cm520-79f
  815. $(call Device/FitzImage)
  816. $(call Device/UbiFit)
  817. DEVICE_VENDOR := MobiPromo
  818. DEVICE_MODEL := CM520-79F
  819. SOC := qcom-ipq4019
  820. BLOCKSIZE := 128k
  821. PAGESIZE := 2048
  822. DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
  823. endef
  824. TARGET_DEVICES += mobipromo_cm520-79f
  825. define Device/netgear_ex61x0v2
  826. $(call Device/DniImage)
  827. DEVICE_VENDOR := NETGEAR
  828. DEVICE_DTS_CONFIG := config@4
  829. NETGEAR_BOARD_ID := EX6150v2series
  830. NETGEAR_HW_ID := 29765285+16+0+128+2x2
  831. IMAGE_SIZE := 14400k
  832. SOC := qcom-ipq4018
  833. endef
  834. define Device/netgear_ex6100v2
  835. $(call Device/netgear_ex61x0v2)
  836. DEVICE_MODEL := EX6100
  837. DEVICE_VARIANT := v2
  838. endef
  839. TARGET_DEVICES += netgear_ex6100v2
  840. define Device/netgear_ex6150v2
  841. $(call Device/netgear_ex61x0v2)
  842. DEVICE_MODEL := EX6150
  843. DEVICE_VARIANT := v2
  844. endef
  845. TARGET_DEVICES += netgear_ex6150v2
  846. define Device/netgear_orbi
  847. $(call Device/DniImage)
  848. SOC := qcom-ipq4019
  849. DEVICE_VENDOR := NETGEAR
  850. IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
  851. append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
  852. append-rootfs | pad-rootfs | netgear-dni
  853. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
  854. sysupgrade-tar rootfs=$$$$@ | append-metadata
  855. DEVICE_PACKAGES := e2fsprogs kmod-fs-ext4 losetup
  856. endef
  857. define Device/netgear_lbr20
  858. $(call Device/DniImage)
  859. SOC := qcom-ipq4019
  860. DEVICE_VENDOR := NETGEAR
  861. DEVICE_MODEL := LBR20
  862. NETGEAR_BOARD_ID := LBR20
  863. NETGEAR_HW_ID := 29766182+0+256+512+2x2+2x2+2x2+1
  864. KERNEL_SIZE := 7340032
  865. BLOCKSIZE := 128k
  866. PAGESIZE := 2048
  867. UBINIZE_OPTS := -E 5
  868. IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
  869. append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
  870. append-ubi | netgear-dni
  871. IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
  872. append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
  873. append-metadata
  874. DEVICE_PACKAGES := ipq-wifi-netgear_lbr20 ath10k-firmware-qca9888-ct kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
  875. endef
  876. TARGET_DEVICES += netgear_lbr20
  877. define Device/netgear_rbx20
  878. $(call Device/DniImage)
  879. SOC := qcom-ipq4019
  880. DEVICE_VENDOR := NETGEAR
  881. KERNEL_SIZE := 7340032
  882. BLOCKSIZE := 128k
  883. PAGESIZE := 2048
  884. UBINIZE_OPTS := -E 5
  885. IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
  886. append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
  887. append-ubi | netgear-dni
  888. IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
  889. append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
  890. append-metadata
  891. DEVICE_PACKAGES := ipq-wifi-netgear_rbk20 ath10k-firmware-qca9888-ct
  892. endef
  893. define Device/netgear_rbr20
  894. $(call Device/netgear_rbx20)
  895. DEVICE_MODEL := RBR20
  896. NETGEAR_BOARD_ID := RBR20
  897. NETGEAR_HW_ID := 29765641+0+256+512+2x2+2x2+2x2
  898. endef
  899. TARGET_DEVICES += netgear_rbr20
  900. define Device/netgear_rbs20
  901. $(call Device/netgear_rbx20)
  902. DEVICE_MODEL := RBS20
  903. NETGEAR_BOARD_ID := RBS20
  904. NETGEAR_HW_ID := 29765641+0+128+512+2x2+2x2+2x2
  905. endef
  906. TARGET_DEVICES += netgear_rbs20
  907. define Device/netgear_rbx40
  908. $(call Device/netgear_orbi)
  909. NETGEAR_HW_ID := 29765515+0+4096+512+2x2+2x2+2x2
  910. KERNEL_SIZE := 3932160
  911. ROOTFS_SIZE := 32243712
  912. IMAGE_SIZE := 36175872
  913. DEVICE_PACKAGES += ipq-wifi-netgear_rbk40 ath10k-firmware-qca9888-ct
  914. endef
  915. define Device/netgear_rbr40
  916. $(call Device/netgear_rbx40)
  917. DEVICE_MODEL := RBR40
  918. DEVICE_VARIANT := v1
  919. NETGEAR_BOARD_ID := RBR40
  920. endef
  921. TARGET_DEVICES += netgear_rbr40
  922. define Device/netgear_rbs40
  923. $(call Device/netgear_rbx40)
  924. DEVICE_MODEL := RBS40
  925. DEVICE_VARIANT := v1
  926. NETGEAR_BOARD_ID := RBS40
  927. endef
  928. TARGET_DEVICES += netgear_rbs40
  929. define Device/netgear_rbx50
  930. $(call Device/netgear_orbi)
  931. NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
  932. KERNEL_SIZE := 3932160
  933. ROOTFS_SIZE := 32243712
  934. IMAGE_SIZE := 36175872
  935. DEVICE_PACKAGES += ath10k-firmware-qca9984-ct
  936. endef
  937. define Device/netgear_rbr50
  938. $(call Device/netgear_rbx50)
  939. DEVICE_MODEL := RBR50
  940. DEVICE_VARIANT := v1
  941. NETGEAR_BOARD_ID := RBR50
  942. endef
  943. TARGET_DEVICES += netgear_rbr50
  944. define Device/netgear_rbs50
  945. $(call Device/netgear_rbx50)
  946. DEVICE_MODEL := RBS50
  947. DEVICE_VARIANT := v1
  948. NETGEAR_BOARD_ID := RBS50
  949. endef
  950. TARGET_DEVICES += netgear_rbs50
  951. define Device/netgear_srx60
  952. $(call Device/netgear_orbi)
  953. NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
  954. KERNEL_SIZE := 3932160
  955. ROOTFS_SIZE := 32243712
  956. IMAGE_SIZE := 36175872
  957. DEVICE_PACKAGES += ath10k-firmware-qca9984-ct
  958. endef
  959. define Device/netgear_srr60
  960. $(call Device/netgear_srx60)
  961. DEVICE_MODEL := SRR60
  962. NETGEAR_BOARD_ID := SRR60
  963. endef
  964. TARGET_DEVICES += netgear_srr60
  965. define Device/netgear_srs60
  966. $(call Device/netgear_srx60)
  967. DEVICE_MODEL := SRS60
  968. NETGEAR_BOARD_ID := SRS60
  969. endef
  970. TARGET_DEVICES += netgear_srs60
  971. define Device/netgear_wac510
  972. $(call Device/FitImage)
  973. $(call Device/UbiFit)
  974. DEVICE_VENDOR := Netgear
  975. DEVICE_MODEL := WAC510
  976. SOC := qcom-ipq4018
  977. DEVICE_DTS_CONFIG := config@5
  978. BLOCKSIZE := 128k
  979. PAGESIZE := 2048
  980. IMAGES += factory.tar
  981. IMAGE/factory.tar := append-ubi | wac5xx-netgear-tar
  982. DEVICE_PACKAGES := uboot-envtools
  983. endef
  984. TARGET_DEVICES += netgear_wac510
  985. define Device/openmesh_a42
  986. $(call Device/FitImageLzma)
  987. DEVICE_VENDOR := OpenMesh
  988. DEVICE_MODEL := A42
  989. SOC := qcom-ipq4018
  990. DEVICE_DTS_CONFIG := [email protected]
  991. BLOCKSIZE := 64k
  992. KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
  993. IMAGE_SIZE := 15616k
  994. IMAGES += factory.bin
  995. IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
  996. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  997. endef
  998. TARGET_DEVICES += openmesh_a42
  999. define Device/openmesh_a62
  1000. $(call Device/FitImageLzma)
  1001. DEVICE_VENDOR := OpenMesh
  1002. DEVICE_MODEL := A62
  1003. SOC := qcom-ipq4019
  1004. DEVICE_DTS_CONFIG := [email protected]
  1005. BLOCKSIZE := 64k
  1006. KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
  1007. IMAGE_SIZE := 15552k
  1008. IMAGES += factory.bin
  1009. IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
  1010. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  1011. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
  1012. endef
  1013. TARGET_DEVICES += openmesh_a62
  1014. define Device/p2w_r619ac
  1015. $(call Device/FitzImage)
  1016. $(call Device/UbiFit)
  1017. DEVICE_VENDOR := P&W
  1018. DEVICE_MODEL := R619AC
  1019. SOC := qcom-ipq4019
  1020. DEVICE_DTS_CONFIG := config@10
  1021. BLOCKSIZE := 128k
  1022. PAGESIZE := 2048
  1023. endef
  1024. define Device/p2w_r619ac-64m
  1025. $(call Device/p2w_r619ac)
  1026. DEVICE_VARIANT := 64M NAND
  1027. IMAGES += factory.bin
  1028. IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
  1029. endef
  1030. TARGET_DEVICES += p2w_r619ac-64m
  1031. define Device/p2w_r619ac-128m
  1032. $(call Device/p2w_r619ac)
  1033. DEVICE_VARIANT := 128M NAND
  1034. endef
  1035. TARGET_DEVICES += p2w_r619ac-128m
  1036. define Device/pakedge_wr-1
  1037. $(call Device/FitImageLzma)
  1038. DEVICE_VENDOR := Pakedge
  1039. DEVICE_MODEL := WR-1
  1040. DEVICE_DTS_CONFIG := [email protected]
  1041. SOC := qcom-ipq4018
  1042. BLOCKSIZE := 64k
  1043. IMAGE_SIZE := 31232k
  1044. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata
  1045. endef
  1046. TARGET_DEVICES += pakedge_wr-1
  1047. define Device/plasmacloud_pa1200
  1048. $(call Device/FitImageLzma)
  1049. DEVICE_VENDOR := Plasma Cloud
  1050. DEVICE_MODEL := PA1200
  1051. SOC := qcom-ipq4018
  1052. DEVICE_DTS_CONFIG := [email protected]
  1053. BLOCKSIZE := 64k
  1054. KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
  1055. IMAGE_SIZE := 15616k
  1056. IMAGES += factory.bin
  1057. IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
  1058. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  1059. endef
  1060. TARGET_DEVICES += plasmacloud_pa1200
  1061. define Device/plasmacloud_pa2200
  1062. $(call Device/FitImageLzma)
  1063. DEVICE_VENDOR := Plasma Cloud
  1064. DEVICE_MODEL := PA2200
  1065. SOC := qcom-ipq4019
  1066. DEVICE_DTS_CONFIG := [email protected]
  1067. BLOCKSIZE := 64k
  1068. KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
  1069. IMAGE_SIZE := 15552k
  1070. IMAGES += factory.bin
  1071. IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
  1072. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  1073. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
  1074. endef
  1075. TARGET_DEVICES += plasmacloud_pa2200
  1076. define Device/qxwlan_e2600ac-c1
  1077. $(call Device/FitImage)
  1078. DEVICE_VENDOR := Qxwlan
  1079. DEVICE_MODEL := E2600AC
  1080. DEVICE_VARIANT := C1
  1081. BOARD_NAME := e2600ac-c1
  1082. SOC := qcom-ipq4019
  1083. IMAGE_SIZE := 31232k
  1084. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  1085. endef
  1086. TARGET_DEVICES += qxwlan_e2600ac-c1
  1087. define Device/qxwlan_e2600ac-c2
  1088. $(call Device/FitImage)
  1089. $(call Device/UbiFit)
  1090. DEVICE_VENDOR := Qxwlan
  1091. DEVICE_MODEL := E2600AC
  1092. DEVICE_VARIANT := C2
  1093. SOC := qcom-ipq4019
  1094. KERNEL_INSTALL := 1
  1095. BLOCKSIZE := 128k
  1096. PAGESIZE := 2048
  1097. endef
  1098. TARGET_DEVICES += qxwlan_e2600ac-c2
  1099. define Device/skspruce_wia3300-20
  1100. $(call Device/FitzImage)
  1101. BLOCKSIZE := 64k
  1102. IMAGE_SIZE := 55104k
  1103. SOC := qcom-ipq4019
  1104. DEVICE_VENDOR := SKSpruce
  1105. DEVICE_MODEL := WIA3300-20
  1106. DEVICE_PACKAGES := -ath10k-board-qca4019 ipq-wifi-skspruce_wia3300-20
  1107. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
  1108. append-rootfs | pad-rootfs | check-size | append-metadata
  1109. endef
  1110. TARGET_DEVICES +=skspruce_wia3300-20
  1111. define Device/sony_ncp-hg100-cellular
  1112. $(call Device/FitImage)
  1113. DEVICE_VENDOR := Sony
  1114. DEVICE_MODEL := NCP-HG100/Cellular
  1115. DEVICE_DTS_CONFIG := [email protected]
  1116. SOC := qcom-ipq4019
  1117. KERNEL_SIZE := 8192k
  1118. IMAGE_SIZE := 128m
  1119. DEVICE_PACKAGES := e2fsprogs kmod-fs-ext4 uqmi
  1120. endef
  1121. TARGET_DEVICES += sony_ncp-hg100-cellular
  1122. define Device/teltonika_rutx10
  1123. $(call Device/FitImage)
  1124. $(call Device/UbiFit)
  1125. DEVICE_VENDOR := Teltonika
  1126. DEVICE_MODEL := RUTX10
  1127. SUPPORTED_TELTONIKA_DEVICES := teltonika,rutx
  1128. SUPPORTED_TELTONIKA_HW_MODS := W25N02KV NAND_GD5F2GXX EG060K RUTX_V12
  1129. SOC := qcom-ipq4018
  1130. DEVICE_DTS_CONFIG := config@5
  1131. KERNEL_INSTALL := 1
  1132. BLOCKSIZE := 128k
  1133. PAGESIZE := 2048
  1134. FILESYSTEMS := squashfs
  1135. IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-teltonika-metadata
  1136. DEVICE_PACKAGES := kmod-btusb
  1137. endef
  1138. # Missing DSA Setup
  1139. #TARGET_DEVICES += teltonika_rutx10
  1140. define Device/teltonika_rutx50
  1141. $(call Device/FitImage)
  1142. $(call Device/UbiFit)
  1143. DEVICE_VENDOR := Teltonika
  1144. DEVICE_MODEL := RUTX50
  1145. SOC := qcom-ipq4018
  1146. DEVICE_DTS_CONFIG := config@5
  1147. KERNEL_INSTALL := 1
  1148. BLOCKSIZE := 128k
  1149. PAGESIZE := 2048
  1150. FILESYSTEMS := squashfs
  1151. IMAGE/factory.ubi := append-ubi
  1152. DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
  1153. endef
  1154. TARGET_DEVICES += teltonika_rutx50
  1155. define Device/tel_x1pro
  1156. $(call Device/FitImage)
  1157. DEVICE_VENDOR := Telco
  1158. DEVICE_MODEL := X1 Pro
  1159. SOC := qcom-ipq4019
  1160. KERNEL_SIZE := 4096k
  1161. IMAGE_SIZE := 31232k
  1162. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  1163. DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
  1164. DEFAULT := n
  1165. endef
  1166. # Missing DSA Setup
  1167. #TARGET_DEVICES += tel_x1pro
  1168. define Device/unielec_u4019-32m
  1169. $(call Device/FitImage)
  1170. DEVICE_VENDOR := Unielec
  1171. DEVICE_MODEL := U4019
  1172. DEVICE_VARIANT := 32M
  1173. BOARD_NAME := u4019-32m
  1174. SOC := qcom-ipq4019
  1175. KERNEL_SIZE := 4096k
  1176. IMAGE_SIZE := 31232k
  1177. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  1178. DEFAULT := n
  1179. endef
  1180. # Missing DSA Setup
  1181. #TARGET_DEVICES += unielec_u4019-32m
  1182. define Device/wallys_dr40x9
  1183. $(call Device/FitImage)
  1184. $(call Device/UbiFit)
  1185. DEVICE_VENDOR := Wallys
  1186. DEVICE_MODEL := DR40X9
  1187. SOC := qcom-ipq40x9
  1188. DEVICE_DTS_CONFIG := [email protected]
  1189. BLOCKSIZE := 128k
  1190. PAGESIZE := 2048
  1191. DEVICE_PACKAGES := ipq-wifi-wallys_dr40x9
  1192. endef
  1193. TARGET_DEVICES += wallys_dr40x9
  1194. define Device/yyets_le1
  1195. $(call Device/FitzImage)
  1196. DEVICE_VENDOR := YYeTs
  1197. DEVICE_MODEL := LE1
  1198. SOC := qcom-ipq4019
  1199. KERNEL_SIZE := 4096k
  1200. IMAGE_SIZE := 31232k
  1201. IMAGES += factory.bin
  1202. IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
  1203. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  1204. DEVICE_PACKAGES := ipq-wifi-yyets_le1 kmod-usb-ledtrig-usbport
  1205. endef
  1206. TARGET_DEVICES += yyets_le1
  1207. define Device/zte_mf18a
  1208. $(call Device/FitImage)
  1209. DEVICE_VENDOR := ZTE
  1210. DEVICE_MODEL := MF18A
  1211. SOC := qcom-ipq4019
  1212. DEVICE_DTS_CONFIG := [email protected]
  1213. BLOCKSIZE := 128k
  1214. PAGESIZE := 2048
  1215. KERNEL_IN_UBI := 1
  1216. DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
  1217. endef
  1218. TARGET_DEVICES += zte_mf18a
  1219. define Device/zte_mf28x_common
  1220. $(call Device/FitzImage)
  1221. DEVICE_VENDOR := ZTE
  1222. SOC := qcom-ipq4019
  1223. DEVICE_DTS_CONFIG := [email protected]
  1224. BLOCKSIZE := 128k
  1225. PAGESIZE := 2048
  1226. KERNEL_IN_UBI := 1
  1227. DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
  1228. endef
  1229. define Device/zte_mf282plus
  1230. $(call Device/zte_mf28x_common)
  1231. DEVICE_MODEL := MF282Plus
  1232. # The recovery image is used to return back to stock (an initramfs-based image
  1233. # that can be flashed to the device via sysupgrade
  1234. # The factory image is used to install from the stock firmware by using an
  1235. # exploit for the web interface
  1236. IMAGES += factory.bin recovery.bin
  1237. IMAGE/factory.bin := append-ubi
  1238. IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
  1239. DEVICE_PACKAGES := kmod-usb-acm kmod-usb-net-rndis
  1240. endef
  1241. TARGET_DEVICES += zte_mf282plus
  1242. define Device/zte_mf286d
  1243. $(call Device/zte_mf28x_common)
  1244. DEVICE_MODEL := MF286D
  1245. endef
  1246. TARGET_DEVICES += zte_mf286d
  1247. define Device/zte_mf287_common
  1248. $(call Device/zte_mf28x_common)
  1249. SOC := qcom-ipq4018
  1250. # The recovery image is used to return back to stock (an initramfs-based image
  1251. # that can be flashed to the device via sysupgrade
  1252. # The factory image is used to install from the stock firmware by using an
  1253. # exploit for the web interface
  1254. IMAGES += factory.bin recovery.bin
  1255. IMAGE/factory.bin := append-ubi
  1256. IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
  1257. endef
  1258. define Device/zte_mf287plus
  1259. $(call Device/zte_mf287_common)
  1260. DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
  1261. DEVICE_DTS_CONFIG := [email protected]
  1262. DEVICE_MODEL := MF287Plus
  1263. endef
  1264. TARGET_DEVICES += zte_mf287plus
  1265. define Device/zte_mf287
  1266. $(call Device/zte_mf287_common)
  1267. DEVICE_PACKAGES += ipq-wifi-zte_mf287
  1268. DEVICE_DTS_CONFIG := [email protected]
  1269. DEVICE_MODEL := MF287
  1270. endef
  1271. TARGET_DEVICES += zte_mf287
  1272. define Device/zte_mf287pro
  1273. $(call Device/zte_mf287_common)
  1274. DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
  1275. DEVICE_DTS_CONFIG := [email protected]
  1276. DEVICE_MODEL := MF287Pro
  1277. endef
  1278. TARGET_DEVICES += zte_mf287pro
  1279. define Device/zte_mf289f
  1280. $(call Device/zte_mf28x_common)
  1281. DEVICE_MODEL := MF289F
  1282. DEVICE_PACKAGES += ath10k-firmware-qca9984-ct
  1283. endef
  1284. TARGET_DEVICES += zte_mf289f
  1285. define Device/zyxel_nbg6617
  1286. $(call Device/FitImageLzma)
  1287. DEVICE_VENDOR := Zyxel
  1288. DEVICE_MODEL := NBG6617
  1289. SOC := qcom-ipq4018
  1290. KERNEL_SIZE := 4096k
  1291. ROOTFS_SIZE := 24960k
  1292. RAS_BOARD := NBG6617
  1293. RAS_ROOTFS_SIZE := 19840k
  1294. RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
  1295. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  1296. IMAGES += factory.bin
  1297. # The Zyxel firmware allows flashing thru the web-gui only when the rootfs is
  1298. # at least as large as the one of the initial firmware image (not the current
  1299. # one on the device). This only applies to the Web-UI, the bootlaoder ignores
  1300. # this minimum-size. However, the larger image can be flashed both ways.
  1301. IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
  1302. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
  1303. DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
  1304. endef
  1305. TARGET_DEVICES += zyxel_nbg6617
  1306. define Device/zyxel_wre6606
  1307. $(call Device/FitImage)
  1308. DEVICE_VENDOR := Zyxel
  1309. DEVICE_MODEL := WRE6606
  1310. DEVICE_DTS_CONFIG := config@4
  1311. SOC := qcom-ipq4018
  1312. IMAGE_SIZE := 13184k
  1313. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  1314. DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
  1315. endef
  1316. # Missing DSA Setup
  1317. #TARGET_DEVICES += zyxel_wre6606