rtl838x: remove model name from LED labels
[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_r36a
261 SOC := qca9531
262 DEVICE_VENDOR := ALFA Network
263 DEVICE_MODEL := R36A
264 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
265 IMAGE_SIZE := 15872k
266 SUPPORTED_DEVICES += r36a
267 endef
268 TARGET_DEVICES += alfa-network_r36a
269
270 define Device/allnet_all-wap02860ac
271 SOC := qca9558
272 DEVICE_VENDOR := ALLNET
273 DEVICE_MODEL := ALL-WAP02860AC
274 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
275 IMAGE_SIZE := 13120k
276 endef
277 TARGET_DEVICES += allnet_all-wap02860ac
278
279 define Device/arduino_yun
280 SOC := ar9331
281 DEVICE_VENDOR := Arduino
282 DEVICE_MODEL := Yun
283 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-ledtrig-usbport \
284 kmod-usb-storage block-mount -swconfig
285 IMAGE_SIZE := 15936k
286 SUPPORTED_DEVICES += arduino-yun
287 endef
288 TARGET_DEVICES += arduino_yun
289
290 define Device/aruba_ap-105
291 SOC := ar7161
292 DEVICE_VENDOR := Aruba
293 DEVICE_MODEL := AP-105
294 IMAGE_SIZE := 16000k
295 DEVICE_PACKAGES := kmod-i2c-gpio kmod-tpm-i2c-atmel
296 endef
297 TARGET_DEVICES += aruba_ap-105
298
299 define Device/avm
300 DEVICE_VENDOR := AVM
301 KERNEL := kernel-bin | append-dtb | lzma | eva-image
302 KERNEL_INITRAMFS := $$(KERNEL)
303 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
304 append-squashfs-fakeroot-be | pad-to 256 | append-rootfs | pad-rootfs | \
305 append-metadata | check-size
306 DEVICE_PACKAGES := fritz-tffs
307 endef
308
309 define Device/avm_fritz1750e
310 $(Device/avm)
311 SOC := qca9556
312 IMAGE_SIZE := 15232k
313 DEVICE_MODEL := FRITZ!WLAN Repeater 1750E
314 DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
315 ath10k-firmware-qca988x-ct -swconfig
316 endef
317 TARGET_DEVICES += avm_fritz1750e
318
319 define Device/avm_fritz300e
320 $(Device/avm)
321 SOC := ar7242
322 IMAGE_SIZE := 15232k
323 DEVICE_MODEL := FRITZ!WLAN Repeater 300E
324 DEVICE_PACKAGES += rssileds -swconfig
325 SUPPORTED_DEVICES += fritz300e
326 endef
327 TARGET_DEVICES += avm_fritz300e
328
329 define Device/avm_fritz4020
330 $(Device/avm)
331 SOC := qca9561
332 IMAGE_SIZE := 15232k
333 DEVICE_MODEL := FRITZ!Box 4020
334 SUPPORTED_DEVICES += fritz4020
335 endef
336 TARGET_DEVICES += avm_fritz4020
337
338 define Device/avm_fritz450e
339 $(Device/avm)
340 SOC := qca9556
341 IMAGE_SIZE := 15232k
342 DEVICE_MODEL := FRITZ!WLAN Repeater 450E
343 SUPPORTED_DEVICES += fritz450e
344 endef
345 TARGET_DEVICES += avm_fritz450e
346
347 define Device/avm_fritzdvbc
348 $(Device/avm)
349 SOC := qca9556
350 IMAGE_SIZE := 15232k
351 DEVICE_MODEL := FRITZ!WLAN Repeater DVB-C
352 DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
353 ath10k-firmware-qca988x-ct -swconfig
354 endef
355 TARGET_DEVICES += avm_fritzdvbc
356
357 define Device/buffalo_bhr-4grv
358 $(Device/buffalo_common)
359 SOC := ar7242
360 DEVICE_MODEL := BHR-4GRV
361 BUFFALO_PRODUCT := BHR-4GRV
362 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
363 IMAGE_SIZE := 32256k
364 SUPPORTED_DEVICES += wzr-hp-g450h
365 endef
366 TARGET_DEVICES += buffalo_bhr-4grv
367
368 define Device/buffalo_bhr-4grv2
369 SOC := qca9557
370 DEVICE_VENDOR := Buffalo
371 DEVICE_MODEL := BHR-4GRV2
372 IMAGE_SIZE := 16000k
373 endef
374 TARGET_DEVICES += buffalo_bhr-4grv2
375
376 define Device/buffalo_wzr_ar7161
377 $(Device/buffalo_common)
378 SOC := ar7161
379 BUFFALO_PRODUCT := WZR-HP-AG300H
380 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
381 kmod-leds-reset kmod-owl-loader
382 IMAGE_SIZE := 32320k
383 SUPPORTED_DEVICES += wzr-hp-ag300h
384 endef
385
386 define Device/buffalo_wzr-600dhp
387 $(Device/buffalo_wzr_ar7161)
388 DEVICE_MODEL := WZR-600DHP
389 endef
390 TARGET_DEVICES += buffalo_wzr-600dhp
391
392 define Device/buffalo_wzr-hp-ag300h
393 $(Device/buffalo_wzr_ar7161)
394 DEVICE_MODEL := WZR-HP-AG300H
395 endef
396 TARGET_DEVICES += buffalo_wzr-hp-ag300h
397
398 define Device/buffalo_wzr-hp-g302h-a1a0
399 $(Device/buffalo_common)
400 SOC := ar7242
401 DEVICE_MODEL := WZR-HP-G302H
402 DEVICE_VARIANT := A1A0
403 BUFFALO_PRODUCT := WZR-HP-G302H
404 BUFFALO_HWVER := 4
405 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
406 IMAGE_SIZE := 32128k
407 SUPPORTED_DEVICES += wzr-hp-g300nh2
408 endef
409 TARGET_DEVICES += buffalo_wzr-hp-g302h-a1a0
410
411 define Device/buffalo_wzr-hp-g450h
412 $(Device/buffalo_common)
413 SOC := ar7242
414 DEVICE_MODEL := WZR-HP-G450H/WZR-450HP
415 BUFFALO_PRODUCT := WZR-HP-G450H
416 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
417 IMAGE_SIZE := 32256k
418 SUPPORTED_DEVICES += wzr-hp-g450h
419 endef
420 TARGET_DEVICES += buffalo_wzr-hp-g450h
421
422 define Device/comfast_cf-e110n-v2
423 SOC := qca9533
424 DEVICE_VENDOR := COMFAST
425 DEVICE_MODEL := CF-E110N
426 DEVICE_VARIANT := v2
427 DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
428 IMAGE_SIZE := 16192k
429 endef
430 TARGET_DEVICES += comfast_cf-e110n-v2
431
432 define Device/comfast_cf-e120a-v3
433 SOC := ar9344
434 DEVICE_VENDOR := COMFAST
435 DEVICE_MODEL := CF-E120A
436 DEVICE_VARIANT := v3
437 DEVICE_PACKAGES := rssileds -uboot-envtools
438 IMAGE_SIZE := 8000k
439 endef
440 TARGET_DEVICES += comfast_cf-e120a-v3
441
442 define Device/comfast_cf-e130n-v2
443 SOC := qca9531
444 DEVICE_VENDOR := COMFAST
445 DEVICE_MODEL := CF-E130N
446 DEVICE_VARIANT := v2
447 DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
448 IMAGE_SIZE := 7936k
449 endef
450 TARGET_DEVICES += comfast_cf-e130n-v2
451
452 define Device/comfast_cf-e313ac
453 SOC := qca9531
454 DEVICE_VENDOR := COMFAST
455 DEVICE_MODEL := CF-E313AC
456 DEVICE_PACKAGES := rssileds kmod-ath10k-ct-smallbuffers \
457 ath10k-firmware-qca9888-ct -swconfig -uboot-envtools
458 IMAGE_SIZE := 7936k
459 endef
460 TARGET_DEVICES += comfast_cf-e313ac
461
462 define Device/comfast_cf-e314n-v2
463 SOC := qca9531
464 DEVICE_VENDOR := COMFAST
465 DEVICE_MODEL := CF-E314N
466 DEVICE_VARIANT := v2
467 DEVICE_PACKAGES := rssileds
468 IMAGE_SIZE := 7936k
469 endef
470 TARGET_DEVICES += comfast_cf-e314n-v2
471
472 define Device/comfast_cf-e5
473 SOC := qca9531
474 DEVICE_VENDOR := COMFAST
475 DEVICE_MODEL := CF-E5/E7
476 DEVICE_PACKAGES := rssileds kmod-usb2 kmod-usb-net-qmi-wwan -swconfig \
477 -uboot-envtools
478 IMAGE_SIZE := 16192k
479 endef
480 TARGET_DEVICES += comfast_cf-e5
481
482 define Device/comfast_cf-e560ac
483 SOC := qca9531
484 DEVICE_VENDOR := COMFAST
485 DEVICE_MODEL := CF-E560AC
486 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
487 IMAGE_SIZE := 16128k
488 endef
489 TARGET_DEVICES += comfast_cf-e560ac
490
491 define Device/comfast_cf-ew72
492 SOC := qca9531
493 DEVICE_VENDOR := COMFAST
494 DEVICE_MODEL := CF-EW72
495 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
496 -uboot-envtools -swconfig
497 IMAGE_SIZE := 16192k
498 endef
499 TARGET_DEVICES += comfast_cf-ew72
500
501 define Device/comfast_cf-wr650ac-v1
502 SOC := qca9558
503 DEVICE_VENDOR := COMFAST
504 DEVICE_MODEL := CF-WR650AC
505 DEVICE_VARIANT := v1
506 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
507 IMAGE_SIZE := 16128k
508 endef
509 TARGET_DEVICES += comfast_cf-wr650ac-v1
510
511 define Device/comfast_cf-wr650ac-v2
512 SOC := qca9558
513 DEVICE_VENDOR := COMFAST
514 DEVICE_MODEL := CF-WR650AC
515 DEVICE_VARIANT := v2
516 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
517 IMAGE_SIZE := 16000k
518 endef
519 TARGET_DEVICES += comfast_cf-wr650ac-v2
520
521 define Device/comfast_cf-wr752ac-v1
522 SOC := qca9531
523 DEVICE_VENDOR := COMFAST
524 DEVICE_MODEL := CF-WR752AC
525 DEVICE_VARIANT := v1
526 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
527 -uboot-envtools
528 IMAGE_SIZE := 16192k
529 endef
530 TARGET_DEVICES += comfast_cf-wr752ac-v1
531
532 define Device/compex_wpj344-16m
533 SOC := ar9344
534 DEVICE_PACKAGES := kmod-usb2
535 IMAGE_SIZE := 16128k
536 DEVICE_VENDOR := Compex
537 DEVICE_MODEL := WPJ344
538 DEVICE_VARIANT := 16M
539 SUPPORTED_DEVICES += wpj344
540 IMAGES += cpximg-6a08.bin
541 IMAGE/cpximg-6a08.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x690 3
542 endef
543 TARGET_DEVICES += compex_wpj344-16m
544
545 define Device/compex_wpj531-16m
546 SOC := qca9531
547 DEVICE_PACKAGES := kmod-usb2
548 IMAGE_SIZE := 16128k
549 DEVICE_VENDOR := Compex
550 DEVICE_MODEL := WPJ531
551 DEVICE_VARIANT := 16M
552 SUPPORTED_DEVICES += wpj531
553 IMAGES += cpximg-7a03.bin cpximg-7a04.bin cpximg-7a06.bin cpximg-7a07.bin
554 IMAGE/cpximg-7a03.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x68a 2
555 IMAGE/cpximg-7a04.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
556 IMAGE/cpximg-7a06.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
557 IMAGE/cpximg-7a07.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
558 endef
559 TARGET_DEVICES += compex_wpj531-16m
560
561 define Device/compex_wpj563
562 SOC := qca9563
563 DEVICE_PACKAGES := kmod-usb2 kmod-usb3
564 IMAGE_SIZE := 16128k
565 DEVICE_VENDOR := Compex
566 DEVICE_MODEL := WPJ563
567 SUPPORTED_DEVICES += wpj563
568 IMAGES += cpximg-7a02.bin
569 IMAGE/cpximg-7a02.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x694 2
570 endef
571 TARGET_DEVICES += compex_wpj563
572
573 define Device/devolo_dvl1200e
574 SOC := qca9558
575 DEVICE_VENDOR := devolo
576 DEVICE_MODEL := WiFi pro 1200e
577 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
578 IMAGE_SIZE := 15936k
579 endef
580 TARGET_DEVICES += devolo_dvl1200e
581
582 define Device/devolo_dvl1200i
583 SOC := qca9558
584 DEVICE_VENDOR := devolo
585 DEVICE_MODEL := WiFi pro 1200i
586 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
587 IMAGE_SIZE := 15936k
588 endef
589 TARGET_DEVICES += devolo_dvl1200i
590
591 define Device/devolo_dvl1750c
592 SOC := qca9558
593 DEVICE_VENDOR := devolo
594 DEVICE_MODEL := WiFi pro 1750c
595 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
596 IMAGE_SIZE := 15936k
597 endef
598 TARGET_DEVICES += devolo_dvl1750c
599
600 define Device/devolo_dvl1750e
601 SOC := qca9558
602 DEVICE_VENDOR := devolo
603 DEVICE_MODEL := WiFi pro 1750e
604 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
605 IMAGE_SIZE := 15936k
606 endef
607 TARGET_DEVICES += devolo_dvl1750e
608
609 define Device/devolo_dvl1750i
610 SOC := qca9558
611 DEVICE_VENDOR := devolo
612 DEVICE_MODEL := WiFi pro 1750i
613 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
614 IMAGE_SIZE := 15936k
615 endef
616 TARGET_DEVICES += devolo_dvl1750i
617
618 define Device/devolo_dvl1750x
619 SOC := qca9558
620 DEVICE_VENDOR := devolo
621 DEVICE_MODEL := WiFi pro 1750x
622 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
623 IMAGE_SIZE := 15936k
624 endef
625 TARGET_DEVICES += devolo_dvl1750x
626
627 define Device/devolo_magic-2-wifi
628 SOC := ar9344
629 DEVICE_VENDOR := Devolo
630 DEVICE_MODEL := Magic 2 WiFi
631 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
632 IMAGE_SIZE := 15872k
633 endef
634 TARGET_DEVICES += devolo_magic-2-wifi
635
636 define Device/dlink_dap-13xx
637 SOC := qca9533
638 DEVICE_VENDOR := D-Link
639 DEVICE_PACKAGES += rssileds
640 IMAGE_SIZE := 7936k
641 IMAGES += factory.bin
642 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
643 append-rootfs | pad-rootfs | check-size | mkdapimg2 0xE0000
644 endef
645
646 define Device/dlink_dap-1330-a1
647 $(Device/dlink_dap-13xx)
648 DEVICE_MODEL := DAP-1330
649 DEVICE_VARIANT := A1
650 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1330
651 SUPPORTED_DEVICES += dap-1330-a1
652 endef
653 TARGET_DEVICES += dlink_dap-1330-a1
654
655 define Device/dlink_dap-1365-a1
656 $(Device/dlink_dap-13xx)
657 DEVICE_MODEL := DAP-1365
658 DEVICE_VARIANT := A1
659 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1365
660 endef
661 TARGET_DEVICES += dlink_dap-1365-a1
662
663 define Device/dlink_dap-2695-a1
664 SOC := qca9558
665 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
666 DEVICE_VENDOR := D-Link
667 DEVICE_MODEL := DAP-2965
668 DEVICE_VARIANT := A1
669 IMAGES := factory.img sysupgrade.bin
670 IMAGE_SIZE := 15360k
671 IMAGE/default := append-kernel | pad-offset 65536 160
672 IMAGE/factory.img := $$(IMAGE/default) | append-rootfs | wrgg-pad-rootfs | \
673 mkwrggimg | check-size
674 IMAGE/sysupgrade.bin := $$(IMAGE/default) | mkwrggimg | append-rootfs | \
675 wrgg-pad-rootfs | append-metadata | check-size
676 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
677 KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg
678 DAP_SIGNATURE := wapac02_dkbs_dap2695
679 SUPPORTED_DEVICES += dap-2695-a1
680 endef
681 TARGET_DEVICES += dlink_dap-2695-a1
682
683 define Device/dlink_dch-g020-a1
684 SOC := qca9531
685 DEVICE_VENDOR := D-Link
686 DEVICE_MODEL := DCH-G020
687 DEVICE_VARIANT := A1
688 DEVICE_PACKAGES := kmod-gpio-pca953x kmod-i2c-gpio kmod-usb2 kmod-usb-acm
689 IMAGES += factory.bin
690 IMAGE_SIZE := 14784k
691 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
692 append-rootfs | pad-rootfs | check-size | mkdapimg2 0x20000
693 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DCH-G020
694 endef
695 TARGET_DEVICES += dlink_dch-g020-a1
696
697 define Device/dlink_dir-505
698 SOC := ar9330
699 DEVICE_VENDOR := D-Link
700 DEVICE_MODEL := DIR-505
701 IMAGE_SIZE := 7680k
702 DEVICE_PACKAGES := kmod-usb2
703 SUPPORTED_DEVICES += dir-505-a1
704 endef
705 TARGET_DEVICES += dlink_dir-505
706
707 define Device/dlink_dir-825-b1
708 SOC := ar7161
709 DEVICE_VENDOR := D-Link
710 DEVICE_MODEL := DIR-825
711 DEVICE_VARIANT := B1
712 IMAGE_SIZE := 6208k
713 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
714 append-metadata | check-size
715 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
716 kmod-leds-reset kmod-owl-loader
717 SUPPORTED_DEVICES += dir-825-b1
718 endef
719 TARGET_DEVICES += dlink_dir-825-b1
720
721 define Device/dlink_dir-825-c1
722 SOC := ar9344
723 DEVICE_VENDOR := D-Link
724 DEVICE_MODEL := DIR-825
725 DEVICE_VARIANT := C1
726 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset \
727 kmod-owl-loader
728 SUPPORTED_DEVICES += dir-825-c1
729 IMAGE_SIZE := 15936k
730 IMAGES := factory.bin sysupgrade.bin
731 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
732 pad-rootfs
733 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
734 append-string 00DB120AR9344-RT-101214-00 | check-size
735 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
736 check-size
737 endef
738 TARGET_DEVICES += dlink_dir-825-c1
739
740 define Device/dlink_dir-835-a1
741 SOC := ar9344
742 DEVICE_VENDOR := D-Link
743 DEVICE_MODEL := DIR-835
744 DEVICE_VARIANT := A1
745 DEVICE_PACKAGES := kmod-usb2 kmod-leds-reset kmod-owl-loader
746 SUPPORTED_DEVICES += dir-835-a1
747 IMAGE_SIZE := 15936k
748 IMAGES := factory.bin sysupgrade.bin
749 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
750 pad-rootfs
751 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
752 append-string 00DB120AR9344-RT-101214-00 | check-size
753 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
754 check-size
755 endef
756 TARGET_DEVICES += dlink_dir-835-a1
757
758 define Device/dlink_dir-842-c
759 SOC := qca9563
760 DEVICE_VENDOR := D-Link
761 DEVICE_MODEL := DIR-842
762 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
763 KERNEL_INITRAMFS := $$(KERNEL) | seama
764 IMAGES += factory.bin
765 SEAMA_MTDBLOCK := 5
766 SEAMA_SIGNATURE := wrgac65_dlink.2015_dir842
767 # 64 bytes offset:
768 # - 28 bytes seama_header
769 # - 36 bytes of META data (4-bytes aligned)
770 IMAGE/default := append-kernel | uImage lzma | \
771 pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
772 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
773 append-metadata | check-size
774 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
775 seama-seal | check-size
776 IMAGE_SIZE := 15680k
777 endef
778
779 define Device/dlink_dir-842-c1
780 $(Device/dlink_dir-842-c)
781 DEVICE_VARIANT := C1
782 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
783 endef
784 TARGET_DEVICES += dlink_dir-842-c1
785
786 define Device/dlink_dir-842-c2
787 $(Device/dlink_dir-842-c)
788 DEVICE_VARIANT := C2
789 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
790 endef
791 TARGET_DEVICES += dlink_dir-842-c2
792
793 define Device/dlink_dir-842-c3
794 $(Device/dlink_dir-842-c)
795 DEVICE_VARIANT := C3
796 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
797 endef
798 TARGET_DEVICES += dlink_dir-842-c3
799
800 define Device/dlink_dir-859-a1
801 $(Device/seama)
802 SOC := qca9563
803 DEVICE_VENDOR := D-Link
804 DEVICE_MODEL := DIR-859
805 DEVICE_VARIANT := A1
806 IMAGE_SIZE := 15872k
807 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
808 SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
809 endef
810 TARGET_DEVICES += dlink_dir-859-a1
811
812 define Device/elecom_wrc-1750ghbk2-i
813 SOC := qca9563
814 DEVICE_VENDOR := ELECOM
815 DEVICE_MODEL := WRC-1750GHBK2-I/C
816 IMAGE_SIZE := 15808k
817 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
818 add-elecom-factory-initramfs RN68 WRC-1750GHBK2
819 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
820 endef
821 TARGET_DEVICES += elecom_wrc-1750ghbk2-i
822
823 define Device/elecom_wrc-300ghbk2-i
824 SOC := qca9563
825 DEVICE_VENDOR := ELECOM
826 DEVICE_MODEL := WRC-300GHBK2-I
827 IMAGE_SIZE := 7616k
828 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
829 add-elecom-factory-initramfs RN51 WRC-300GHBK2-I
830 endef
831 TARGET_DEVICES += elecom_wrc-300ghbk2-i
832
833 define Device/embeddedwireless_dorin
834 SOC := ar9331
835 DEVICE_VENDOR := Embedded Wireless
836 DEVICE_MODEL := Dorin
837 DEVICE_PACKAGES := kmod-usb-chipidea2
838 IMAGE_SIZE := 16000k
839 endef
840 TARGET_DEVICES += embeddedwireless_dorin
841
842 define Device/engenius_loader_okli
843 DEVICE_VENDOR := EnGenius
844 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
845 LOADER_TYPE := bin
846 COMPILE := loader-$(1).bin loader-$(1).uImage
847 COMPILE/loader-$(1).bin := loader-okli-compile
848 COMPILE/loader-$(1).uImage := append-loader-okli $(1) | pad-to 64k | lzma | \
849 uImage lzma
850 IMAGES += factory.bin
851 IMAGE/factory.bin := append-squashfs-fakeroot-be | pad-to $$$$(BLOCKSIZE) | \
852 append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
853 check-size | engenius-tar-gz $$$$(ENGENIUS_IMGNAME)
854 endef
855
856 define Device/engenius_ecb1750
857 SOC := qca9558
858 DEVICE_VENDOR := EnGenius
859 DEVICE_MODEL := ECB1750
860 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
861 IMAGE_SIZE := 15680k
862 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
863 append-rootfs | pad-rootfs | check-size | \
864 senao-header -r 0x101 -p 0x6d -t 2
865 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
866 append-metadata | check-size
867 endef
868 TARGET_DEVICES += engenius_ecb1750
869
870 define Device/engenius_enh202-v1
871 $(Device/engenius_loader_okli)
872 SOC := ar7240
873 DEVICE_MODEL := ENH202
874 DEVICE_VARIANT := v1
875 DEVICE_PACKAGES := rssileds
876 IMAGE_SIZE := 4864k
877 LOADER_FLASH_OFFS := 0x1b0000
878 ENGENIUS_IMGNAME := senao-enh202
879 endef
880 TARGET_DEVICES += engenius_enh202-v1
881
882 define Device/engenius_ens202ext-v1
883 $(Device/engenius_loader_okli)
884 SOC := ar9341
885 DEVICE_MODEL := ENS202EXT
886 DEVICE_VARIANT := v1
887 DEVICE_PACKAGES := rssileds
888 IMAGE_SIZE := 12032k
889 LOADER_FLASH_OFFS := 0x230000
890 ENGENIUS_IMGNAME := senao-ens202ext
891 endef
892 TARGET_DEVICES += engenius_ens202ext-v1
893
894 define Device/engenius_epg5000
895 SOC := qca9558
896 DEVICE_VENDOR := EnGenius
897 DEVICE_MODEL := EPG5000
898 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
899 IMAGE_SIZE := 14656k
900 IMAGES += factory.dlf
901 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
902 append-rootfs | pad-rootfs | check-size | \
903 senao-header -r 0x101 -p 0x71 -t 2
904 SUPPORTED_DEVICES += epg5000
905 endef
906 TARGET_DEVICES += engenius_epg5000
907
908 define Device/engenius_ews511ap
909 SOC := qca9531
910 DEVICE_VENDOR := EnGenius
911 DEVICE_MODEL := EWS511AP
912 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
913 IMAGE_SIZE := 16000k
914 endef
915 TARGET_DEVICES += engenius_ews511ap
916
917 define Device/enterasys_ws-ap3705i
918 SOC := ar9344
919 DEVICE_VENDOR := Enterasys
920 DEVICE_MODEL := WS-AP3705i
921 IMAGE_SIZE := 30528k
922 endef
923 TARGET_DEVICES += enterasys_ws-ap3705i
924
925 define Device/etactica_eg200
926 SOC := ar9331
927 DEVICE_VENDOR := eTactica
928 DEVICE_MODEL := EG200
929 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
930 kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
931 IMAGE_SIZE := 16000k
932 SUPPORTED_DEVICES += rme-eg200
933 endef
934 TARGET_DEVICES += etactica_eg200
935
936 define Device/glinet_6408
937 $(Device/tplink-8mlzma)
938 SOC := ar9331
939 DEVICE_VENDOR := GL.iNet
940 DEVICE_MODEL := 6408
941 DEVICE_PACKAGES := kmod-usb2
942 IMAGE_SIZE := 8000k
943 TPLINK_HWID := 0x08000001
944 IMAGES := sysupgrade.bin
945 SUPPORTED_DEVICES += gl-inet
946 endef
947 TARGET_DEVICES += glinet_6408
948
949 define Device/glinet_6416
950 $(Device/tplink-16mlzma)
951 SOC := ar9331
952 DEVICE_VENDOR := GL.iNet
953 DEVICE_MODEL := 6416
954 DEVICE_PACKAGES := kmod-usb2
955 IMAGE_SIZE := 16192k
956 TPLINK_HWID := 0x08000001
957 IMAGES := sysupgrade.bin
958 SUPPORTED_DEVICES += gl-inet
959 endef
960 TARGET_DEVICES += glinet_6416
961
962 define Device/glinet_gl-ar150
963 SOC := ar9330
964 DEVICE_VENDOR := GL.iNet
965 DEVICE_MODEL := GL-AR150
966 DEVICE_PACKAGES := kmod-usb-chipidea2
967 IMAGE_SIZE := 16000k
968 SUPPORTED_DEVICES += gl-ar150
969 endef
970 TARGET_DEVICES += glinet_gl-ar150
971
972 define Device/glinet_gl-ar300m-common-nor
973 SOC := qca9531
974 DEVICE_VENDOR := GL.iNet
975 DEVICE_PACKAGES := kmod-usb2
976 IMAGE_SIZE := 16000k
977 SUPPORTED_DEVICES += gl-ar300m
978 endef
979
980 define Device/glinet_gl-ar300m-lite
981 $(Device/glinet_gl-ar300m-common-nor)
982 DEVICE_MODEL := GL-AR300M
983 DEVICE_VARIANT := Lite
984 endef
985 TARGET_DEVICES += glinet_gl-ar300m-lite
986
987 define Device/glinet_gl-ar300m16
988 $(Device/glinet_gl-ar300m-common-nor)
989 DEVICE_MODEL := GL-AR300M16
990 endef
991 TARGET_DEVICES += glinet_gl-ar300m16
992
993 define Device/glinet_gl-ar750
994 SOC := qca9531
995 DEVICE_VENDOR := GL.iNet
996 DEVICE_MODEL := GL-AR750
997 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
998 IMAGE_SIZE := 16000k
999 SUPPORTED_DEVICES += gl-ar750
1000 endef
1001 TARGET_DEVICES += glinet_gl-ar750
1002
1003 define Device/glinet_gl-mifi
1004 SOC := ar9331
1005 DEVICE_VENDOR := GL.iNET
1006 DEVICE_MODEL := GL-MiFi
1007 DEVICE_PACKAGES := kmod-usb-chipidea2
1008 IMAGE_SIZE := 16000k
1009 SUPPORTED_DEVICES += gl-mifi
1010 endef
1011 TARGET_DEVICES += glinet_gl-mifi
1012
1013 define Device/glinet_gl-x750
1014 SOC := qca9531
1015 DEVICE_VENDOR := GL.iNet
1016 DEVICE_MODEL := GL-X750
1017 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
1018 IMAGE_SIZE := 16000k
1019 endef
1020 TARGET_DEVICES += glinet_gl-x750
1021
1022 define Device/hak5_lan-turtle
1023 $(Device/tplink-16mlzma)
1024 SOC := ar9331
1025 DEVICE_VENDOR := Hak5
1026 DEVICE_MODEL := LAN Turtle
1027 TPLINK_HWID := 0x5348334c
1028 IMAGES := sysupgrade.bin
1029 DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
1030 -uboot-envtools -wpad-basic-wolfssl
1031 SUPPORTED_DEVICES += lan-turtle
1032 endef
1033 TARGET_DEVICES += hak5_lan-turtle
1034
1035 define Device/hak5_packet-squirrel
1036 $(Device/tplink-16mlzma)
1037 SOC := ar9331
1038 DEVICE_VENDOR := Hak5
1039 DEVICE_MODEL := Packet Squirrel
1040 TPLINK_HWID := 0x5351524c
1041 IMAGES := sysupgrade.bin
1042 DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
1043 -uboot-envtools -wpad-basic-wolfssl
1044 SUPPORTED_DEVICES += packet-squirrel
1045 endef
1046 TARGET_DEVICES += hak5_packet-squirrel
1047
1048 define Device/hak5_wifi-pineapple-nano
1049 $(Device/tplink-16mlzma)
1050 SOC := ar9331
1051 DEVICE_VENDOR := Hak5
1052 DEVICE_MODEL := WiFi Pineapple NANO
1053 TPLINK_HWID := 0x4e414e4f
1054 IMAGES := sysupgrade.bin
1055 DEVICE_PACKAGES := kmod-ath9k-htc kmod-usb-chipidea2 kmod-usb-storage \
1056 -swconfig -uboot-envtools
1057 SUPPORTED_DEVICES += wifi-pineapple-nano
1058 endef
1059 TARGET_DEVICES += hak5_wifi-pineapple-nano
1060
1061 define Device/iodata_etg3-r
1062 SOC := ar9342
1063 DEVICE_VENDOR := I-O DATA
1064 DEVICE_MODEL := ETG3-R
1065 IMAGE_SIZE := 7680k
1066 DEVICE_PACKAGES := -iwinfo -kmod-ath9k -wpad-basic-wolfssl
1067 endef
1068 TARGET_DEVICES += iodata_etg3-r
1069
1070 define Device/iodata_wn-ac1167dgr
1071 SOC := qca9557
1072 DEVICE_VENDOR := I-O DATA
1073 DEVICE_MODEL := WN-AC1167DGR
1074 IMAGE_SIZE := 14656k
1075 IMAGES += factory.bin
1076 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1077 append-rootfs | pad-rootfs | check-size | \
1078 senao-header -r 0x30a -p 0x61 -t 2
1079 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1080 endef
1081 TARGET_DEVICES += iodata_wn-ac1167dgr
1082
1083 define Device/iodata_wn-ac1600dgr
1084 SOC := qca9557
1085 DEVICE_VENDOR := I-O DATA
1086 DEVICE_MODEL := WN-AC1600DGR
1087 IMAGE_SIZE := 14656k
1088 IMAGES += factory.bin
1089 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1090 append-rootfs | pad-rootfs | check-size | \
1091 senao-header -r 0x30a -p 0x60 -t 2 -v 200
1092 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1093 endef
1094 TARGET_DEVICES += iodata_wn-ac1600dgr
1095
1096 define Device/iodata_wn-ac1600dgr2
1097 SOC := qca9557
1098 DEVICE_VENDOR := I-O DATA
1099 DEVICE_MODEL := WN-AC1600DGR2/DGR3
1100 IMAGE_SIZE := 14656k
1101 IMAGES += dgr2-dgr3-factory.bin
1102 IMAGE/dgr2-dgr3-factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1103 append-rootfs | pad-rootfs | check-size | \
1104 senao-header -r 0x30a -p 0x60 -t 2 -v 200
1105 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1106 endef
1107 TARGET_DEVICES += iodata_wn-ac1600dgr2
1108
1109 define Device/iodata_wn-ag300dgr
1110 SOC := ar1022
1111 DEVICE_VENDOR := I-O DATA
1112 DEVICE_MODEL := WN-AG300DGR
1113 IMAGE_SIZE := 15424k
1114 IMAGES += factory.bin
1115 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1116 append-rootfs | pad-rootfs | check-size | \
1117 senao-header -r 0x30a -p 0x47 -t 2
1118 DEVICE_PACKAGES := kmod-usb2
1119 endef
1120 TARGET_DEVICES += iodata_wn-ag300dgr
1121
1122 define Device/jjplus_ja76pf2
1123 SOC := ar7161
1124 DEVICE_VENDOR := jjPlus
1125 DEVICE_MODEL := JA76PF2
1126 DEVICE_PACKAGES += -kmod-ath9k -swconfig -wpad-basic-wolfssl -uboot-envtools fconfig
1127 IMAGES := kernel.bin rootfs.bin
1128 IMAGE/kernel.bin := append-kernel
1129 IMAGE/rootfs.bin := append-rootfs | pad-rootfs
1130 KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
1131 KERNEL_INITRAMFS := kernel-bin | append-dtb
1132 IMAGE_SIZE := 16000k
1133 SUPPORTED_DEVICES += ja76pf2
1134 endef
1135 TARGET_DEVICES += jjplus_ja76pf2
1136
1137 define Device/librerouter_librerouter-v1
1138 SOC := qca9558
1139 DEVICE_VENDOR := Librerouter
1140 DEVICE_MODEL := LibreRouter
1141 DEVICE_VARIANT := v1
1142 IMAGE_SIZE := 7936k
1143 DEVICE_PACKAGES := kmod-usb2
1144 endef
1145 TARGET_DEVICES += librerouter_librerouter-v1
1146
1147 define Device/meraki_mr16
1148 SOC := ar7161
1149 DEVICE_VENDOR := Meraki
1150 DEVICE_MODEL := MR16
1151 IMAGE_SIZE := 15616k
1152 DEVICE_PACKAGES := kmod-owl-loader
1153 SUPPORTED_DEVICES += mr16
1154 DEVICE_COMPAT_VERSION := 2.0
1155 DEVICE_COMPAT_MESSAGE := Partitions differ from ar71xx version of MR16. Image format is incompatible. \
1156 To use sysupgrade, you must change /lib/update/common.sh::get_image to prepend 128K zeroes to this image, \
1157 and change the bootcmd in u-boot to "bootm 0xbf0a0000". After that, you can use "sysupgrade -F". \
1158 For more details, see the OpenWrt Wiki: https://openwrt.org/toh/meraki/mr16, \
1159 or the commit message of the MR16 ath79 port on git.openwrt.org.
1160 endef
1161 TARGET_DEVICES += meraki_mr16
1162
1163 define Device/mercury_mw4530r-v1
1164 $(Device/tplink-8mlzma)
1165 SOC := ar9344
1166 DEVICE_VENDOR := Mercury
1167 DEVICE_MODEL := MW4530R
1168 DEVICE_VARIANT := v1
1169 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
1170 TPLINK_HWID := 0x45300001
1171 SUPPORTED_DEVICES += tl-wdr4300
1172 endef
1173 TARGET_DEVICES += mercury_mw4530r-v1
1174
1175 define Device/nec_wg1200cr
1176 SOC := qca9563
1177 DEVICE_VENDOR := NEC
1178 DEVICE_MODEL := Aterm WG1200CR
1179 IMAGE_SIZE := 7616k
1180 SEAMA_MTDBLOCK := 6
1181 SEAMA_SIGNATURE := wrgac72_necpf.2016gui_wg1200cr
1182 IMAGES += factory.bin
1183 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
1184 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
1185 append-metadata | check-size
1186 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
1187 seama-seal | nec-enc 9gsiy9nzep452pad | check-size
1188 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1189 endef
1190 TARGET_DEVICES += nec_wg1200cr
1191
1192 define Device/nec_wg800hp
1193 SOC := qca9563
1194 DEVICE_VENDOR := NEC
1195 DEVICE_MODEL := Aterm WG800HP
1196 IMAGE_SIZE := 7104k
1197 IMAGES += factory.bin
1198 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1199 append-rootfs | pad-rootfs | check-size | \
1200 xor-image -p 6A57190601121E4C004C1E1201061957 -x | nec-fw LASER_ATERM
1201 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct-full-htt
1202 endef
1203 TARGET_DEVICES += nec_wg800hp
1204
1205 define Device/netgear_ex6400_ex7300
1206 $(Device/netgear_generic)
1207 SOC := qca9558
1208 NETGEAR_KERNEL_MAGIC := 0x27051956
1209 NETGEAR_BOARD_ID := EX7300series
1210 NETGEAR_HW_ID := 29765104+16+0+128
1211 IMAGE_SIZE := 15552k
1212 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
1213 netgear-rootfs | pad-rootfs
1214 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
1215 check-size
1216 IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | \
1217 check-size
1218 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca99x0-ct
1219 endef
1220
1221 define Device/netgear_ex6400
1222 $(Device/netgear_ex6400_ex7300)
1223 DEVICE_MODEL := EX6400
1224 endef
1225 TARGET_DEVICES += netgear_ex6400
1226
1227 define Device/netgear_ex7300
1228 $(Device/netgear_ex6400_ex7300)
1229 DEVICE_MODEL := EX7300
1230 endef
1231 TARGET_DEVICES += netgear_ex7300
1232
1233 define Device/netgear_wndr3x00
1234 $(Device/netgear_generic)
1235 SOC := ar7161
1236 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
1237 kmod-leds-reset kmod-owl-loader
1238 endef
1239
1240 define Device/netgear_wndr3700
1241 $(Device/netgear_wndr3x00)
1242 DEVICE_MODEL := WNDR3700
1243 DEVICE_VARIANT := v1
1244 NETGEAR_KERNEL_MAGIC := 0x33373030
1245 NETGEAR_BOARD_ID := WNDR3700
1246 IMAGE_SIZE := 7680k
1247 IMAGES += factory-NA.img
1248 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
1249 check-size
1250 SUPPORTED_DEVICES += wndr3700
1251 endef
1252 TARGET_DEVICES += netgear_wndr3700
1253
1254 define Device/netgear_wndr3700-v2
1255 $(Device/netgear_wndr3x00)
1256 DEVICE_MODEL := WNDR3700
1257 DEVICE_VARIANT := v2
1258 NETGEAR_KERNEL_MAGIC := 0x33373031
1259 NETGEAR_BOARD_ID := WNDR3700v2
1260 NETGEAR_HW_ID := 29763654+16+64
1261 IMAGE_SIZE := 15872k
1262 SUPPORTED_DEVICES += wndr3700 netgear,wndr3700v2
1263 endef
1264 TARGET_DEVICES += netgear_wndr3700-v2
1265
1266 define Device/netgear_wndr3800
1267 $(Device/netgear_wndr3x00)
1268 DEVICE_MODEL := WNDR3800
1269 NETGEAR_KERNEL_MAGIC := 0x33373031
1270 NETGEAR_BOARD_ID := WNDR3800
1271 NETGEAR_HW_ID := 29763654+16+128
1272 IMAGE_SIZE := 15872k
1273 SUPPORTED_DEVICES += wndr3700
1274 endef
1275 TARGET_DEVICES += netgear_wndr3800
1276
1277 define Device/netgear_wndr3800ch
1278 $(Device/netgear_wndr3x00)
1279 DEVICE_MODEL := WNDR3800CH
1280 NETGEAR_KERNEL_MAGIC := 0x33373031
1281 NETGEAR_BOARD_ID := WNDR3800CH
1282 NETGEAR_HW_ID := 29763654+16+128
1283 IMAGE_SIZE := 15872k
1284 SUPPORTED_DEVICES += wndr3700
1285 endef
1286 TARGET_DEVICES += netgear_wndr3800ch
1287
1288 define Device/netgear_wndrmac-v1
1289 $(Device/netgear_wndr3x00)
1290 DEVICE_MODEL := WNDRMAC
1291 DEVICE_VARIANT := v1
1292 NETGEAR_KERNEL_MAGIC := 0x33373031
1293 NETGEAR_BOARD_ID := WNDRMAC
1294 NETGEAR_HW_ID := 29763654+16+64
1295 IMAGE_SIZE := 15872k
1296 SUPPORTED_DEVICES += wndr3700
1297 endef
1298 TARGET_DEVICES += netgear_wndrmac-v1
1299
1300 define Device/netgear_wndrmac-v2
1301 $(Device/netgear_wndr3x00)
1302 DEVICE_MODEL := WNDRMAC
1303 DEVICE_VARIANT := v2
1304 NETGEAR_KERNEL_MAGIC := 0x33373031
1305 NETGEAR_BOARD_ID := WNDRMACv2
1306 NETGEAR_HW_ID := 29763654+16+128
1307 IMAGE_SIZE := 15872k
1308 SUPPORTED_DEVICES += wndr3700
1309 endef
1310 TARGET_DEVICES += netgear_wndrmac-v2
1311
1312 define Device/netgear_wnr2200_common
1313 $(Device/netgear_generic)
1314 SOC := ar7241
1315 DEVICE_MODEL := WNR2200
1316 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
1317 NETGEAR_KERNEL_MAGIC := 0x32323030
1318 NETGEAR_BOARD_ID := wnr2200
1319 endef
1320
1321 define Device/netgear_wnr2200-8m
1322 $(Device/netgear_wnr2200_common)
1323 DEVICE_VARIANT := 8M
1324 NETGEAR_HW_ID := 29763600+08+64
1325 IMAGE_SIZE := 7808k
1326 IMAGES += factory-NA.img
1327 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
1328 check-size
1329 SUPPORTED_DEVICES += wnr2200
1330 endef
1331 TARGET_DEVICES += netgear_wnr2200-8m
1332
1333 define Device/netgear_wnr2200-16m
1334 $(Device/netgear_wnr2200_common)
1335 DEVICE_VARIANT := 16M
1336 DEVICE_ALT0_VENDOR := NETGEAR
1337 DEVICE_ALT0_MODEL := WNR2200
1338 DEVICE_ALT0_VARIANT := CN/RU
1339 NETGEAR_HW_ID :=
1340 IMAGE_SIZE := 16000k
1341 endef
1342 TARGET_DEVICES += netgear_wnr2200-16m
1343
1344 define Device/ocedo_koala
1345 SOC := qca9558
1346 DEVICE_VENDOR := Ocedo
1347 DEVICE_MODEL := Koala
1348 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1349 SUPPORTED_DEVICES += koala
1350 IMAGE_SIZE := 7424k
1351 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1352 append-metadata | check-size
1353 endef
1354 TARGET_DEVICES += ocedo_koala
1355
1356 define Device/ocedo_raccoon
1357 SOC := ar9344
1358 DEVICE_VENDOR := Ocedo
1359 DEVICE_MODEL := Raccoon
1360 IMAGE_SIZE := 7424k
1361 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1362 append-metadata | check-size
1363 endef
1364 TARGET_DEVICES += ocedo_raccoon
1365
1366 define Device/ocedo_ursus
1367 SOC := qca9558
1368 DEVICE_VENDOR := Ocedo
1369 DEVICE_MODEL := Ursus
1370 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1371 IMAGE_SIZE := 7424k
1372 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1373 append-metadata | check-size
1374 endef
1375 TARGET_DEVICES += ocedo_ursus
1376
1377 define Device/openmesh_om5p-ac-v2
1378 SOC := qca9558
1379 DEVICE_VENDOR := OpenMesh
1380 DEVICE_MODEL := OM5P-AC
1381 DEVICE_VARIANT := v2
1382 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct om-watchdog
1383 IMAGE_SIZE := 7808k
1384 SUPPORTED_DEVICES += om5p-acv2
1385 endef
1386 TARGET_DEVICES += openmesh_om5p-ac-v2
1387
1388 define Device/pcs_cap324
1389 SOC := ar9344
1390 DEVICE_VENDOR := PowerCloud Systems
1391 DEVICE_MODEL := CAP324
1392 IMAGE_SIZE := 16000k
1393 SUPPORTED_DEVICES += cap324
1394 endef
1395 TARGET_DEVICES += pcs_cap324
1396
1397 define Device/pcs_cr3000
1398 SOC := ar9341
1399 DEVICE_VENDOR := PowerCloud Systems
1400 DEVICE_MODEL := CR3000
1401 IMAGE_SIZE := 7808k
1402 SUPPORTED_DEVICES += cr3000
1403 endef
1404 TARGET_DEVICES += pcs_cr3000
1405
1406 define Device/pcs_cr5000
1407 SOC := ar9344
1408 DEVICE_VENDOR := PowerCloud Systems
1409 DEVICE_MODEL := CR5000
1410 DEVICE_PACKAGES := kmod-usb2
1411 IMAGE_SIZE := 7808k
1412 SUPPORTED_DEVICES += cr5000
1413 endef
1414 TARGET_DEVICES += pcs_cr5000
1415
1416 define Device/phicomm_k2t
1417 SOC := qca9563
1418 DEVICE_VENDOR := Phicomm
1419 DEVICE_MODEL := K2T
1420 IMAGE_SIZE := 15744k
1421 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1422 append-metadata | check-size
1423 DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
1424 endef
1425 TARGET_DEVICES += phicomm_k2t
1426
1427 define Device/pisen_ts-d084
1428 $(Device/tplink-8mlzma)
1429 SOC := ar9331
1430 DEVICE_VENDOR := PISEN
1431 DEVICE_MODEL := TS-D084
1432 DEVICE_PACKAGES := kmod-usb-chipidea2
1433 TPLINK_HWID := 0x07030101
1434 endef
1435 TARGET_DEVICES += pisen_ts-d084
1436
1437 define Device/pisen_wmb001n
1438 SOC := ar9341
1439 DEVICE_VENDOR := PISEN
1440 DEVICE_MODEL := WMB001N
1441 IMAGE_SIZE := 14080k
1442 DEVICE_PACKAGES := kmod-i2c-gpio kmod-usb2
1443 LOADER_TYPE := bin
1444 LOADER_FLASH_OFFS := 0x20000
1445 COMPILE := loader-$(1).bin loader-$(1).uImage
1446 COMPILE/loader-$(1).bin := loader-okli-compile
1447 COMPILE/loader-$(1).uImage := append-loader-okli $(1) | pad-to 64k | lzma | \
1448 uImage lzma
1449 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
1450 IMAGES += factory.bin
1451 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pisen_wmb001n-factory $(1)
1452 endef
1453 TARGET_DEVICES += pisen_wmb001n
1454
1455 define Device/pisen_wmm003n
1456 $(Device/tplink-8mlzma)
1457 SOC := ar9331
1458 DEVICE_VENDOR := PISEN
1459 DEVICE_MODEL := Cloud Easy Power (WMM003N)
1460 DEVICE_PACKAGES := kmod-usb-chipidea2
1461 TPLINK_HWID := 0x07030101
1462 endef
1463 TARGET_DEVICES += pisen_wmm003n
1464
1465 define Device/qihoo_c301
1466 $(Device/seama)
1467 SOC := ar9344
1468 DEVICE_VENDOR := Qihoo
1469 DEVICE_MODEL := C301
1470 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct \
1471 uboot-envtools
1472 IMAGE_SIZE := 15744k
1473 SEAMA_SIGNATURE := wrgac26_qihoo360_360rg
1474 SUPPORTED_DEVICES += qihoo-c301
1475 endef
1476 TARGET_DEVICES += qihoo_c301
1477
1478 define Device/rosinson_wr818
1479 SOC := qca9563
1480 DEVICE_VENDOR := Rosinson
1481 DEVICE_MODEL := WR818
1482 IMAGE_SIZE := 15872k
1483 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
1484 endef
1485 TARGET_DEVICES += rosinson_wr818
1486
1487 define Device/samsung_wam250
1488 SOC := ar9344
1489 DEVICE_VENDOR := Samsung
1490 DEVICE_MODEL := WAM250
1491 IMAGE_SIZE := 15872k
1492 DEVICE_PACKAGES := kmod-usb2
1493 SUPPORTED_DEVICES += wam250
1494 endef
1495 TARGET_DEVICES += samsung_wam250
1496
1497 define Device/siemens_ws-ap3610
1498 SOC := ar7161
1499 DEVICE_VENDOR := Siemens
1500 DEVICE_MODEL := WS-AP3610
1501 IMAGE_SIZE := 14336k
1502 BLOCKSIZE := 256k
1503 LOADER_TYPE := bin
1504 LOADER_FLASH_OFFS := 0x82000
1505 COMPILE := loader-$(1).bin
1506 COMPILE/loader-$(1).bin := loader-okli-compile
1507 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128 | uImage none
1508 KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
1509 endef
1510 TARGET_DEVICES += siemens_ws-ap3610
1511
1512 define Device/sitecom_wlr-7100
1513 SOC := ar1022
1514 DEVICE_VENDOR := Sitecom
1515 DEVICE_MODEL := WLR-7100
1516 DEVICE_VARIANT := v1 002
1517 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct-smallbuffers kmod-usb2
1518 IMAGES += factory.dlf
1519 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1520 append-rootfs | pad-rootfs | check-size | \
1521 senao-header -r 0x222 -p 0x53 -t 2
1522 IMAGE_SIZE := 7488k
1523 endef
1524 TARGET_DEVICES += sitecom_wlr-7100
1525
1526 define Device/sitecom_wlr-8100
1527 SOC := qca9558
1528 DEVICE_VENDOR := Sitecom
1529 DEVICE_MODEL := WLR-8100
1530 DEVICE_ALT0_VENDOR := Sitecom
1531 DEVICE_ALT0_MODEL := X8 AC1750
1532 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2 kmod-usb3
1533 SUPPORTED_DEVICES += wlr8100
1534 IMAGES += factory.dlf
1535 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1536 append-rootfs | pad-rootfs | check-size | \
1537 senao-header -r 0x222 -p 0x56 -t 2
1538 IMAGE_SIZE := 15424k
1539 endef
1540 TARGET_DEVICES += sitecom_wlr-8100
1541
1542 define Device/telco_t1
1543 SOC := qca9531
1544 DEVICE_VENDOR := Telco
1545 DEVICE_MODEL := T1
1546 DEVICE_PACKAGES := kmod-usb2 kmod-usb-net-qmi-wwan \
1547 kmod-usb-serial-option uqmi -swconfig -uboot-envtools
1548 IMAGE_SIZE := 16192k
1549 SUPPORTED_DEVICES += telco_electronics,tel-t1
1550 endef
1551 TARGET_DEVICES += telco_t1
1552
1553 define Device/teltonika_rut955
1554 SOC := ar9344
1555 DEVICE_VENDOR := Teltonika
1556 DEVICE_MODEL := RUT955
1557 DEVICE_PACKAGES := kmod-usb2 kmod-usb-acm kmod-usb-net-qmi-wwan \
1558 kmod-usb-serial-option kmod-hwmon-mcp3021 uqmi -uboot-envtools
1559 IMAGE_SIZE := 15552k
1560 TPLINK_HWID := 0x35000001
1561 TPLINK_HWREV := 0x1
1562 TPLINK_HEADER_VERSION := 1
1563 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header
1564 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
1565 IMAGES += factory.bin
1566 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
1567 pad-rootfs | teltonika-fw-fake-checksum | append-string master |\
1568 append-md5sum-bin | check-size
1569 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
1570 append-rootfs | pad-rootfs | append-metadata |\
1571 check-size
1572 endef
1573 TARGET_DEVICES += teltonika_rut955
1574
1575 define Device/teltonika_rut955-h7v3c0
1576 $(Device/teltonika_rut955)
1577 DEVICE_VARIANT := H7V3C0
1578 endef
1579 TARGET_DEVICES += teltonika_rut955-h7v3c0
1580
1581 define Device/trendnet_tew-823dru
1582 SOC := qca9558
1583 DEVICE_VENDOR := Trendnet
1584 DEVICE_MODEL := TEW-823DRU
1585 DEVICE_VARIANT := v1.0R
1586 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1587 SUPPORTED_DEVICES += tew-823dru
1588 IMAGE_SIZE := 15296k
1589 IMAGES := factory.bin sysupgrade.bin
1590 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
1591 pad-rootfs
1592 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
1593 append-string 00AP135AR9558-RT-131129-00 | check-size
1594 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
1595 check-size
1596 endef
1597 TARGET_DEVICES += trendnet_tew-823dru
1598
1599 define Device/wallys_dr531
1600 SOC := qca9531
1601 DEVICE_VENDOR := Wallys
1602 DEVICE_MODEL := DR531
1603 DEVICE_PACKAGES := kmod-usb2 rssileds
1604 IMAGE_SIZE := 7808k
1605 SUPPORTED_DEVICES += dr531
1606 endef
1607 TARGET_DEVICES += wallys_dr531
1608
1609 define Device/wd_mynet-n750
1610 $(Device/seama)
1611 SOC := ar9344
1612 DEVICE_VENDOR := Western Digital
1613 DEVICE_MODEL := My Net N750
1614 IMAGE_SIZE := 15872k
1615 DEVICE_PACKAGES := kmod-usb2
1616 SEAMA_SIGNATURE := wrgnd13_wd_av
1617 SUPPORTED_DEVICES += mynet-n750
1618 endef
1619 TARGET_DEVICES += wd_mynet-n750
1620
1621 define Device/wd_mynet-wifi-rangeextender
1622 SOC := ar9344
1623 DEVICE_VENDOR := Western Digital
1624 DEVICE_MODEL := My Net Wi-Fi Range Extender
1625 DEVICE_PACKAGES := rssileds nvram -swconfig
1626 IMAGE_SIZE := 7808k
1627 ADDPATTERN_ID := mynet-rext
1628 ADDPATTERN_VERSION := 1.00.01
1629 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
1630 addpattern | append-metadata
1631 SUPPORTED_DEVICES += mynet-rext
1632 endef
1633 TARGET_DEVICES += wd_mynet-wifi-rangeextender
1634
1635 define Device/winchannel_wb2000
1636 SOC := ar9344
1637 DEVICE_VENDOR := Winchannel
1638 DEVICE_MODEL := WB2000
1639 IMAGE_SIZE := 15872k
1640 DEVICE_PACKAGES := kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 \
1641 kmod-usb-ledtrig-usbport
1642 endef
1643 TARGET_DEVICES += winchannel_wb2000
1644
1645 define Device/xiaomi_mi-router-4q
1646 SOC := qca9561
1647 DEVICE_VENDOR := Xiaomi
1648 DEVICE_MODEL := Mi Router 4Q
1649 IMAGE_SIZE := 14336k
1650 endef
1651 TARGET_DEVICES += xiaomi_mi-router-4q
1652
1653 define Device/yuncore_a770
1654 SOC := qca9531
1655 DEVICE_VENDOR := YunCore
1656 DEVICE_MODEL := A770
1657 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
1658 IMAGE_SIZE := 16000k
1659 IMAGES += tftp.bin
1660 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1661 endef
1662 TARGET_DEVICES += yuncore_a770
1663
1664 define Device/yuncore_a782
1665 SOC := qca9563
1666 DEVICE_VENDOR := YunCore
1667 DEVICE_MODEL := A782
1668 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1669 IMAGE_SIZE := 16000k
1670 IMAGES += tftp.bin
1671 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1672 endef
1673 TARGET_DEVICES += yuncore_a782
1674
1675 define Device/yuncore_xd4200
1676 SOC := qca9563
1677 DEVICE_VENDOR := YunCore
1678 DEVICE_MODEL := XD4200
1679 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1680 IMAGE_SIZE := 16000k
1681 IMAGES += tftp.bin
1682 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1683 endef
1684 TARGET_DEVICES += yuncore_xd4200
1685
1686 define Device/zbtlink_zbt-wd323
1687 SOC := ar9344
1688 DEVICE_VENDOR := ZBT
1689 DEVICE_MODEL := WD323
1690 IMAGE_SIZE := 16000k
1691 DEVICE_PACKAGES := kmod-usb2 kmod-i2c-gpio kmod-rtc-pcf8563 \
1692 kmod-usb-serial kmod-usb-serial-cp210x uqmi
1693 endef
1694 TARGET_DEVICES += zbtlink_zbt-wd323
1695
1696 define Device/zyxel_nbg6616
1697 SOC := qca9557
1698 DEVICE_VENDOR := ZyXEL
1699 DEVICE_MODEL := NBG6616
1700 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-rtc-pcf8563 \
1701 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1702 IMAGE_SIZE := 15232k
1703 RAS_BOARD := NBG6616
1704 RAS_ROOTFS_SIZE := 14464k
1705 RAS_VERSION := "OpenWrt Linux-$(LINUX_VERSION)"
1706 IMAGES += factory.bin
1707 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1708 append-rootfs | pad-rootfs | pad-to 64k | check-size | zyxel-ras-image
1709 SUPPORTED_DEVICES += nbg6616
1710 endef
1711 TARGET_DEVICES += zyxel_nbg6616