OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | include $(TOPDIR)/rules.mk |
1 | include $(TOPDIR)/rules.mk |
|
2 | include $(INCLUDE_DIR)/image.mk |
2 | include $(INCLUDE_DIR)/image.mk |
|
Line 3... | Line -... | |||
3 | |
- | ||
4 | DEVICE_VARS += RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION |
- | ||
5 | |
3 | |
|
6 | define Device/Default |
4 | define Device/Default |
|
7 | PROFILES := Default |
5 | PROFILES := Default |
|
8 | KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts) |
6 | KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts) |
|
9 | KERNEL_INITRAMFS_PREFIX := $$(IMG_PREFIX)-$(1)-initramfs |
7 | KERNEL_INITRAMFS_PREFIX := $$(IMG_PREFIX)-$(1)-initramfs |
|
Line 24... | Line 22... | |||
24 | KERNEL_SUFFIX := -fit-uImage.itb |
22 | KERNEL_SUFFIX := -fit-uImage.itb |
|
25 | KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb |
23 | KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb |
|
26 | KERNEL_NAME := Image |
24 | KERNEL_NAME := Image |
|
27 | endef |
25 | endef |
|
Line 28... | Line -... | |||
28 | |
- | ||
29 | define Device/FitzImage |
- | ||
30 | KERNEL_SUFFIX := -fit-zImage.itb |
- | ||
31 | KERNEL = kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb |
- | ||
32 | KERNEL_NAME := zImage |
- | ||
33 | endef |
- | ||
34 | |
26 | |
|
35 | define Device/UbiFit |
27 | define Device/UbiFit |
|
36 | KERNEL_IN_UBI := 1 |
28 | KERNEL_IN_UBI := 1 |
|
37 | IMAGES := nand-factory.ubi nand-sysupgrade.bin |
29 | IMAGES := nand-factory.ubi nand-sysupgrade.bin |
|
38 | IMAGE/nand-factory.ubi := append-ubi |
30 | IMAGE/nand-factory.ubi := append-ubi |
|
Line 44... | Line 36... | |||
44 | KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb |
36 | KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb |
|
45 | KERNEL_NAME := Image |
37 | KERNEL_NAME := Image |
|
46 | NETGEAR_BOARD_ID := |
38 | NETGEAR_BOARD_ID := |
|
47 | NETGEAR_HW_ID := |
39 | NETGEAR_HW_ID := |
|
48 | IMAGES := factory.img sysupgrade.bin |
40 | 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 |
41 | IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | 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 |
42 | IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata |
|
51 | endef |
43 | endef |
|
52 | DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID |
44 | DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID |
|
Line 53... | Line 45... | |||
53 | |
45 | |
|
Line 60... | Line 52... | |||
60 | PAGESIZE := 2048 |
52 | PAGESIZE := 2048 |
|
61 | DEVICE_TITLE := 8devices Jalapeno |
53 | DEVICE_TITLE := 8devices Jalapeno |
|
62 | endef |
54 | endef |
|
63 | TARGET_DEVICES += 8dev_jalapeno |
55 | TARGET_DEVICES += 8dev_jalapeno |
|
Line 64... | Line -... | |||
64 | |
- | ||
65 | define Device/alfa-network_ap120c-ac |
- | ||
66 | $(call Device/FitImage) |
- | ||
67 | $(call Device/UbiFit) |
- | ||
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 |
- | ||
72 | BLOCKSIZE := 128k |
- | ||
73 | PAGESIZE := 2048 |
- | ||
74 | IMAGE_SIZE := 65536k |
- | ||
75 | IMAGES := nand-factory.bin nand-sysupgrade.bin |
- | ||
76 | IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand |
- | ||
77 | endef |
- | ||
78 | TARGET_DEVICES += alfa-network_ap120c-ac |
- | ||
79 | |
- | ||
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 |
- | ||
86 | endef |
- | ||
87 | TARGET_DEVICES += asus_map-ac2200 |
- | ||
88 | |
56 | |
|
89 | define Device/asus_rt-ac58u |
57 | define Device/asus_rt-ac58u |
|
90 | $(call Device/FitImageLzma) |
58 | $(call Device/FitImageLzma) |
|
91 | DEVICE_DTS := qcom-ipq4018-rt-ac58u |
59 | DEVICE_DTS := qcom-ipq4018-rt-ac58u |
|
92 | BLOCKSIZE := 128k |
60 | BLOCKSIZE := 128k |
|
Line 110... | Line 78... | |||
110 | $(call Device/FitImageLzma) |
78 | $(call Device/FitImageLzma) |
|
111 | DEVICE_DTS := qcom-ipq4018-fritz4040 |
79 | DEVICE_DTS := qcom-ipq4018-fritz4040 |
|
112 | BOARD_NAME := fritz4040 |
80 | BOARD_NAME := fritz4040 |
|
113 | DEVICE_TITLE := AVM Fritz!Box 4040 |
81 | DEVICE_TITLE := AVM Fritz!Box 4040 |
|
114 | IMAGE_SIZE := 29753344 |
82 | IMAGE_SIZE := 29753344 |
|
115 | UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin |
83 | UBOOT_PATH := $$(BIN_DIR)/u-boot-fritz4040/uboot-fritz4040.bin |
|
116 | UBOOT_PARTITION_SIZE := 524288 |
84 | UBOOT_PARTITION_SIZE := 524288 |
|
117 | IMAGES = eva.bin sysupgrade.bin |
85 | IMAGES = eva.bin sysupgrade.bin |
|
118 | IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs |
86 | 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 |
87 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
|
120 | DEVICE_PACKAGES := fritz-tffs fritz-caldata |
88 | DEVICE_PACKAGES := fritz-tffs fritz-caldata u-boot-fritz4040 |
|
121 | endef |
89 | endef |
|
122 | TARGET_DEVICES += avm_fritzbox-4040 |
90 | TARGET_DEVICES += avm_fritzbox-4040 |
|
Line 123... | Line -... | |||
123 | |
- | ||
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 ipq-wifi-avm_fritzbox-7530 |
- | ||
129 | IMAGES := sysupgrade.bin |
- | ||
130 | endef |
- | ||
131 | TARGET_DEVICES += avm_fritzbox-7530 |
- | ||
132 | |
91 | |
|
133 | define Device/compex_wpj428 |
92 | define Device/compex_wpj428 |
|
134 | $(call Device/FitImage) |
93 | $(call Device/FitImage) |
|
135 | DEVICE_DTS := qcom-ipq4028-wpj428 |
94 | DEVICE_DTS := qcom-ipq4028-wpj428 |
|
136 | DEVICE_DTS_CONFIG := config@4 |
95 | DEVICE_DTS_CONFIG := config@4 |
|
Line 142... | Line 101... | |||
142 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
101 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
|
143 | DEVICE_PACKAGES := kmod-gpio-beeper |
102 | DEVICE_PACKAGES := kmod-gpio-beeper |
|
144 | endef |
103 | endef |
|
145 | TARGET_DEVICES += compex_wpj428 |
104 | TARGET_DEVICES += compex_wpj428 |
|
Line 146... | Line -... | |||
146 | |
- | ||
147 | define Device/engenius_eap1300 |
- | ||
148 | $(call Device/FitImage) |
- | ||
149 | DEVICE_TITLE := EnGenius EAP1300 |
- | ||
150 | DEVICE_DTS_CONFIG := config@4 |
- | ||
151 | BOARD_NAME := eap1300 |
- | ||
152 | DEVICE_DTS := qcom-ipq4018-eap1300 |
- | ||
153 | KERNEL_SIZE := 5120k |
- | ||
154 | IMAGE_SIZE := 25344k |
- | ||
155 | IMAGES := sysupgrade.bin |
- | ||
156 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
- | ||
157 | DEVICE_PACKAGES := ipq-wifi-engenius_eap1300 |
- | ||
158 | endef |
- | ||
159 | TARGET_DEVICES += engenius_eap1300 |
- | ||
160 | |
105 | |
|
161 | define Device/glinet_gl-b1300 |
106 | define Device/glinet_gl-b1300 |
|
162 | $(call Device/FitImage) |
107 | $(call Device/FitImage) |
|
163 | DEVICE_TITLE := GL.iNet GL-B1300 |
108 | DEVICE_TITLE := GL.iNet GL-B1300 |
|
164 | BOARD_NAME := gl-b1300 |
109 | BOARD_NAME := gl-b1300 |
|
Line 168... | Line 113... | |||
168 | IMAGES := sysupgrade.bin |
113 | IMAGES := sysupgrade.bin |
|
169 | IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata |
114 | IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata |
|
170 | endef |
115 | endef |
|
171 | TARGET_DEVICES += glinet_gl-b1300 |
116 | TARGET_DEVICES += glinet_gl-b1300 |
|
Line 172... | Line -... | |||
172 | |
- | ||
173 | define Device/linksys_ea6350v3 |
- | ||
174 | # The Linksys EA6350v3 has a uboot bootloader that does not |
- | ||
175 | # support either booting lzma kernel images nor booting UBI |
- | ||
176 | # partitions. This uboot, however, supports raw kernel images and |
- | ||
177 | # gzipped images. |
- | ||
178 | # |
- | ||
179 | # As for the time of writing this, the device will boot the kernel |
- | ||
180 | # from a fixed address with a fixed length of 3MiB. Also, the |
- | ||
181 | # device has a hard-coded kernel command line that requieres the |
- | ||
182 | # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively. |
- | ||
183 | # Oh... and the kernel partition overlaps with the rootfs |
- | ||
184 | # partition (the same for alt_kernel and alt_rootfs). |
- | ||
185 | # |
- | ||
186 | # If you are planing re-partitioning the device, you may want to |
- | ||
187 | # keep those details in mind: |
- | ||
188 | # 1. The kernel adresses you should honor are 0x00000000 and |
- | ||
189 | # 0x02800000 respectively. |
- | ||
190 | # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size. |
- | ||
191 | # 3. You can use 'zImage', but not a raw 'Image' packed with lzma. |
- | ||
192 | # 4. The kernel command line from uboot is harcoded to boot with |
- | ||
193 | # rootfs either in mtd11 or mtd13. |
- | ||
194 | $(call Device/FitzImage) |
- | ||
195 | DEVICE_TITLE := Linksys EA6350v3 |
- | ||
196 | DEVICE_DTS := qcom-ipq4018-ea6350v3 |
- | ||
197 | BLOCKSIZE := 128k |
- | ||
198 | PAGESIZE := 2048 |
- | ||
199 | KERNEL_SIZE := 3145728 |
- | ||
200 | IMAGE_SIZE := 38797312 |
- | ||
201 | UBINIZE_OPTS := -E 5 |
- | ||
202 | IMAGES := factory.bin sysupgrade.bin |
- | ||
203 | IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$${KERNEL_SIZE} | append-ubi | linksys-image type=EA6350v3 |
- | ||
204 | DEVICE_PACKAGES := ipq-wifi-linksys_ea6350v3 uboot-envtools |
- | ||
205 | endef |
- | ||
206 | TARGET_DEVICES += linksys_ea6350v3 |
- | ||
207 | |
117 | |
|
208 | define Device/meraki_mr33 |
118 | define Device/meraki_mr33 |
|
209 | $(call Device/FitImage) |
119 | $(call Device/FitImage) |
|
210 | DEVICE_DTS := qcom-ipq4029-mr33 |
120 | DEVICE_DTS := qcom-ipq4029-mr33 |
|
211 | BLOCKSIZE := 131072 |
121 | BLOCKSIZE := 131072 |
|
212 | PAGESIZE := 2048 |
122 | PAGESIZE := 2048 |
|
213 | DEVICE_TITLE := Cisco Meraki MR33 |
123 | DEVICE_TITLE := Cisco Meraki MR33 |
|
214 | IMAGES = sysupgrade.bin |
124 | IMAGES = sysupgrade.bin |
|
215 | DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct |
125 | DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887 |
|
216 | endef |
126 | endef |
|
Line 217... | Line 127... | |||
217 | TARGET_DEVICES += meraki_mr33 |
127 | TARGET_DEVICES += meraki_mr33 |
|
218 | |
128 | |
|
- | 129 | define Device/netgear_ex61x0v2 |
||
219 | define Device/netgear_ex61x0v2 |
130 | $(call Device/DniImage) |
|
220 | $(call Device/DniImage) |
131 | KERNEL_SIZE := 3080192 |
|
221 | DEVICE_DTS_CONFIG := config@4 |
132 | DEVICE_DTS_CONFIG := config@4 |
|
222 | NETGEAR_BOARD_ID := EX6150v2series |
133 | NETGEAR_BOARD_ID := EX6150v2series |
|
Line 261... | Line 172... | |||
261 | KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE) |
172 | KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE) |
|
262 | IMAGE_SIZE := 15552k |
173 | IMAGE_SIZE := 15552k |
|
263 | IMAGES = factory.bin sysupgrade.bin |
174 | IMAGES = factory.bin sysupgrade.bin |
|
264 | IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62 |
175 | IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62 |
|
265 | IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata |
176 | IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata |
|
266 | DEVICE_PACKAGES := ath10k-firmware-qca9888-ct uboot-envtools |
177 | DEVICE_PACKAGES := ath10k-firmware-qca9888 uboot-envtools |
|
267 | endef |
178 | endef |
|
Line 268... | Line 179... | |||
268 | |
179 | |
|
Line 269... | Line 180... | |||
269 | TARGET_DEVICES += openmesh_a62 |
180 | TARGET_DEVICES += openmesh_a62 |
|
Line 292... | Line 203... | |||
292 | BOARD_NAME := ap-dk04.1-c1 |
203 | BOARD_NAME := ap-dk04.1-c1 |
|
293 | DEVICE_TITLE := QCA AP-DK04.1-C1 |
204 | DEVICE_TITLE := QCA AP-DK04.1-C1 |
|
294 | endef |
205 | endef |
|
295 | TARGET_DEVICES += qcom_ap-dk04.1-c1 |
206 | TARGET_DEVICES += qcom_ap-dk04.1-c1 |
|
Line 296... | Line -... | |||
296 | |
- | ||
297 | define Device/qxwlan_e2600ac-c1 |
- | ||
298 | $(call Device/FitImage) |
- | ||
299 | DEVICE_TITLE := Qxwlan E2600AC-C1 (nor flash) |
- | ||
300 | BOARD_NAME := e2600ac-c1 |
- | ||
301 | DEVICE_DTS := qcom-ipq4019-qxwlan-e2600ac-c1 |
- | ||
302 | KERNEL_SIZE := 4096k |
- | ||
303 | IMAGE_SIZE := 31232k |
- | ||
304 | IMAGES := sysupgrade.bin |
- | ||
305 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
- | ||
306 | DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac |
- | ||
307 | endef |
- | ||
308 | TARGET_DEVICES += qxwlan_e2600ac-c1 |
- | ||
309 | |
- | ||
310 | define Device/qxwlan_e2600ac-c2 |
- | ||
311 | $(call Device/FitImage) |
- | ||
312 | $(call Device/UbiFit) |
- | ||
313 | DEVICE_DTS := qcom-ipq4019-qxwlan-e2600ac-c2 |
- | ||
314 | KERNEL_INSTALL := 1 |
- | ||
315 | BLOCKSIZE := 128k |
- | ||
316 | PAGESIZE := 2048 |
- | ||
317 | DEVICE_TITLE := Qxwlan E2600AC-C2 (nornand flash) |
- | ||
318 | DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac |
- | ||
319 | endef |
- | ||
320 | TARGET_DEVICES += qxwlan_e2600ac-c2 |
- | ||
321 | |
- | ||
322 | define Device/zyxel_nbg6617 |
- | ||
323 | $(call Device/FitImageLzma) |
- | ||
324 | DEVICE_DTS := qcom-ipq4018-nbg6617 |
- | ||
325 | DEVICE_TITLE := ZyXEL NBG6617 |
- | ||
326 | ROOTFS_SIZE := 24960k |
- | ||
327 | RAS_BOARD := NBG6617 |
- | ||
328 | RAS_ROOTFS_SIZE := 19840k |
- | ||
329 | RAS_VERSION := "$(VERSION_DIST) $(REVISION)" |
- | ||
330 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
- | ||
331 | IMAGES := sysupgrade.bin factory.bin |
- | ||
332 | # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is |
- | ||
333 | # at least as large as the one of the initial firmware image (not the current |
- | ||
334 | # one on the device). This only applies to the Web-UI, the bootlaoder ignores |
- | ||
335 | # this minimum-size. However, the larger image can be flashed both ways. |
- | ||
336 | IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel |
- | ||
337 | IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata |
- | ||
338 | DEVICE_PACKAGES := uboot-envtools kmod-usb-ledtrig-usbport |
- | ||
339 | endef |
- | ||
340 | TARGET_DEVICES += zyxel_nbg6617 |
- | ||
341 | |
207 | |
|
342 | define Device/zyxel_wre6606 |
208 | define Device/zyxel_wre6606 |
|
343 | $(call Device/FitImage) |
209 | $(call Device/FitImage) |
|
344 | DEVICE_TITLE := ZyXEL WRE6606 |
210 | DEVICE_TITLE := ZyXEL WRE6606 |
|
345 | DEVICE_DTS_CONFIG := config@4 |
211 | DEVICE_DTS_CONFIG := config@4 |
|
- | 212 | DEVICE_DTS := qcom-ipq4018-wre6606 |
||
346 | DEVICE_DTS := qcom-ipq4018-wre6606 |
213 | DEVICE_PACKAGES := ipq-wifi-zyxel_wre6606 |
|
347 | IMAGES := sysupgrade.bin |
214 | IMAGES := sysupgrade.bin |
|
348 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
215 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
|
349 | endef |
216 | endef |