ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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
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 define Build/mkwrggimg
54 $(STAGING_DIR_HOST)/bin/mkwrggimg -b \
55 -i $@ -o $@.imghdr -d /dev/mtdblock/1 \
56 -m $(DEVICE_MODEL)-$(DEVICE_VARIANT) -s $(DAP_SIGNATURE) \
57 -v $(VERSION_DIST) -B $(REVISION)
58 mv $@.imghdr $@
59 endef
60
61 define Build/nec-enc
62 $(STAGING_DIR_HOST)/bin/nec-enc \
63 -i $@ -o $@.new -k $(1)
64 mv $@.new $@
65 endef
66
67 define Build/nec-fw
68 ( stat -c%s $@ | tr -d "\n" | dd bs=16 count=1 conv=sync; ) >> $@
69 ( \
70 echo -n -e "$(1)" | dd bs=16 count=1 conv=sync; \
71 echo -n "0.0.00" | dd bs=16 count=1 conv=sync; \
72 dd if=$@; \
73 ) > $@.new
74 mv $@.new $@
75 endef
76
77 define Build/pisen_wmb001n-factory
78 -[ -f "$@" ] && \
79 mkdir -p "$@.tmp" && \
80 cp "$(KDIR)/loader-$(word 1,$(1)).uImage" "$@.tmp/uImage" && \
81 mv "$@" "$@.tmp/rootfs" && \
82 cp "bin/pisen_wmb001n_factory-header.bin" "$@" && \
83 $(TAR) -cp --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name \
84 $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
85 -C "$@.tmp" . | gzip -9n >> "$@" && \
86 rm -rf "$@.tmp"
87 endef
88
89 define Build/teltonika-fw-fake-checksum
90 # Teltonika U-Boot web based firmware upgrade/recovery routine compares
91 # 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes
92 # from begin of the firmware file) with 16 bytes stored just before
93 # 0xdeadc0de marker. Values are only compared, MD5 sum is not verified.
94 let \
95 offs="$$(stat -c%s $@) - 20"; \
96 dd if=$@ bs=1 count=16 skip=76 |\
97 dd of=$@ bs=1 count=16 seek=$$offs conv=notrunc
98 endef
99
100 define Build/wrgg-pad-rootfs
101 $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@
102 endef
103
104 define Device/seama
105 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
106 KERNEL_INITRAMFS := $$(KERNEL) | seama
107 IMAGES += factory.bin
108 SEAMA_MTDBLOCK := 1
109
110 # 64 bytes offset:
111 # - 28 bytes seama_header
112 # - 36 bytes of META data (4-bytes aligned)
113 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
114 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
115 append-metadata | check-size
116 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
117 seama-seal | check-size
118 SEAMA_SIGNATURE :=
119 endef
120
121
122 define Device/8dev_carambola2
123 SOC := ar9331
124 DEVICE_VENDOR := 8devices
125 DEVICE_MODEL := Carambola2
126 DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2
127 IMAGE_SIZE := 16000k
128 SUPPORTED_DEVICES += carambola2
129 endef
130 TARGET_DEVICES += 8dev_carambola2
131
132 define Device/adtran_bsap1880
133 SOC := ar7161
134 DEVICE_VENDOR := Adtran/Bluesocket
135 DEVICE_PACKAGES += -swconfig -uboot-envtools fconfig
136 KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
137 KERNEL_INITRAMFS := kernel-bin | append-dtb
138 IMAGE_SIZE := 11200k
139 IMAGES += kernel.bin rootfs.bin
140 IMAGE/kernel.bin := append-kernel
141 IMAGE/rootfs.bin := append-rootfs | pad-rootfs
142 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
143 check-size | sysupgrade-tar rootfs=$$$$@ | append-metadata
144 endef
145
146 define Device/adtran_bsap1800-v2
147 $(Device/adtran_bsap1880)
148 DEVICE_MODEL := BSAP-1800
149 DEVICE_VARIANT := v2
150 endef
151 TARGET_DEVICES += adtran_bsap1800-v2
152
153 define Device/adtran_bsap1840
154 $(Device/adtran_bsap1880)
155 DEVICE_MODEL := BSAP-1840
156 endef
157 TARGET_DEVICES += adtran_bsap1840
158
159 define Device/alfa-network_ap121f
160 SOC := ar9331
161 DEVICE_VENDOR := ALFA Network
162 DEVICE_MODEL := AP121F
163 DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2 kmod-usb-storage -swconfig
164 IMAGE_SIZE := 16064k
165 SUPPORTED_DEVICES += ap121f
166 endef
167 TARGET_DEVICES += alfa-network_ap121f
168
169 define Device/aruba_ap-105
170 SOC := ar7161
171 DEVICE_VENDOR := Aruba
172 DEVICE_MODEL := AP-105
173 IMAGE_SIZE := 16000k
174 DEVICE_PACKAGES := kmod-i2c-gpio kmod-tpm-i2c-atmel
175 endef
176 TARGET_DEVICES += aruba_ap-105
177
178 define Device/avm
179 DEVICE_VENDOR := AVM
180 KERNEL := kernel-bin | append-dtb | lzma | eva-image
181 KERNEL_INITRAMFS := $$(KERNEL)
182 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
183 append-squashfs-fakeroot-be | pad-to 256 | append-rootfs | pad-rootfs | \
184 append-metadata | check-size
185 DEVICE_PACKAGES := fritz-tffs
186 endef
187
188 define Device/avm_fritz1750e
189 $(Device/avm)
190 SOC := qca9556
191 IMAGE_SIZE := 15232k
192 DEVICE_MODEL := FRITZ!WLAN Repeater 1750E
193 DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
194 ath10k-firmware-qca988x-ct -swconfig
195 endef
196 TARGET_DEVICES += avm_fritz1750e
197
198 define Device/avm_fritz300e
199 $(Device/avm)
200 SOC := ar7242
201 IMAGE_SIZE := 15232k
202 DEVICE_MODEL := FRITZ!WLAN Repeater 300E
203 DEVICE_PACKAGES += rssileds -swconfig
204 SUPPORTED_DEVICES += fritz300e
205 endef
206 TARGET_DEVICES += avm_fritz300e
207
208 define Device/avm_fritz4020
209 $(Device/avm)
210 SOC := qca9561
211 IMAGE_SIZE := 15232k
212 DEVICE_MODEL := FRITZ!Box 4020
213 SUPPORTED_DEVICES += fritz4020
214 endef
215 TARGET_DEVICES += avm_fritz4020
216
217 define Device/avm_fritz450e
218 $(Device/avm)
219 SOC := qca9556
220 IMAGE_SIZE := 15232k
221 DEVICE_MODEL := FRITZ!WLAN Repeater 450E
222 SUPPORTED_DEVICES += fritz450e
223 endef
224 TARGET_DEVICES += avm_fritz450e
225
226 define Device/avm_fritzdvbc
227 $(Device/avm)
228 SOC := qca9556
229 IMAGE_SIZE := 15232k
230 DEVICE_MODEL := FRITZ!WLAN Repeater DVB-C
231 DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
232 ath10k-firmware-qca988x-ct -swconfig
233 endef
234 TARGET_DEVICES += avm_fritzdvbc
235
236 define Device/buffalo_bhr-4grv
237 SOC := ar7242
238 DEVICE_VENDOR := Buffalo
239 DEVICE_MODEL := BHR-4GRV
240 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
241 IMAGE_SIZE := 32256k
242 IMAGES += factory.bin tftp.bin
243 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
244 pad-rootfs | check-size
245 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc BHR-4GRV 1.99 | \
246 buffalo-tag BHR-4GRV 3
247 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
248 SUPPORTED_DEVICES += wzr-hp-g450h
249 endef
250 TARGET_DEVICES += buffalo_bhr-4grv
251
252 define Device/buffalo_bhr-4grv2
253 SOC := qca9557
254 DEVICE_VENDOR := Buffalo
255 DEVICE_MODEL := BHR-4GRV2
256 IMAGE_SIZE := 16000k
257 endef
258 TARGET_DEVICES += buffalo_bhr-4grv2
259
260 define Device/buffalo_wzr-hp-ag300h
261 SOC := ar7161
262 DEVICE_VENDOR := Buffalo
263 DEVICE_MODEL := WZR-HP-AG300H
264 IMAGE_SIZE := 32320k
265 IMAGES += factory.bin tftp.bin
266 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
267 pad-rootfs | check-size
268 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-AG300H 1.99 | \
269 buffalo-tag WZR-HP-AG300H 3
270 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
271 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
272 kmod-leds-reset kmod-owl-loader
273 SUPPORTED_DEVICES += wzr-hp-ag300h
274 endef
275 TARGET_DEVICES += buffalo_wzr-hp-ag300h
276
277 define Device/buffalo_wzr-hp-g302h-a1a0
278 SOC := ar7242
279 DEVICE_VENDOR := Buffalo
280 DEVICE_MODEL := WZR-HP-G302H
281 DEVICE_VARIANT := A1A0
282 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
283 IMAGE_SIZE := 32128k
284 IMAGES += factory.bin tftp.bin
285 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
286 pad-rootfs | check-size
287 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G302H 1.99 | \
288 buffalo-tag WZR-HP-G302H 4
289 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
290 SUPPORTED_DEVICES += wzr-hp-g300nh2
291 endef
292 TARGET_DEVICES += buffalo_wzr-hp-g302h-a1a0
293
294 define Device/buffalo_wzr-hp-g450h
295 SOC := ar7242
296 DEVICE_VENDOR := Buffalo
297 DEVICE_MODEL := WZR-HP-G450H/WZR-450HP
298 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
299 IMAGE_SIZE := 32256k
300 IMAGES += factory.bin tftp.bin
301 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
302 pad-rootfs | check-size
303 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G450H 1.99 | \
304 buffalo-tag WZR-HP-G450H 3
305 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
306 SUPPORTED_DEVICES += wzr-hp-g450h
307 endef
308 TARGET_DEVICES += buffalo_wzr-hp-g450h
309
310 define Device/comfast_cf-e110n-v2
311 SOC := qca9533
312 DEVICE_VENDOR := COMFAST
313 DEVICE_MODEL := CF-E110N
314 DEVICE_VARIANT := v2
315 DEVICE_PACKAGES := rssileds kmod-leds-gpio -swconfig -uboot-envtools
316 IMAGE_SIZE := 16192k
317 endef
318 TARGET_DEVICES += comfast_cf-e110n-v2
319
320 define Device/comfast_cf-e120a-v3
321 SOC := ar9344
322 DEVICE_VENDOR := COMFAST
323 DEVICE_MODEL := CF-E120A
324 DEVICE_VARIANT := v3
325 DEVICE_PACKAGES := rssileds kmod-leds-gpio -uboot-envtools
326 IMAGE_SIZE := 8000k
327 endef
328 TARGET_DEVICES += comfast_cf-e120a-v3
329
330 define Device/comfast_cf-e130n-v2
331 SOC := qca9531
332 DEVICE_VENDOR := COMFAST
333 DEVICE_MODEL := CF-E130N
334 DEVICE_VARIANT := v2
335 DEVICE_PACKAGES := rssileds kmod-leds-gpio -swconfig -uboot-envtools
336 IMAGE_SIZE := 7936k
337 endef
338 TARGET_DEVICES += comfast_cf-e130n-v2
339
340 define Device/comfast_cf-e313ac
341 SOC := qca9531
342 DEVICE_VENDOR := COMFAST
343 DEVICE_MODEL := CF-E313AC
344 DEVICE_PACKAGES := rssileds kmod-leds-gpio kmod-ath10k-ct-smallbuffers \
345 ath10k-firmware-qca9888-ct -swconfig -uboot-envtools
346 IMAGE_SIZE := 7936k
347 endef
348 TARGET_DEVICES += comfast_cf-e313ac
349
350 define Device/comfast_cf-e314n-v2
351 SOC := qca9531
352 DEVICE_VENDOR := COMFAST
353 DEVICE_MODEL := CF-E314N
354 DEVICE_VARIANT := v2
355 DEVICE_PACKAGES := rssileds
356 IMAGE_SIZE := 7936k
357 endef
358 TARGET_DEVICES += comfast_cf-e314n-v2
359
360 define Device/comfast_cf-e5
361 SOC := qca9531
362 DEVICE_VENDOR := COMFAST
363 DEVICE_MODEL := CF-E5/E7
364 DEVICE_PACKAGES := rssileds kmod-leds-gpio kmod-usb2 kmod-usb-net \
365 kmod-usb-net-qmi-wwan -swconfig -uboot-envtools
366 IMAGE_SIZE := 16192k
367 endef
368 TARGET_DEVICES += comfast_cf-e5
369
370 define Device/comfast_cf-e560ac
371 SOC := qca9531
372 DEVICE_VENDOR := COMFAST
373 DEVICE_MODEL := CF-E560AC
374 DEVICE_PACKAGES := kmod-leds-gpio kmod-usb2 kmod-ath10k-ct \
375 ath10k-firmware-qca9888-ct
376 IMAGE_SIZE := 16128k
377 endef
378 TARGET_DEVICES += comfast_cf-e560ac
379
380 define Device/comfast_cf-ew72
381 SOC := qca9531
382 DEVICE_VENDOR := COMFAST
383 DEVICE_MODEL := CF-EW72
384 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
385 -uboot-envtools -swconfig
386 IMAGE_SIZE := 16192k
387 endef
388 TARGET_DEVICES += comfast_cf-ew72
389
390 define Device/comfast_cf-wr650ac-v1
391 SOC := qca9558
392 DEVICE_VENDOR := COMFAST
393 DEVICE_MODEL := CF-WR650AC
394 DEVICE_VARIANT := v1
395 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
396 IMAGE_SIZE := 16128k
397 endef
398 TARGET_DEVICES += comfast_cf-wr650ac-v1
399
400 define Device/comfast_cf-wr650ac-v2
401 SOC := qca9558
402 DEVICE_VENDOR := COMFAST
403 DEVICE_MODEL := CF-WR650AC
404 DEVICE_VARIANT := v2
405 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
406 IMAGE_SIZE := 16000k
407 endef
408 TARGET_DEVICES += comfast_cf-wr650ac-v2
409
410 define Device/comfast_cf-wr752ac-v1
411 SOC := qca9531
412 DEVICE_VENDOR := COMFAST
413 DEVICE_MODEL := CF-WR752AC
414 DEVICE_VARIANT := v1
415 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
416 -uboot-envtools
417 IMAGE_SIZE := 16192k
418 endef
419 TARGET_DEVICES += comfast_cf-wr752ac-v1
420
421 define Device/compex_wpj531-16m
422 SOC := qca9531
423 DEVICE_PACKAGES := kmod-usb2
424 IMAGE_SIZE := 16128k
425 DEVICE_VENDOR := Compex
426 DEVICE_MODEL := WPJ531
427 DEVICE_VARIANT := 16M
428 SUPPORTED_DEVICES += wpj531
429 endef
430 TARGET_DEVICES += compex_wpj531-16m
431
432 define Device/devolo_dvl1200e
433 SOC := qca9558
434 DEVICE_VENDOR := devolo
435 DEVICE_MODEL := WiFi pro 1200e
436 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
437 IMAGE_SIZE := 15936k
438 endef
439 TARGET_DEVICES += devolo_dvl1200e
440
441 define Device/devolo_dvl1200i
442 SOC := qca9558
443 DEVICE_VENDOR := devolo
444 DEVICE_MODEL := WiFi pro 1200i
445 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
446 IMAGE_SIZE := 15936k
447 endef
448 TARGET_DEVICES += devolo_dvl1200i
449
450 define Device/devolo_dvl1750c
451 SOC := qca9558
452 DEVICE_VENDOR := devolo
453 DEVICE_MODEL := WiFi pro 1750c
454 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
455 IMAGE_SIZE := 15936k
456 endef
457 TARGET_DEVICES += devolo_dvl1750c
458
459 define Device/devolo_dvl1750e
460 SOC := qca9558
461 DEVICE_VENDOR := devolo
462 DEVICE_MODEL := WiFi pro 1750e
463 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
464 IMAGE_SIZE := 15936k
465 endef
466 TARGET_DEVICES += devolo_dvl1750e
467
468 define Device/devolo_dvl1750i
469 SOC := qca9558
470 DEVICE_VENDOR := devolo
471 DEVICE_MODEL := WiFi pro 1750i
472 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
473 IMAGE_SIZE := 15936k
474 endef
475 TARGET_DEVICES += devolo_dvl1750i
476
477 define Device/devolo_dvl1750x
478 SOC := qca9558
479 DEVICE_VENDOR := devolo
480 DEVICE_MODEL := WiFi pro 1750x
481 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
482 IMAGE_SIZE := 15936k
483 endef
484 TARGET_DEVICES += devolo_dvl1750x
485
486 define Device/devolo_magic-2-wifi
487 SOC := ar9344
488 DEVICE_VENDOR := Devolo
489 DEVICE_MODEL := Magic 2 WiFi
490 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
491 IMAGE_SIZE := 15872k
492 endef
493 TARGET_DEVICES += devolo_magic-2-wifi
494
495 define Device/dlink_dap-2695-a1
496 SOC := qca9558
497 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
498 DEVICE_VENDOR := D-Link
499 DEVICE_MODEL := DAP-2965
500 DEVICE_VARIANT := A1
501 IMAGES := factory.img sysupgrade.bin
502 IMAGE_SIZE := 15360k
503 IMAGE/default := append-kernel | pad-offset 65536 160
504 IMAGE/factory.img := $$(IMAGE/default) | append-rootfs | wrgg-pad-rootfs | \
505 mkwrggimg | check-size
506 IMAGE/sysupgrade.bin := $$(IMAGE/default) | mkwrggimg | append-rootfs | \
507 wrgg-pad-rootfs | append-metadata | check-size
508 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
509 KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg
510 DAP_SIGNATURE := wapac02_dkbs_dap2695
511 SUPPORTED_DEVICES += dap-2695-a1
512 endef
513 TARGET_DEVICES += dlink_dap-2695-a1
514
515 define Device/dlink_dir-505
516 SOC := ar9330
517 DEVICE_VENDOR := D-Link
518 DEVICE_MODEL := DIR-505
519 IMAGE_SIZE := 7680k
520 DEVICE_PACKAGES := kmod-usb2
521 SUPPORTED_DEVICES += dir-505-a1
522 endef
523 TARGET_DEVICES += dlink_dir-505
524
525 define Device/dlink_dir-825-b1
526 SOC := ar7161
527 DEVICE_VENDOR := D-Link
528 DEVICE_MODEL := DIR-825
529 DEVICE_VARIANT := B1
530 IMAGE_SIZE := 6208k
531 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
532 append-metadata | check-size
533 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
534 kmod-leds-reset kmod-owl-loader
535 SUPPORTED_DEVICES += dir-825-b1
536 endef
537 TARGET_DEVICES += dlink_dir-825-b1
538
539 define Device/dlink_dir-825-c1
540 SOC := ar9344
541 DEVICE_VENDOR := D-Link
542 DEVICE_MODEL := DIR-825
543 DEVICE_VARIANT := C1
544 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset \
545 kmod-owl-loader
546 SUPPORTED_DEVICES += dir-825-c1
547 IMAGE_SIZE := 15936k
548 IMAGES := factory.bin sysupgrade.bin
549 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
550 pad-rootfs
551 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
552 append-string 00DB120AR9344-RT-101214-00 | check-size
553 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
554 check-size
555 endef
556 TARGET_DEVICES += dlink_dir-825-c1
557
558 define Device/dlink_dir-835-a1
559 SOC := ar9344
560 DEVICE_VENDOR := D-Link
561 DEVICE_MODEL := DIR-835
562 DEVICE_VARIANT := A1
563 DEVICE_PACKAGES := kmod-usb2 kmod-leds-reset kmod-owl-loader
564 SUPPORTED_DEVICES += dir-835-a1
565 IMAGE_SIZE := 15936k
566 IMAGES := factory.bin sysupgrade.bin
567 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
568 pad-rootfs
569 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
570 append-string 00DB120AR9344-RT-101214-00 | check-size
571 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
572 check-size
573 endef
574 TARGET_DEVICES += dlink_dir-835-a1
575
576 define Device/dlink_dir-842-c
577 SOC := qca9563
578 DEVICE_VENDOR := D-Link
579 DEVICE_MODEL := DIR-842
580 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
581 KERNEL_INITRAMFS := $$(KERNEL) | seama
582 IMAGES += factory.bin
583 SEAMA_MTDBLOCK := 5
584 SEAMA_SIGNATURE := wrgac65_dlink.2015_dir842
585 # 64 bytes offset:
586 # - 28 bytes seama_header
587 # - 36 bytes of META data (4-bytes aligned)
588 IMAGE/default := append-kernel | uImage lzma | \
589 pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
590 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
591 append-metadata | check-size
592 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
593 seama-seal | check-size
594 IMAGE_SIZE := 15680k
595 endef
596
597 define Device/dlink_dir-842-c1
598 $(Device/dlink_dir-842-c)
599 DEVICE_VARIANT := C1
600 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
601 endef
602 TARGET_DEVICES += dlink_dir-842-c1
603
604 define Device/dlink_dir-842-c2
605 $(Device/dlink_dir-842-c)
606 DEVICE_VARIANT := C2
607 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
608 endef
609 TARGET_DEVICES += dlink_dir-842-c2
610
611 define Device/dlink_dir-842-c3
612 $(Device/dlink_dir-842-c)
613 DEVICE_VARIANT := C3
614 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
615 endef
616 TARGET_DEVICES += dlink_dir-842-c3
617
618 define Device/dlink_dir-859-a1
619 $(Device/seama)
620 SOC := qca9563
621 DEVICE_VENDOR := D-Link
622 DEVICE_MODEL := DIR-859
623 DEVICE_VARIANT := A1
624 IMAGE_SIZE := 15872k
625 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
626 SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
627 endef
628 TARGET_DEVICES += dlink_dir-859-a1
629
630 define Device/elecom_wrc-1750ghbk2-i
631 SOC := qca9563
632 DEVICE_VENDOR := ELECOM
633 DEVICE_MODEL := WRC-1750GHBK2-I/C
634 IMAGE_SIZE := 15808k
635 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
636 add-elecom-factory-initramfs RN68 WRC-1750GHBK2
637 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
638 endef
639 TARGET_DEVICES += elecom_wrc-1750ghbk2-i
640
641 define Device/elecom_wrc-300ghbk2-i
642 SOC := qca9563
643 DEVICE_VENDOR := ELECOM
644 DEVICE_MODEL := WRC-300GHBK2-I
645 IMAGE_SIZE := 7616k
646 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
647 add-elecom-factory-initramfs RN51 WRC-300GHBK2-I
648 endef
649 TARGET_DEVICES += elecom_wrc-300ghbk2-i
650
651 define Device/embeddedwireless_dorin
652 SOC := ar9331
653 DEVICE_VENDOR := Embedded Wireless
654 DEVICE_MODEL := Dorin
655 DEVICE_PACKAGES := kmod-usb-chipidea2
656 IMAGE_SIZE := 16000k
657 endef
658 TARGET_DEVICES += embeddedwireless_dorin
659
660 define Device/engenius_ecb1750
661 SOC := qca9558
662 DEVICE_VENDOR := EnGenius
663 DEVICE_MODEL := ECB1750
664 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
665 IMAGE_SIZE := 15680k
666 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
667 append-rootfs | pad-rootfs | check-size | \
668 senao-header -r 0x101 -p 0x6d -t 2
669 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
670 append-metadata | check-size
671 endef
672 TARGET_DEVICES += engenius_ecb1750
673
674 define Device/engenius_epg5000
675 SOC := qca9558
676 DEVICE_VENDOR := EnGenius
677 DEVICE_MODEL := EPG5000
678 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
679 IMAGE_SIZE := 14656k
680 IMAGES += factory.dlf
681 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
682 append-rootfs | pad-rootfs | check-size | \
683 senao-header -r 0x101 -p 0x71 -t 2
684 SUPPORTED_DEVICES += epg5000
685 endef
686 TARGET_DEVICES += engenius_epg5000
687
688 define Device/engenius_ews511ap
689 SOC := qca9531
690 DEVICE_VENDOR := EnGenius
691 DEVICE_MODEL := EWS511AP
692 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
693 IMAGE_SIZE := 16000k
694 endef
695 TARGET_DEVICES += engenius_ews511ap
696
697 define Device/enterasys_ws-ap3705i
698 SOC := ar9344
699 DEVICE_VENDOR := Enterasys
700 DEVICE_MODEL := WS-AP3705i
701 IMAGE_SIZE := 30528k
702 endef
703 TARGET_DEVICES += enterasys_ws-ap3705i
704
705 define Device/etactica_eg200
706 SOC := ar9331
707 DEVICE_VENDOR := eTactica
708 DEVICE_MODEL := EG200
709 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
710 kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
711 IMAGE_SIZE := 16000k
712 SUPPORTED_DEVICES += rme-eg200
713 endef
714 TARGET_DEVICES += etactica_eg200
715
716 define Device/glinet_6408
717 $(Device/tplink-8mlzma)
718 SOC := ar9331
719 DEVICE_VENDOR := GL.iNet
720 DEVICE_MODEL := 6408
721 DEVICE_PACKAGES := kmod-usb2
722 IMAGE_SIZE := 8000k
723 TPLINK_HWID := 0x08000001
724 IMAGES := sysupgrade.bin
725 SUPPORTED_DEVICES += gl-inet
726 endef
727 TARGET_DEVICES += glinet_6408
728
729 define Device/glinet_6416
730 $(Device/tplink-16mlzma)
731 SOC := ar9331
732 DEVICE_VENDOR := GL.iNet
733 DEVICE_MODEL := 6416
734 DEVICE_PACKAGES := kmod-usb2
735 IMAGE_SIZE := 16192k
736 TPLINK_HWID := 0x08000001
737 IMAGES := sysupgrade.bin
738 SUPPORTED_DEVICES += gl-inet
739 endef
740 TARGET_DEVICES += glinet_6416
741
742 define Device/glinet_gl-ar150
743 SOC := ar9330
744 DEVICE_VENDOR := GL.iNet
745 DEVICE_MODEL := GL-AR150
746 DEVICE_PACKAGES := kmod-usb-chipidea2
747 IMAGE_SIZE := 16000k
748 SUPPORTED_DEVICES += gl-ar150
749 endef
750 TARGET_DEVICES += glinet_gl-ar150
751
752 define Device/glinet_gl-ar300m-common-nor
753 SOC := qca9531
754 DEVICE_VENDOR := GL.iNet
755 DEVICE_PACKAGES := kmod-usb2
756 IMAGE_SIZE := 16000k
757 SUPPORTED_DEVICES += gl-ar300m
758 endef
759
760 define Device/glinet_gl-ar300m-lite
761 $(Device/glinet_gl-ar300m-common-nor)
762 DEVICE_MODEL := GL-AR300M
763 DEVICE_VARIANT := Lite
764 endef
765 TARGET_DEVICES += glinet_gl-ar300m-lite
766
767 define Device/glinet_gl-ar300m16
768 $(Device/glinet_gl-ar300m-common-nor)
769 DEVICE_MODEL := GL-AR300M16
770 endef
771 TARGET_DEVICES += glinet_gl-ar300m16
772
773 define Device/glinet_gl-ar750
774 SOC := qca9531
775 DEVICE_VENDOR := GL.iNet
776 DEVICE_MODEL := GL-AR750
777 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
778 IMAGE_SIZE := 16000k
779 SUPPORTED_DEVICES += gl-ar750
780 endef
781 TARGET_DEVICES += glinet_gl-ar750
782
783 define Device/glinet_gl-x750
784 SOC := qca9531
785 DEVICE_VENDOR := GL.iNet
786 DEVICE_MODEL := GL-X750
787 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
788 IMAGE_SIZE := 16000k
789 endef
790 TARGET_DEVICES += glinet_gl-x750
791
792 define Device/iodata_etg3-r
793 SOC := ar9342
794 DEVICE_VENDOR := I-O DATA
795 DEVICE_MODEL := ETG3-R
796 IMAGE_SIZE := 7680k
797 DEVICE_PACKAGES := -iwinfo -kmod-ath9k -wpad-basic
798 endef
799 TARGET_DEVICES += iodata_etg3-r
800
801 define Device/iodata_wn-ac1167dgr
802 SOC := qca9557
803 DEVICE_VENDOR := I-O DATA
804 DEVICE_MODEL := WN-AC1167DGR
805 IMAGE_SIZE := 14656k
806 IMAGES += factory.bin
807 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
808 append-rootfs | pad-rootfs | check-size | \
809 senao-header -r 0x30a -p 0x61 -t 2
810 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
811 endef
812 TARGET_DEVICES += iodata_wn-ac1167dgr
813
814 define Device/iodata_wn-ac1600dgr
815 SOC := qca9557
816 DEVICE_VENDOR := I-O DATA
817 DEVICE_MODEL := WN-AC1600DGR
818 IMAGE_SIZE := 14656k
819 IMAGES += factory.bin
820 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
821 append-rootfs | pad-rootfs | check-size | \
822 senao-header -r 0x30a -p 0x60 -t 2 -v 200
823 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
824 endef
825 TARGET_DEVICES += iodata_wn-ac1600dgr
826
827 define Device/iodata_wn-ac1600dgr2
828 SOC := qca9557
829 DEVICE_VENDOR := I-O DATA
830 DEVICE_MODEL := WN-AC1600DGR2/DGR3
831 IMAGE_SIZE := 14656k
832 IMAGES += dgr2-dgr3-factory.bin
833 IMAGE/dgr2-dgr3-factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
834 append-rootfs | pad-rootfs | check-size | \
835 senao-header -r 0x30a -p 0x60 -t 2 -v 200
836 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
837 endef
838 TARGET_DEVICES += iodata_wn-ac1600dgr2
839
840 define Device/iodata_wn-ag300dgr
841 SOC := ar1022
842 DEVICE_VENDOR := I-O DATA
843 DEVICE_MODEL := WN-AG300DGR
844 IMAGE_SIZE := 15424k
845 IMAGES += factory.bin
846 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
847 append-rootfs | pad-rootfs | check-size | \
848 senao-header -r 0x30a -p 0x47 -t 2
849 DEVICE_PACKAGES := kmod-usb2
850 endef
851 TARGET_DEVICES += iodata_wn-ag300dgr
852
853 define Device/jjplus_ja76pf2
854 SOC := ar7161
855 DEVICE_VENDOR := jjPlus
856 DEVICE_MODEL := JA76PF2
857 DEVICE_PACKAGES += -kmod-ath9k -swconfig -wpad-mini -uboot-envtools fconfig
858 IMAGES := kernel.bin rootfs.bin
859 IMAGE/kernel.bin := append-kernel
860 IMAGE/rootfs.bin := append-rootfs | pad-rootfs
861 KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
862 KERNEL_INITRAMFS := kernel-bin | append-dtb
863 IMAGE_SIZE := 16000k
864 SUPPORTED_DEVICES += ja76pf2
865 endef
866 TARGET_DEVICES += jjplus_ja76pf2
867
868 define Device/librerouter_librerouter-v1
869 SOC := qca9558
870 DEVICE_VENDOR := Librerouter
871 DEVICE_MODEL := LibreRouter
872 DEVICE_VARIANT := v1
873 IMAGE_SIZE := 7936k
874 DEVICE_PACKAGES := kmod-usb2
875 endef
876 TARGET_DEVICES += librerouter_librerouter-v1
877
878 define Device/nec_wg1200cr
879 SOC := qca9563
880 DEVICE_VENDOR := NEC
881 DEVICE_MODEL := Aterm WG1200CR
882 IMAGE_SIZE := 7616k
883 SEAMA_MTDBLOCK := 6
884 SEAMA_SIGNATURE := wrgac72_necpf.2016gui_wg1200cr
885 IMAGES += factory.bin
886 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
887 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
888 append-metadata | check-size
889 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
890 seama-seal | nec-enc 9gsiy9nzep452pad | check-size
891 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
892 endef
893 TARGET_DEVICES += nec_wg1200cr
894
895 define Device/nec_wg800hp
896 SOC := qca9563
897 DEVICE_VENDOR := NEC
898 DEVICE_MODEL := Aterm WG800HP
899 IMAGE_SIZE := 7104k
900 IMAGES += factory.bin
901 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
902 append-rootfs | pad-rootfs | check-size | \
903 xor-image -p 6A57190601121E4C004C1E1201061957 -x | nec-fw LASER_ATERM
904 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct-full-htt
905 endef
906 TARGET_DEVICES += nec_wg800hp
907
908 define Device/netgear_ex6400_ex7300
909 SOC := qca9558
910 NETGEAR_KERNEL_MAGIC := 0x27051956
911 NETGEAR_BOARD_ID := EX7300series
912 NETGEAR_HW_ID := 29765104+16+0+128
913 IMAGE_SIZE := 15552k
914 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
915 netgear-rootfs | pad-rootfs
916 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca99x0-ct
917 $(Device/netgear_ath79)
918 endef
919
920 define Device/netgear_ex6400
921 $(Device/netgear_ex6400_ex7300)
922 DEVICE_MODEL := EX6400
923 endef
924 TARGET_DEVICES += netgear_ex6400
925
926 define Device/netgear_ex7300
927 $(Device/netgear_ex6400_ex7300)
928 DEVICE_MODEL := EX7300
929 endef
930 TARGET_DEVICES += netgear_ex7300
931
932 define Device/netgear_wndr3x00
933 SOC := ar7161
934 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | \
935 append-rootfs | pad-rootfs
936 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
937 kmod-leds-reset kmod-owl-loader
938 $(Device/netgear_ath79)
939 endef
940
941 define Device/netgear_wndr3700
942 $(Device/netgear_wndr3x00)
943 DEVICE_MODEL := WNDR3700
944 DEVICE_VARIANT := v1
945 NETGEAR_KERNEL_MAGIC := 0x33373030
946 NETGEAR_BOARD_ID := WNDR3700
947 IMAGE_SIZE := 7680k
948 IMAGES += factory-NA.img
949 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
950 check-size
951 SUPPORTED_DEVICES += wndr3700
952 endef
953 TARGET_DEVICES += netgear_wndr3700
954
955 define Device/netgear_wndr3700-v2
956 $(Device/netgear_wndr3x00)
957 DEVICE_MODEL := WNDR3700
958 DEVICE_VARIANT := v2
959 NETGEAR_KERNEL_MAGIC := 0x33373031
960 NETGEAR_BOARD_ID := WNDR3700v2
961 NETGEAR_HW_ID := 29763654+16+64
962 IMAGE_SIZE := 15872k
963 SUPPORTED_DEVICES += wndr3700 netgear,wndr3700v2
964 endef
965 TARGET_DEVICES += netgear_wndr3700-v2
966
967 define Device/netgear_wndr3800
968 $(Device/netgear_wndr3x00)
969 DEVICE_MODEL := WNDR3800
970 NETGEAR_KERNEL_MAGIC := 0x33373031
971 NETGEAR_BOARD_ID := WNDR3800
972 NETGEAR_HW_ID := 29763654+16+128
973 IMAGE_SIZE := 15872k
974 SUPPORTED_DEVICES += wndr3700
975 endef
976 TARGET_DEVICES += netgear_wndr3800
977
978 define Device/netgear_wndr3800ch
979 $(Device/netgear_wndr3x00)
980 DEVICE_MODEL := WNDR3800CH
981 NETGEAR_KERNEL_MAGIC := 0x33373031
982 NETGEAR_BOARD_ID := WNDR3800CH
983 NETGEAR_HW_ID := 29763654+16+128
984 IMAGE_SIZE := 15872k
985 SUPPORTED_DEVICES += wndr3700
986 endef
987 TARGET_DEVICES += netgear_wndr3800ch
988
989 define Device/netgear_wndrmac-v1
990 $(Device/netgear_wndr3x00)
991 DEVICE_MODEL := WNDRMAC
992 DEVICE_VARIANT := v1
993 NETGEAR_KERNEL_MAGIC := 0x33373031
994 NETGEAR_BOARD_ID := WNDRMAC
995 NETGEAR_HW_ID := 29763654+16+64
996 IMAGE_SIZE := 15872k
997 SUPPORTED_DEVICES += wndr3700
998 endef
999 TARGET_DEVICES += netgear_wndrmac-v1
1000
1001 define Device/netgear_wndrmac-v2
1002 $(Device/netgear_wndr3x00)
1003 DEVICE_MODEL := WNDRMAC
1004 DEVICE_VARIANT := v2
1005 NETGEAR_KERNEL_MAGIC := 0x33373031
1006 NETGEAR_BOARD_ID := WNDRMACv2
1007 NETGEAR_HW_ID := 29763654+16+128
1008 IMAGE_SIZE := 15872k
1009 SUPPORTED_DEVICES += wndr3700
1010 endef
1011 TARGET_DEVICES += netgear_wndrmac-v2
1012
1013 define Device/netgear_wnr2200_common
1014 SOC := ar7241
1015 DEVICE_MODEL := WNR2200
1016 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
1017 NETGEAR_KERNEL_MAGIC := 0x32323030
1018 NETGEAR_BOARD_ID := wnr2200
1019 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | \
1020 append-rootfs | pad-rootfs
1021 $(Device/netgear_ath79)
1022 endef
1023
1024 define Device/netgear_wnr2200-8m
1025 $(Device/netgear_wnr2200_common)
1026 DEVICE_VARIANT := 8M
1027 NETGEAR_HW_ID := 29763600+08+64
1028 IMAGE_SIZE := 7808k
1029 IMAGES += factory-NA.img
1030 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
1031 check-size
1032 SUPPORTED_DEVICES += wnr2200
1033 endef
1034 TARGET_DEVICES += netgear_wnr2200-8m
1035
1036 define Device/netgear_wnr2200-16m
1037 $(Device/netgear_wnr2200_common)
1038 DEVICE_VARIANT := 16M
1039 DEVICE_ALT0_VENDOR := NETGEAR
1040 DEVICE_ALT0_MODEL := WNR2200
1041 DEVICE_ALT0_VARIANT := CN/RU
1042 NETGEAR_HW_ID :=
1043 IMAGE_SIZE := 16000k
1044 endef
1045 TARGET_DEVICES += netgear_wnr2200-16m
1046
1047 define Device/ocedo_koala
1048 SOC := qca9558
1049 DEVICE_VENDOR := Ocedo
1050 DEVICE_MODEL := Koala
1051 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1052 SUPPORTED_DEVICES += koala
1053 IMAGE_SIZE := 7424k
1054 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1055 append-metadata | check-size
1056 endef
1057 TARGET_DEVICES += ocedo_koala
1058
1059 define Device/ocedo_raccoon
1060 SOC := ar9344
1061 DEVICE_VENDOR := Ocedo
1062 DEVICE_MODEL := Raccoon
1063 IMAGE_SIZE := 7424k
1064 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1065 append-metadata | check-size
1066 endef
1067 TARGET_DEVICES += ocedo_raccoon
1068
1069 define Device/ocedo_ursus
1070 SOC := qca9558
1071 DEVICE_VENDOR := Ocedo
1072 DEVICE_MODEL := Ursus
1073 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1074 IMAGE_SIZE := 7424k
1075 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1076 append-metadata | check-size
1077 endef
1078 TARGET_DEVICES += ocedo_ursus
1079
1080 define Device/openmesh_om5p-ac-v2
1081 SOC := qca9558
1082 DEVICE_VENDOR := OpenMesh
1083 DEVICE_MODEL := OM5P-AC
1084 DEVICE_VARIANT := v2
1085 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct om-watchdog
1086 IMAGE_SIZE := 7808k
1087 SUPPORTED_DEVICES += om5p-acv2
1088 endef
1089 TARGET_DEVICES += openmesh_om5p-ac-v2
1090
1091 define Device/pcs_cap324
1092 SOC := ar9344
1093 DEVICE_VENDOR := PowerCloud Systems
1094 DEVICE_MODEL := CAP324
1095 IMAGE_SIZE := 16000k
1096 SUPPORTED_DEVICES += cap324
1097 endef
1098 TARGET_DEVICES += pcs_cap324
1099
1100 define Device/pcs_cr3000
1101 SOC := ar9341
1102 DEVICE_VENDOR := PowerCloud Systems
1103 DEVICE_MODEL := CR3000
1104 IMAGE_SIZE := 7808k
1105 SUPPORTED_DEVICES += cr3000
1106 endef
1107 TARGET_DEVICES += pcs_cr3000
1108
1109 define Device/pcs_cr5000
1110 SOC := ar9344
1111 DEVICE_VENDOR := PowerCloud Systems
1112 DEVICE_MODEL := CR5000
1113 DEVICE_PACKAGES := kmod-usb2
1114 IMAGE_SIZE := 7808k
1115 SUPPORTED_DEVICES += cr5000
1116 endef
1117 TARGET_DEVICES += pcs_cr5000
1118
1119 define Device/phicomm_k2t
1120 SOC := qca9563
1121 DEVICE_VENDOR := Phicomm
1122 DEVICE_MODEL := K2T
1123 IMAGE_SIZE := 15744k
1124 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
1125 append-metadata | check-size
1126 DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
1127 endef
1128 TARGET_DEVICES += phicomm_k2t
1129
1130 define Device/pisen_ts-d084
1131 $(Device/tplink-8mlzma)
1132 SOC := ar9331
1133 DEVICE_VENDOR := PISEN
1134 DEVICE_MODEL := TS-D084
1135 DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2
1136 TPLINK_HWID := 0x07030101
1137 endef
1138 TARGET_DEVICES += pisen_ts-d084
1139
1140 define Device/pisen_wmb001n
1141 SOC := ar9341
1142 DEVICE_VENDOR := PISEN
1143 DEVICE_MODEL := WMB001N
1144 IMAGE_SIZE := 14080k
1145 DEVICE_PACKAGES := kmod-i2c-gpio kmod-usb2
1146 LOADER_TYPE := bin
1147 LOADER_FLASH_OFFS := 0x20000
1148 COMPILE := loader-$(1).bin loader-$(1).uImage
1149 COMPILE/loader-$(1).bin := loader-okli-compile
1150 COMPILE/loader-$(1).uImage := append-loader-okli $(1) | pad-to 64k | lzma | \
1151 uImage lzma
1152 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
1153 IMAGES += factory.bin
1154 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pisen_wmb001n-factory $(1)
1155 endef
1156 TARGET_DEVICES += pisen_wmb001n
1157
1158 define Device/pisen_wmm003n
1159 $(Device/tplink-8mlzma)
1160 SOC := ar9331
1161 DEVICE_VENDOR := PISEN
1162 DEVICE_MODEL := Cloud Easy Power (WMM003N)
1163 DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2
1164 TPLINK_HWID := 0x07030101
1165 endef
1166 TARGET_DEVICES += pisen_wmm003n
1167
1168 define Device/qihoo_c301
1169 $(Device/seama)
1170 SOC := ar9344
1171 DEVICE_VENDOR := Qihoo
1172 DEVICE_MODEL := C301
1173 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct \
1174 uboot-envtools
1175 IMAGE_SIZE := 15744k
1176 SEAMA_SIGNATURE := wrgac26_qihoo360_360rg
1177 SUPPORTED_DEVICES += qihoo-c301
1178 endef
1179 TARGET_DEVICES += qihoo_c301
1180
1181 define Device/rosinson_wr818
1182 SOC := qca9563
1183 DEVICE_VENDOR := Rosinson
1184 DEVICE_MODEL := WR818
1185 IMAGE_SIZE := 15872k
1186 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
1187 endef
1188 TARGET_DEVICES += rosinson_wr818
1189
1190 define Device/siemens_ws-ap3610
1191 SOC := ar7161
1192 DEVICE_VENDOR := Siemens
1193 DEVICE_MODEL := WS-AP3610
1194 IMAGE_SIZE := 14336k
1195 BLOCKSIZE := 256k
1196 LOADER_TYPE := bin
1197 LOADER_FLASH_OFFS := 0x82000
1198 COMPILE := loader-$(1).bin
1199 COMPILE/loader-$(1).bin := loader-okli-compile
1200 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128 | uImage none
1201 KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
1202 endef
1203 TARGET_DEVICES += siemens_ws-ap3610
1204
1205 define Device/sitecom_wlr-7100
1206 SOC := ar1022
1207 DEVICE_VENDOR := Sitecom
1208 DEVICE_MODEL := WLR-7100
1209 DEVICE_VARIANT := v1 002
1210 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct-smallbuffers kmod-usb2
1211 IMAGES += factory.dlf
1212 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1213 append-rootfs | pad-rootfs | check-size | \
1214 senao-header -r 0x222 -p 0x53 -t 2
1215 IMAGE_SIZE := 7488k
1216 endef
1217 TARGET_DEVICES += sitecom_wlr-7100
1218
1219 define Device/sitecom_wlr-8100
1220 SOC := qca9558
1221 DEVICE_VENDOR := Sitecom
1222 DEVICE_MODEL := WLR-8100
1223 DEVICE_ALT0_VENDOR := Sitecom
1224 DEVICE_ALT0_MODEL := X8 AC1750
1225 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2 kmod-usb3
1226 SUPPORTED_DEVICES += wlr8100
1227 IMAGES += factory.dlf
1228 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1229 append-rootfs | pad-rootfs | check-size | \
1230 senao-header -r 0x222 -p 0x56 -t 2
1231 IMAGE_SIZE := 15424k
1232 endef
1233 TARGET_DEVICES += sitecom_wlr-8100
1234
1235 define Device/teltonika_rut955
1236 SOC := ar9344
1237 DEVICE_VENDOR := Teltonika
1238 DEVICE_MODEL := RUT955
1239 DEVICE_PACKAGES := kmod-usb2 kmod-usb-acm kmod-usb-net-qmi-wwan \
1240 kmod-usb-serial-option kmod-hwmon-mcp3021 uqmi -uboot-envtools
1241 IMAGE_SIZE := 15552k
1242 TPLINK_HWID := 0x35000001
1243 TPLINK_HWREV := 0x1
1244 TPLINK_HEADER_VERSION := 1
1245 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header
1246 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
1247 IMAGES += factory.bin
1248 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
1249 pad-rootfs | teltonika-fw-fake-checksum | append-string master |\
1250 append-md5sum-bin | check-size
1251 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
1252 append-rootfs | pad-rootfs | append-metadata |\
1253 check-size
1254 endef
1255 TARGET_DEVICES += teltonika_rut955
1256
1257 define Device/teltonika_rut955-h7v3c0
1258 $(Device/teltonika_rut955)
1259 DEVICE_VARIANT := H7V3C0
1260 endef
1261 TARGET_DEVICES += teltonika_rut955-h7v3c0
1262
1263 define Device/trendnet_tew-823dru
1264 SOC := qca9558
1265 DEVICE_VENDOR := Trendnet
1266 DEVICE_MODEL := TEW-823DRU
1267 DEVICE_VARIANT := v1.0R
1268 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1269 SUPPORTED_DEVICES += tew-823dru
1270 IMAGE_SIZE := 15296k
1271 IMAGES := factory.bin sysupgrade.bin
1272 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
1273 pad-rootfs
1274 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
1275 append-string 00AP135AR9558-RT-131129-00 | check-size
1276 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | \
1277 check-size
1278 endef
1279 TARGET_DEVICES += trendnet_tew-823dru
1280
1281 define Device/wd_mynet-n750
1282 $(Device/seama)
1283 SOC := ar9344
1284 DEVICE_VENDOR := Western Digital
1285 DEVICE_MODEL := My Net N750
1286 IMAGE_SIZE := 15872k
1287 DEVICE_PACKAGES := kmod-usb2
1288 SEAMA_SIGNATURE := wrgnd13_wd_av
1289 SUPPORTED_DEVICES += mynet-n750
1290 endef
1291 TARGET_DEVICES += wd_mynet-n750
1292
1293 define Device/wd_mynet-wifi-rangeextender
1294 SOC := ar9344
1295 DEVICE_VENDOR := Western Digital
1296 DEVICE_MODEL := My Net Wi-Fi Range Extender
1297 DEVICE_PACKAGES := rssileds nvram -swconfig
1298 IMAGE_SIZE := 7808k
1299 ADDPATTERN_ID := mynet-rext
1300 ADDPATTERN_VERSION := 1.00.01
1301 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
1302 addpattern | append-metadata
1303 SUPPORTED_DEVICES += mynet-rext
1304 endef
1305 TARGET_DEVICES += wd_mynet-wifi-rangeextender
1306
1307 define Device/winchannel_wb2000
1308 SOC := ar9344
1309 DEVICE_VENDOR := Winchannel
1310 DEVICE_MODEL := WB2000
1311 IMAGE_SIZE := 15872k
1312 DEVICE_PACKAGES := kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 \
1313 kmod-usb-ledtrig-usbport
1314 endef
1315 TARGET_DEVICES += winchannel_wb2000
1316
1317 define Device/xiaomi_mi-router-4q
1318 SOC := qca9561
1319 DEVICE_VENDOR := Xiaomi
1320 DEVICE_MODEL := Mi Router 4Q
1321 IMAGE_SIZE := 14336k
1322 endef
1323 TARGET_DEVICES += xiaomi_mi-router-4q
1324
1325 define Device/yuncore_a770
1326 SOC := qca9531
1327 DEVICE_VENDOR := YunCore
1328 DEVICE_MODEL := A770
1329 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
1330 IMAGE_SIZE := 16000k
1331 IMAGES += tftp.bin
1332 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1333 endef
1334 TARGET_DEVICES += yuncore_a770
1335
1336 define Device/yuncore_a782
1337 SOC := qca9563
1338 DEVICE_VENDOR := YunCore
1339 DEVICE_MODEL := A782
1340 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1341 IMAGE_SIZE := 16000k
1342 IMAGES += tftp.bin
1343 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1344 endef
1345 TARGET_DEVICES += yuncore_a782
1346
1347 define Device/yuncore_xd4200
1348 SOC := qca9563
1349 DEVICE_VENDOR := YunCore
1350 DEVICE_MODEL := XD4200
1351 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1352 IMAGE_SIZE := 16000k
1353 IMAGES += tftp.bin
1354 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
1355 endef
1356 TARGET_DEVICES += yuncore_xd4200
1357
1358 define Device/zbtlink_zbt-wd323
1359 SOC := ar9344
1360 DEVICE_VENDOR := ZBT
1361 DEVICE_MODEL := WD323
1362 IMAGE_SIZE := 16000k
1363 DEVICE_PACKAGES := kmod-usb2 kmod-i2c-gpio kmod-rtc-pcf8563 \
1364 kmod-usb-serial kmod-usb-serial-cp210x uqmi
1365 endef
1366 TARGET_DEVICES += zbtlink_zbt-wd323