1 include $(TOPDIR
)/rules.mk
2 include $(INCLUDE_DIR
)/image.mk
4 DEVICE_VARS
+= NETGEAR_BOARD_ID NETGEAR_HW_ID
5 DEVICE_VARS
+= RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
6 DEVICE_VARS
+= WRGG_DEVNAME WRGG_SIGNATURE
10 KERNEL_DEPENDS
= $$(wildcard $(DTS_DIR
)/$$(DEVICE_DTS
).dts
)
11 KERNEL_INITRAMFS_PREFIX
:= $$(IMG_PREFIX
)-$(1)-initramfs
12 KERNEL_PREFIX
:= $$(IMAGE_PREFIX
)
13 KERNEL_LOADADDR
:= 0x80208000
14 DEVICE_DTS
= $$(SOC
)-$(lastword
$(subst _
, ,$(1)))
15 SUPPORTED_DEVICES
:= $(subst _
,$(comma
),$(1))
16 IMAGE
/sysupgrade.bin
= sysupgrade-tar | append-metadata
17 IMAGE
/sysupgrade.bin
/squashfs
:=
20 define Device
/FitImage
21 KERNEL_SUFFIX
:= -fit-uImage.itb
22 KERNEL
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
26 define Device
/FitImageLzma
27 KERNEL_SUFFIX
:= -fit-uImage.itb
28 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
32 define Device
/FitzImage
33 KERNEL_SUFFIX
:= -fit-zImage.itb
34 KERNEL
= kernel-bin | fit none
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
40 IMAGES
:= nand-factory.ubi nand-sysupgrade.bin
41 IMAGE
/nand-factory.ubi
:= append-ubi
42 IMAGE
/nand-sysupgrade.bin
:= sysupgrade-tar | append-metadata
45 define Device
/DniImage
46 KERNEL_SUFFIX
:= -fit-uImage.itb
47 KERNEL
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
51 IMAGES
:= factory.img sysupgrade.bin
52 IMAGE
/factory.img
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
53 IMAGE
/sysupgrade.bin
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | append-metadata
56 define Build
/mkmylofw_32m
57 $(eval device_id
=$(word 1,$(1)))
58 $(eval revision
=$(word 2,$(1)))
61 size
="$$(stat -c%s $@)" \
62 pad
="$(subst k,* 1024,$(BLOCKSIZE))" \
63 pad
="(pad - (size % pad)) % pad" \
64 newsize
='size + pad'; \
65 $(STAGING_DIR_HOST
)/bin
/mkmylofw \
66 -B WPE72
-i
0x11f6:$(device_id
):0x11f6:$(device_id
) -r
$(revision
) \
67 -s
0x2000000 -p0x180000
:$$newsize:al
:0x80208000:"OpenWrt":$@ \
73 -$(STAGING_DIR_HOST
)/bin
/mksenaofw \
74 -n
$(BOARD_NAME
) -r
$(VENDOR_ID
) -p
$(1) \
75 -c
$(DATECODE
) -w
$(2) -x
$(CW_VER
) -t
0 \
81 define Build
/wrgg-image
84 -d
"$(WRGG_DEVNAME)" \
85 -s
"$(WRGG_SIGNATURE)" \
90 define Device
/8dev_habanero-dvk
91 $(call Device
/FitImageLzma
)
92 DEVICE_VENDOR
:= 8devices
93 DEVICE_MODEL
:= Habanero DVK
96 DEVICE_PACKAGES
:= ipq-wifi-8dev_habanero-dvk
97 IMAGES
:= sysupgrade.bin
98 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
64k | append-rootfs | pad-rootfs | append-metadata | check-size
100 TARGET_DEVICES
+= 8dev_habanero-dvk
102 define Device
/8dev_jalapeno-common
103 $(call Device
/FitImage
)
104 $(call Device
/UbiFit
)
110 define Device
/8dev_jalapeno
111 $(call Device
/8dev_jalapeno-common
)
112 DEVICE_VENDOR
:= 8devices
113 DEVICE_MODEL
:= Jalapeno
115 TARGET_DEVICES
+= 8dev_jalapeno
117 define Device
/alfa-network_ap120c-ac
118 $(call Device
/FitImage
)
119 $(call Device
/UbiFit
)
120 DEVICE_VENDOR
:= ALFA Network
121 DEVICE_MODEL
:= AP120C-AC
123 DEVICE_PACKAGES
:= kmod-usb-acm \
124 kmod-tpm-i2c-atmel uboot-envtools
128 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
129 IMAGE
/nand-factory.bin
:= append-ubi | qsdk-ipq-factory-nand
131 TARGET_DEVICES
+= alfa-network_ap120c-ac
133 define Device
/aruba_ap-303
134 $(call Device
/FitImageLzma
)
135 DEVICE_VENDOR
:= Aruba
136 DEVICE_MODEL
:= AP-303
138 DEVICE_PACKAGES
:= ipq-wifi-aruba_ap-303
139 IMAGES
:= sysupgrade.bin
141 TARGET_DEVICES
+= aruba_ap-303
143 define Device
/aruba_ap-303h
144 $(call Device
/FitImageLzma
)
145 DEVICE_VENDOR
:= Aruba
146 DEVICE_MODEL
:= AP-303H
148 DEVICE_PACKAGES
:= ipq-wifi-aruba_ap-303
149 IMAGES
:= sysupgrade.bin
151 TARGET_DEVICES
+= aruba_ap-303h
153 define Device
/asus_map-ac2200
154 $(call Device
/FitImageLzma
)
155 DEVICE_VENDOR
:= ASUS
156 DEVICE_MODEL
:= Lyra
(MAP-AC2200
)
158 IMAGES
:= sysupgrade.bin
159 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct kmod-ath3k
161 TARGET_DEVICES
+= asus_map-ac2200
163 define Device
/asus_rt-ac58u
164 $(call Device
/FitImageLzma
)
165 DEVICE_VENDOR
:= ASUS
166 DEVICE_MODEL
:= RT-AC58U
171 IMAGE_SIZE
:= 20439364
172 FILESYSTEMS
:= squashfs
173 # Someone - in their infinite wisdom - decided to put the firmware
174 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
175 # Since u-boot works with strings we either need another fixup step
176 # to add a version... or we are very careful not to add '\0' into that
177 # string and call it a day.... Yeah, we do the latter!
178 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
179 IMAGES
:= sysupgrade.bin
180 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
181 kmod-usb-ledtrig-usbport
183 TARGET_DEVICES
+= asus_rt-ac58u
185 define Device
/avm_fritzbox-4040
186 $(call Device
/FitImageLzma
)
188 DEVICE_MODEL
:= FRITZ
!Box
4040
190 BOARD_NAME
:= fritz4040
192 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
193 UBOOT_PARTITION_SIZE
:= 524288
194 IMAGES
= eva.bin sysupgrade.bin
195 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
196 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
197 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
199 TARGET_DEVICES
+= avm_fritzbox-4040
201 define Device
/avm_fritzbox-7530
202 $(call Device
/FitImageLzma
)
204 DEVICE_MODEL
:= FRITZ
!Box
7530
206 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand
207 IMAGES
:= sysupgrade.bin
209 TARGET_DEVICES
+= avm_fritzbox-7530
211 define Device
/avm_fritzrepeater-1200
212 $(call Device
/FitImageLzma
)
214 DEVICE_MODEL
:= FRITZ
!Repeater
1200
216 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-1200
217 IMAGES
:= sysupgrade.bin
219 TARGET_DEVICES
+= avm_fritzrepeater-1200
221 define Device
/avm_fritzrepeater-3000
222 $(call Device
/FitImageLzma
)
224 DEVICE_MODEL
:= FRITZ
!Repeater
3000
226 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
227 IMAGES
:= sysupgrade.bin
229 TARGET_DEVICES
+= avm_fritzrepeater-3000
231 define Device
/cilab_meshpoint-one
232 $(call Device
/8dev_jalapeno-common
)
233 DEVICE_VENDOR
:= Crisis Innovation Lab
234 DEVICE_MODEL
:= MeshPoint.One
235 DEVICE_PACKAGES
:= kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
237 TARGET_DEVICES
+= cilab_meshpoint-one
239 define Device
/compex_wpj419
240 $(call Device
/FitImage
)
241 $(call Device
/UbiFit
)
242 DEVICE_VENDOR
:= Compex
243 DEVICE_MODEL
:= WPJ419
245 DEVICE_DTS_CONFIG
:= config@
12
249 FILESYSTEMS
:= squashfs
251 TARGET_DEVICES
+= compex_wpj419
253 define Device
/compex_wpj428
254 $(call Device
/FitImage
)
255 DEVICE_VENDOR
:= Compex
256 DEVICE_MODEL
:= WPJ428
258 DEVICE_DTS_CONFIG
:= config@
4
262 IMAGES
= sysupgrade.bin cpximg-6a04.bin
263 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
264 IMAGE
/cpximg-6a04.bin
:= append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m
0x8A2 3
265 DEVICE_PACKAGES
:= kmod-gpio-beeper
267 TARGET_DEVICES
+= compex_wpj428
269 define Device
/dlink_dap-2610
270 $(call Device
/FitImageLzma
)
271 DEVICE_VENDOR
:= D-Link
272 DEVICE_MODEL
:= DAP-2610
274 DEVICE_DTS_CONFIG
:= config@ap.dk01.1
-c1
276 WRGG_DEVNAME
:= /dev
/mtdblock
/8
277 WRGG_SIGNATURE
:= wapac30_dkbs_dap2610
279 IMAGES
:= sysupgrade.bin factory.bin
280 # Bootloader expects a special 160 byte header which is added by
282 # Factory image size must be larger than 6MB, and size in wrgg header must
283 # match actual factory image size to be flashable from D-Link http server.
284 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
285 # cannot be part of the wrgg image. This is solved in the factory image by
286 # having the rootfs at the end of the image (without pad-rootfs). And in
287 # the sysupgrade image only the kernel is included in the wrgg checksum,
288 # but this is not flashable from the D-link http server.
289 # append-rootfs must start on an erase block boundary.
290 IMAGE
/factory.bin
:= append-kernel | pad-offset
6144k
160 | append-rootfs | wrgg-image | check-size
291 IMAGE
/sysupgrade.bin
:= append-kernel | wrgg-image | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | check-size | append-metadata
292 DEVICE_PACKAGES
:= ipq-wifi-dlink_dap2610
294 TARGET_DEVICES
+= dlink_dap-2610
296 define Device
/engenius_eap1300
297 $(call Device
/FitImage
)
298 DEVICE_VENDOR
:= EnGenius
299 DEVICE_MODEL
:= EAP1300
300 DEVICE_DTS_CONFIG
:= config@
4
301 BOARD_NAME
:= eap1300
305 IMAGES
:= sysupgrade.bin
306 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
308 TARGET_DEVICES
+= engenius_eap1300
310 define Device
/engenius_eap2200
311 $(call Device
/FitImage
)
312 $(call Device
/UbiFit
)
313 DEVICE_VENDOR
:= EnGenius
314 DEVICE_MODEL
:= EAP2200
318 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct ipq-wifi-engenius_eap2200
-kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
320 TARGET_DEVICES
+= engenius_eap2200
322 define Device
/engenius_emd1
323 $(call Device
/FitImage
)
324 DEVICE_VENDOR
:= EnGenius
326 DEVICE_DTS_CONFIG
:= config@
4
329 IMAGES
:= sysupgrade.bin factory.bin
330 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
331 IMAGE
/factory.bin
:= qsdk-ipq-factory-nor | check-size
333 TARGET_DEVICES
+= engenius_emd1
335 define Device
/engenius_ens620ext
336 $(call Device
/FitImage
)
337 DEVICE_VENDOR
:= EnGenius
338 DEVICE_MODEL
:= ENS620EXT
340 DEVICE_DTS_CONFIG
:= config@
4
343 BOARD_NAME
:= ENS620EXT
346 PRODUCT_ID_NEW
:= 0xA4
353 FILESYSTEMS
:= squashfs
354 IMAGES
:= sysupgrade.bin factory_30.bin factory_35.bin
355 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
356 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
357 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
359 TARGET_DEVICES
+= engenius_ens620ext
361 define Device
/ezviz_cs-w3-wd1200g-eup
362 $(call Device
/FitImage
)
363 DEVICE_VENDOR
:= EZVIZ
364 DEVICE_MODEL
:= CS-W3-WD1200G
365 DEVICE_VARIANT
:= EUP
366 DEVICE_DTS_CONFIG
:= config@
4
369 IMAGES
:= sysupgrade.bin
370 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | \
372 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
373 ipq-wifi-ezviz_cs-w3-wd1200g-eup
375 TARGET_DEVICES
+= ezviz_cs-w3-wd1200g-eup
377 define Device
/glinet_gl-b1300
378 $(call Device
/FitImage
)
379 DEVICE_VENDOR
:= GL.iNet
380 DEVICE_MODEL
:= GL-B1300
381 BOARD_NAME
:= gl-b1300
385 IMAGES
:= sysupgrade.bin
386 IMAGE
/sysupgrade.bin
:= append-kernel |append-rootfs | pad-rootfs | append-metadata
388 TARGET_DEVICES
+= glinet_gl-b1300
390 define Device
/linksys_ea6350v3
391 # The Linksys EA6350v3 has a uboot bootloader that does not
392 # support either booting lzma kernel images nor booting UBI
393 # partitions. This uboot, however, supports raw kernel images and
396 # As for the time of writing this, the device will boot the kernel
397 # from a fixed address with a fixed length of 3MiB. Also, the
398 # device has a hard-coded kernel command line that requieres the
399 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
400 # Oh... and the kernel partition overlaps with the rootfs
401 # partition (the same for alt_kernel and alt_rootfs).
403 # If you are planing re-partitioning the device, you may want to
404 # keep those details in mind:
405 # 1. The kernel adresses you should honor are 0x00000000 and
406 # 0x02800000 respectively.
407 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
408 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
409 # 4. The kernel command line from uboot is harcoded to boot with
410 # rootfs either in mtd11 or mtd13.
411 $(call Device
/FitzImage
)
412 DEVICE_VENDOR
:= Linksys
413 DEVICE_MODEL
:= EA6350
421 IMAGES
:= factory.bin sysupgrade.bin
422 IMAGE
/factory.bin
:= append-kernel | append-uImage-fakehdr filesystem | pad-to
$$$$(KERNEL_SIZE
) | append-ubi | linksys-image type
=EA6350v3
423 DEVICE_PACKAGES
:= uboot-envtools
425 TARGET_DEVICES
+= linksys_ea6350v3
427 define Device
/linksys_ea8300
428 $(call Device
/FitzImage
)
429 DEVICE_VENDOR
:= Linksys
430 DEVICE_MODEL
:= EA8300
436 UBINIZE_OPTS
:= -E
5 # EOD marks to "hide" factory sig at EOF
437 IMAGES
:= sysupgrade.bin factory.bin
438 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi | linksys-image type
=EA8300
439 DEVICE_PACKAGES
:= uboot-envtools ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
441 TARGET_DEVICES
+= linksys_ea8300
443 define Device
/meraki_mr33
444 $(call Device
/FitImage
)
445 DEVICE_VENDOR
:= Cisco Meraki
450 IMAGES
= sysupgrade.bin
451 DEVICE_PACKAGES
:= -swconfig ath10k-firmware-qca9887-ct
453 TARGET_DEVICES
+= meraki_mr33
455 define Device
/mobipromo_cm520-79f
456 $(call Device
/FitzImage
)
457 $(call Device
/UbiFit
)
458 DEVICE_VENDOR
:= MobiPromo
459 DEVICE_MODEL
:= CM520-79F
463 DEVICE_PACKAGES
:= ipq-wifi-mobipromo_cm520-79f kmod-usb-ledtrig-usbport
465 TARGET_DEVICES
+= mobipromo_cm520-79f
467 define Device
/netgear_ex61x0v2
468 $(call Device
/DniImage
)
469 DEVICE_DTS_CONFIG
:= config@
4
470 NETGEAR_BOARD_ID
:= EX6150v2series
471 NETGEAR_HW_ID
:= 29765285+16+0+128+2x2
475 define Device
/netgear_ex6100v2
476 $(call Device
/netgear_ex61x0v2
)
477 DEVICE_VENDOR
:= Netgear
478 DEVICE_MODEL
:= EX6100
481 TARGET_DEVICES
+= netgear_ex6100v2
483 define Device
/netgear_ex6150v2
484 $(call Device
/netgear_ex61x0v2
)
485 DEVICE_VENDOR
:= Netgear
486 DEVICE_MODEL
:= EX6150
489 TARGET_DEVICES
+= netgear_ex6150v2
491 define Device
/openmesh_a42
492 $(call Device
/FitImageLzma
)
493 DEVICE_VENDOR
:= OpenMesh
496 DEVICE_DTS_CONFIG
:= config@om.a42
498 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
$$(BLOCKSIZE
)
500 IMAGES
= factory.bin sysupgrade.bin
501 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | openmesh-image ce_type
=A42
502 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | sysupgrade-tar rootfs
=$$$$@ | append-metadata
503 DEVICE_PACKAGES
:= uboot-envtools
505 TARGET_DEVICES
+= openmesh_a42
507 define Device
/openmesh_a62
508 $(call Device
/FitImageLzma
)
509 DEVICE_VENDOR
:= OpenMesh
512 DEVICE_DTS_CONFIG
:= config@om.a62
514 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
$$(BLOCKSIZE
)
516 IMAGES
= factory.bin sysupgrade.bin
517 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | openmesh-image ce_type
=A62
518 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | sysupgrade-tar rootfs
=$$$$@ | append-metadata
519 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct uboot-envtools
522 TARGET_DEVICES
+= openmesh_a62
524 define Device
/qcom_ap-dk01.1
-c1
525 DEVICE_VENDOR
:= Qualcomm Atheros
526 DEVICE_MODEL
:= AP-DK01.1
528 BOARD_NAME
:= ap-dk01.1
-c1
530 DEVICE_DTS
:= qcom-ipq4019-ap.dk01.1
-c1
534 $(call Device
/FitImage
)
535 IMAGES
:= sysupgrade.bin
536 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | append-metadata
538 TARGET_DEVICES
+= qcom_ap-dk01.1
-c1
540 define Device
/qcom_ap-dk04.1
-c1
541 $(call Device
/FitImage
)
542 $(call Device
/UbiFit
)
543 DEVICE_VENDOR
:= Qualcomm Atheros
544 DEVICE_MODEL
:= AP-DK04.1
547 DEVICE_DTS
:= qcom-ipq4019-ap.dk04.1
-c1
552 BOARD_NAME
:= ap-dk04.1
-c1
554 TARGET_DEVICES
+= qcom_ap-dk04.1
-c1
556 define Device
/qxwlan_e2600ac-c1
557 $(call Device
/FitImage
)
558 DEVICE_VENDOR
:= Qxwlan
559 DEVICE_MODEL
:= E2600AC
561 BOARD_NAME
:= e2600ac-c1
565 IMAGES
:= sysupgrade.bin
566 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
567 DEVICE_PACKAGES
:= ipq-wifi-qxwlan_e2600ac
569 TARGET_DEVICES
+= qxwlan_e2600ac-c1
571 define Device
/qxwlan_e2600ac-c2
572 $(call Device
/FitImage
)
573 $(call Device
/UbiFit
)
574 DEVICE_VENDOR
:= Qxwlan
575 DEVICE_MODEL
:= E2600AC
581 DEVICE_PACKAGES
:= ipq-wifi-qxwlan_e2600ac
583 TARGET_DEVICES
+= qxwlan_e2600ac-c2
585 define Device
/unielec_u4019-32m
586 $(call Device
/FitImage
)
587 DEVICE_VENDOR
:= Unielec
588 DEVICE_MODEL
:= U4019
589 DEVICE_VARIANT
:= 32M
590 BOARD_NAME
:= u4019-32m
594 IMAGES
:= sysupgrade.bin
595 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
597 TARGET_DEVICES
+= unielec_u4019-32m
599 define Device
/zyxel_nbg6617
600 $(call Device
/FitImageLzma
)
601 DEVICE_VENDOR
:= ZyXEL
602 DEVICE_MODEL
:= NBG6617
604 ROOTFS_SIZE
:= 24960k
606 RAS_ROOTFS_SIZE
:= 19840k
607 RAS_VERSION
:= "$(VERSION_DIST) $(REVISION)"
608 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
609 IMAGES
:= sysupgrade.bin factory.bin
610 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
611 # at least as large as the one of the initial firmware image (not the current
612 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
613 # this minimum-size. However, the larger image can be flashed both ways.
614 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | pad-to
64k | check-size
$$$$(ROOTFS_SIZE
) | zyxel-ras-image separate-kernel
615 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | check-size
$$$$(ROOTFS_SIZE
) | sysupgrade-tar rootfs
=$$$$@ | append-metadata
616 DEVICE_PACKAGES
:= uboot-envtools kmod-usb-ledtrig-usbport
618 TARGET_DEVICES
+= zyxel_nbg6617
620 define Device
/zyxel_wre6606
621 $(call Device
/FitImage
)
622 DEVICE_VENDOR
:= ZyXEL
623 DEVICE_MODEL
:= WRE6606
624 DEVICE_DTS_CONFIG
:= config@
4
626 IMAGES
:= sysupgrade.bin
627 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
628 DEVICE_PACKAGES
:= -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
630 TARGET_DEVICES
+= zyxel_wre6606
632 $(eval
$(call BuildImage
))