ath79: netgear: trim down uImage customisations
[openwrt/openwrt.git] / target / linux / ath79 / image / generic.mk
1 include ./common-buffalo.mk
2 include ./common-netgear.mk
3 include ./common-tp-link.mk
4 include ./common-yuncore.mk
5
6 DEVICE_VARS += ADDPATTERN_ID ADDPATTERN_VERSION
7 DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
8 DEVICE_VARS += KERNEL_INITRAMFS_PREFIX
9 DEVICE_VARS += DAP_SIGNATURE ENGENIUS_IMGNAME
10
11 define Build/add-elecom-factory-initramfs
12 $(eval edimax_model=$(word 1,$(1)))
13 $(eval product=$(word 2,$(1)))
14
15 $(STAGING_DIR_HOST)/bin/mkedimaximg \
16 -b -s CSYS -m $(edimax_model) \
17 -f 0x70000 -S 0x01100000 \
18 -i $@ -o $@.factory
19
20 ( \
21 echo -n -e "ELECOM\x00\x00$(product)" | dd bs=40 count=1 conv=sync; \
22 echo -n "0.00" | dd bs=16 count=1 conv=sync; \
23 dd if=$@.factory; \
24 ) > $@.factory.new
25
26 if [ "$$(stat -c%s $@.factory.new)" -le $$(($(subst k,* 1024,$(subst m, * 1024k,$(IMAGE_SIZE))))) ]; then \
27 mv $@.factory.new $(BIN_DIR)/$(KERNEL_INITRAMFS_PREFIX)-factory.bin; \
28 else \
29 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
30 fi
31 endef
32
33 define Build/addpattern
34 -$(STAGING_DIR_HOST)/bin/addpattern -B $(ADDPATTERN_ID) \
35 -v v$(ADDPATTERN_VERSION) -i $@ -o $@.new
36 -mv "$@.new" "$@"
37 endef
38
39 define Build/append-md5sum-bin
40 $(STAGING_DIR_HOST)/bin/mkhash md5 $@ | sed 's/../\\\\x&/g' |\
41 xargs echo -ne >> $@
42 endef
43
44 define Build/cybertan-trx
45 @echo -n '' > $@-empty.bin
46 -$(STAGING_DIR_HOST)/bin/trx -o $@.new \
47 -f $(IMAGE_KERNEL) -F $@-empty.bin \
48 -x 32 -a 0x10000 -x -32 -f $@
49 -mv "$@.new" "$@"
50 -rm $@-empty.bin
51 endef
52
53 # This needs to make /tmp/_sys/sysupgrade.tgz an empty file prior to
54 # sysupgrade, as otherwise it will implant the old configuration from
55 # OEM firmware when writing rootfs from factory.bin
56 define Build/engenius-tar-gz
57 -[ -f "$@" ] && \
58 mkdir -p $@.tmp && \
59 echo '#!/bin/sh' > $@.tmp/before-upgrade.sh && \
60 echo ': > /tmp/_sys/sysupgrade.tgz' >> $@.tmp/before-upgrade.sh && \
61 $(CP) $(KDIR)/loader-$(DEVICE_NAME).uImage \
62 $@.tmp/openwrt-$(word 1,$(1))-uImage-lzma.bin && \
63 $(CP) $@ $@.tmp/openwrt-$(word 1,$(1))-root.squashfs && \
64 $(TAR) -cp --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name \
65 $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
66 -C $@.tmp . | gzip -9n > $@ && \
67 rm -rf $@.tmp
68 endef
69
70 define Build/mkdapimg2
71 $(STAGING_DIR_HOST)/bin/mkdapimg2 \
72 -i $@ -o $@.new \
73 -s $(DAP_SIGNATURE) \
74 -v $(VERSION_DIST)-$(firstword $(subst +, , \
75 $(firstword $(subst -, ,$(REVISION))))) \
76 -r Default \
77 $(if $(1),-k $(1))
78 mv $@.new $@
79 endef
80
81 define Build/mkmylofw_16m
82 $(eval device_id=$(word 1,$(1)))
83 $(eval revision=$(word 2,$(1)))
84
85 # On WPJ344, WPJ531, and WPJ563, the default boot command tries 0x9f680000
86 # first and fails if the remains of the stock image are sill there
87 # - resulting in an infinite boot loop.
88 # The size parameter is grown to have that block deleted if the firmware
89 # isn't big enough by itself.
90
91 let \
92 size="$$(stat -c%s $@)" \
93 pad="$(subst k,* 1024,$(BLOCKSIZE))" \
94 pad="(pad - (size % pad)) % pad" \
95 newsize='size + pad' ; \
96 [ $$newsize -lt $$((0x660000)) ] && newsize=0x660000 ; \
97 $(STAGING_DIR_HOST)/bin/mkmylofw \
98 -B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
99 -s 0x1000000 -p0x30000:$$newsize:al:0x80060000:"OpenWRT":$@ \
100 $@.new
101 @mv $@.new $@
102 endef
103
104 define Build/mkwrggimg
105 $(STAGING_DIR_HOST)/bin/mkwrggimg -b \
106 -i $@ -o $@.imghdr -d /dev/mtdblock/1 \
107 -m $(DEVICE_MODEL)-$(DEVICE_VARIANT) -s $(DAP_SIGNATURE) \
108 -v $(VERSION_DIST) -B $(REVISION)
109 mv $@.imghdr $@
110 endef
111
112 define Build/nec-enc
113 $(STAGING_DIR_HOST)/bin/nec-enc \
114 -i $@ -o $@.new -k $(1)
115 mv $@.new $@
116 endef
117
118 define Build/nec-fw
119 ( stat -c%s $@ | tr -d "\n" | dd bs=16 count=1 conv=sync; ) >> $@
120 ( \
121 echo -n -e "$(1)" | dd bs=16 count=1 conv=sync; \
122 echo -n "0.0.00" | dd bs=16 count=1 conv=sync; \
123 dd if=$@; \
124 ) > $@.new
125 mv $@.new $@
126 endef
127
128 define Build/pisen_wmb001n-factory
129 -[ -f "$@" ] && \
130 mkdir -p "$@.tmp" && \
131 cp "$(KDIR)/loader-$(word 1,$(1)).uImage" "$@.tmp/uImage" && \
132 mv "$@" "$@.tmp/rootfs" && \
133 cp "bin/pisen_wmb001n_factory-header.bin" "$@" && \
134 $(TAR) -cp --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name \
135 $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
136 -C "$@.tmp" . | gzip -9n >> "$@" && \
137 rm -rf "$@.tmp"
138 endef
139
140 define Build/teltonika-fw-fake-checksum
141 # Teltonika U-Boot web based firmware upgrade/recovery routine compares
142 # 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes
143 # from begin of the firmware file) with 16 bytes stored just before
144 # 0xdeadc0de marker. Values are only compared, MD5 sum is not verified.
145 let \
146 offs="$$(stat -c%s $@) - 20"; \
147 dd if=$@ bs=1 count=16 skip=76 |\
148 dd of=$@ bs=1 count=16 seek=$$offs conv=notrunc
149 endef
150
151 define Build/wrgg-pad-rootfs
152 $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@
153 endef
154
155
156 define Device/seama
157 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
158 KERNEL_INITRAMFS := $$(KERNEL) | seama
159 IMAGES += factory.bin
160 SEAMA_MTDBLOCK := 1
161
162 # 64 bytes offset:
163 # - 28 bytes seama_header
164 # - 36 bytes of META data (4-bytes aligned)
165 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
166 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
167 append-metadata | check-size
168 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
169 seama-seal | check-size
170 SEAMA_SIGNATURE :=
171 endef
172
173
174 define Device/8dev_carambola2
175 SOC := ar9331
176 DEVICE_VENDOR := 8devices
177 DEVICE_MODEL := Carambola2
178 DEVICE_PACKAGES := kmod-usb-chipidea2
179 IMAGE_SIZE := 16000k
180 SUPPORTED_DEVICES += carambola2
181 endef
182 TARGET_DEVICES += 8dev_carambola2
183
184 define Device/8dev_lima
185 SOC := qca9531
186 DEVICE_VENDOR := 8devices
187 DEVICE_MODEL := Lima
188 DEVICE_PACKAGES := kmod-usb2
189 IMAGE_SIZE := 15616k
190 SUPPORTED_DEVICES += lima
191 endef
192 TARGET_DEVICES += 8dev_lima
193
194 define Device/adtran_bsap1880
195 SOC := ar7161
196 DEVICE_VENDOR := Adtran/Bluesocket
197 DEVICE_PACKAGES += -swconfig -uboot-envtools fconfig
198 KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
199 KERNEL_INITRAMFS := kernel-bin | append-dtb
200 IMAGE_SIZE := 11200k
201 IMAGES += kernel.bin rootfs.bin
202 IMAGE/kernel.bin := append-kernel
203 IMAGE/rootfs.bin := append-rootfs | pad-rootfs
204 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
205 check-size | sysupgrade-tar rootfs=$$$$@ | append-metadata
206 endef
207
208 define Device/adtran_bsap1800-v2
209 $(Device/adtran_bsap1880)
210 DEVICE_MODEL := BSAP-1800
211 DEVICE_VARIANT := v2
212 endef
213 TARGET_DEVICES += adtran_bsap1800-v2
214
215 define Device/adtran_bsap1840
216 $(Device/adtran_bsap1880)
217 DEVICE_MODEL := BSAP-1840
218 endef
219 TARGET_DEVICES += adtran_bsap1840
220
221 define Device/alfa-network_ap121f
222 SOC := ar9331
223 DEVICE_VENDOR := ALFA Network
224 DEVICE_MODEL := AP121F
225 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-storage -swconfig
226 IMAGE_SIZE := 16064k
227 SUPPORTED_DEVICES += ap121f
228 endef
229 TARGET_DEVICES += alfa-network_ap121f
230
231 define Device/alfa-network_ap121fe
232 SOC := ar9331
233 DEVICE_VENDOR := ALFA Network
234 DEVICE_MODEL := AP121FE
235 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-gadget-eth -swconfig
236 IMAGE_SIZE := 16064k
237 endef
238 TARGET_DEVICES += alfa-network_ap121fe
239
240 define Device/alfa-network_n2q
241 SOC := qca9531
242 DEVICE_VENDOR := ALFA Network
243 DEVICE_MODEL := N2Q
244 DEVICE_PACKAGES := kmod-i2c-gpio kmod-gpio-pcf857x kmod-usb2 \
245 kmod-usb-ledtrig-usbport rssileds
246 IMAGE_SIZE := 15872k
247 endef
248 TARGET_DEVICES += alfa-network_n2q
249
250 define Device/alfa-network_n5q
251 SOC := ar9344
252 DEVICE_VENDOR := ALFA Network
253 DEVICE_MODEL := N5Q
254 DEVICE_PACKAGES := rssileds
255 IMAGE_SIZE := 15872k
256 SUPPORTED_DEVICES += n5q
257 endef
258 TARGET_DEVICES += alfa-network_n5q
259
260 define Device/alfa-network_pi-wifi4
261 SOC := qca9531
262 DEVICE_VENDOR := ALFA Network
263 DEVICE_MODEL := Pi-WiFi4
264 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport -swconfig
265 IMAGE_SIZE := 15872k
266 endef
267 TARGET_DEVICES += alfa-network_pi-wifi4
268
269 define Device/alfa-network_r36a
270 SOC := qca9531
271 DEVICE_VENDOR := ALFA Network
272 DEVICE_MODEL := R36A
273 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
274 IMAGE_SIZE := 15872k
275 SUPPORTED_DEVICES += r36a
276 endef
277 TARGET_DEVICES += alfa-network_r36a
278
279 define Device/allnet_all-wap02860ac
280 SOC := qca9558
281 DEVICE_VENDOR := ALLNET
282 DEVICE_MODEL := ALL-WAP02860AC
283 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
284 IMAGE_SIZE := 13120k
285 endef
286 TARGET_DEVICES += allnet_all-wap02860ac
287
288 define Device/arduino_yun
289 SOC := ar9331
290 DEVICE_VENDOR := Arduino
291 DEVICE_MODEL := Yun
292 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-ledtrig-usbport \
293 kmod-usb-storage block-mount -swconfig
294 IMAGE_SIZE := 15936k
295 SUPPORTED_DEVICES += arduino-yun
296 endef
297 TARGET_DEVICES += arduino_yun
298
299 define Device/aruba_ap-105
300 SOC := ar7161
301 DEVICE_VENDOR := Aruba
302 DEVICE_MODEL := AP-105
303 IMAGE_SIZE := 16000k
304 DEVICE_PACKAGES := kmod-i2c-gpio kmod-tpm-i2c-atmel
305 endef
306 TARGET_DEVICES += aruba_ap-105
307
308 define Device/avm
309 DEVICE_VENDOR := AVM
310 KERNEL := kernel-bin | append-dtb | lzma | eva-image
311 KERNEL_INITRAMFS := $$(KERNEL)
312 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
313 append-squashfs-fakeroot-be | pad-to 256 | append-rootfs | pad-rootfs | \
314 append-metadata | check-size
315 DEVICE_PACKAGES := fritz-tffs
316 endef
317
318 define Device/avm_fritz1750e
319 $(Device/avm)
320 SOC := qca9556
321 IMAGE_SIZE := 15232k
322 DEVICE_MODEL := FRITZ!WLAN Repeater 1750E
323 DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
324 ath10k-firmware-qca988x-ct -swconfig
325 endef
326 TARGET_DEVICES += avm_fritz1750e
327
328 define Device/avm_fritz300e
329 $(Device/avm)
330 SOC := ar7242
331 IMAGE_SIZE := 15232k
332 DEVICE_MODEL := FRITZ!WLAN Repeater 300E
333 DEVICE_PACKAGES += rssileds -swconfig
334 SUPPORTED_DEVICES += fritz300e
335 endef
336 TARGET_DEVICES += avm_fritz300e
337
338 define Device/avm_fritz4020
339 $(Device/avm)
340 SOC := qca9561
341 IMAGE_SIZE := 15232k
342 DEVICE_MODEL := FRITZ!Box 4020
343 SUPPORTED_DEVICES += fritz4020
344 endef
345 TARGET_DEVICES += avm_fritz4020
346
347 define Device/avm_fritz450e
348 $(Device/avm)
349 SOC := qca9556
350 IMAGE_SIZE := 15232k
351 DEVICE_MODEL := FRITZ!WLAN Repeater 450E
352 SUPPORTED_DEVICES += fritz450e
353 endef
354 TARGET_DEVICES += avm_fritz450e
355
356 define Device/avm_fritzdvbc
357 $(Device/avm)
358 SOC := qca9556
359 IMAGE_SIZE := 15232k
360 DEVICE_MODEL := FRITZ!WLAN Repeater DVB-C
361 DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
362 ath10k-firmware-qca988x-ct -swconfig
363 endef
364 TARGET_DEVICES += avm_fritzdvbc
365
366 define Device/buffalo_bhr-4grv
367 $(Device/buffalo_common)
368 SOC := ar7242
369 DEVICE_MODEL := BHR-4GRV
370 BUFFALO_PRODUCT := BHR-4GRV
371 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
372 IMAGE_SIZE := 32256k
373 SUPPORTED_DEVICES += wzr-hp-g450h
374 endef
375 TARGET_DEVICES += buffalo_bhr-4grv
376
377 define Device/buffalo_bhr-4grv2
378 SOC := qca9557
379 DEVICE_VENDOR := Buffalo
380 DEVICE_MODEL := BHR-4GRV2
381 IMAGE_SIZE := 16000k
382 endef
383 TARGET_DEVICES += buffalo_bhr-4grv2
384
385 define Device/buffalo_wzr_ar7161
386 $(Device/buffalo_common)
387 SOC := ar7161
388 BUFFALO_PRODUCT := WZR-HP-AG300H
389 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
390 kmod-leds-reset kmod-owl-loader
391 IMAGE_SIZE := 32320k
392 SUPPORTED_DEVICES += wzr-hp-ag300h
393 endef
394
395 define Device/buffalo_wzr-600dhp
396 $(Device/buffalo_wzr_ar7161)
397 DEVICE_MODEL := WZR-600DHP
398 endef
399 TARGET_DEVICES += buffalo_wzr-600dhp
400
401 define Device/buffalo_wzr-hp-ag300h
402 $(Device/buffalo_wzr_ar7161)
403 DEVICE_MODEL := WZR-HP-AG300H
404 endef
405 TARGET_DEVICES += buffalo_wzr-hp-ag300h
406
407 define Device/buffalo_wzr-hp-g302h-a1a0
408 $(Device/buffalo_common)
409 SOC := ar7242
410 DEVICE_MODEL := WZR-HP-G302H
411 DEVICE_VARIANT := A1A0
412 BUFFALO_PRODUCT := WZR-HP-G302H
413 BUFFALO_HWVER := 4
414 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
415 IMAGE_SIZE := 32128k
416 SUPPORTED_DEVICES += wzr-hp-g300nh2
417 endef
418 TARGET_DEVICES += buffalo_wzr-hp-g302h-a1a0
419
420 define Device/buffalo_wzr-hp-g450h
421 $(Device/buffalo_common)
422 SOC := ar7242
423 DEVICE_MODEL := WZR-HP-G450H/WZR-450HP
424 BUFFALO_PRODUCT := WZR-HP-G450H
425 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
426 IMAGE_SIZE := 32256k
427 SUPPORTED_DEVICES += wzr-hp-g450h
428 endef
429 TARGET_DEVICES += buffalo_wzr-hp-g450h
430
431 define Device/comfast_cf-e110n-v2
432 SOC := qca9533
433 DEVICE_VENDOR := COMFAST
434 DEVICE_MODEL := CF-E110N
435 DEVICE_VARIANT := v2
436 DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
437 IMAGE_SIZE := 16192k
438 endef
439 TARGET_DEVICES += comfast_cf-e110n-v2
440
441 define Device/comfast_cf-e120a-v3
442 SOC := ar9344
443 DEVICE_VENDOR := COMFAST
444 DEVICE_MODEL := CF-E120A
445 DEVICE_VARIANT := v3
446 DEVICE_PACKAGES := rssileds -uboot-envtools
447 IMAGE_SIZE := 8000k
448 endef
449 TARGET_DEVICES += comfast_cf-e120a-v3
450
451 define Device/comfast_cf-e130n-v2
452 SOC := qca9531
453 DEVICE_VENDOR := COMFAST
454 DEVICE_MODEL := CF-E130N
455 DEVICE_VARIANT := v2
456 DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
457 IMAGE_SIZE := 7936k
458 endef
459 TARGET_DEVICES += comfast_cf-e130n-v2
460
461 define Device/comfast_cf-e313ac
462 SOC := qca9531
463 DEVICE_VENDOR := COMFAST
464 DEVICE_MODEL := CF-E313AC
465 DEVICE_PACKAGES := rssileds kmod-ath10k-ct-smallbuffers \
466 ath10k-firmware-qca9888-ct -swconfig -uboot-envtools
467 IMAGE_SIZE := 7936k
468 endef
469 TARGET_DEVICES += comfast_cf-e313ac
470
471 define Device/comfast_cf-e314n-v2
472 SOC := qca9531
473 DEVICE_VENDOR := COMFAST
474 DEVICE_MODEL := CF-E314N
475 DEVICE_VARIANT := v2
476 DEVICE_PACKAGES := rssileds
477 IMAGE_SIZE := 7936k
478 endef
479 TARGET_DEVICES += comfast_cf-e314n-v2
480
481 define Device/comfast_cf-e5
482 SOC := qca9531
483 DEVICE_VENDOR := COMFAST
484 DEVICE_MODEL := CF-E5/E7
485 DEVICE_PACKAGES := rssileds kmod-usb2 kmod-usb-net-qmi-wwan -swconfig \
486 -uboot-envtools
487 IMAGE_SIZE := 16192k
488 endef
489 TARGET_DEVICES += comfast_cf-e5
490
491 define Device/comfast_cf-e560ac
492 SOC := qca9531
493 DEVICE_VENDOR := COMFAST
494 DEVICE_MODEL := CF-E560AC
495 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
496 IMAGE_SIZE := 16128k
497 endef
498 TARGET_DEVICES += comfast_cf-e560ac
499
500 define Device/comfast_cf-ew72
501 SOC := qca9531
502 DEVICE_VENDOR := COMFAST
503 DEVICE_MODEL := CF-EW72
504 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
505 -uboot-envtools -swconfig
506 IMAGE_SIZE := 16192k
507 endef
508 TARGET_DEVICES += comfast_cf-ew72
509
510 define Device/comfast_cf-wr650ac-v1
511 SOC := qca9558
512 DEVICE_VENDOR := COMFAST
513 DEVICE_MODEL := CF-WR650AC
514 DEVICE_VARIANT := v1
515 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
516 IMAGE_SIZE := 16128k
517 endef
518 TARGET_DEVICES += comfast_cf-wr650ac-v1
519
520 define Device/comfast_cf-wr650ac-v2
521 SOC := qca9558
522 DEVICE_VENDOR := COMFAST
523 DEVICE_MODEL := CF-WR650AC
524 DEVICE_VARIANT := v2
525 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
526 IMAGE_SIZE := 16000k
527 endef
528 TARGET_DEVICES += comfast_cf-wr650ac-v2
529
530 define Device/comfast_cf-wr752ac-v1
531 SOC := qca9531
532 DEVICE_VENDOR := COMFAST
533 DEVICE_MODEL := CF-WR752AC
534 DEVICE_VARIANT := v1
535 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
536 -uboot-envtools
537 IMAGE_SIZE := 16192k
538 endef
539 TARGET_DEVICES += comfast_cf-wr752ac-v1
540
541 define Device/compex_wpj344-16m
542 SOC := ar9344
543 DEVICE_PACKAGES := kmod-usb2
544 IMAGE_SIZE := 16128k
545 DEVICE_VENDOR := Compex
546 DEVICE_MODEL := WPJ344
547 DEVICE_VARIANT := 16M
548 SUPPORTED_DEVICES += wpj344
549 IMAGES += cpximg-6a08.bin
550 IMAGE/cpximg-6a08.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x690 3
551 endef
552 TARGET_DEVICES += compex_wpj344-16m
553
554 define Device/compex_wpj531-16m
555 SOC := qca9531
556 DEVICE_PACKAGES := kmod-usb2
557 IMAGE_SIZE := 16128k
558 DEVICE_VENDOR := Compex
559 DEVICE_MODEL := WPJ531
560 DEVICE_VARIANT := 16M
561 SUPPORTED_DEVICES += wpj531
562 IMAGES += cpximg-7a03.bin cpximg-7a04.bin cpximg-7a06.bin cpximg-7a07.bin
563 IMAGE/cpximg-7a03.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x68a 2
564 IMAGE/cpximg-7a04.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
565 IMAGE/cpximg-7a06.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
566 IMAGE/cpximg-7a07.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
567 endef
568 TARGET_DEVICES += compex_wpj531-16m
569
570 define Device/compex_wpj563
571 SOC := qca9563
572 DEVICE_PACKAGES := kmod-usb2 kmod-usb3
573 IMAGE_SIZE := 16128k
574 DEVICE_VENDOR := Compex
575 DEVICE_MODEL := WPJ563
576 SUPPORTED_DEVICES += wpj563
577 IMAGES += cpximg-7a02.bin
578 IMAGE/cpximg-7a02.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x694 2
579 endef
580 TARGET_DEVICES += compex_wpj563
581
582 define Device/devolo_dvl1200e
583 SOC := qca9558
584 DEVICE_VENDOR := devolo
585 DEVICE_MODEL := WiFi pro 1200e
586 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
587 IMAGE_SIZE := 15936k
588 endef
589 TARGET_DEVICES += devolo_dvl1200e
590
591 define Device/devolo_dvl1200i
592 SOC := qca9558
593 DEVICE_VENDOR := devolo
594 DEVICE_MODEL := WiFi pro 1200i
595 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
596 IMAGE_SIZE := 15936k
597 endef
598 TARGET_DEVICES += devolo_dvl1200i
599
600 define Device/devolo_dvl1750c
601 SOC := qca9558
602 DEVICE_VENDOR := devolo
603 DEVICE_MODEL := WiFi pro 1750c
604 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
605 IMAGE_SIZE := 15936k
606 endef
607 TARGET_DEVICES += devolo_dvl1750c
608
609 define Device/devolo_dvl1750e
610 SOC := qca9558
611 DEVICE_VENDOR := devolo
612 DEVICE_MODEL := WiFi pro 1750e
613 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
614 IMAGE_SIZE := 15936k
615 endef
616 TARGET_DEVICES += devolo_dvl1750e
617
618 define Device/devolo_dvl1750i
619 SOC := qca9558
620 DEVICE_VENDOR := devolo
621 DEVICE_MODEL := WiFi pro 1750i
622 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
623 IMAGE_SIZE := 15936k
624 endef
625 TARGET_DEVICES += devolo_dvl1750i
626
627 define Device/devolo_dvl1750x
628 SOC := qca9558
629 DEVICE_VENDOR := devolo
630 DEVICE_MODEL := WiFi pro 1750x
631 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
632 IMAGE_SIZE := 15936k
633 endef
634 TARGET_DEVICES += devolo_dvl1750x
635
636 define Device/devolo_magic-2-wifi
637 SOC := ar9344
638 DEVICE_VENDOR := Devolo
639 DEVICE_MODEL := Magic 2 WiFi
640 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
641 IMAGE_SIZE := 15872k
642 endef
643 TARGET_DEVICES += devolo_magic-2-wifi
644
645 define Device/dlink_dap-13xx
646 SOC := qca9533
647 DEVICE_VENDOR := D-Link
648 DEVICE_PACKAGES += rssileds
649 IMAGE_SIZE := 7936k
650 IMAGES += factory.bin
651 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
652 append-rootfs | pad-rootfs | check-size | mkdapimg2 0xE0000
653 endef
654
655 define Device/dlink_dap-1330-a1
656 $(Device/dlink_dap-13xx)
657 DEVICE_MODEL := DAP-1330
658 DEVICE_VARIANT := A1
659 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1330
660 SUPPORTED_DEVICES += dap-1330-a1
661 endef
662 TARGET_DEVICES += dlink_dap-1330-a1
663
664 define Device/dlink_dap-1365-a1
665 $(Device/dlink_dap-13xx)
666 DEVICE_MODEL := DAP-1365
667 DEVICE_VARIANT := A1
668 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1365
669 endef
670 TARGET_DEVICES += dlink_dap-1365-a1
671
672 define Device/dlink_dap-2695-a1
673 SOC := qca9558
674 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
675 DEVICE_VENDOR := D-Link
676 DEVICE_MODEL := DAP-2965
677 DEVICE_VARIANT := A1
678 IMAGES := factory.img sysupgrade.bin
679 IMAGE_SIZE := 15360k
680 IMAGE/default := append-kernel | pad-offset 65536 160
681 IMAGE/factory.img := $$(IMAGE/default) | append-rootfs | wrgg-pad-rootfs | \
682 mkwrggimg | check-size
683 IMAGE/sysupgrade.bin := $$(IMAGE/default) | mkwrggimg | append-rootfs | \
684 wrgg-pad-rootfs | append-metadata | check-size
685 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
686 KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg
687 DAP_SIGNATURE := wapac02_dkbs_dap2695
688 SUPPORTED_DEVICES += dap-2695-a1
689 endef
690 TARGET_DEVICES += dlink_dap-2695-a1
691
692 define Device/dlink_dch-g020-a1
693 SOC := qca9531
694 DEVICE_VENDOR := D-Link
695 DEVICE_MODEL := DCH-G020
696 DEVICE_VARIANT := A1
697 DEVICE_PACKAGES := kmod-gpio-pca953x kmod-i2c-gpio kmod-usb2 kmod-usb-acm
698 IMAGES += factory.bin
699 IMAGE_SIZE := 14784k
700 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
701 append-rootfs | pad-rootfs | check-size | mkdapimg2 0x20000
702 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DCH-G020
703 endef
704 TARGET_DEVICES += dlink_dch-g020-a1
705
706 define Device/dlink_dir-505
707 SOC := ar9330
708 DEVICE_VENDOR := D-Link
709 DEVICE_MODEL := DIR-505
710 IMAGE_SIZE := 7680k
711 DEVICE_PACKAGES := kmod-usb2
712 SUPPORTED_DEVICES += dir-505-a1
713 endef
714 TARGET_DEVICES += dlink_dir-505
715
716 define Device/dlink_dir-825-b1
717 SOC := ar7161
718 DEVICE_VENDOR := D-Link
719 DEVICE_MODEL := DIR-825
720 DEVICE_VARIANT := B1
721 IMAGE_SIZE := 6208k
722 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
723 append-metadata | check-size
724 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
725 kmod-leds-reset kmod-owl-loader
726 SUPPORTED_DEVICES += dir-825-b1
727 endef
728 TARGET_DEVICES += dlink_dir-825-b1
729
730 define Device/dlink_dir-825-c1
731 SOC := ar9344
732 DEVICE_VENDOR := D-Link
733 DEVICE_MODEL := DIR-825
734 DEVICE_VARIANT := C1
735 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset \
736 kmod-owl-loader
737 SUPPORTED_DEVICES += dir-825-c1
738 IMAGE_SIZE := 15936k
739 IMAGES := factory.bin sysupgrade.bin
740 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
741 pad-rootfs
742 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
743 append-string 00DB120AR9344-RT-101214-00 | check-size
744 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
745 check-size
746 endef
747 TARGET_DEVICES += dlink_dir-825-c1
748
749 define Device/dlink_dir-835-a1
750 SOC := ar9344
751 DEVICE_VENDOR := D-Link
752 DEVICE_MODEL := DIR-835
753 DEVICE_VARIANT := A1
754 DEVICE_PACKAGES := kmod-usb2 kmod-leds-reset kmod-owl-loader
755 SUPPORTED_DEVICES += dir-835-a1
756 IMAGE_SIZE := 15936k
757 IMAGES := factory.bin sysupgrade.bin
758 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
759 pad-rootfs
760 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
761 append-string 00DB120AR9344-RT-101214-00 | check-size
762 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
763 check-size
764 endef
765 TARGET_DEVICES += dlink_dir-835-a1
766
767 define Device/dlink_dir-842-c
768 SOC := qca9563
769 DEVICE_VENDOR := D-Link
770 DEVICE_MODEL := DIR-842
771 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
772 KERNEL_INITRAMFS := $$(KERNEL) | seama
773 IMAGES += factory.bin
774 SEAMA_MTDBLOCK := 5
775 SEAMA_SIGNATURE := wrgac65_dlink.2015_dir842
776 # 64 bytes offset:
777 # - 28 bytes seama_header
778 # - 36 bytes of META data (4-bytes aligned)
779 IMAGE/default := append-kernel | uImage lzma | \
780 pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
781 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
782 append-metadata | check-size
783 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
784 seama-seal | check-size
785 IMAGE_SIZE := 15680k
786 endef
787
788 define Device/dlink_dir-842-c1
789 $(Device/dlink_dir-842-c)
790 DEVICE_VARIANT := C1
791 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
792 endef
793 TARGET_DEVICES += dlink_dir-842-c1
794
795 define Device/dlink_dir-842-c2
796 $(Device/dlink_dir-842-c)
797 DEVICE_VARIANT := C2
798 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
799 endef
800 TARGET_DEVICES += dlink_dir-842-c2
801
802 define Device/dlink_dir-842-c3
803 $(Device/dlink_dir-842-c)
804 DEVICE_VARIANT := C3
805 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
806 endef
807 TARGET_DEVICES += dlink_dir-842-c3
808
809 define Device/dlink_dir-859-a1
810 $(Device/seama)
811 SOC := qca9563
812 DEVICE_VENDOR := D-Link
813 DEVICE_MODEL := DIR-859
814 DEVICE_VARIANT := A1
815 IMAGE_SIZE := 15872k
816 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
817 SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
818 endef
819 TARGET_DEVICES += dlink_dir-859-a1
820
821 define Device/elecom_wrc-1750ghbk2-i
822 SOC := qca9563
823 DEVICE_VENDOR := ELECOM
824 DEVICE_MODEL := WRC-1750GHBK2-I/C
825 IMAGE_SIZE := 15808k
826 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
827 add-elecom-factory-initramfs RN68 WRC-1750GHBK2
828 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
829 endef
830 TARGET_DEVICES += elecom_wrc-1750ghbk2-i
831
832 define Device/elecom_wrc-300ghbk2-i
833 SOC := qca9563
834 DEVICE_VENDOR := ELECOM
835 DEVICE_MODEL := WRC-300GHBK2-I
836 IMAGE_SIZE := 7616k
837 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
838 add-elecom-factory-initramfs RN51 WRC-300GHBK2-I
839 endef
840 TARGET_DEVICES += elecom_wrc-300ghbk2-i
841
842 define Device/embeddedwireless_dorin
843 SOC := ar9331
844 DEVICE_VENDOR := Embedded Wireless
845 DEVICE_MODEL := Dorin
846 DEVICE_PACKAGES := kmod-usb-chipidea2
847 IMAGE_SIZE := 16000k
848 endef
849 TARGET_DEVICES += embeddedwireless_dorin
850
851 define Device/engenius_loader_okli
852 DEVICE_VENDOR := EnGenius
853 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
854 LOADER_TYPE := bin
855 COMPILE := loader-$(1).bin loader-$(1).uImage
856 COMPILE/loader-$(1).bin := loader-okli-compile
857 COMPILE/loader-$(1).uImage := append-loader-okli $(1) | pad-to 64k | lzma | \
858 uImage lzma
859 IMAGES += factory.bin
860 IMAGE/factory.bin := append-squashfs-fakeroot-be | pad-to $$$$(BLOCKSIZE) | \
861 append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
862 check-size | engenius-tar-gz $$$$(ENGENIUS_IMGNAME)
863 endef
864
865 define Device/engenius_eap300-v2
866 $(Device/engenius_loader_okli)
867 SOC := ar9341
868 DEVICE_MODEL := EAP300
869 DEVICE_VARIANT := v2
870 IMAGE_SIZE := 12032k
871 LOADER_FLASH_OFFS := 0x230000
872 ENGENIUS_IMGNAME := senao-eap300v2
873 endef
874 TARGET_DEVICES += engenius_eap300-v2
875
876 define Device/engenius_ecb1750
877 SOC := qca9558
878 DEVICE_VENDOR := EnGenius
879 DEVICE_MODEL := ECB1750
880 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
881 IMAGE_SIZE := 15680k
882 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
883 append-rootfs | pad-rootfs | check-size | \
884 senao-header -r 0x101 -p 0x6d -t 2
885 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
886 append-metadata | check-size
887 endef
888 TARGET_DEVICES += engenius_ecb1750
889
890 define Device/engenius_enh202-v1
891 $(Device/engenius_loader_okli)
892 SOC := ar7240
893 DEVICE_MODEL := ENH202
894 DEVICE_VARIANT := v1
895 DEVICE_PACKAGES := rssileds
896 IMAGE_SIZE := 4864k
897 LOADER_FLASH_OFFS := 0x1b0000
898 ENGENIUS_IMGNAME := senao-enh202
899 endef
900 TARGET_DEVICES += engenius_enh202-v1
901
902 define Device/engenius_ens202ext-v1
903 $(Device/engenius_loader_okli)
904 SOC := ar9341
905 DEVICE_MODEL := ENS202EXT
906 DEVICE_VARIANT := v1
907 DEVICE_PACKAGES := rssileds
908 IMAGE_SIZE := 12032k
909 LOADER_FLASH_OFFS := 0x230000
910 ENGENIUS_IMGNAME := senao-ens202ext
911 endef
912 TARGET_DEVICES += engenius_ens202ext-v1
913
914 define Device/engenius_epg5000
915 SOC := qca9558
916 DEVICE_VENDOR := EnGenius
917 DEVICE_MODEL := EPG5000
918 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
919 IMAGE_SIZE := 14656k
920 IMAGES += factory.dlf
921 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
922 append-rootfs | pad-rootfs | check-size | \
923 senao-header -r 0x101 -p 0x71 -t 2
924 SUPPORTED_DEVICES += epg5000
925 endef
926 TARGET_DEVICES += engenius_epg5000
927
928 define Device/engenius_ews511ap
929 SOC := qca9531
930 DEVICE_VENDOR := EnGenius
931 DEVICE_MODEL := EWS511AP
932 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
933 IMAGE_SIZE := 16000k
934 endef
935 TARGET_DEVICES += engenius_ews511ap
936
937 define Device/enterasys_ws-ap3705i
938 SOC := ar9344
939 DEVICE_VENDOR := Enterasys
940 DEVICE_MODEL := WS-AP3705i
941 IMAGE_SIZE := 30528k
942 endef
943 TARGET_DEVICES += enterasys_ws-ap3705i
944
945 define Device/etactica_eg200
946 SOC := ar9331
947 DEVICE_VENDOR := eTactica
948 DEVICE_MODEL := EG200
949 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
950 kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
951 IMAGE_SIZE := 16000k
952 SUPPORTED_DEVICES += rme-eg200
953 endef
954 TARGET_DEVICES += etactica_eg200
955
956 define Device/glinet_6408
957 $(Device/tplink-8mlzma)
958 SOC := ar9331
959 DEVICE_VENDOR := GL.iNet
960 DEVICE_MODEL := 6408
961 DEVICE_PACKAGES := kmod-usb2
962 IMAGE_SIZE := 8000k
963 TPLINK_HWID := 0x08000001
964 IMAGES := sysupgrade.bin
965 SUPPORTED_DEVICES += gl-inet
966 endef
967 TARGET_DEVICES += glinet_6408
968
969 define Device/glinet_6416
970 $(Device/tplink-16mlzma)
971 SOC := ar9331
972 DEVICE_VENDOR := GL.iNet
973 DEVICE_MODEL := 6416
974 DEVICE_PACKAGES := kmod-usb2
975 IMAGE_SIZE := 16192k
976 TPLINK_HWID := 0x08000001
977 IMAGES := sysupgrade.bin
978 SUPPORTED_DEVICES += gl-inet
979 endef
980 TARGET_DEVICES += glinet_6416
981
982 define Device/glinet_gl-ar150
983 SOC := ar9330
984 DEVICE_VENDOR := GL.iNet
985 DEVICE_MODEL := GL-AR150
986 DEVICE_PACKAGES := kmod-usb-chipidea2
987 IMAGE_SIZE := 16000k
988 SUPPORTED_DEVICES += gl-ar150
989 endef
990 TARGET_DEVICES += glinet_gl-ar150
991
992 define Device/glinet_gl-ar300m-common-nor
993 SOC := qca9531
994 DEVICE_VENDOR := GL.iNet
995 DEVICE_PACKAGES := kmod-usb2
996 IMAGE_SIZE := 16000k
997 SUPPORTED_DEVICES += gl-ar300m
998 endef
999
1000 define Device/glinet_gl-ar300m-lite
1001 $(Device/glinet_gl-ar300m-common-nor)
1002 DEVICE_MODEL := GL-AR300M
1003 DEVICE_VARIANT := Lite
1004 endef
1005 TARGET_DEVICES += glinet_gl-ar300m-lite
1006
1007 define Device/glinet_gl-ar300m16
1008 $(Device/glinet_gl-ar300m-common-nor)
1009 DEVICE_MODEL := GL-AR300M16
1010 endef
1011 TARGET_DEVICES += glinet_gl-ar300m16
1012
1013 define Device/glinet_gl-ar750
1014 SOC := qca9531
1015 DEVICE_VENDOR := GL.iNet
1016 DEVICE_MODEL := GL-AR750
1017 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
1018 IMAGE_SIZE := 16000k
1019 SUPPORTED_DEVICES += gl-ar750
1020 endef
1021 TARGET_DEVICES += glinet_gl-ar750
1022
1023 define Device/glinet_gl-mifi
1024 SOC := ar9331
1025 DEVICE_VENDOR := GL.iNET
1026 DEVICE_MODEL := GL-MiFi
1027 DEVICE_PACKAGES := kmod-usb-chipidea2
1028 IMAGE_SIZE := 16000k
1029 SUPPORTED_DEVICES += gl-mifi
1030 endef
1031 TARGET_DEVICES += glinet_gl-mifi
1032
1033 define Device/glinet_gl-x750
1034 SOC := qca9531
1035 DEVICE_VENDOR := GL.iNet
1036 DEVICE_MODEL := GL-X750
1037 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
1038 IMAGE_SIZE := 16000k
1039 endef
1040 TARGET_DEVICES += glinet_gl-x750
1041
1042 define Device/hak5_lan-turtle
1043 $(Device/tplink-16mlzma)
1044 SOC := ar9331
1045 DEVICE_VENDOR := Hak5
1046 DEVICE_MODEL := LAN Turtle
1047 TPLINK_HWID := 0x5348334c
1048 IMAGES := sysupgrade.bin
1049 DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
1050 -uboot-envtools -wpad-basic-wolfssl
1051 SUPPORTED_DEVICES += lan-turtle
1052 endef
1053 TARGET_DEVICES += hak5_lan-turtle
1054
1055 define Device/hak5_packet-squirrel
1056 $(Device/tplink-16mlzma)
1057 SOC := ar9331
1058 DEVICE_VENDOR := Hak5
1059 DEVICE_MODEL := Packet Squirrel
1060 TPLINK_HWID := 0x5351524c
1061 IMAGES := sysupgrade.bin
1062 DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
1063 -uboot-envtools -wpad-basic-wolfssl
1064 SUPPORTED_DEVICES += packet-squirrel
1065 endef
1066 TARGET_DEVICES += hak5_packet-squirrel
1067
1068 define Device/hak5_wifi-pineapple-nano
1069 $(Device/tplink-16mlzma)
1070 SOC := ar9331
1071 DEVICE_VENDOR := Hak5
1072 DEVICE_MODEL := WiFi Pineapple NANO
1073 TPLINK_HWID := 0x4e414e4f
1074 IMAGES := sysupgrade.bin
1075 DEVICE_PACKAGES := kmod-ath9k-htc kmod-usb-chipidea2 kmod-usb-storage \
1076 -swconfig -uboot-envtools
1077 SUPPORTED_DEVICES += wifi-pineapple-nano
1078 endef
1079 TARGET_DEVICES += hak5_wifi-pineapple-nano
1080
1081 define Device/iodata_etg3-r
1082 SOC := ar9342
1083 DEVICE_VENDOR := I-O DATA
1084 DEVICE_MODEL := ETG3-R
1085 IMAGE_SIZE := 7680k
1086 DEVICE_PACKAGES := -iwinfo -kmod-ath9k -wpad-basic-wolfssl
1087 endef
1088 TARGET_DEVICES += iodata_etg3-r
1089
1090 define Device/iodata_wn-ac1167dgr
1091 SOC := qca9557
1092 DEVICE_VENDOR := I-O DATA
1093 DEVICE_MODEL := WN-AC1167DGR
1094 IMAGE_SIZE := 14656k
1095 IMAGES += factory.bin
1096 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1097 append-rootfs | pad-rootfs | check-size | \
1098 senao-header -r 0x30a -p 0x61 -t 2
1099 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1100 endef
1101 TARGET_DEVICES += iodata_wn-ac1167dgr
1102
1103 define Device/iodata_wn-ac1600dgr
1104 SOC := qca9557
1105 DEVICE_VENDOR := I-O DATA
1106 DEVICE_MODEL := WN-AC1600DGR
1107 IMAGE_SIZE := 14656k
1108 IMAGES += factory.bin
1109 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1110 append-rootfs | pad-rootfs | check-size | \
1111 senao-header -r 0x30a -p 0x60 -t 2 -v 200
1112 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1113 endef
1114 TARGET_DEVICES += iodata_wn-ac1600dgr
1115
1116 define Device/iodata_wn-ac1600dgr2
1117 SOC := qca9557
1118 DEVICE_VENDOR := I-O DATA
1119 DEVICE_MODEL := WN-AC1600DGR2/DGR3
1120 IMAGE_SIZE := 14656k
1121 IMAGES += dgr2-dgr3-factory.bin
1122 IMAGE/dgr2-dgr3-factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1123 append-rootfs | pad-rootfs | check-size | \
1124 senao-header -r 0x30a -p 0x60 -t 2 -v 200
1125 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1126 endef
1127 TARGET_DEVICES += iodata_wn-ac1600dgr2
1128
1129 define Device/iodata_wn-ag300dgr
1130 SOC := ar1022
1131 DEVICE_VENDOR := I-O DATA
1132 DEVICE_MODEL := WN-AG300DGR
1133 IMAGE_SIZE := 15424k
1134 IMAGES += factory.bin
1135 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1136 append-rootfs | pad-rootfs | check-size | \
1137 senao-header -r 0x30a -p 0x47 -t 2
1138 DEVICE_PACKAGES := kmod-usb2
1139 endef
1140 TARGET_DEVICES += iodata_wn-ag300dgr
1141
1142 define Device/jjplus_ja76pf2
1143 SOC := ar7161
1144 DEVICE_VENDOR := jjPlus
1145 DEVICE_MODEL := JA76PF2
1146 DEVICE_PACKAGES += -kmod-ath9k -swconfig -wpad-basic-wolfssl -uboot-envtools fconfig
1147 IMAGES := kernel.bin rootfs.bin
1148 IMAGE/kernel.bin := append-kernel
1149 IMAGE/rootfs.bin := append-rootfs | pad-rootfs
1150 KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
1151 KERNEL_INITRAMFS := kernel-bin | append-dtb
1152 IMAGE_SIZE := 16000k
1153 SUPPORTED_DEVICES += ja76pf2
1154 endef
1155 TARGET_DEVICES += jjplus_ja76pf2
1156
1157 define Device/librerouter_librerouter-v1
1158 SOC := qca9558
1159 DEVICE_VENDOR := Librerouter
1160 DEVICE_MODEL := LibreRouter
1161 DEVICE_VARIANT := v1
1162 IMAGE_SIZE := 7936k
1163 DEVICE_PACKAGES := kmod-usb2
1164 endef
1165 TARGET_DEVICES += librerouter_librerouter-v1
1166
1167 define Device/meraki_mr16
1168 SOC := ar7161
1169 DEVICE_VENDOR := Meraki
1170 DEVICE_MODEL := MR16
1171 IMAGE_SIZE := 15616k
1172 DEVICE_PACKAGES := kmod-owl-loader
1173 SUPPORTED_DEVICES += mr16
1174 DEVICE_COMPAT_VERSION := 2.0
1175 DEVICE_COMPAT_MESSAGE := Partitions differ from ar71xx version of MR16. Image format is incompatible. \
1176 To use sysupgrade, you must change /lib/update/common.sh::get_image to prepend 128K zeroes to this image, \
1177 and change the bootcmd in u-boot to "bootm 0xbf0a0000". After that, you can use "sysupgrade -F". \
1178 For more details, see the OpenWrt Wiki: https://openwrt.org/toh/meraki/mr16, \
1179 or the commit message of the MR16 ath79 port on git.openwrt.org.
1180 endef
1181 TARGET_DEVICES += meraki_mr16
1182
1183 define Device/mercury_mw4530r-v1
1184 $(Device/tplink-8mlzma)
1185 SOC := ar9344
1186 DEVICE_VENDOR := Mercury
1187 DEVICE_MODEL := MW4530R
1188 DEVICE_VARIANT := v1
1189 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
1190 TPLINK_HWID := 0x45300001
1191 SUPPORTED_DEVICES += tl-wdr4300
1192 endef
1193 TARGET_DEVICES += mercury_mw4530r-v1
1194
1195 define Device/nec_wg1200cr
1196 SOC := qca9563
1197 DEVICE_VENDOR := NEC
1198 DEVICE_MODEL := Aterm WG1200CR
1199 IMAGE_SIZE := 7616k
1200 SEAMA_MTDBLOCK := 6
1201 SEAMA_SIGNATURE := wrgac72_necpf.2016gui_wg1200cr
1202 IMAGES += factory.bin
1203 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
1204 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
1205 append-metadata | check-size
1206 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
1207 seama-seal | nec-enc 9gsiy9nzep452pad | check-size
1208 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1209 endef
1210 TARGET_DEVICES += nec_wg1200cr
1211
1212 define Device/nec_wg800hp
1213 SOC := qca9563
1214 DEVICE_VENDOR := NEC
1215 DEVICE_MODEL := Aterm WG800HP
1216 IMAGE_SIZE := 7104k
1217 IMAGES += factory.bin
1218 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1219 append-rootfs | pad-rootfs | check-size | \
1220 xor-image -p 6A57190601121E4C004C1E1201061957 -x | nec-fw LASER_ATERM
1221 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct-full-htt
1222 endef
1223 TARGET_DEVICES += nec_wg800hp
1224
1225 define Device/netgear_ex6400_ex7300
1226 $(Device/netgear_generic)
1227 SOC := qca9558
1228 UIMAGE_MAGIC := 0x27051956
1229 NETGEAR_BOARD_ID := EX7300series
1230 NETGEAR_HW_ID := 29765104+16+0+128
1231 IMAGE_SIZE := 15552k
1232 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
1233 netgear-rootfs | pad-rootfs
1234 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
1235 check-size
1236 IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | \
1237 check-size
1238 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca99x0-ct
1239 endef
1240
1241 define Device/netgear_ex6400
1242 $(Device/netgear_ex6400_ex7300)
1243 DEVICE_MODEL := EX6400
1244 endef
1245 TARGET_DEVICES += netgear_ex6400
1246
1247 define Device/netgear_ex7300
1248 $(Device/netgear_ex6400_ex7300)
1249 DEVICE_MODEL := EX7300
1250 endef
1251 TARGET_DEVICES += netgear_ex7300
1252
1253 define Device/netgear_wndr3x00
1254 $(Device/netgear_generic)
1255 SOC := ar7161
1256 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
1257 kmod-leds-reset kmod-owl-loader
1258 endef
1259
1260 define Device/netgear_wndr3700
1261 $(Device/netgear_wndr3x00)
1262 DEVICE_MODEL := WNDR3700
1263 DEVICE_VARIANT := v1
1264 UIMAGE_MAGIC := 0x33373030
1265 NETGEAR_BOARD_ID := WNDR3700
1266 IMAGE_SIZE := 7680k
1267 IMAGES += factory-NA.img
1268 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
1269 check-size
1270 SUPPORTED_DEVICES += wndr3700
1271 endef
1272 TARGET_DEVICES += netgear_wndr3700
1273
1274 define Device/netgear_wndr3700-v2
1275 $(Device/netgear_wndr3x00)
1276 DEVICE_MODEL := WNDR3700
1277 DEVICE_VARIANT := v2
1278 UIMAGE_MAGIC := 0x33373031
1279 NETGEAR_BOARD_ID := WNDR3700v2
1280 NETGEAR_HW_ID := 29763654+16+64
1281 IMAGE_SIZE := 15872k
1282 SUPPORTED_DEVICES += wndr3700 netgear,wndr3700v2
1283 endef
1284 TARGET_DEVICES += netgear_wndr3700-v2
1285
1286 define Device/netgear_wndr3800
1287 $(Device/netgear_wndr3x00)
1288 DEVICE_MODEL := WNDR3800
1289 UIMAGE_MAGIC := 0x33373031
1290 NETGEAR_BOARD_ID := WNDR3800
1291 NETGEAR_HW_ID := 29763654+16+128
1292 IMAGE_SIZE := 15872k
1293 SUPPORTED_DEVICES += wndr3700
1294 endef
1295 TARGET_DEVICES += netgear_wndr3800
1296
1297 define Device/netgear_wndr3800ch
1298 $(Device/netgear_wndr3x00)
1299 DEVICE_MODEL := WNDR3800CH
1300 UIMAGE_MAGIC := 0x33373031
1301 NETGEAR_BOARD_ID := WNDR3800CH
1302 NETGEAR_HW_ID := 29763654+16+128
1303 IMAGE_SIZE := 15872k
1304 SUPPORTED_DEVICES += wndr3700
1305 endef
1306 TARGET_DEVICES += netgear_wndr3800ch
1307
1308 define Device/netgear_wndrmac-v1
1309 $(Device/netgear_wndr3x00)
1310 DEVICE_MODEL := WNDRMAC
1311 DEVICE_VARIANT := v1
1312 UIMAGE_MAGIC := 0x33373031
1313 NETGEAR_BOARD_ID := WNDRMAC
1314 NETGEAR_HW_ID := 29763654+16+64
1315 IMAGE_SIZE := 15872k
1316 SUPPORTED_DEVICES += wndr3700
1317 endef
1318 TARGET_DEVICES += netgear_wndrmac-v1
1319
1320 define Device/netgear_wndrmac-v2
1321 $(Device/netgear_wndr3x00)
1322 DEVICE_MODEL := WNDRMAC
1323 DEVICE_VARIANT := v2
1324 UIMAGE_MAGIC := 0x33373031
1325 NETGEAR_BOARD_ID := WNDRMACv2
1326 NETGEAR_HW_ID := 29763654+16+128
1327 IMAGE_SIZE := 15872k
1328 SUPPORTED_DEVICES += wndr3700
1329 endef
1330 TARGET_DEVICES += netgear_wndrmac-v2
1331
1332 define Device/netgear_wnr2200_common
1333 $(Device/netgear_generic)
1334 SOC := ar7241
1335 DEVICE_MODEL := WNR2200
1336 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
1337 UIMAGE_MAGIC := 0x32323030
1338 NETGEAR_BOARD_ID := wnr2200
1339 endef
1340
1341 define Device/netgear_wnr2200-8m
1342 $(Device/netgear_wnr2200_common)
1343 DEVICE_VARIANT := 8M
1344 NETGEAR_HW_ID := 29763600+08+64
1345 IMAGE_SIZE := 7808k
1346 IMAGES += factory-NA.img
1347 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
1348 check-size
1349 SUPPORTED_DEVICES += wnr2200
1350 endef
1351 TARGET_DEVICES += netgear_wnr2200-8m
1352
1353 define Device/netgear_wnr2200-16m
1354 $(Device/netgear_wnr2200_common)
1355 DEVICE_VARIANT := 16M
1356 DEVICE_ALT0_VENDOR := NETGEAR
1357 DEVICE_ALT0_MODEL := WNR2200
1358 DEVICE_ALT0_VARIANT := CN/RU
1359 NETGEAR_HW_ID :=
1360 IMAGE_SIZE := 16000k
1361 endef
1362 TARGET_DEVICES += netgear_wnr2200-16m
1363
1364 define Device/ocedo_koala
1365 SOC := qca9558
1366 DEVICE_VENDOR := Ocedo
1367 DEVICE_MODEL := Koala
1368 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1369 SUPPORTED_DEVICES += koala
1370 IMAGE_SIZE := 7424k
1371 endef
1372 TARGET_DEVICES += ocedo_koala
1373
1374 define Device/ocedo_raccoon
1375 SOC := ar9344
1376 DEVICE_VENDOR := Ocedo
1377 DEVICE_MODEL := Raccoon
1378 IMAGE_SIZE := 7424k
1379 endef
1380 TARGET_DEVICES += ocedo_raccoon
1381
1382 define Device/ocedo_ursus
1383 SOC := qca9558
1384 DEVICE_VENDOR := Ocedo
1385 DEVICE_MODEL := Ursus
1386 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1387 IMAGE_SIZE := 7424k
1388 endef
1389 TARGET_DEVICES += ocedo_ursus
1390
1391 define Device/openmesh_om5p-ac-v2
1392 SOC := qca9558
1393 DEVICE_VENDOR := OpenMesh
1394 DEVICE_MODEL := OM5P-AC
1395 DEVICE_VARIANT := v2
1396 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct om-watchdog
1397 IMAGE_SIZE := 7808k
1398 SUPPORTED_DEVICES += om5p-acv2
1399 endef
1400 TARGET_DEVICES += openmesh_om5p-ac-v2
1401
1402 define Device/pcs_cap324
1403 SOC := ar9344
1404 DEVICE_VENDOR := PowerCloud Systems
1405 DEVICE_MODEL := CAP324
1406 IMAGE_SIZE := 16000k
1407 SUPPORTED_DEVICES += cap324
1408 endef
1409 TARGET_DEVICES += pcs_cap324
1410
1411 define Device/pcs_cr3000
1412 SOC := ar9341
1413 DEVICE_VENDOR := PowerCloud Systems
1414 DEVICE_MODEL := CR3000
1415 IMAGE_SIZE := 7808k
1416 SUPPORTED_DEVICES += cr3000
1417 endef
1418 TARGET_DEVICES += pcs_cr3000
1419
1420 define Device/pcs_cr5000
1421 SOC := ar9344
1422 DEVICE_VENDOR := PowerCloud Systems
1423 DEVICE_MODEL := CR5000
1424 DEVICE_PACKAGES := kmod-usb2
1425 IMAGE_SIZE := 7808k
1426 SUPPORTED_DEVICES += cr5000
1427 endef
1428 TARGET_DEVICES += pcs_cr5000
1429
1430 define Device/phicomm_k2t
1431 SOC := qca9563
1432 DEVICE_VENDOR := Phicomm
1433 DEVICE_MODEL := K2T
1434 IMAGE_SIZE := 15744k
1435 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1436 append-metadata | check-size
1437 DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
1438 endef
1439 TARGET_DEVICES += phicomm_k2t
1440
1441 define Device/pisen_ts-d084
1442 $(Device/tplink-8mlzma)
1443 SOC := ar9331
1444 DEVICE_VENDOR := PISEN
1445 DEVICE_MODEL := TS-D084
1446 DEVICE_PACKAGES := kmod-usb-chipidea2
1447 TPLINK_HWID := 0x07030101
1448 endef
1449 TARGET_DEVICES += pisen_ts-d084
1450
1451 define Device/pisen_wmb001n
1452 SOC := ar9341
1453 DEVICE_VENDOR := PISEN
1454 DEVICE_MODEL := WMB001N
1455 IMAGE_SIZE := 14080k
1456 DEVICE_PACKAGES := kmod-i2c-gpio kmod-usb2
1457 LOADER_TYPE := bin
1458 LOADER_FLASH_OFFS := 0x20000
1459 COMPILE := loader-$(1).bin loader-$(1).uImage
1460 COMPILE/loader-$(1).bin := loader-okli-compile
1461 COMPILE/loader-$(1).uImage := append-loader-okli $(1) | pad-to 64k | lzma | \
1462 uImage lzma
1463 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
1464 IMAGES += factory.bin
1465 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pisen_wmb001n-factory $(1)
1466 endef
1467 TARGET_DEVICES += pisen_wmb001n
1468
1469 define Device/pisen_wmm003n
1470 $(Device/tplink-8mlzma)
1471 SOC := ar9331
1472 DEVICE_VENDOR := PISEN
1473 DEVICE_MODEL := Cloud Easy Power (WMM003N)
1474 DEVICE_PACKAGES := kmod-usb-chipidea2
1475 TPLINK_HWID := 0x07030101
1476 endef
1477 TARGET_DEVICES += pisen_wmm003n
1478
1479 define Device/qihoo_c301
1480 $(Device/seama)
1481 SOC := ar9344
1482 DEVICE_VENDOR := Qihoo
1483 DEVICE_MODEL := C301
1484 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct \
1485 uboot-envtools
1486 IMAGE_SIZE := 15744k
1487 SEAMA_SIGNATURE := wrgac26_qihoo360_360rg
1488 SUPPORTED_DEVICES += qihoo-c301
1489 endef
1490 TARGET_DEVICES += qihoo_c301
1491
1492 define Device/qxwlan_e1700ac-v2
1493 SOC := qca9563
1494 DEVICE_VENDOR := Qxwlan
1495 DEVICE_MODEL := E1700AC
1496 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1497 SUPPORTED_DEVICES += e1700ac-v2
1498 endef
1499
1500 define Device/qxwlan_e1700ac-v2-16m
1501 $(Device/qxwlan_e1700ac-v2)
1502 DEVICE_VARIANT := v2 (16M)
1503 IMAGE_SIZE := 15936k
1504 endef
1505 TARGET_DEVICES += qxwlan_e1700ac-v2-16m
1506
1507 define Device/qxwlan_e1700ac-v2-8m
1508 $(Device/qxwlan_e1700ac-v2)
1509 DEVICE_VARIANT := v2 (8M)
1510 IMAGE_SIZE := 7744k
1511 endef
1512 TARGET_DEVICES += qxwlan_e1700ac-v2-8m
1513
1514 define Device/qxwlan_e558-v2
1515 SOC := qca9558
1516 DEVICE_VENDOR := Qxwlan
1517 DEVICE_MODEL := E558
1518 DEVICE_PACKAGES := kmod-usb2
1519 SUPPORTED_DEVICES += e558-v2
1520 endef
1521
1522 define Device/qxwlan_e558-v2-16m
1523 $(Device/qxwlan_e558-v2)
1524 DEVICE_VARIANT := v2 (16M)
1525 IMAGE_SIZE := 15936k
1526 endef
1527 TARGET_DEVICES += qxwlan_e558-v2-16m
1528
1529 define Device/qxwlan_e558-v2-8m
1530 $(Device/qxwlan_e558-v2)
1531 DEVICE_VARIANT := v2 (8M)
1532 IMAGE_SIZE := 7744k
1533 endef
1534 TARGET_DEVICES += qxwlan_e558-v2-8m
1535
1536 define Device/qxwlan_e600g-v2
1537 SOC := qca9531
1538 DEVICE_VENDOR := Qxwlan
1539 DEVICE_MODEL := E600G
1540 DEVICE_PACKAGES := kmod-usb2
1541 SUPPORTED_DEVICES += e600g-v2
1542 endef
1543
1544 define Device/qxwlan_e600g-v2-16m
1545 $(Device/qxwlan_e600g-v2)
1546 DEVICE_VARIANT := v2 (16M)
1547 IMAGE_SIZE := 15936k
1548 endef
1549 TARGET_DEVICES += qxwlan_e600g-v2-16m
1550
1551 define Device/qxwlan_e600g-v2-8m
1552 $(Device/qxwlan_e600g-v2)
1553 DEVICE_VARIANT := v2 (8M)
1554 IMAGE_SIZE := 7744k
1555 endef
1556 TARGET_DEVICES += qxwlan_e600g-v2-8m
1557
1558 define Device/qxwlan_e600gac-v2
1559 SOC := qca9531
1560 DEVICE_VENDOR := Qxwlan
1561 DEVICE_MODEL := E600GAC
1562 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
1563 SUPPORTED_DEVICES += e600gac-v2
1564 endef
1565
1566 define Device/qxwlan_e600gac-v2-16m
1567 $(Device/qxwlan_e600gac-v2)
1568 DEVICE_VARIANT := v2 (16M)
1569 IMAGE_SIZE := 15936k
1570 endef
1571 TARGET_DEVICES += qxwlan_e600gac-v2-16m
1572
1573 define Device/qxwlan_e600gac-v2-8m
1574 $(Device/qxwlan_e600gac-v2)
1575 DEVICE_VARIANT := v2 (8M)
1576 IMAGE_SIZE := 7744k
1577 endef
1578 TARGET_DEVICES += qxwlan_e600gac-v2-8m
1579
1580 define Device/qxwlan_e750a-v4
1581 SOC := ar9344
1582 DEVICE_VENDOR := Qxwlan
1583 DEVICE_MODEL := E750A
1584 DEVICE_PACKAGES := kmod-usb2
1585 SUPPORTED_DEVICES += e750a-v4
1586 endef
1587
1588 define Device/qxwlan_e750a-v4-16m
1589 $(Device/qxwlan_e750a-v4)
1590 DEVICE_VARIANT := v4 (16M)
1591 IMAGE_SIZE := 15936k
1592 endef
1593 TARGET_DEVICES += qxwlan_e750a-v4-16m
1594
1595 define Device/qxwlan_e750a-v4-8m
1596 $(Device/qxwlan_e750a-v4)
1597 DEVICE_VARIANT := v4 (8M)
1598 IMAGE_SIZE := 7744k
1599 endef
1600 TARGET_DEVICES += qxwlan_e750a-v4-8m
1601
1602 define Device/qxwlan_e750g-v8
1603 SOC := ar9344
1604 DEVICE_VENDOR := Qxwlan
1605 DEVICE_MODEL := E750G
1606 DEVICE_PACKAGES := kmod-usb2
1607 SUPPORTED_DEVICES += e750g-v8
1608 endef
1609
1610 define Device/qxwlan_e750g-v8-16m
1611 $(Device/qxwlan_e750g-v8)
1612 DEVICE_VARIANT := v8 (16M)
1613 IMAGE_SIZE := 15936k
1614 endef
1615 TARGET_DEVICES += qxwlan_e750g-v8-16m
1616
1617 define Device/qxwlan_e750g-v8-8m
1618 $(Device/qxwlan_e750g-v8)
1619 DEVICE_VARIANT := v8 (8M)
1620 IMAGE_SIZE := 7744k
1621 endef
1622 TARGET_DEVICES += qxwlan_e750g-v8-8m
1623
1624 define Device/rosinson_wr818
1625 SOC := qca9563
1626 DEVICE_VENDOR := Rosinson
1627 DEVICE_MODEL := WR818
1628 IMAGE_SIZE := 15872k
1629 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
1630 endef
1631 TARGET_DEVICES += rosinson_wr818
1632
1633 define Device/samsung_wam250
1634 SOC := ar9344
1635 DEVICE_VENDOR := Samsung
1636 DEVICE_MODEL := WAM250
1637 IMAGE_SIZE := 15872k
1638 DEVICE_PACKAGES := kmod-usb2
1639 SUPPORTED_DEVICES += wam250
1640 endef
1641 TARGET_DEVICES += samsung_wam250
1642
1643 define Device/siemens_ws-ap3610
1644 SOC := ar7161
1645 DEVICE_VENDOR := Siemens
1646 DEVICE_MODEL := WS-AP3610
1647 IMAGE_SIZE := 14336k
1648 BLOCKSIZE := 256k
1649 LOADER_TYPE := bin
1650 LOADER_FLASH_OFFS := 0x82000
1651 COMPILE := loader-$(1).bin
1652 COMPILE/loader-$(1).bin := loader-okli-compile
1653 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128 | uImage none
1654 KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
1655 endef
1656 TARGET_DEVICES += siemens_ws-ap3610
1657
1658 define Device/sitecom_wlr-7100
1659 SOC := ar1022
1660 DEVICE_VENDOR := Sitecom
1661 DEVICE_MODEL := WLR-7100
1662 DEVICE_VARIANT := v1 002
1663 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct-smallbuffers kmod-usb2
1664 IMAGES += factory.dlf
1665 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1666 append-rootfs | pad-rootfs | check-size | \
1667 senao-header -r 0x222 -p 0x53 -t 2
1668 IMAGE_SIZE := 7488k
1669 endef
1670 TARGET_DEVICES += sitecom_wlr-7100
1671
1672 define Device/sitecom_wlr-8100
1673 SOC := qca9558
1674 DEVICE_VENDOR := Sitecom
1675 DEVICE_MODEL := WLR-8100
1676 DEVICE_ALT0_VENDOR := Sitecom
1677 DEVICE_ALT0_MODEL := X8 AC1750
1678 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2 kmod-usb3
1679 SUPPORTED_DEVICES += wlr8100
1680 IMAGES += factory.dlf
1681 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1682 append-rootfs | pad-rootfs | check-size | \
1683 senao-header -r 0x222 -p 0x56 -t 2
1684 IMAGE_SIZE := 15424k
1685 endef
1686 TARGET_DEVICES += sitecom_wlr-8100
1687
1688 define Device/telco_t1
1689 SOC := qca9531
1690 DEVICE_VENDOR := Telco
1691 DEVICE_MODEL := T1
1692 DEVICE_PACKAGES := kmod-usb2 kmod-usb-net-qmi-wwan \
1693 kmod-usb-serial-option uqmi -swconfig -uboot-envtools
1694 IMAGE_SIZE := 16192k
1695 SUPPORTED_DEVICES += telco_electronics,tel-t1
1696 endef
1697 TARGET_DEVICES += telco_t1
1698
1699 define Device/teltonika_rut955
1700 SOC := ar9344
1701 DEVICE_VENDOR := Teltonika
1702 DEVICE_MODEL := RUT955
1703 DEVICE_PACKAGES := kmod-usb2 kmod-usb-acm kmod-usb-net-qmi-wwan \
1704 kmod-usb-serial-option kmod-hwmon-mcp3021 uqmi -uboot-envtools
1705 IMAGE_SIZE := 15552k
1706 TPLINK_HWID := 0x35000001
1707 TPLINK_HWREV := 0x1
1708 TPLINK_HEADER_VERSION := 1
1709 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header
1710 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
1711 IMAGES += factory.bin
1712 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
1713 pad-rootfs | teltonika-fw-fake-checksum | append-string master |\
1714 append-md5sum-bin | check-size
1715 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
1716 append-rootfs | pad-rootfs | append-metadata |\
1717 check-size
1718 endef
1719 TARGET_DEVICES += teltonika_rut955
1720
1721 define Device/teltonika_rut955-h7v3c0
1722 $(Device/teltonika_rut955)
1723 DEVICE_VARIANT := H7V3C0
1724 endef
1725 TARGET_DEVICES += teltonika_rut955-h7v3c0
1726
1727 define Device/trendnet_tew-823dru
1728 SOC := qca9558
1729 DEVICE_VENDOR := Trendnet
1730 DEVICE_MODEL := TEW-823DRU
1731 DEVICE_VARIANT := v1.0R
1732 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1733 SUPPORTED_DEVICES += tew-823dru
1734 IMAGE_SIZE := 15296k
1735 IMAGES := factory.bin sysupgrade.bin
1736 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
1737 pad-rootfs
1738 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
1739 append-string 00AP135AR9558-RT-131129-00 | check-size
1740 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
1741 check-size
1742 endef
1743 TARGET_DEVICES += trendnet_tew-823dru
1744
1745 define Device/wallys_dr531
1746 SOC := qca9531
1747 DEVICE_VENDOR := Wallys
1748 DEVICE_MODEL := DR531
1749 DEVICE_PACKAGES := kmod-usb2 rssileds
1750 IMAGE_SIZE := 7808k
1751 SUPPORTED_DEVICES += dr531
1752 endef
1753 TARGET_DEVICES += wallys_dr531
1754
1755 define Device/wd_mynet-n750
1756 $(Device/seama)
1757 SOC := ar9344
1758 DEVICE_VENDOR := Western Digital
1759 DEVICE_MODEL := My Net N750
1760 IMAGE_SIZE := 15872k
1761 DEVICE_PACKAGES := kmod-usb2
1762 SEAMA_SIGNATURE := wrgnd13_wd_av
1763 SUPPORTED_DEVICES += mynet-n750
1764 endef
1765 TARGET_DEVICES += wd_mynet-n750
1766
1767 define Device/wd_mynet-wifi-rangeextender
1768 SOC := ar9344
1769 DEVICE_VENDOR := Western Digital
1770 DEVICE_MODEL := My Net Wi-Fi Range Extender
1771 DEVICE_PACKAGES := rssileds nvram -swconfig
1772 IMAGE_SIZE := 7808k
1773 ADDPATTERN_ID := mynet-rext
1774 ADDPATTERN_VERSION := 1.00.01
1775 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
1776 addpattern | append-metadata
1777 SUPPORTED_DEVICES += mynet-rext
1778 endef
1779 TARGET_DEVICES += wd_mynet-wifi-rangeextender
1780
1781 define Device/winchannel_wb2000
1782 SOC := ar9344
1783 DEVICE_VENDOR := Winchannel
1784 DEVICE_MODEL := WB2000
1785 IMAGE_SIZE := 15872k
1786 DEVICE_PACKAGES := kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 \
1787 kmod-usb-ledtrig-usbport
1788 endef
1789 TARGET_DEVICES += winchannel_wb2000
1790
1791 define Device/xiaomi_mi-router-4q
1792 SOC := qca9561
1793 DEVICE_VENDOR := Xiaomi
1794 DEVICE_MODEL := Mi Router 4Q
1795 IMAGE_SIZE := 14336k
1796 endef
1797 TARGET_DEVICES += xiaomi_mi-router-4q
1798
1799 define Device/yuncore_a770
1800 SOC := qca9531
1801 DEVICE_VENDOR := YunCore
1802 DEVICE_MODEL := A770
1803 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
1804 IMAGE_SIZE := 16000k
1805 IMAGES += tftp.bin
1806 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1807 endef
1808 TARGET_DEVICES += yuncore_a770
1809
1810 define Device/yuncore_a782
1811 SOC := qca9563
1812 DEVICE_VENDOR := YunCore
1813 DEVICE_MODEL := A782
1814 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1815 IMAGE_SIZE := 16000k
1816 IMAGES += tftp.bin
1817 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1818 endef
1819 TARGET_DEVICES += yuncore_a782
1820
1821 define Device/yuncore_xd4200
1822 SOC := qca9563
1823 DEVICE_VENDOR := YunCore
1824 DEVICE_MODEL := XD4200
1825 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1826 IMAGE_SIZE := 16000k
1827 IMAGES += tftp.bin
1828 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1829 endef
1830 TARGET_DEVICES += yuncore_xd4200
1831
1832 define Device/zbtlink_zbt-wd323
1833 SOC := ar9344
1834 DEVICE_VENDOR := ZBT
1835 DEVICE_MODEL := WD323
1836 IMAGE_SIZE := 16000k
1837 DEVICE_PACKAGES := kmod-usb2 kmod-i2c-gpio kmod-rtc-pcf8563 \
1838 kmod-usb-serial kmod-usb-serial-cp210x uqmi
1839 endef
1840 TARGET_DEVICES += zbtlink_zbt-wd323
1841
1842 define Device/zyxel_nbg6616
1843 SOC := qca9557
1844 DEVICE_VENDOR := ZyXEL
1845 DEVICE_MODEL := NBG6616
1846 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-rtc-pcf8563 \
1847 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1848 IMAGE_SIZE := 15232k
1849 RAS_BOARD := NBG6616
1850 RAS_ROOTFS_SIZE := 14464k
1851 RAS_VERSION := "OpenWrt Linux-$(LINUX_VERSION)"
1852 IMAGES += factory.bin
1853 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1854 append-rootfs | pad-rootfs | pad-to 64k | check-size | zyxel-ras-image
1855 SUPPORTED_DEVICES += nbg6616
1856 endef
1857 TARGET_DEVICES += zyxel_nbg6616