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 define Device
/8dev_jalapeno
56 $(call Device
/FitImage
)
58 DEVICE_DTS
:= qcom-ipq4018-jalapeno
61 DEVICE_TITLE
:= 8devices Jalapeno
63 TARGET_DEVICES
+= 8dev_jalapeno
65 define Device
/alfa-network_ap120c-ac
66 $(call Device
/FitImage
)
68 DEVICE_TITLE
:= ALFA Network AP120C-AC
69 DEVICE_DTS
:= qcom-ipq4018-ap120c-ac
70 DEVICE_PACKAGES
:= ipq-wifi-alfa-network_ap120c-ac kmod-usb-acm \
71 kmod-tpm-i2c-atmel uboot-envtools
75 IMAGES
:= nand-factory.bin nand-sysupgrade.bin
76 IMAGE
/nand-factory.bin
:= append-ubi | qsdk-ipq-factory-nand
78 TARGET_DEVICES
+= alfa-network_ap120c-ac
80 define Device
/asus_map-ac2200
81 $(call Device
/FitImageLzma
)
82 DEVICE_DTS
:= qcom-ipq4019-map-ac2200
83 DEVICE_TITLE
:= ASUS Lyra MAP-AC2200
84 IMAGES
:= sysupgrade.bin
85 DEVICE_PACKAGES
:= ipq-wifi-asus_map-ac2200 ath10k-firmware-qca9888-ct kmod-ath3k
87 TARGET_DEVICES
+= asus_map-ac2200
89 define Device
/asus_rt-ac58u
90 $(call Device
/FitImageLzma
)
91 DEVICE_DTS
:= qcom-ipq4018-rt-ac58u
95 DEVICE_TITLE
:= Asus RT-AC58U
96 IMAGE_SIZE
:= 20439364
97 FILESYSTEMS
:= squashfs
98 # Someone - in their infinite wisdom - decided to put the firmware
99 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
100 # Since u-boot works with strings we either need another fixup step
101 # to add a version... or we are very careful not to add '\0' into that
102 # string and call it a day.... Yeah, we do the latter!
103 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
104 IMAGES
:= sysupgrade.bin
105 DEVICE_PACKAGES
:= kmod-usb-ledtrig-usbport
107 TARGET_DEVICES
+= asus_rt-ac58u
109 define Device
/avm_fritzbox-4040
110 $(call Device
/FitImageLzma
)
111 DEVICE_DTS
:= qcom-ipq4018-fritz4040
112 BOARD_NAME
:= fritz4040
113 DEVICE_TITLE
:= AVM Fritz
!Box
4040
114 IMAGE_SIZE
:= 29753344
115 UBOOT_PATH
:= $(STAGING_DIR_IMAGE
)/uboot-fritz4040.bin
116 UBOOT_PARTITION_SIZE
:= 524288
117 IMAGES
= eva.bin sysupgrade.bin
118 IMAGE
/eva.bin
:= append-uboot | pad-to
$$$$(UBOOT_PARTITION_SIZE
) | append-kernel | append-rootfs | pad-rootfs
119 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
120 DEVICE_PACKAGES
:= fritz-tffs fritz-caldata
122 TARGET_DEVICES
+= avm_fritzbox-4040
124 define Device
/avm_fritzbox-7530
125 $(call Device
/FitImageLzma
)
126 DEVICE_DTS
:= qcom-ipq4019-fritzbox-7530
127 DEVICE_TITLE
:= AVM Fritz
!Box
7530
128 DEVICE_PACKAGES
:= fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzbox-7530
129 IMAGES
:= sysupgrade.bin
131 TARGET_DEVICES
+= avm_fritzbox-7530
133 define Device
/avm_fritzrepeater-3000
134 $(call Device
/FitImageLzma
)
135 DEVICE_DTS
:= qcom-ipq4019-fritzrepeater-3000
136 DEVICE_TITLE
:= AVM Fritz
!Repeater
3000
137 DEVICE_PACKAGES
:= ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-3000
138 IMAGES
:= sysupgrade.bin
140 TARGET_DEVICES
+= avm_fritzrepeater-3000
142 define Device
/compex_wpj428
143 $(call Device
/FitImage
)
144 DEVICE_DTS
:= qcom-ipq4028-wpj428
145 DEVICE_DTS_CONFIG
:= config@
4
147 DEVICE_TITLE
:= Compex WPJ428
150 IMAGES
= sysupgrade.bin
151 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
152 DEVICE_PACKAGES
:= kmod-gpio-beeper
154 TARGET_DEVICES
+= compex_wpj428
156 define Device
/engenius_eap1300
157 $(call Device
/FitImage
)
158 DEVICE_TITLE
:= EnGenius EAP1300
159 DEVICE_DTS_CONFIG
:= config@
4
160 BOARD_NAME
:= eap1300
161 DEVICE_DTS
:= qcom-ipq4018-eap1300
164 IMAGES
:= sysupgrade.bin
165 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
166 DEVICE_PACKAGES
:= ipq-wifi-engenius_eap1300
168 TARGET_DEVICES
+= engenius_eap1300
170 define Device
/glinet_gl-b1300
171 $(call Device
/FitImage
)
172 DEVICE_TITLE
:= GL.iNet GL-B1300
173 BOARD_NAME
:= gl-b1300
174 DEVICE_DTS
:= qcom-ipq4029-gl-b1300
177 IMAGES
:= sysupgrade.bin
178 IMAGE
/sysupgrade.bin
:= append-kernel |append-rootfs | pad-rootfs | append-metadata
180 TARGET_DEVICES
+= glinet_gl-b1300
182 define Device
/linksys_ea6350v3
183 # The Linksys EA6350v3 has a uboot bootloader that does not
184 # support either booting lzma kernel images nor booting UBI
185 # partitions. This uboot, however, supports raw kernel images and
188 # As for the time of writing this, the device will boot the kernel
189 # from a fixed address with a fixed length of 3MiB. Also, the
190 # device has a hard-coded kernel command line that requieres the
191 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
192 # Oh... and the kernel partition overlaps with the rootfs
193 # partition (the same for alt_kernel and alt_rootfs).
195 # If you are planing re-partitioning the device, you may want to
196 # keep those details in mind:
197 # 1. The kernel adresses you should honor are 0x00000000 and
198 # 0x02800000 respectively.
199 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
200 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
201 # 4. The kernel command line from uboot is harcoded to boot with
202 # rootfs either in mtd11 or mtd13.
203 $(call Device
/FitzImage
)
204 DEVICE_TITLE
:= Linksys EA6350v3
205 DEVICE_DTS
:= qcom-ipq4018-ea6350v3
208 KERNEL_SIZE
:= 3145728
209 IMAGE_SIZE
:= 38797312
211 IMAGES
:= factory.bin sysupgrade.bin
212 IMAGE
/factory.bin
:= append-kernel | append-uImage-fakehdr filesystem | pad-to
$$$${KERNEL_SIZE} | append-ubi | linksys-image type
=EA6350v3
213 DEVICE_PACKAGES
:= ipq-wifi-linksys_ea6350v3 uboot-envtools
215 TARGET_DEVICES
+= linksys_ea6350v3
217 define Device
/meraki_mr33
218 $(call Device
/FitImage
)
219 DEVICE_DTS
:= qcom-ipq4029-mr33
222 DEVICE_TITLE
:= Cisco Meraki MR33
223 IMAGES
= sysupgrade.bin
224 DEVICE_PACKAGES
:= -swconfig ath10k-firmware-qca9887-ct
226 TARGET_DEVICES
+= meraki_mr33
228 define Device
/netgear_ex61x0v2
229 $(call Device
/DniImage
)
230 DEVICE_DTS_CONFIG
:= config@
4
231 NETGEAR_BOARD_ID
:= EX6150v2series
232 NETGEAR_HW_ID
:= 29765285+16+0+128+2x2
235 define Device
/netgear_ex6100v2
236 $(call Device
/netgear_ex61x0v2
)
237 DEVICE_DTS
:= qcom-ipq4018-ex6100v2
238 DEVICE_TITLE
:= Netgear EX6100v2
240 TARGET_DEVICES
+= netgear_ex6100v2
242 define Device
/netgear_ex6150v2
243 $(call Device
/netgear_ex61x0v2
)
244 DEVICE_DTS
:= qcom-ipq4018-ex6150v2
245 DEVICE_TITLE
:= Netgear EX6150v2
247 TARGET_DEVICES
+= netgear_ex6150v2
249 define Device
/openmesh_a42
250 $(call Device
/FitImageLzma
)
251 DEVICE_DTS
:= qcom-ipq4018-a42
252 DEVICE_DTS_CONFIG
:= config@om.a42
254 DEVICE_TITLE
:= OpenMesh A42
255 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
$$(BLOCKSIZE
)
257 IMAGES
= factory.bin sysupgrade.bin
258 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | openmesh-image ce_type
=A42
259 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | sysupgrade-tar rootfs
=$$$$@ | append-metadata
260 DEVICE_PACKAGES
:= uboot-envtools
262 TARGET_DEVICES
+= openmesh_a42
264 define Device
/openmesh_a62
265 $(call Device
/FitImageLzma
)
266 DEVICE_DTS
:= qcom-ipq4019-a62
267 DEVICE_DTS_CONFIG
:= config@om.a62
269 DEVICE_TITLE
:= OpenMesh A62
270 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
$$(BLOCKSIZE
)
272 IMAGES
= factory.bin sysupgrade.bin
273 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | openmesh-image ce_type
=A62
274 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | sysupgrade-tar rootfs
=$$$$@ | append-metadata
275 DEVICE_PACKAGES
:= ath10k-firmware-qca9888-ct uboot-envtools
278 TARGET_DEVICES
+= openmesh_a62
280 define Device
/qcom_ap-dk01.1
-c1
281 DEVICE_TITLE
:= QCA AP-DK01.1
-C1
282 BOARD_NAME
:= ap-dk01.1
-c1
283 DEVICE_DTS
:= qcom-ipq4019-ap.dk01.1
-c1
287 $(call Device
/FitImage
)
288 IMAGES
:= sysupgrade.bin
289 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata
291 TARGET_DEVICES
+= qcom_ap-dk01.1
-c1
293 define Device
/qcom_ap-dk04.1
-c1
294 $(call Device
/FitImage
)
295 $(call Device
/UbiFit
)
296 DEVICE_DTS
:= qcom-ipq4019-ap.dk04.1
-c1
301 BOARD_NAME
:= ap-dk04.1
-c1
302 DEVICE_TITLE
:= QCA AP-DK04.1
-C1
304 TARGET_DEVICES
+= qcom_ap-dk04.1
-c1
306 define Device
/qxwlan_e2600ac-c1
307 $(call Device
/FitImage
)
308 DEVICE_TITLE
:= Qxwlan E2600AC-C1
(nor flash
)
309 BOARD_NAME
:= e2600ac-c1
310 DEVICE_DTS
:= qcom-ipq4019-qxwlan-e2600ac-c1
313 IMAGES
:= sysupgrade.bin
314 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
315 DEVICE_PACKAGES
:= ipq-wifi-qxwlan_e2600ac
317 TARGET_DEVICES
+= qxwlan_e2600ac-c1
319 define Device
/qxwlan_e2600ac-c2
320 $(call Device
/FitImage
)
321 $(call Device
/UbiFit
)
322 DEVICE_DTS
:= qcom-ipq4019-qxwlan-e2600ac-c2
326 DEVICE_TITLE
:= Qxwlan E2600AC-C2
(nornand flash
)
327 DEVICE_PACKAGES
:= ipq-wifi-qxwlan_e2600ac
329 TARGET_DEVICES
+= qxwlan_e2600ac-c2
331 define Device
/zyxel_nbg6617
332 $(call Device
/FitImageLzma
)
333 DEVICE_DTS
:= qcom-ipq4018-nbg6617
334 DEVICE_TITLE
:= ZyXEL NBG6617
335 ROOTFS_SIZE
:= 24960k
337 RAS_ROOTFS_SIZE
:= 19840k
338 RAS_VERSION
:= "$(VERSION_DIST) $(REVISION)"
339 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
340 IMAGES
:= sysupgrade.bin factory.bin
341 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
342 # at least as large as the one of the initial firmware image (not the current
343 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
344 # this minimum-size. However, the larger image can be flashed both ways.
345 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | pad-to
64k | check-size
$$$$(ROOTFS_SIZE
) | zyxel-ras-image separate-kernel
346 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | check-size
$$$$(ROOTFS_SIZE
) | sysupgrade-tar rootfs
=$$$$@ | append-metadata
347 DEVICE_PACKAGES
:= uboot-envtools kmod-usb-ledtrig-usbport
349 TARGET_DEVICES
+= zyxel_nbg6617
351 define Device
/zyxel_wre6606
352 $(call Device
/FitImage
)
353 DEVICE_TITLE
:= ZyXEL WRE6606
354 DEVICE_DTS_CONFIG
:= config@
4
355 DEVICE_DTS
:= qcom-ipq4018-wre6606
356 IMAGES
:= sysupgrade.bin
357 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
359 TARGET_DEVICES
+= zyxel_wre6606
361 $(eval
$(call BuildImage
))