generic.mk 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042
  1. DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
  2. DEVICE_VARS += RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
  3. DEVICE_VARS += WRGG_DEVNAME WRGG_SIGNATURE
  4. define Device/FitImage
  5. KERNEL_SUFFIX := -fit-uImage.itb
  6. KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  7. KERNEL_NAME := Image
  8. endef
  9. define Device/FitImageLzma
  10. KERNEL_SUFFIX := -fit-uImage.itb
  11. KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  12. KERNEL_NAME := Image
  13. endef
  14. define Device/FitzImage
  15. KERNEL_SUFFIX := -fit-zImage.itb
  16. KERNEL = kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  17. KERNEL_NAME := zImage
  18. endef
  19. define Device/UbiFit
  20. KERNEL_IN_UBI := 1
  21. IMAGES := nand-factory.ubi nand-sysupgrade.bin
  22. IMAGE/nand-factory.ubi := append-ubi
  23. IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata
  24. endef
  25. define Device/DniImage
  26. $(call Device/FitzImage)
  27. NETGEAR_BOARD_ID :=
  28. NETGEAR_HW_ID :=
  29. IMAGES += factory.img
  30. IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
  31. IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | \
  32. append-rootfs | pad-rootfs | check-size | append-metadata
  33. endef
  34. define Build/append-rootfshdr
  35. mkimage -A $(LINUX_KARCH) \
  36. -O linux -T filesystem \
  37. -C lzma -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
  38. -n root.squashfs -d $(IMAGE_ROOTFS) [email protected]
  39. dd [email protected] bs=64 count=1 >> $(IMAGE_KERNEL)
  40. endef
  41. define Build/append-rutx-metadata
  42. echo \
  43. '{ \
  44. "device_code": [".*"], \
  45. "hwver": [".*"], \
  46. "batch": [".*"], \
  47. "serial": [".*"], \
  48. "supported_devices":["teltonika,rutx"] \
  49. }' | fwtool -I - $@
  50. endef
  51. define Build/copy-file
  52. cat "$(1)" > "$@"
  53. endef
  54. define Build/mkmylofw_32m
  55. $(eval device_id=$(word 1,$(1)))
  56. $(eval revision=$(word 2,$(1)))
  57. let \
  58. size="$$(stat -c%s $@)" \
  59. pad="$(subst k,* 1024,$(BLOCKSIZE))" \
  60. pad="(pad - (size % pad)) % pad" \
  61. newsize='size + pad'; \
  62. $(STAGING_DIR_HOST)/bin/mkmylofw \
  63. -B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
  64. -s 0x2000000 -p0x180000:$$newsize:al:0x80208000:"OpenWrt":$@ \
  65. [email protected]
  66. @mv [email protected] $@
  67. endef
  68. define Build/wac5xx-netgear-tar
  69. mkdir [email protected]
  70. mv $@ [email protected]/wac5xx-ubifs-root.img
  71. md5sum [email protected]/wac5xx-ubifs-root.img > [email protected]/wac5xx-ubifs-root.md5sum
  72. echo "WAC505 WAC510" > [email protected]/metadata.txt
  73. echo "WAC505_V9.9.9.9" > [email protected]/version
  74. tar -C [email protected]/ -cf $@ .
  75. rm -rf [email protected]
  76. endef
  77. define Build/qsdk-ipq-factory-nand-askey
  78. $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh [email protected]\
  79. askey_kernel $(IMAGE_KERNEL) \
  80. askey_fs $(IMAGE_ROOTFS) \
  81. ubifs $@
  82. PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f [email protected] [email protected]
  83. @mv [email protected] $@
  84. endef
  85. define Build/qsdk-ipq-app-gpt
  86. cp $@ [email protected] 2>/dev/null || true
  87. ptgen -g -o [email protected] -a 1 -l 1024 \
  88. -t 0x2e -N 0:HLOS -r -p 32M \
  89. -t 0x83 -N rootfs -r -p 128M \
  90. -N rootfs_data -p 512M
  91. cat [email protected] >> $@
  92. rm [email protected]
  93. endef
  94. define Build/SenaoFW
  95. -$(STAGING_DIR_HOST)/bin/mksenaofw \
  96. -n $(BOARD_NAME) -r $(VENDOR_ID) -p $(1) \
  97. -c $(DATECODE) -w $(2) -x $(CW_VER) -t 0 \
  98. -e $@ \
  99. -o [email protected]
  100. @cp [email protected] $@
  101. endef
  102. define Build/wrgg-image
  103. mkwrggimg -i $@ \
  104. -o [email protected] \
  105. -d "$(WRGG_DEVNAME)" \
  106. -s "$(WRGG_SIGNATURE)" \
  107. -v "" -m "" -B ""
  108. mv [email protected] $@
  109. endef
  110. define Device/8dev_habanero-dvk
  111. $(call Device/FitImageLzma)
  112. DEVICE_VENDOR := 8devices
  113. DEVICE_MODEL := Habanero DVK
  114. IMAGE_SIZE := 30976k
  115. SOC := qcom-ipq4019
  116. DEVICE_PACKAGES := ipq-wifi-8dev_habanero-dvk
  117. IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | check-size | append-metadata
  118. endef
  119. TARGET_DEVICES += 8dev_habanero-dvk
  120. define Device/8dev_jalapeno-common
  121. $(call Device/FitImage)
  122. $(call Device/UbiFit)
  123. BLOCKSIZE := 128k
  124. PAGESIZE := 2048
  125. SOC := qcom-ipq4018
  126. endef
  127. define Device/8dev_jalapeno
  128. $(call Device/8dev_jalapeno-common)
  129. DEVICE_VENDOR := 8devices
  130. DEVICE_MODEL := Jalapeno
  131. endef
  132. TARGET_DEVICES += 8dev_jalapeno
  133. define Device/alfa-network_ap120c-ac
  134. $(call Device/FitImage)
  135. $(call Device/UbiFit)
  136. DEVICE_VENDOR := ALFA Network
  137. DEVICE_MODEL := AP120C-AC
  138. SOC := qcom-ipq4018
  139. DEVICE_PACKAGES := kmod-usb-acm kmod-tpm-i2c-atmel
  140. BLOCKSIZE := 128k
  141. PAGESIZE := 2048
  142. IMAGE_SIZE := 65536k
  143. IMAGES := nand-factory.bin nand-sysupgrade.bin
  144. IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
  145. endef
  146. TARGET_DEVICES += alfa-network_ap120c-ac
  147. define Device/aruba_glenmorangie
  148. $(call Device/FitImageLzma)
  149. DEVICE_VENDOR := Aruba
  150. SOC := qcom-ipq4029
  151. DEVICE_PACKAGES := ipq-wifi-aruba_ap-303
  152. endef
  153. define Device/aruba_ap-303
  154. $(call Device/aruba_glenmorangie)
  155. DEVICE_MODEL := AP-303
  156. endef
  157. TARGET_DEVICES += aruba_ap-303
  158. define Device/aruba_ap-303h
  159. $(call Device/aruba_glenmorangie)
  160. DEVICE_MODEL := AP-303H
  161. endef
  162. TARGET_DEVICES += aruba_ap-303h
  163. define Device/aruba_ap-365
  164. $(call Device/aruba_glenmorangie)
  165. DEVICE_MODEL := AP-365
  166. DEVICE_PACKAGES += kmod-hwmon-ad7418
  167. endef
  168. TARGET_DEVICES += aruba_ap-365
  169. define Device/asus_map-ac2200
  170. $(call Device/FitImageLzma)
  171. DEVICE_VENDOR := ASUS
  172. DEVICE_MODEL := Lyra (MAP-AC2200)
  173. SOC := qcom-ipq4019
  174. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
  175. endef
  176. TARGET_DEVICES += asus_map-ac2200
  177. # WARNING: this is an initramfs image that gets you half of the way there
  178. # you need to delete the jffs2 ubi volume and sysupgrade to the final image
  179. # to get a "trx" you can flash via web UI for ac42u/ac58u:
  180. # - change call Device/FitImageLzma to Device/FitImage
  181. # - add the following below UIMAGE_NAME
  182. # UIMAGE_MAGIC := 0x27051956
  183. # IMAGES += factory.trx
  184. # IMAGE/factory.trx := copy-file $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) | uImage none
  185. define Device/asus_rt-ac42u
  186. $(call Device/FitImageLzma)
  187. DEVICE_VENDOR := ASUS
  188. DEVICE_MODEL := RT-AC42U
  189. DEVICE_ALT0_VENDOR := ASUS
  190. DEVICE_ALT0_MODEL := RT-ACRH17
  191. DEVICE_ALT1_VENDOR := ASUS
  192. DEVICE_ALT1_MODEL := RT-AC2200
  193. SOC := qcom-ipq4019
  194. BLOCKSIZE := 128k
  195. PAGESIZE := 2048
  196. IMAGE_SIZE := 20439364
  197. FILESYSTEMS := squashfs
  198. # RT-AC82U is nowhere to be found online
  199. # Rather, this device is a/k/a RT-AC42U
  200. # But we'll go with what the vendor firmware has...
  201. UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC82U')
  202. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct ipq-wifi-asus_rt-ac42u kmod-usb-ledtrig-usbport
  203. endef
  204. TARGET_DEVICES += asus_rt-ac42u
  205. define Device/asus_rt-ac58u
  206. $(call Device/FitImageLzma)
  207. DEVICE_VENDOR := ASUS
  208. DEVICE_MODEL := RT-AC58U
  209. DEVICE_ALT0_VENDOR := ASUS
  210. DEVICE_ALT0_MODEL := RT-ACRH13
  211. SOC := qcom-ipq4018
  212. BLOCKSIZE := 128k
  213. PAGESIZE := 2048
  214. IMAGE_SIZE := 20439364
  215. FILESYSTEMS := squashfs
  216. # Someone - in their infinite wisdom - decided to put the firmware
  217. # version in front of the image name \03\00\00\04 => Version 3.0.0.4
  218. # Since u-boot works with strings we either need another fixup step
  219. # to add a version... or we are very careful not to add '\0' into that
  220. # string and call it a day.... Yeah, we do the latter!
  221. UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
  222. DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
  223. kmod-usb-ledtrig-usbport
  224. endef
  225. TARGET_DEVICES += asus_rt-ac58u
  226. define Device/avm_fritzbox-4040
  227. $(call Device/FitImageLzma)
  228. DEVICE_VENDOR := AVM
  229. DEVICE_MODEL := FRITZ!Box 4040
  230. SOC := qcom-ipq4018
  231. BOARD_NAME := fritz4040
  232. IMAGE_SIZE := 29056k
  233. UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
  234. UBOOT_PARTITION_SIZE := 524288
  235. IMAGES += eva.bin
  236. IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
  237. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  238. DEVICE_PACKAGES := fritz-tffs fritz-caldata
  239. endef
  240. TARGET_DEVICES += avm_fritzbox-4040
  241. define Device/avm_fritzbox-7530
  242. $(call Device/FitImageLzma)
  243. DEVICE_VENDOR := AVM
  244. DEVICE_MODEL := FRITZ!Box 7530
  245. DEVICE_ALT0_VENDOR := AVM
  246. DEVICE_ALT0_MODEL := FRITZ!Box 7520
  247. SOC := qcom-ipq4019
  248. DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
  249. endef
  250. TARGET_DEVICES += avm_fritzbox-7530
  251. define Device/avm_fritzrepeater-1200
  252. $(call Device/FitImageLzma)
  253. DEVICE_VENDOR := AVM
  254. DEVICE_MODEL := FRITZ!Repeater 1200
  255. SOC := qcom-ipq4019
  256. DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-1200
  257. endef
  258. TARGET_DEVICES += avm_fritzrepeater-1200
  259. define Device/avm_fritzrepeater-3000
  260. $(call Device/FitImageLzma)
  261. DEVICE_VENDOR := AVM
  262. DEVICE_MODEL := FRITZ!Repeater 3000
  263. SOC := qcom-ipq4019
  264. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
  265. endef
  266. TARGET_DEVICES += avm_fritzrepeater-3000
  267. define Device/buffalo_wtr-m2133hp
  268. $(call Device/FitImage)
  269. $(call Device/UbiFit)
  270. DEVICE_VENDOR := Buffalo
  271. DEVICE_MODEL := WTR-M2133HP
  272. SOC := qcom-ipq4019
  273. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct ipq-wifi-buffalo_wtr-m2133hp
  274. BLOCKSIZE := 128k
  275. PAGESIZE := 2048
  276. endef
  277. TARGET_DEVICES += buffalo_wtr-m2133hp
  278. define Device/cellc_rtl30vw
  279. KERNEL_SUFFIX := -fit-zImage.itb
  280. KERNEL_INITRAMFS = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  281. KERNEL = kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb | uImage lzma | pad-to 2048
  282. KERNEL_NAME := zImage
  283. KERNEL_IN_UBI :=
  284. IMAGES := nand-factory.bin nand-sysupgrade.bin
  285. IMAGE/nand-factory.bin := append-rootfshdr | append-ubi | qsdk-ipq-factory-nand-askey
  286. IMAGE/nand-sysupgrade.bin := append-rootfshdr | sysupgrade-tar | append-metadata
  287. DEVICE_VENDOR := Cell C
  288. DEVICE_MODEL := RTL30VW
  289. SOC := qcom-ipq4019
  290. DEVICE_DTS_CONFIG := config@5
  291. KERNEL_INSTALL := 1
  292. KERNEL_SIZE := 4096k
  293. IMAGE_SIZE := 57344k
  294. BLOCKSIZE := 128k
  295. PAGESIZE := 2048
  296. DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi ipq-wifi-cellc_rtl30vw
  297. endef
  298. TARGET_DEVICES += cellc_rtl30vw
  299. define Device/cilab_meshpoint-one
  300. $(call Device/8dev_jalapeno-common)
  301. DEVICE_VENDOR := Crisis Innovation Lab
  302. DEVICE_MODEL := MeshPoint.One
  303. DEVICE_PACKAGES := kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
  304. endef
  305. TARGET_DEVICES += cilab_meshpoint-one
  306. define Device/compex_wpj419
  307. $(call Device/FitImage)
  308. $(call Device/UbiFit)
  309. DEVICE_VENDOR := Compex
  310. DEVICE_MODEL := WPJ419
  311. SOC := qcom-ipq4019
  312. DEVICE_DTS_CONFIG := config@12
  313. KERNEL_INSTALL := 1
  314. BLOCKSIZE := 128k
  315. PAGESIZE := 2048
  316. FILESYSTEMS := squashfs
  317. endef
  318. TARGET_DEVICES += compex_wpj419
  319. define Device/compex_wpj428
  320. $(call Device/FitImage)
  321. DEVICE_VENDOR := Compex
  322. DEVICE_MODEL := WPJ428
  323. SOC := qcom-ipq4028
  324. DEVICE_DTS_CONFIG := config@4
  325. BLOCKSIZE := 64k
  326. IMAGE_SIZE := 31232k
  327. KERNEL_SIZE := 4096k
  328. IMAGES += cpximg-6a04.bin
  329. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  330. IMAGE/cpximg-6a04.bin := append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m 0x8A2 3
  331. DEVICE_PACKAGES := kmod-gpio-beeper
  332. DEFAULT := n
  333. endef
  334. TARGET_DEVICES += compex_wpj428
  335. define Device/devolo_magic-2-wifi-next
  336. $(call Device/FitImage)
  337. DEVICE_VENDOR := devolo
  338. DEVICE_MODEL := Magic 2 WiFi next
  339. SOC := qcom-ipq4018
  340. KERNEL_SIZE := 4096k
  341. # If the bootloader sees 0xDEADC0DE and this trailer at the 64k boundary of a TFTP image
  342. # it will bootm it, just like we want for the initramfs.
  343. KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to 64k |\
  344. append-string -e '\xDE\xAD\xC0\xDE{"fl_initramfs":""}\x00'
  345. IMAGE_SIZE := 26624k
  346. IMAGES := sysupgrade.bin
  347. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  348. DEVICE_PACKAGES := ipq-wifi-devolo_magic-2-wifi-next
  349. DEFAULT := n
  350. endef
  351. TARGET_DEVICES += devolo_magic-2-wifi-next
  352. define Device/dlink_dap-2610
  353. $(call Device/FitImageLzma)
  354. DEVICE_VENDOR := D-Link
  355. DEVICE_MODEL := DAP-2610
  356. SOC := qcom-ipq4018
  357. DEVICE_DTS_CONFIG := [email protected]
  358. BLOCKSIZE := 64k
  359. WRGG_DEVNAME := /dev/mtdblock/8
  360. WRGG_SIGNATURE := wapac30_dkbs_dap2610
  361. IMAGE_SIZE := 14080k
  362. IMAGES += factory.bin
  363. # Bootloader expects a special 160 byte header which is added by
  364. # wrgg-image.
  365. # Factory image size must be larger than 6MB, and size in wrgg header must
  366. # match actual factory image size to be flashable from D-Link http server.
  367. # Bootloader verifies checksum of wrgg image before booting, thus jffs2
  368. # cannot be part of the wrgg image. This is solved in the factory image by
  369. # having the rootfs at the end of the image (without pad-rootfs). And in
  370. # the sysupgrade image only the kernel is included in the wrgg checksum,
  371. # but this is not flashable from the D-link http server.
  372. # append-rootfs must start on an erase block boundary.
  373. IMAGE/factory.bin := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size
  374. IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | append-metadata
  375. DEVICE_PACKAGES := ipq-wifi-dlink_dap2610
  376. endef
  377. TARGET_DEVICES += dlink_dap-2610
  378. define Device/edgecore_ecw5211
  379. $(call Device/FitImage)
  380. $(call Device/UbiFit)
  381. DEVICE_VENDOR := Edgecore
  382. DEVICE_MODEL := ECW5211
  383. SOC := qcom-ipq4018
  384. BLOCKSIZE := 128k
  385. PAGESIZE := 2048
  386. DEVICE_DTS_CONFIG := [email protected]
  387. DEVICE_PACKAGES := kmod-tpm-i2c-atmel kmod-usb-acm
  388. endef
  389. TARGET_DEVICES += edgecore_ecw5211
  390. define Device/edgecore_oap100
  391. $(call Device/FitImage)
  392. $(call Device/UbiFit)
  393. DEVICE_VENDOR := Edgecore
  394. DEVICE_MODEL := OAP100
  395. SOC := qcom-ipq4019
  396. BLOCKSIZE := 128k
  397. PAGESIZE := 2048
  398. IMAGES := nand-sysupgrade.bin
  399. DEVICE_DTS_CONFIG := [email protected]
  400. DEVICE_PACKAGES := ipq-wifi-edgecore_oap100 kmod-usb-acm kmod-usb-net kmod-usb-net-cdc-qmi uqmi
  401. endef
  402. TARGET_DEVICES += edgecore_oap100
  403. define Device/engenius_eap1300
  404. $(call Device/FitImage)
  405. DEVICE_VENDOR := EnGenius
  406. DEVICE_MODEL := EAP1300
  407. DEVICE_DTS_CONFIG := config@4
  408. BOARD_NAME := eap1300
  409. SOC := qcom-ipq4018
  410. KERNEL_SIZE := 5120k
  411. IMAGE_SIZE := 25344k
  412. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  413. endef
  414. TARGET_DEVICES += engenius_eap1300
  415. define Device/engenius_eap2200
  416. $(call Device/FitImage)
  417. $(call Device/UbiFit)
  418. DEVICE_VENDOR := EnGenius
  419. DEVICE_MODEL := EAP2200
  420. SOC := qcom-ipq4019
  421. BLOCKSIZE := 128k
  422. PAGESIZE := 2048
  423. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-engenius_eap2200 -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
  424. endef
  425. TARGET_DEVICES += engenius_eap2200
  426. define Device/engenius_emd1
  427. $(call Device/FitImage)
  428. DEVICE_VENDOR := EnGenius
  429. DEVICE_MODEL := EMD1
  430. DEVICE_DTS_CONFIG := config@4
  431. SOC := qcom-ipq4018
  432. IMAGE_SIZE := 30720k
  433. IMAGES += factory.bin
  434. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  435. IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
  436. DEVICE_PACKAGES := ipq-wifi-engenius_emd1
  437. endef
  438. TARGET_DEVICES += engenius_emd1
  439. define Device/engenius_emr3500
  440. $(call Device/FitImage)
  441. DEVICE_VENDOR := EnGenius
  442. DEVICE_MODEL := EMR3500
  443. DEVICE_DTS_CONFIG := config@4
  444. SOC := qcom-ipq4018
  445. KERNEL_SIZE := 4096k
  446. IMAGE_SIZE := 30720k
  447. IMAGES += factory.bin
  448. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  449. IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size
  450. DEVICE_PACKAGES := ipq-wifi-engenius_emr3500
  451. DEFAULT := n
  452. endef
  453. TARGET_DEVICES += engenius_emr3500
  454. define Device/engenius_ens620ext
  455. $(call Device/FitImage)
  456. DEVICE_VENDOR := EnGenius
  457. DEVICE_MODEL := ENS620EXT
  458. SOC := qcom-ipq4018
  459. DEVICE_DTS_CONFIG := config@4
  460. BLOCKSIZE := 64k
  461. PAGESIZE := 256
  462. BOARD_NAME := ENS620EXT
  463. VENDOR_ID := 0x0101
  464. PRODUCT_ID := 0x79
  465. PRODUCT_ID_NEW := 0xA4
  466. DATECODE := 190507
  467. FW_VER := 3.1.2
  468. FW_VER_NEW := 3.5.6
  469. CW_VER := 1.8.99
  470. IMAGE_SIZE := 21312k
  471. KERNEL_SIZE := 5120k
  472. FILESYSTEMS := squashfs
  473. IMAGES += factory_30.bin factory_35.bin
  474. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  475. IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
  476. IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
  477. endef
  478. TARGET_DEVICES += engenius_ens620ext
  479. define Device/ezviz_cs-w3-wd1200g-eup
  480. $(call Device/FitImage)
  481. DEVICE_VENDOR := EZVIZ
  482. DEVICE_MODEL := CS-W3-WD1200G
  483. DEVICE_VARIANT := EUP
  484. IMAGE_SIZE := 14848k
  485. KERNEL_SIZE = 6m
  486. SOC := qcom-ipq4018
  487. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
  488. append-metadata
  489. DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
  490. ipq-wifi-ezviz_cs-w3-wd1200g-eup
  491. DEVICE_COMPAT_VERSION := 2.0
  492. DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
  493. Upgrade via sysupgrade mechanism is not possible.
  494. endef
  495. TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
  496. define Device/glinet_gl-ap1300
  497. $(call Device/FitImage)
  498. $(call Device/UbiFit)
  499. DEVICE_VENDOR := GL.iNet
  500. DEVICE_MODEL := GL-AP1300
  501. SOC := qcom-ipq4018
  502. DEVICE_DTS_CONFIG := [email protected]
  503. BLOCKSIZE := 128k
  504. PAGESIZE := 2048
  505. IMAGE_SIZE := 131072k
  506. KERNEL_INSTALL := 1
  507. DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300
  508. endef
  509. TARGET_DEVICES += glinet_gl-ap1300
  510. define Device/glinet_gl-b1300
  511. $(call Device/FitzImage)
  512. DEVICE_VENDOR := GL.iNet
  513. DEVICE_MODEL := GL-B1300
  514. BOARD_NAME := gl-b1300
  515. SOC := qcom-ipq4029
  516. KERNEL_SIZE := 4096k
  517. IMAGE_SIZE := 26624k
  518. IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
  519. endef
  520. TARGET_DEVICES += glinet_gl-b1300
  521. define Device/glinet_gl-b2200
  522. $(call Device/FitzImage)
  523. DEVICE_VENDOR := GL.iNet
  524. DEVICE_MODEL := GL-B2200
  525. SOC := qcom-ipq4019
  526. DEVICE_DTS_CONFIG := [email protected]
  527. KERNEL_INITRAMFS_SUFFIX := -recovery.itb
  528. IMAGES := emmc.img.gz sysupgrade.bin
  529. IMAGE/emmc.img.gz := qsdk-ipq-app-gpt |\
  530. pad-to 1024k | append-kernel |\
  531. pad-to 33792k | append-rootfs |\
  532. append-metadata | gzip
  533. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  534. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-glinet_gl-b2200 \
  535. kmod-fs-ext4 kmod-mmc kmod-spi-dev mkf2fs e2fsprogs kmod-fs-f2fs
  536. endef
  537. TARGET_DEVICES += glinet_gl-b2200
  538. define Device/glinet_gl-s1300
  539. $(call Device/FitzImage)
  540. DEVICE_VENDOR := GL.iNet
  541. DEVICE_MODEL := GL-S1300
  542. SOC := qcom-ipq4029
  543. KERNEL_SIZE := 4096k
  544. IMAGE_SIZE := 26624k
  545. IMAGES := sysupgrade.bin
  546. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  547. DEVICE_PACKAGES := ipq-wifi-glinet_gl-s1300 kmod-fs-ext4 kmod-mmc kmod-spi-dev
  548. endef
  549. TARGET_DEVICES += glinet_gl-s1300
  550. define Device/linksys_ea6350v3
  551. # The Linksys EA6350v3 has a uboot bootloader that does not
  552. # support either booting lzma kernel images nor booting UBI
  553. # partitions. This uboot, however, supports raw kernel images and
  554. # gzipped images.
  555. #
  556. # As for the time of writing this, the device will boot the kernel
  557. # from a fixed address with a fixed length of 3MiB. Also, the
  558. # device has a hard-coded kernel command line that requieres the
  559. # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
  560. # Oh... and the kernel partition overlaps with the rootfs
  561. # partition (the same for alt_kernel and alt_rootfs).
  562. #
  563. # If you are planing re-partitioning the device, you may want to
  564. # keep those details in mind:
  565. # 1. The kernel adresses you should honor are 0x00000000 and
  566. # 0x02800000 respectively.
  567. # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
  568. # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
  569. # 4. The kernel command line from uboot is harcoded to boot with
  570. # rootfs either in mtd11 or mtd13.
  571. $(call Device/FitzImage)
  572. DEVICE_VENDOR := Linksys
  573. DEVICE_MODEL := EA6350
  574. DEVICE_VARIANT := v3
  575. SOC := qcom-ipq4018
  576. BLOCKSIZE := 128k
  577. PAGESIZE := 2048
  578. KERNEL_SIZE := 3072k
  579. IMAGE_SIZE := 37888k
  580. UBINIZE_OPTS := -E 5
  581. IMAGES += factory.bin
  582. IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
  583. endef
  584. TARGET_DEVICES += linksys_ea6350v3
  585. define Device/linksys_ea8300
  586. $(call Device/FitzImage)
  587. DEVICE_VENDOR := Linksys
  588. DEVICE_MODEL := EA8300
  589. SOC := qcom-ipq4019
  590. KERNEL_SIZE := 3072k
  591. IMAGE_SIZE := 87040k
  592. BLOCKSIZE := 128k
  593. PAGESIZE := 2048
  594. UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
  595. IMAGES += factory.bin
  596. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
  597. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
  598. endef
  599. TARGET_DEVICES += linksys_ea8300
  600. define Device/linksys_mr8300
  601. $(call Device/FitzImage)
  602. DEVICE_VENDOR := Linksys
  603. DEVICE_MODEL := MR8300
  604. SOC := qcom-ipq4019
  605. KERNEL_SIZE := 3072k
  606. IMAGE_SIZE := 87040k
  607. BLOCKSIZE := 128k
  608. PAGESIZE := 2048
  609. UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
  610. IMAGES += factory.bin
  611. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MR8300
  612. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-linksys_mr8300-v0 kmod-usb-ledtrig-usbport
  613. endef
  614. TARGET_DEVICES += linksys_mr8300
  615. define Device/luma_wrtq-329acn
  616. $(call Device/FitImage)
  617. DEVICE_VENDOR := Luma Home
  618. DEVICE_MODEL := WRTQ-329ACN
  619. SOC := qcom-ipq4018
  620. DEVICE_PACKAGES := ipq-wifi-luma_wrtq-329acn kmod-ath3k kmod-eeprom-at24 kmod-i2c-gpio
  621. IMAGE_SIZE := 76632k
  622. BLOCKSIZE := 128k
  623. PAGESIZE := 2048
  624. endef
  625. TARGET_DEVICES += luma_wrtq-329acn
  626. define Device/meraki_mr33
  627. $(call Device/FitImage)
  628. DEVICE_VENDOR := Cisco Meraki
  629. DEVICE_MODEL := MR33
  630. SOC := qcom-ipq4029
  631. BLOCKSIZE := 128k
  632. PAGESIZE := 2048
  633. DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
  634. endef
  635. TARGET_DEVICES += meraki_mr33
  636. define Device/mobipromo_cm520-79f
  637. $(call Device/FitzImage)
  638. $(call Device/UbiFit)
  639. DEVICE_VENDOR := MobiPromo
  640. DEVICE_MODEL := CM520-79F
  641. SOC := qcom-ipq4019
  642. BLOCKSIZE := 128k
  643. PAGESIZE := 2048
  644. DEVICE_PACKAGES := ipq-wifi-mobipromo_cm520-79f kmod-usb-ledtrig-usbport
  645. endef
  646. TARGET_DEVICES += mobipromo_cm520-79f
  647. define Device/netgear_ex61x0v2
  648. $(call Device/DniImage)
  649. DEVICE_VENDOR := NETGEAR
  650. DEVICE_DTS_CONFIG := config@4
  651. NETGEAR_BOARD_ID := EX6150v2series
  652. NETGEAR_HW_ID := 29765285+16+0+128+2x2
  653. IMAGE_SIZE := 14400k
  654. SOC := qcom-ipq4018
  655. endef
  656. define Device/netgear_ex6100v2
  657. $(call Device/netgear_ex61x0v2)
  658. DEVICE_MODEL := EX6100
  659. DEVICE_VARIANT := v2
  660. endef
  661. TARGET_DEVICES += netgear_ex6100v2
  662. define Device/netgear_ex6150v2
  663. $(call Device/netgear_ex61x0v2)
  664. DEVICE_MODEL := EX6150
  665. DEVICE_VARIANT := v2
  666. endef
  667. TARGET_DEVICES += netgear_ex6150v2
  668. define Device/netgear_orbi
  669. $(call Device/DniImage)
  670. SOC := qcom-ipq4019
  671. DEVICE_VENDOR := NETGEAR
  672. IMAGE/factory.img := append-kernel | pad-offset 128k 64 | \
  673. append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \
  674. append-rootfs | pad-rootfs | netgear-dni
  675. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | \
  676. sysupgrade-tar rootfs=$$$$@ | append-metadata
  677. DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup
  678. endef
  679. define Device/netgear_rbx50
  680. $(call Device/netgear_orbi)
  681. NETGEAR_HW_ID := 29765352+0+4000+512+2x2+2x2+4x4
  682. KERNEL_SIZE := 3932160
  683. ROOTFS_SIZE := 32243712
  684. IMAGE_SIZE := 36175872
  685. endef
  686. define Device/netgear_rbr50
  687. $(call Device/netgear_rbx50)
  688. DEVICE_MODEL := RBR50
  689. DEVICE_VARIANT := v1
  690. NETGEAR_BOARD_ID := RBR50
  691. endef
  692. TARGET_DEVICES += netgear_rbr50
  693. define Device/netgear_rbs50
  694. $(call Device/netgear_rbx50)
  695. DEVICE_MODEL := RBS50
  696. DEVICE_VARIANT := v1
  697. NETGEAR_BOARD_ID := RBS50
  698. endef
  699. TARGET_DEVICES += netgear_rbs50
  700. define Device/netgear_srx60
  701. $(call Device/netgear_orbi)
  702. NETGEAR_HW_ID := 29765352+0+4096+512+2x2+2x2+4x4
  703. KERNEL_SIZE := 3932160
  704. ROOTFS_SIZE := 32243712
  705. IMAGE_SIZE := 36175872
  706. endef
  707. define Device/netgear_srr60
  708. $(call Device/netgear_srx60)
  709. DEVICE_MODEL := SRR60
  710. NETGEAR_BOARD_ID := SRR60
  711. endef
  712. TARGET_DEVICES += netgear_srr60
  713. define Device/netgear_srs60
  714. $(call Device/netgear_srx60)
  715. DEVICE_MODEL := SRS60
  716. NETGEAR_BOARD_ID := SRS60
  717. endef
  718. TARGET_DEVICES += netgear_srs60
  719. define Device/netgear_wac510
  720. $(call Device/FitImage)
  721. $(call Device/UbiFit)
  722. DEVICE_VENDOR := Netgear
  723. DEVICE_MODEL := WAC510
  724. SOC := qcom-ipq4018
  725. DEVICE_DTS_CONFIG := config@5
  726. BLOCKSIZE := 128k
  727. PAGESIZE := 2048
  728. IMAGES += nand-factory.tar
  729. IMAGE/nand-factory.tar := append-ubi | wac5xx-netgear-tar
  730. DEVICE_PACKAGES := uboot-envtools
  731. endef
  732. TARGET_DEVICES += netgear_wac510
  733. define Device/openmesh_a42
  734. $(call Device/FitImageLzma)
  735. DEVICE_VENDOR := OpenMesh
  736. DEVICE_MODEL := A42
  737. SOC := qcom-ipq4018
  738. DEVICE_DTS_CONFIG := [email protected]
  739. BLOCKSIZE := 64k
  740. KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
  741. IMAGE_SIZE := 15616k
  742. IMAGES += factory.bin
  743. IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
  744. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  745. endef
  746. TARGET_DEVICES += openmesh_a42
  747. define Device/openmesh_a62
  748. $(call Device/FitImageLzma)
  749. DEVICE_VENDOR := OpenMesh
  750. DEVICE_MODEL := A62
  751. SOC := qcom-ipq4019
  752. DEVICE_DTS_CONFIG := [email protected]
  753. BLOCKSIZE := 64k
  754. KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
  755. IMAGE_SIZE := 15552k
  756. IMAGES += factory.bin
  757. IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
  758. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  759. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
  760. endef
  761. TARGET_DEVICES += openmesh_a62
  762. define Device/p2w_r619ac
  763. $(call Device/FitzImage)
  764. $(call Device/UbiFit)
  765. DEVICE_VENDOR := P&W
  766. DEVICE_MODEL := R619AC
  767. SOC := qcom-ipq4019
  768. DEVICE_DTS_CONFIG := config@10
  769. BLOCKSIZE := 128k
  770. PAGESIZE := 2048
  771. DEVICE_PACKAGES := ipq-wifi-p2w_r619ac
  772. endef
  773. define Device/p2w_r619ac-64m
  774. $(call Device/p2w_r619ac)
  775. DEVICE_VARIANT := 64M NAND
  776. IMAGES += nand-factory.bin
  777. IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
  778. endef
  779. TARGET_DEVICES += p2w_r619ac-64m
  780. define Device/p2w_r619ac-128m
  781. $(call Device/p2w_r619ac)
  782. DEVICE_VARIANT := 128M NAND
  783. endef
  784. TARGET_DEVICES += p2w_r619ac-128m
  785. define Device/plasmacloud_pa1200
  786. $(call Device/FitImageLzma)
  787. DEVICE_VENDOR := Plasma Cloud
  788. DEVICE_MODEL := PA1200
  789. SOC := qcom-ipq4018
  790. DEVICE_DTS_CONFIG := [email protected]
  791. BLOCKSIZE := 64k
  792. KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
  793. IMAGE_SIZE := 15616k
  794. IMAGES += factory.bin
  795. IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA1200
  796. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  797. DEVICE_PACKAGES := ipq-wifi-plasmacloud_pa1200
  798. endef
  799. TARGET_DEVICES += plasmacloud_pa1200
  800. define Device/plasmacloud_pa2200
  801. $(call Device/FitImageLzma)
  802. DEVICE_VENDOR := Plasma Cloud
  803. DEVICE_MODEL := PA2200
  804. SOC := qcom-ipq4019
  805. DEVICE_DTS_CONFIG := [email protected]
  806. BLOCKSIZE := 64k
  807. KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
  808. IMAGE_SIZE := 15552k
  809. IMAGES += factory.bin
  810. IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA2200
  811. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
  812. DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-plasmacloud_pa2200
  813. endef
  814. TARGET_DEVICES += plasmacloud_pa2200
  815. define Device/qcom_ap-dk01.1-c1
  816. DEVICE_VENDOR := Qualcomm Atheros
  817. DEVICE_MODEL := AP-DK01.1
  818. DEVICE_VARIANT := C1
  819. BOARD_NAME := ap-dk01.1-c1
  820. SOC := qcom-ipq4019
  821. DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
  822. KERNEL_INSTALL := 1
  823. KERNEL_SIZE := 4096k
  824. IMAGE_SIZE := 26624k
  825. $(call Device/FitImage)
  826. IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
  827. DEFAULT := n
  828. endef
  829. TARGET_DEVICES += qcom_ap-dk01.1-c1
  830. define Device/qcom_ap-dk04.1-c1
  831. $(call Device/FitImage)
  832. $(call Device/UbiFit)
  833. DEVICE_VENDOR := Qualcomm Atheros
  834. DEVICE_MODEL := AP-DK04.1
  835. DEVICE_VARIANT := C1
  836. SOC := qcom-ipq4019
  837. DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
  838. KERNEL_INSTALL := 1
  839. KERNEL_SIZE := 4048k
  840. BLOCKSIZE := 128k
  841. PAGESIZE := 2048
  842. BOARD_NAME := ap-dk04.1-c1
  843. DEFAULT := n
  844. endef
  845. TARGET_DEVICES += qcom_ap-dk04.1-c1
  846. define Device/qxwlan_e2600ac-c1
  847. $(call Device/FitImage)
  848. DEVICE_VENDOR := Qxwlan
  849. DEVICE_MODEL := E2600AC
  850. DEVICE_VARIANT := C1
  851. BOARD_NAME := e2600ac-c1
  852. SOC := qcom-ipq4019
  853. KERNEL_SIZE := 4096k
  854. IMAGE_SIZE := 31232k
  855. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  856. DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c1
  857. DEFAULT := n
  858. endef
  859. TARGET_DEVICES += qxwlan_e2600ac-c1
  860. define Device/qxwlan_e2600ac-c2
  861. $(call Device/FitImage)
  862. $(call Device/UbiFit)
  863. DEVICE_VENDOR := Qxwlan
  864. DEVICE_MODEL := E2600AC
  865. DEVICE_VARIANT := C2
  866. SOC := qcom-ipq4019
  867. KERNEL_INSTALL := 1
  868. BLOCKSIZE := 128k
  869. PAGESIZE := 2048
  870. DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac-c2
  871. endef
  872. TARGET_DEVICES += qxwlan_e2600ac-c2
  873. define Device/teltonika_rutx10
  874. $(call Device/FitImage)
  875. $(call Device/UbiFit)
  876. DEVICE_VENDOR := Teltonika
  877. DEVICE_MODEL := RUTX10
  878. SOC := qcom-ipq4018
  879. DEVICE_DTS_CONFIG := config@5
  880. KERNEL_INSTALL := 1
  881. BLOCKSIZE := 128k
  882. PAGESIZE := 2048
  883. FILESYSTEMS := squashfs
  884. IMAGE/nand-factory.ubi := append-ubi | qsdk-ipq-factory-nand | append-rutx-metadata
  885. DEVICE_PACKAGES := ipq-wifi-teltonika_rutx kmod-bluetooth
  886. endef
  887. TARGET_DEVICES += teltonika_rutx10
  888. define Device/tel_x1pro
  889. $(call Device/FitImage)
  890. DEVICE_VENDOR := Telco
  891. DEVICE_MODEL := X1 Pro
  892. SOC := qcom-ipq4019
  893. KERNEL_SIZE := 4096k
  894. IMAGE_SIZE := 31232k
  895. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  896. DEVICE_PACKAGES := kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
  897. DEFAULT := n
  898. endef
  899. TARGET_DEVICES += tel_x1pro
  900. define Device/unielec_u4019-32m
  901. $(call Device/FitImage)
  902. DEVICE_VENDOR := Unielec
  903. DEVICE_MODEL := U4019
  904. DEVICE_VARIANT := 32M
  905. BOARD_NAME := u4019-32m
  906. SOC := qcom-ipq4019
  907. KERNEL_SIZE := 4096k
  908. IMAGE_SIZE := 31232k
  909. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  910. DEFAULT := n
  911. endef
  912. TARGET_DEVICES += unielec_u4019-32m
  913. define Device/zte_mf286d
  914. $(call Device/FitzImage)
  915. DEVICE_VENDOR := ZTE
  916. DEVICE_MODEL := MF286D
  917. SOC := qcom-ipq4019
  918. DEVICE_DTS_CONFIG := [email protected]
  919. BLOCKSIZE := 128k
  920. PAGESIZE := 2048
  921. KERNEL_IN_UBI := 1
  922. DEVICE_PACKAGES := ipq-wifi-zte_mf286d kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
  923. endef
  924. TARGET_DEVICES += zte_mf286d
  925. define Device/zyxel_nbg6617
  926. $(call Device/FitImageLzma)
  927. DEVICE_VENDOR := ZyXEL
  928. DEVICE_MODEL := NBG6617
  929. SOC := qcom-ipq4018
  930. KERNEL_SIZE := 4096k
  931. ROOTFS_SIZE := 24960k
  932. RAS_BOARD := NBG6617
  933. RAS_ROOTFS_SIZE := 19840k
  934. RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
  935. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
  936. IMAGES += factory.bin
  937. # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
  938. # at least as large as the one of the initial firmware image (not the current
  939. # one on the device). This only applies to the Web-UI, the bootlaoder ignores
  940. # this minimum-size. However, the larger image can be flashed both ways.
  941. IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
  942. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
  943. DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
  944. endef
  945. TARGET_DEVICES += zyxel_nbg6617
  946. define Device/zyxel_wre6606
  947. $(call Device/FitImage)
  948. DEVICE_VENDOR := ZyXEL
  949. DEVICE_MODEL := WRE6606
  950. DEVICE_DTS_CONFIG := config@4
  951. SOC := qcom-ipq4018
  952. IMAGE_SIZE := 13184k
  953. IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
  954. DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
  955. endef
  956. TARGET_DEVICES += zyxel_wre6606