42a1b7259893c35700038e644f7748621afb0060
[openwrt/openwrt.git] / target / linux / ath79 / image / generic.mk
1 include ./common-buffalo.mk
2 include ./common-netgear.mk
3
4 DEVICE_VARS += ADDPATTERN_ID ADDPATTERN_VERSION
5 DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
6 DEVICE_VARS += KERNEL_INITRAMFS_PREFIX
7
8 define Build/cybertan-trx
9 @echo -n '' > $@-empty.bin
10 -$(STAGING_DIR_HOST)/bin/trx -o $@.new \
11 -f $(IMAGE_KERNEL) -F $@-empty.bin \
12 -x 32 -a 0x10000 -x -32 -f $@
13 -mv "$@.new" "$@"
14 -rm $@-empty.bin
15 endef
16
17 define Build/addpattern
18 -$(STAGING_DIR_HOST)/bin/addpattern -B $(ADDPATTERN_ID) \
19 -v v$(ADDPATTERN_VERSION) -i $@ -o $@.new
20 -mv "$@.new" "$@"
21 endef
22
23 define Build/add-elecom-factory-initramfs
24 $(eval edimax_model=$(word 1,$(1)))
25 $(eval product=$(word 2,$(1)))
26
27 $(STAGING_DIR_HOST)/bin/mkedimaximg \
28 -b -s CSYS -m $(edimax_model) \
29 -f 0x70000 -S 0x01100000 \
30 -i $@ -o $@.factory
31
32 ( \
33 echo -n -e "ELECOM\x00\x00$(product)" | dd bs=40 count=1 conv=sync; \
34 echo -n "0.00" | dd bs=16 count=1 conv=sync; \
35 dd if=$@.factory; \
36 ) > $@.factory.new
37
38 if [ "$$(stat -c%s $@.factory.new)" -le $$(($(subst k,* 1024,$(subst m, * 1024k,$(IMAGE_SIZE))))) ]; then \
39 mv $@.factory.new $(BIN_DIR)/$(KERNEL_INITRAMFS_PREFIX)-factory.bin; \
40 else \
41 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
42 fi
43 endef
44
45 define Build/nec-enc
46 $(STAGING_DIR_HOST)/bin/nec-enc \
47 -i $@ -o $@.new -k $(1)
48 mv $@.new $@
49 endef
50
51 define Build/nec-fw
52 ( stat -c%s $@ | tr -d "\n" | dd bs=16 count=1 conv=sync; ) >> $@
53 ( \
54 echo -n -e "$(1)" | dd bs=16 count=1 conv=sync; \
55 echo -n "0.0.00" | dd bs=16 count=1 conv=sync; \
56 dd if=$@; \
57 ) > $@.new
58 mv $@.new $@
59 endef
60
61 define Device/seama
62 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
63 KERNEL_INITRAMFS := $$(KERNEL) | seama
64 IMAGES += factory.bin
65 SEAMA_MTDBLOCK := 1
66
67 # 64 bytes offset:
68 # - 28 bytes seama_header
69 # - 36 bytes of META data (4-bytes aligned)
70 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
71 IMAGE/sysupgrade.bin := \
72 $$(IMAGE/default) | seama | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
73 IMAGE/factory.bin := \
74 $$(IMAGE/default) | pad-rootfs -x 64 | seama | seama-seal | check-size $$$$(IMAGE_SIZE)
75 SEAMA_SIGNATURE :=
76 endef
77
78 define Device/avm_fritz300e
79 ATH_SOC := ar7242
80 DEVICE_TITLE := AVM FRITZ!WLAN Repeater 300E
81 KERNEL := kernel-bin | append-dtb | lzma | eva-image
82 KERNEL_INITRAMFS := $$(KERNEL)
83 IMAGE_SIZE := 15232k
84 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
85 append-squashfs-fakeroot-be | pad-to 256 | \
86 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
87 DEVICE_PACKAGES := fritz-tffs rssileds -swconfig
88 endef
89 TARGET_DEVICES += avm_fritz300e
90
91 define Device/avm_fritz4020
92 ATH_SOC := qca9561
93 DEVICE_TITLE := AVM FRITZ!Box 4020
94 IMAGE_SIZE := 15232k
95 KERNEL := kernel-bin | append-dtb | lzma | eva-image
96 KERNEL_INITRAMFS := $$(KERNEL)
97 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
98 append-squashfs-fakeroot-be | pad-to 256 | \
99 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
100 DEVICE_PACKAGES := fritz-tffs
101 SUPPORTED_DEVICES += fritz4020
102 endef
103 TARGET_DEVICES += avm_fritz4020
104
105 define Device/buffalo_bhr-4grv
106 ATH_SOC := ar7242
107 DEVICE_TITLE := Buffalo BHR-4GRV
108 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
109 IMAGE_SIZE := 32256k
110 IMAGES += factory.bin tftp.bin
111 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
112 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc BHR-4GRV 1.99 | buffalo-tag BHR-4GRV 3
113 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
114 SUPPORTED_DEVICES += wzr-hp-g450h
115 endef
116 TARGET_DEVICES += buffalo_bhr-4grv
117
118 define Device/buffalo_bhr-4grv2
119 ATH_SOC := qca9557
120 DEVICE_TITLE := Buffalo BHR-4GRV2
121 IMAGE_SIZE := 16000k
122 endef
123 TARGET_DEVICES += buffalo_bhr-4grv2
124
125 define Device/buffalo_wzr-hp-ag300h
126 ATH_SOC := ar7161
127 DEVICE_TITLE := Buffalo WZR-HP-AG300H
128 IMAGE_SIZE := 32256k
129 IMAGES += factory.bin tftp.bin
130 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
131 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-AG300H 1.99 | buffalo-tag WZR-HP-AG300H 3
132 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
133 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
134 SUPPORTED_DEVICES += wzr-hp-ag300h
135 endef
136 TARGET_DEVICES += buffalo_wzr-hp-ag300h
137
138 define Device/buffalo_wzr-hp-g302h-a1a0
139 ATH_SOC := ar7242
140 DEVICE_TITLE := Buffalo WZR-HP-G302H A1A0
141 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
142 IMAGE_SIZE := 32128k
143 IMAGES += factory.bin tftp.bin
144 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
145 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G302H 1.99 | buffalo-tag WZR-HP-G302H 4
146 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
147 SUPPORTED_DEVICES += wzr-hp-g300nh2
148 endef
149 TARGET_DEVICES += buffalo_wzr-hp-g302h-a1a0
150
151 define Device/buffalo_wzr-hp-g450h
152 ATH_SOC := ar7242
153 DEVICE_TITLE := Buffalo WZR-HP-G450H/WZR-450HP
154 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
155 IMAGE_SIZE := 32256k
156 IMAGES += factory.bin tftp.bin
157 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
158 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G450H 1.99 | buffalo-tag WZR-HP-G450H 3
159 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
160 SUPPORTED_DEVICES += wzr-hp-g450h
161 endef
162 TARGET_DEVICES += buffalo_wzr-hp-g450h
163
164 define Device/comfast_cf-e110n-v2
165 ATH_SOC := qca9533
166 DEVICE_TITLE := COMFAST CF-E110N v2
167 DEVICE_PACKAGES := rssileds kmod-leds-gpio -swconfig -uboot-envtools
168 IMAGE_SIZE := 16192k
169 endef
170 TARGET_DEVICES += comfast_cf-e110n-v2
171
172 define Device/comfast_cf-e120a-v3
173 ATH_SOC := ar9344
174 DEVICE_TITLE := COMFAST CF-E120A v3
175 DEVICE_PACKAGES := rssileds kmod-leds-gpio -uboot-envtools
176 IMAGE_SIZE := 8000k
177 endef
178 TARGET_DEVICES += comfast_cf-e120a-v3
179
180 define Device/comfast_cf-e5
181 ATH_SOC := qca9531
182 DEVICE_TITLE := COMFAST CF-E5/E7
183 DEVICE_PACKAGES := rssileds kmod-leds-gpio kmod-usb-core kmod-usb2 kmod-usb-net \
184 kmod-usb-net-qmi-wwan -swconfig -uboot-envtools
185 IMAGE_SIZE := 16192k
186 endef
187 TARGET_DEVICES += comfast_cf-e5
188
189 define Device/devolo_dvl1200e
190 ATH_SOC := qca9558
191 DEVICE_TITLE := devolo WiFi pro 1200e
192 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
193 IMAGE_SIZE := 15936k
194 endef
195 TARGET_DEVICES += devolo_dvl1200e
196
197 define Device/devolo_dvl1200i
198 ATH_SOC := qca9558
199 DEVICE_TITLE := devolo WiFi pro 1200i
200 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
201 IMAGE_SIZE := 15936k
202 endef
203 TARGET_DEVICES += devolo_dvl1200i
204
205 define Device/devolo_dvl1750c
206 ATH_SOC := qca9558
207 DEVICE_TITLE := devolo WiFi pro 1750c
208 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
209 IMAGE_SIZE := 15936k
210 endef
211 TARGET_DEVICES += devolo_dvl1750c
212
213 define Device/devolo_dvl1750e
214 ATH_SOC := qca9558
215 DEVICE_TITLE := devolo WiFi pro 1750e
216 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
217 IMAGE_SIZE := 15936k
218 endef
219 TARGET_DEVICES += devolo_dvl1750e
220
221 define Device/devolo_dvl1750i
222 ATH_SOC := qca9558
223 DEVICE_TITLE := devolo WiFi pro 1750i
224 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
225 IMAGE_SIZE := 15936k
226 endef
227 TARGET_DEVICES += devolo_dvl1750i
228
229 define Device/dlink_dir-825-b1
230 ATH_SOC := ar7161
231 DEVICE_TITLE := D-LINK DIR-825 B1
232 IMAGE_SIZE := 6208k
233 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
234 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
235 SUPPORTED_DEVICES += dir-825-b1
236 endef
237 TARGET_DEVICES += dlink_dir-825-b1
238
239 define Device/dlink_dir-825-c1
240 ATH_SOC := ar9344
241 DEVICE_TITLE := D-LINK DIR-825 C1
242 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
243 SUPPORTED_DEVICES += dir-825-c1
244 IMAGE_SIZE := 15936k
245 IMAGES := factory.bin sysupgrade.bin
246 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
247 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
248 append-string 00DB120AR9344-RT-101214-00 | check-size $$$$(IMAGE_SIZE)
249 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
250 endef
251 TARGET_DEVICES += dlink_dir-825-c1
252
253 define Device/dlink_dir-835-a1
254 ATH_SOC := ar9344
255 DEVICE_TITLE := D-LINK DIR-835 A1
256 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-leds-reset kmod-owl-loader
257 SUPPORTED_DEVICES += dir-835-a1
258 IMAGE_SIZE := 15936k
259 IMAGES := factory.bin sysupgrade.bin
260 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
261 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
262 append-string 00DB120AR9344-RT-101214-00 | check-size $$$$(IMAGE_SIZE)
263 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
264 endef
265 TARGET_DEVICES += dlink_dir-835-a1
266
267 define Device/dlink_dir-859-a1
268 $(Device/seama)
269 ATH_SOC := qca9563
270 DEVICE_TITLE := D-LINK DIR-859 A1
271 IMAGE_SIZE := 15872k
272 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
273 SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
274 SUPPORTED_DEVICES += dir-859-a1
275 endef
276 TARGET_DEVICES += dlink_dir-859-a1
277
278 define Device/elecom_wrc-1750ghbk2-i
279 ATH_SOC := qca9563
280 DEVICE_TITLE := ELECOM WRC-1750GHBK2-I/C
281 IMAGE_SIZE := 15808k
282 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
283 add-elecom-factory-initramfs RN68 WRC-1750GHBK2
284 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
285 endef
286 TARGET_DEVICES += elecom_wrc-1750ghbk2-i
287
288 define Device/elecom_wrc-300ghbk2-i
289 ATH_SOC := qca9563
290 DEVICE_TITLE := ELECOM WRC-300GHBK2-I
291 IMAGE_SIZE := 7616k
292 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
293 add-elecom-factory-initramfs RN51 WRC-300GHBK2-I
294 endef
295 TARGET_DEVICES += elecom_wrc-300ghbk2-i
296
297 define Device/embeddedwireless_dorin
298 ATH_SOC := ar9331
299 DEVICE_TITLE := Embedded Wireless Dorin
300 DEVICE_PACKAGES := kmod-usb-chipidea2
301 IMAGE_SIZE := 16000k
302 endef
303 TARGET_DEVICES += embeddedwireless_dorin
304
305 define Device/engenius_epg5000
306 ATH_SOC := qca9558
307 DEVICE_TITLE := EnGenius EPG5000
308 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
309 IMAGE_SIZE := 14656k
310 IMAGES += factory.dlf
311 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
312 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
313 senao-header -r 0x101 -p 0x71 -t 2
314 SUPPORTED_DEVICES += epg5000
315 endef
316 TARGET_DEVICES += engenius_epg5000
317
318 define Device/engenius_ews511ap
319 ATH_SOC := qca9531
320 DEVICE_TITLE := EnGenius EWS511AP
321 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
322 IMAGE_SIZE := 16000k
323 endef
324 TARGET_DEVICES += engenius_ews511ap
325
326 define Device/etactica_eg200
327 ATH_SOC := ar9331
328 DEVICE_TITLE := eTactica EG200
329 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
330 kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
331 SUPPORTED_DEVICES += rme-eg200
332 endef
333 TARGET_DEVICES += etactica_eg200
334
335 define Device/glinet_gl-ar150
336 ATH_SOC := ar9330
337 DEVICE_TITLE := GL.iNet GL-AR150
338 DEVICE_PACKAGES := kmod-usb-chipidea2
339 IMAGE_SIZE := 16000k
340 SUPPORTED_DEVICES += gl-ar150
341 endef
342 TARGET_DEVICES += glinet_gl-ar150
343
344 define Device/glinet_gl-ar300m-common-nor
345 ATH_SOC := qca9531
346 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
347 IMAGE_SIZE := 16000k
348 SUPPORTED_DEVICES += gl-ar300m
349 endef
350
351 define Device/glinet_gl-ar300m-lite
352 $(Device/glinet_gl-ar300m-common-nor)
353 DEVICE_TITLE := GL.iNet GL-AR300M-Lite
354 endef
355 TARGET_DEVICES += glinet_gl-ar300m-lite
356
357 define Device/glinet_gl-ar300m-nor
358 $(Device/glinet_gl-ar300m-common-nor)
359 DEVICE_TITLE := GL.iNet GL-AR300M
360 endef
361 TARGET_DEVICES += glinet_gl-ar300m-nor
362
363 define Device/glinet_gl-ar750s
364 ATH_SOC := qca9563
365 DEVICE_TITLE := GL.iNet GL-AR750S
366 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
367 IMAGE_SIZE := 16000k
368 SUPPORTED_DEVICES += gl-ar750s
369 endef
370 TARGET_DEVICES += glinet_gl-ar750s
371
372 define Device/glinet_gl-x750
373 ATH_SOC := qca9531
374 DEVICE_TITLE := GL.iNet GL-X750
375 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
376 IMAGE_SIZE := 16000k
377 endef
378 TARGET_DEVICES += glinet_gl-x750
379
380 define Device/iodata_etg3-r
381 ATH_SOC := ar9342
382 DEVICE_TITLE := I-O DATA ETG3-R
383 IMAGE_SIZE := 7680k
384 endef
385 TARGET_DEVICES += iodata_etg3-r
386
387 define Device/iodata_wn-ac1167dgr
388 ATH_SOC := qca9557
389 DEVICE_TITLE := I-O DATA WN-AC1167DGR
390 IMAGE_SIZE := 14656k
391 IMAGES += factory.bin
392 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
393 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
394 senao-header -r 0x30a -p 0x61 -t 2
395 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
396 endef
397 TARGET_DEVICES += iodata_wn-ac1167dgr
398
399 define Device/iodata_wn-ac1600dgr
400 ATH_SOC := qca9557
401 DEVICE_TITLE := I-O DATA WN-AC1600DGR
402 IMAGE_SIZE := 14656k
403 IMAGES += factory.bin
404 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
405 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
406 senao-header -r 0x30a -p 0x60 -t 2 -v 200
407 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
408 endef
409 TARGET_DEVICES += iodata_wn-ac1600dgr
410
411 define Device/iodata_wn-ac1600dgr2
412 ATH_SOC := qca9557
413 DEVICE_TITLE := I-O DATA WN-AC1600DGR2
414 IMAGE_SIZE := 14656k
415 IMAGES += factory.bin
416 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
417 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
418 senao-header -r 0x30a -p 0x60 -t 2 -v 200
419 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
420 endef
421 TARGET_DEVICES += iodata_wn-ac1600dgr2
422
423 define Device/iodata_wn-ag300dgr
424 ATH_SOC := ar1022
425 DEVICE_TITLE := I-O DATA WN-AG300DGR
426 IMAGE_SIZE := 15424k
427 IMAGES += factory.bin
428 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
429 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
430 senao-header -r 0x30a -p 0x47 -t 2
431 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
432 endef
433 TARGET_DEVICES += iodata_wn-ag300dgr
434
435 define Device/jjplus_ja76pf2
436 ATH_SOC := ar7161
437 DEVICE_TITLE := jjPlus JA76PF2
438 DEVICE_PACKAGES += -kmod-ath9k -swconfig -wpad-mini -uboot-envtools fconfig
439 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE)
440 # IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
441 KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
442 KERNEL_INITRAMFS := kernel-bin | append-dtb
443 IMAGE_SIZE := 16000k
444 endef
445 TARGET_DEVICES += jjplus_ja76pf2
446
447 define Device/librerouter_librerouter-v1
448 ATH_SOC := qca9558
449 DEVICE_TITLE := LibreRouter v1
450 IMAGE_SIZE := 7936k
451 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
452 endef
453 TARGET_DEVICES += librerouter_librerouter-v1
454
455 define Device/nec_wg1200cr
456 ATH_SOC := qca9563
457 DEVICE_TITLE := NEC Aterm WG1200CR
458 IMAGE_SIZE := 7616k
459 SEAMA_MTDBLOCK := 6
460 SEAMA_SIGNATURE := wrgac72_necpf.2016gui_wg1200cr
461 IMAGES += factory.bin
462 IMAGE/default := \
463 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
464 IMAGE/sysupgrade.bin := \
465 $$(IMAGE/default) | seama | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
466 IMAGE/factory.bin := \
467 $$(IMAGE/default) | pad-rootfs -x 64 | seama | seama-seal | nec-enc 9gsiy9nzep452pad | \
468 check-size $$$$(IMAGE_SIZE)
469 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
470 endef
471 TARGET_DEVICES += nec_wg1200cr
472
473 define Device/nec_wg800hp
474 ATH_SOC := qca9563
475 DEVICE_TITLE := NEC Aterm WG800HP
476 IMAGE_SIZE := 7104k
477 IMAGES += factory.bin
478 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
479 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
480 xor-image -p 6A57190601121E4C004C1E1201061957 -x | \
481 nec-fw LASER_ATERM
482 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct-htt
483 endef
484 TARGET_DEVICES += nec_wg800hp
485
486 define Device/ocedo_koala
487 ATH_SOC := qca9558
488 DEVICE_TITLE := OCEDO Koala
489 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
490 SUPPORTED_DEVICES += koala
491 IMAGE_SIZE := 7424k
492 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
493 endef
494 TARGET_DEVICES += ocedo_koala
495
496 define Device/ocedo_raccoon
497 ATH_SOC := ar9344
498 DEVICE_TITLE := OCEDO Raccoon
499 IMAGE_SIZE := 7424k
500 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
501 endef
502 TARGET_DEVICES += ocedo_raccoon
503
504 define Device/ocedo_ursus
505 ATH_SOC := qca9558
506 DEVICE_TITLE := OCEDO Ursus
507 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
508 IMAGE_SIZE := 7424k
509 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
510 endef
511 TARGET_DEVICES += ocedo_ursus
512
513 define Device/openmesh_om5p-ac-v2
514 ATH_SOC := qca9558
515 DEVICE_TITLE := OpenMesh OM5P-AC v2
516 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct om-watchdog
517 IMAGE_SIZE := 7808k
518 SUPPORTED_DEVICES += om5p-acv2
519 endef
520 TARGET_DEVICES += openmesh_om5p-ac-v2
521
522 define Device/pcs_cap324
523 ATH_SOC := ar9344
524 DEVICE_TITLE := PowerCloud Systems CAP324
525 IMAGE_SIZE := 16000k
526 SUPPORTED_DEVICES += cap324
527 endef
528 TARGET_DEVICES += pcs_cap324
529
530 define Device/pcs_cr3000
531 ATH_SOC := ar9341
532 DEVICE_TITLE := PowerCloud Systems CR3000
533 IMAGE_SIZE := 7808k
534 SUPPORTED_DEVICES += cr3000
535 endef
536 TARGET_DEVICES += pcs_cr3000
537
538 define Device/pcs_cr5000
539 ATH_SOC := ar9344
540 DEVICE_TITLE := PowerCloud Systems CR5000
541 DEVICE_PACKAGES := kmod-usb2 kmod-usb-core
542 IMAGE_SIZE := 7808k
543 SUPPORTED_DEVICES += cr5000
544 endef
545 TARGET_DEVICES += pcs_cr5000
546
547 define Device/netgear_wndr3x00
548 ATH_SOC := ar7161
549 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
550 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
551 $(Device/netgear_ath79)
552 endef
553
554 define Device/netgear_wndr3700
555 $(Device/netgear_wndr3x00)
556 DEVICE_TITLE := NETGEAR WNDR3700
557 NETGEAR_KERNEL_MAGIC := 0x33373030
558 NETGEAR_BOARD_ID := WNDR3700
559 IMAGE_SIZE := 7680k
560 IMAGES += factory-NA.img
561 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | check-size $$$$(IMAGE_SIZE)
562 SUPPORTED_DEVICES += wndr3700
563 endef
564 TARGET_DEVICES += netgear_wndr3700
565
566 define Device/netgear_wndr3700v2
567 $(Device/netgear_wndr3x00)
568 DEVICE_TITLE := NETGEAR WNDR3700v2
569 NETGEAR_KERNEL_MAGIC := 0x33373031
570 NETGEAR_BOARD_ID := WNDR3700v2
571 NETGEAR_HW_ID := 29763654+16+64
572 IMAGE_SIZE := 15872k
573 SUPPORTED_DEVICES += wndr3700v2
574 endef
575 TARGET_DEVICES += netgear_wndr3700v2
576
577 define Device/pisen_wmm003n
578 $(Device/tplink-8mlzma)
579 ATH_SOC := ar9331
580 DEVICE_TITLE := Pisen WMM003N (Cloud Easy Power)
581 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-chipidea2
582 TPLINK_HWID := 0x07030101
583 endef
584 TARGET_DEVICES += pisen_wmm003n
585
586 define Device/netgear_wndr3800
587 $(Device/netgear_wndr3x00)
588 DEVICE_TITLE := NETGEAR WNDR3800
589 NETGEAR_KERNEL_MAGIC := 0x33373031
590 NETGEAR_BOARD_ID := WNDR3800
591 NETGEAR_HW_ID := 29763654+16+128
592 IMAGE_SIZE := 15872k
593 SUPPORTED_DEVICES += wndr3800
594 endef
595 TARGET_DEVICES += netgear_wndr3800
596
597 define Device/phicomm_k2t
598 ATH_SOC := qca9563
599 DEVICE_TITLE := Phicomm K2T
600 IMAGE_SIZE := 15744k
601 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
602 DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct ath10k-firmware-qca9888-ct
603 endef
604 TARGET_DEVICES += phicomm_k2t
605
606 define Device/rosinson_wr818
607 ATH_SOC := qca9563
608 DEVICE_TITLE := ROSINSON WR818
609 IMAGE_SIZE := 15872k
610 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
611 endef
612 TARGET_DEVICES += rosinson_wr818
613
614 define Device/wd_mynet-wifi-rangeextender
615 ATH_SOC := ar9344
616 DEVICE_TITLE := Western Digital My Net Wi-Fi Range Extender
617 DEVICE_PACKAGES := rssileds nvram -swconfig
618 IMAGE_SIZE := 7808k
619 ADDPATTERN_ID := mynet-rext
620 ADDPATTERN_VERSION := 1.00.01
621 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
622 addpattern | append-metadata
623 SUPPORTED_DEVICES += mynet-rext
624 endef
625 TARGET_DEVICES += wd_mynet-wifi-rangeextender
626
627 define Device/winchannel_wb2000
628 ATH_SOC := ar9344
629 DEVICE_TITLE := Winchannel WB2000
630 IMAGE_SIZE := 15872k
631 DEVICE_PACKAGES := kmod-i2c-core kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 kmod-usb-ledtrig-usbport
632 endef
633 TARGET_DEVICES += winchannel_wb2000
634
635 define Device/xiaomi_mi-router-4q
636 ATH_SOC := qca9561
637 DEVICE_TITLE := Xiaomi Mi Router 4Q
638 IMAGE_SIZE := 14336k
639 endef
640 TARGET_DEVICES += xiaomi_mi-router-4q
641
642 define Device/yuncore_a770
643 ATH_SOC := qca9531
644 DEVICE_TITLE := YunCore A770
645 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
646 IMAGE_SIZE := 16000k
647 endef
648 TARGET_DEVICES += yuncore_a770