1 include $(TOPDIR
)/rules.mk
2 include $(INCLUDE_DIR
)/image.mk
4 DEVICE_VARS
+= RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
8 KERNEL_DEPENDS
= $$(wildcard $(DTS_DIR
)/$$(DEVICE_DTS
).dts
)
9 KERNEL_INITRAMFS_PREFIX
:= $$(IMG_PREFIX
)-$(1)-initramfs
10 KERNEL_PREFIX
:= $$(IMAGE_PREFIX
)
11 KERNEL_LOADADDR
:= 0x80208000
12 SUPPORTED_DEVICES
:= $(subst _
,$(comma
),$(1))
13 IMAGE
/sysupgrade.bin
= sysupgrade-tar | append-metadata
14 IMAGE
/sysupgrade.bin
/squashfs
:=
17 define Device
/FitImage
18 KERNEL_SUFFIX
:= -fit-uImage.itb
19 KERNEL
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
23 define Device
/FitImageLzma
24 KERNEL_SUFFIX
:= -fit-uImage.itb
25 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
29 define Device
/FitzImage
30 KERNEL_SUFFIX
:= -fit-zImage.itb
31 KERNEL
= kernel-bin | fit none
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
37 IMAGES
:= nand-factory.ubi nand-sysupgrade.bin
38 IMAGE
/nand-factory.ubi
:= append-ubi
39 IMAGE
/nand-sysupgrade.bin
:= sysupgrade-tar | append-metadata
42 define Device
/DniImage
43 KERNEL_SUFFIX
:= -fit-uImage.itb
44 KERNEL
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
48 IMAGES
:= factory.img sysupgrade.bin
49 IMAGE
/factory.img
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
50 IMAGE
/sysupgrade.bin
:= append-kernel | pad-offset
64k
64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | append-metadata
52 DEVICE_VARS
+= NETGEAR_BOARD_ID NETGEAR_HW_ID
55 -$(STAGING_DIR_HOST
)/bin
/mksenaofw \
56 -n
$(BOARD_NAME
) -r
$(VENDOR_ID
) -p
$(1) \
57 -c
$(DATECODE
) -w
$(2) -x
$(CW_VER
) -t
0 \
63 define Device
/8dev_jalapeno
64 $(call Device
/FitImage
)
66 DEVICE_DTS
:= qcom-ipq4018-jalapeno
69 DEVICE_TITLE
:= 8devices Jalapeno
71 TARGET_DEVICES
+= 8dev_jalapeno
73 define Device
/alfa-network_ap120c-ac
74 $(call Device
/FitImage
)
76 DEVICE_TITLE
:= ALFA Network AP120C-AC
77 DEVICE_DTS
:= qcom-ipq4018-ap120c-ac
78 DEVICE_PACKAGES
:= ipq-wifi-alfa-network_ap120c-ac kmod-usb-acm \
79 kmod-tpm-i2c-atmel uboot-envtools
83 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
84 IMAGE
/nand-factory.bin
:= append-ubi | qsdk-ipq-factory-nand
86 TARGET_DEVICES
+= alfa-network_ap120c-ac
88 define Device
/asus_map-ac2200
89 $(call Device
/FitImageLzma
)
90 DEVICE_DTS
:= qcom-ipq4019-map-ac2200
91 DEVICE_TITLE
:= ASUS Lyra MAP-AC2200
92 IMAGES
:= sysupgrade.bin
93 DEVICE_PACKAGES
:= ipq-wifi-asus_map-ac2200 ath10k-firmware-qca9888-ct kmod-ath3k
95 TARGET_DEVICES
+= asus_map-ac2200
97 define Device
/asus_rt-ac58u
98 $(call Device
/FitImageLzma
)
99 DEVICE_DTS
:= qcom-ipq4018-rt-ac58u
103 DEVICE_TITLE
:= Asus RT-AC58U
104 IMAGE_SIZE
:= 20439364
105 FILESYSTEMS
:= squashfs
106 # Someone - in their infinite wisdom - decided to put the firmware
107 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
108 # Since u-boot works with strings we either need another fixup step
109 # to add a version... or we are very careful not to add '\0' into that
110 # string and call it a day.... Yeah, we do the latter!
111 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
112 IMAGES
:= sysupgrade.bin
113 DEVICE_PACKAGES
:= kmod-usb-ledtrig-usbport
115 TARGET_DEVICES
+= asus_rt-ac58u
117 define Device
/avm_fritzbox-4040
118 $(call Device
/FitImageLzma
)
119 DEVICE_DTS
:= qcom-ipq4018-fritz4040
120 BOARD_NAME
:= fritz4040
121 DEVICE_TITLE
:= AVM Fritz
!Box
4040
122 IMAGE_SIZE
:= 29753344
123 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
124 UBOOT_PARTITION_SIZE
:= 524288
125 IMAGES
= eva.bin sysupgrade.bin
126 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
127 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
128 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
130 TARGET_DEVICES
+= avm_fritzbox-4040
132 define Device
/avm_fritzbox-7530
133 $(call Device
/FitImageLzma
)
134 DEVICE_DTS
:= qcom-ipq4019-fritzbox-7530
135 DEVICE_TITLE
:= AVM Fritz
!Box
7530
136 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzbox-7530
137 IMAGES
:= sysupgrade.bin
139 TARGET_DEVICES
+= avm_fritzbox-7530
141 define Device
/avm_fritzrepeater-3000
142 $(call Device
/FitImageLzma
)
143 DEVICE_DTS
:= qcom-ipq4019-fritzrepeater-3000
144 DEVICE_TITLE
:= AVM Fritz
!Repeater
3000
145 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-3000
146 IMAGES
:= sysupgrade.bin
148 TARGET_DEVICES
+= avm_fritzrepeater-3000
150 define Device
/compex_wpj428
151 $(call Device
/FitImage
)
152 DEVICE_DTS
:= qcom-ipq4028-wpj428
153 DEVICE_DTS_CONFIG
:= config@
4
155 DEVICE_TITLE
:= Compex WPJ428
158 IMAGES
= sysupgrade.bin
159 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
160 DEVICE_PACKAGES
:= kmod-gpio-beeper
162 TARGET_DEVICES
+= compex_wpj428
164 define Device
/engenius_eap1300
165 $(call Device
/FitImage
)
166 DEVICE_TITLE
:= EnGenius EAP1300
167 DEVICE_DTS_CONFIG
:= config@
4
168 BOARD_NAME
:= eap1300
169 DEVICE_DTS
:= qcom-ipq4018-eap1300
172 IMAGES
:= sysupgrade.bin
173 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
174 DEVICE_PACKAGES
:= ipq-wifi-engenius_eap1300
176 TARGET_DEVICES
+= engenius_eap1300
178 define Device
/engenius_ens620ext
179 $(call Device
/FitImage
)
180 DEVICE_DTS
:= qcom-ipq4018-ens620ext
181 DEVICE_DTS_CONFIG
:= config@
4
184 DEVICE_TITLE
:= EnGenius ENS620EXT
185 BOARD_NAME
:= ENS620EXT
188 PRODUCT_ID_NEW
:= 0xA4
193 IMAGE_SIZE
:= 21823488
195 FILESYSTEMS
:= squashfs
196 IMAGES
:= sysupgrade.bin factory_30.bin factory_35.bin
197 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
) | append-metadata
198 IMAGE
/factory_30.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
) | SenaoFW
$$$$(PRODUCT_ID
) $$$$(FW_VER
)
199 IMAGE
/factory_35.bin
:= qsdk-ipq-factory-nor | check-size
$$$$(IMAGE_SIZE
) | SenaoFW
$$$$(PRODUCT_ID_NEW
) $$$$(FW_VER_NEW
)
200 DEVICE_PACKAGES
:= ipq-wifi-engenius_ens620ext
202 TARGET_DEVICES
+= engenius_ens620ext
204 define Device
/glinet_gl-b1300
205 $(call Device
/FitImage
)
206 DEVICE_TITLE
:= GL.iNet GL-B1300
207 BOARD_NAME
:= gl-b1300
208 DEVICE_DTS
:= qcom-ipq4029-gl-b1300
211 IMAGES
:= sysupgrade.bin
212 IMAGE
/sysupgrade.bin
:= append-kernel |append-rootfs | pad-rootfs | append-metadata
214 TARGET_DEVICES
+= glinet_gl-b1300
216 define Device
/linksys_ea6350v3
217 # The Linksys EA6350v3 has a uboot bootloader that does not
218 # support either booting lzma kernel images nor booting UBI
219 # partitions. This uboot, however, supports raw kernel images and
222 # As for the time of writing this, the device will boot the kernel
223 # from a fixed address with a fixed length of 3MiB. Also, the
224 # device has a hard-coded kernel command line that requieres the
225 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
226 # Oh... and the kernel partition overlaps with the rootfs
227 # partition (the same for alt_kernel and alt_rootfs).
229 # If you are planing re-partitioning the device, you may want to
230 # keep those details in mind:
231 # 1. The kernel adresses you should honor are 0x00000000 and
232 # 0x02800000 respectively.
233 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
234 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
235 # 4. The kernel command line from uboot is harcoded to boot with
236 # rootfs either in mtd11 or mtd13.
237 $(call Device
/FitzImage
)
238 DEVICE_TITLE
:= Linksys EA6350v3
239 DEVICE_DTS
:= qcom-ipq4018-ea6350v3
242 KERNEL_SIZE
:= 3145728
243 IMAGE_SIZE
:= 38797312
245 IMAGES
:= factory.bin sysupgrade.bin
246 IMAGE
/factory.bin
:= append-kernel | append-uImage-fakehdr filesystem | pad-to
$$$${KERNEL_SIZE} | append-ubi | linksys-image type
=EA6350v3
247 DEVICE_PACKAGES
:= ipq-wifi-linksys_ea6350v3 uboot-envtools
249 TARGET_DEVICES
+= linksys_ea6350v3
251 define Device
/meraki_mr33
252 $(call Device
/FitImage
)
253 DEVICE_DTS
:= qcom-ipq4029-mr33
256 DEVICE_TITLE
:= Cisco Meraki MR33
257 IMAGES
= sysupgrade.bin
258 DEVICE_PACKAGES
:= -swconfig ath10k-firmware-qca9887-ct
260 TARGET_DEVICES
+= meraki_mr33
262 define Device
/netgear_ex61x0v2
263 $(call Device
/DniImage
)
264 DEVICE_DTS_CONFIG
:= config@
4
265 NETGEAR_BOARD_ID
:= EX6150v2series
266 NETGEAR_HW_ID
:= 29765285+16+0+128+2x2
269 define Device
/netgear_ex6100v2
270 $(call Device
/netgear_ex61x0v2
)
271 DEVICE_DTS
:= qcom-ipq4018-ex6100v2
272 DEVICE_TITLE
:= Netgear EX6100v2
274 TARGET_DEVICES
+= netgear_ex6100v2
276 define Device
/netgear_ex6150v2
277 $(call Device
/netgear_ex61x0v2
)
278 DEVICE_DTS
:= qcom-ipq4018-ex6150v2
279 DEVICE_TITLE
:= Netgear EX6150v2
281 TARGET_DEVICES
+= netgear_ex6150v2
283 define Device
/openmesh_a42
284 $(call Device
/FitImageLzma
)
285 DEVICE_DTS
:= qcom-ipq4018-a42
286 DEVICE_DTS_CONFIG
:= config@om.a42
288 DEVICE_TITLE
:= OpenMesh A42
289 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
$$(BLOCKSIZE
)
291 IMAGES
= factory.bin sysupgrade.bin
292 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | openmesh-image ce_type
=A42
293 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | sysupgrade-tar rootfs
=$$$$@ | append-metadata
294 DEVICE_PACKAGES
:= uboot-envtools
296 TARGET_DEVICES
+= openmesh_a42
298 define Device
/openmesh_a62
299 $(call Device
/FitImageLzma
)
300 DEVICE_DTS
:= qcom-ipq4019-a62
301 DEVICE_DTS_CONFIG
:= config@om.a62
303 DEVICE_TITLE
:= OpenMesh A62
304 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
$$(BLOCKSIZE
)
306 IMAGES
= factory.bin sysupgrade.bin
307 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | openmesh-image ce_type
=A62
308 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | sysupgrade-tar rootfs
=$$$$@ | append-metadata
309 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct uboot-envtools
312 TARGET_DEVICES
+= openmesh_a62
314 define Device
/qcom_ap-dk01.1
-c1
315 DEVICE_TITLE
:= QCA AP-DK01.1
-C1
316 BOARD_NAME
:= ap-dk01.1
-c1
317 DEVICE_DTS
:= qcom-ipq4019-ap.dk01.1
-c1
321 $(call Device
/FitImage
)
322 IMAGES
:= sysupgrade.bin
323 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata
325 TARGET_DEVICES
+= qcom_ap-dk01.1
-c1
327 define Device
/qcom_ap-dk04.1
-c1
328 $(call Device
/FitImage
)
329 $(call Device
/UbiFit
)
330 DEVICE_DTS
:= qcom-ipq4019-ap.dk04.1
-c1
335 BOARD_NAME
:= ap-dk04.1
-c1
336 DEVICE_TITLE
:= QCA AP-DK04.1
-C1
338 TARGET_DEVICES
+= qcom_ap-dk04.1
-c1
340 define Device
/qxwlan_e2600ac-c1
341 $(call Device
/FitImage
)
342 DEVICE_TITLE
:= Qxwlan E2600AC-C1
(nor flash
)
343 BOARD_NAME
:= e2600ac-c1
344 DEVICE_DTS
:= qcom-ipq4019-qxwlan-e2600ac-c1
347 IMAGES
:= sysupgrade.bin
348 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
349 DEVICE_PACKAGES
:= ipq-wifi-qxwlan_e2600ac
351 TARGET_DEVICES
+= qxwlan_e2600ac-c1
353 define Device
/qxwlan_e2600ac-c2
354 $(call Device
/FitImage
)
355 $(call Device
/UbiFit
)
356 DEVICE_DTS
:= qcom-ipq4019-qxwlan-e2600ac-c2
360 DEVICE_TITLE
:= Qxwlan E2600AC-C2
(nornand flash
)
361 DEVICE_PACKAGES
:= ipq-wifi-qxwlan_e2600ac
363 TARGET_DEVICES
+= qxwlan_e2600ac-c2
365 define Device
/zyxel_nbg6617
366 $(call Device
/FitImageLzma
)
367 DEVICE_DTS
:= qcom-ipq4018-nbg6617
368 DEVICE_TITLE
:= ZyXEL NBG6617
369 ROOTFS_SIZE
:= 24960k
371 RAS_ROOTFS_SIZE
:= 19840k
372 RAS_VERSION
:= "$(VERSION_DIST) $(REVISION)"
373 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
374 IMAGES
:= sysupgrade.bin factory.bin
375 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
376 # at least as large as the one of the initial firmware image (not the current
377 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
378 # this minimum-size. However, the larger image can be flashed both ways.
379 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | pad-to
64k | check-size
$$$$(ROOTFS_SIZE
) | zyxel-ras-image separate-kernel
380 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | check-size
$$$$(ROOTFS_SIZE
) | sysupgrade-tar rootfs
=$$$$@ | append-metadata
381 DEVICE_PACKAGES
:= uboot-envtools kmod-usb-ledtrig-usbport
383 TARGET_DEVICES
+= zyxel_nbg6617
385 define Device
/zyxel_wre6606
386 $(call Device
/FitImage
)
387 DEVICE_TITLE
:= ZyXEL WRE6606
388 DEVICE_DTS_CONFIG
:= config@
4
389 DEVICE_DTS
:= qcom-ipq4018-wre6606
390 IMAGES
:= sysupgrade.bin
391 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
393 TARGET_DEVICES
+= zyxel_wre6606
395 $(eval
$(call BuildImage
))