1 include ./common-buffalo.mk
2 include ./common-netgear.mk
4 DEVICE_VARS += ADDPATTERN_ID ADDPATTERN_VERSION
5 DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
6 DEVICE_VARS += KERNEL_INITRAMFS_PREFIX
8 define Build/cybertan-trx
9 @echo -n '' > $@-empty.bin
10 -$(STAGING_DIR_HOST)/bin/trx -o $@.new \
11 -f $(IMAGE_KERNEL) -F $@-empty.bin \
12 -x 32 -a 0x10000 -x -32 -f $@
17 define Build/addpattern
18 -$(STAGING_DIR_HOST)/bin/addpattern -B $(ADDPATTERN_ID) \
19 -v v$(ADDPATTERN_VERSION) -i $@ -o $@.new
23 define Build/add-elecom-factory-initramfs
24 $(eval edimax_model=$(word 1,$(1)))
25 $(eval product=$(word 2,$(1)))
27 $(STAGING_DIR_HOST)/bin/mkedimaximg \
28 -b -s CSYS -m $(edimax_model) \
29 -f 0x70000 -S 0x01100000 \
33 echo -n -e "ELECOM\x00\x00$(product)" | dd bs=40 count=1 conv=sync; \
34 echo -n "0.00" | dd bs=16 count=1 conv=sync; \
38 if [ "$$(stat -c%s $@.factory.new)" -le $$(($(subst k,* 1024,$(subst m, * 1024k,$(IMAGE_SIZE))))) ]; then \
39 mv $@.factory.new $(BIN_DIR)/$(KERNEL_INITRAMFS_PREFIX)-factory.bin; \
41 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
46 $(STAGING_DIR_HOST)/bin/nec-enc \
47 -i $@ -o $@.new -k $(1)
52 ( stat -c%s $@ | tr -d "\n" | dd bs=16 count=1 conv=sync; ) >> $@
54 echo -n -e "$(1)" | dd bs=16 count=1 conv=sync; \
55 echo -n "0.0.00" | dd bs=16 count=1 conv=sync; \
62 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
63 KERNEL_INITRAMFS := $$(KERNEL) | seama
68 # - 28 bytes seama_header
69 # - 36 bytes of META data (4-bytes aligned)
70 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
71 IMAGE/sysupgrade.bin := \
72 $$(IMAGE/default) | seama | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
73 IMAGE/factory.bin := \
74 $$(IMAGE/default) | pad-rootfs -x 64 | seama | seama-seal | check-size $$$$(IMAGE_SIZE)
78 define Device/8dev_carambola2
80 DEVICE_VENDOR := 8devices
81 DEVICE_MODEL := Carambola2
82 DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2
84 SUPPORTED_DEVICES += carambola2
86 TARGET_DEVICES += 8dev_carambola2
88 define Device/adtran_bsap1880
90 DEVICE_VENDOR := Adtran/Bluesocket
91 DEVICE_PACKAGES += -swconfig -uboot-envtools fconfig
92 KERNEL := kernel-bin | append-dtb | lzma
93 KERNEL_INITRAMFS := kernel-bin | append-dtb
95 IMAGES += kernel.bin rootfs.bin
96 IMAGE/kernel.bin := append-kernel | pad-to $$$$(BLOCKSIZE)
97 IMAGE/rootfs.bin := append-rootfs | pad-rootfs
98 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | append-metadata | check-size $$$$(IMAGE_SIZE)
101 define Device/adtran_bsap1800-v2
102 $(Device/adtran_bsap1880)
103 DEVICE_MODEL := BSAP-1800
106 TARGET_DEVICES += adtran_bsap1800-v2
108 define Device/adtran_bsap1840
109 $(Device/adtran_bsap1880)
110 DEVICE_MODEL := BSAP-1840
112 TARGET_DEVICES += adtran_bsap1840
114 define Device/alfa-network_ap121f
116 DEVICE_VENDOR := ALFA Network
117 DEVICE_MODEL := AP121F
118 DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2 kmod-usb-storage -swconfig
120 SUPPORTED_DEVICES += ap121f
122 TARGET_DEVICES += alfa-network_ap121f
124 define Device/aruba_ap-105
126 DEVICE_VENDOR := Aruba
127 DEVICE_MODEL := AP-105
129 DEVICE_PACKAGES := kmod-i2c-core kmod-i2c-gpio kmod-tpm-i2c-atmel
131 TARGET_DEVICES += aruba_ap-105
133 define Device/avm_fritz300e
136 DEVICE_MODEL := FRITZ!WLAN Repeater 300E
137 KERNEL := kernel-bin | append-dtb | lzma | eva-image
138 KERNEL_INITRAMFS := $$(KERNEL)
140 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
141 append-squashfs-fakeroot-be | pad-to 256 | \
142 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
143 DEVICE_PACKAGES := fritz-tffs rssileds -swconfig
145 TARGET_DEVICES += avm_fritz300e
147 define Device/avm_fritz4020
150 DEVICE_MODEL := FRITZ!Box 4020
152 KERNEL := kernel-bin | append-dtb | lzma | eva-image
153 KERNEL_INITRAMFS := $$(KERNEL)
154 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
155 append-squashfs-fakeroot-be | pad-to 256 | \
156 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
157 DEVICE_PACKAGES := fritz-tffs
158 SUPPORTED_DEVICES += fritz4020
160 TARGET_DEVICES += avm_fritz4020
162 define Device/buffalo_bhr-4grv
164 DEVICE_VENDOR := Buffalo
165 DEVICE_MODEL := BHR-4GRV
166 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
168 IMAGES += factory.bin tftp.bin
169 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
170 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc BHR-4GRV 1.99 | buffalo-tag BHR-4GRV 3
171 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
172 SUPPORTED_DEVICES += wzr-hp-g450h
174 TARGET_DEVICES += buffalo_bhr-4grv
176 define Device/buffalo_bhr-4grv2
178 DEVICE_VENDOR := Buffalo
179 DEVICE_MODEL := BHR-4GRV2
182 TARGET_DEVICES += buffalo_bhr-4grv2
184 define Device/buffalo_wzr-hp-ag300h
186 DEVICE_VENDOR := Buffalo
187 DEVICE_MODEL := WZR-HP-AG300H
189 IMAGES += factory.bin tftp.bin
190 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
191 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-AG300H 1.99 | buffalo-tag WZR-HP-AG300H 3
192 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
193 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
194 SUPPORTED_DEVICES += wzr-hp-ag300h
196 TARGET_DEVICES += buffalo_wzr-hp-ag300h
198 define Device/buffalo_wzr-hp-g302h-a1a0
200 DEVICE_VENDOR := Buffalo
201 DEVICE_MODEL := WZR-HP-G302H
202 DEVICE_VARIANT := A1A0
203 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
205 IMAGES += factory.bin tftp.bin
206 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
207 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G302H 1.99 | buffalo-tag WZR-HP-G302H 4
208 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
209 SUPPORTED_DEVICES += wzr-hp-g300nh2
211 TARGET_DEVICES += buffalo_wzr-hp-g302h-a1a0
213 define Device/buffalo_wzr-hp-g450h
215 DEVICE_VENDOR := Buffalo
216 DEVICE_MODEL := WZR-HP-G450H/WZR-450HP
217 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
219 IMAGES += factory.bin tftp.bin
220 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
221 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G450H 1.99 | buffalo-tag WZR-HP-G450H 3
222 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
223 SUPPORTED_DEVICES += wzr-hp-g450h
225 TARGET_DEVICES += buffalo_wzr-hp-g450h
227 define Device/comfast_cf-e110n-v2
229 DEVICE_VENDOR := COMFAST
230 DEVICE_MODEL := CF-E110N
232 DEVICE_PACKAGES := rssileds kmod-leds-gpio -swconfig -uboot-envtools
235 TARGET_DEVICES += comfast_cf-e110n-v2
237 define Device/comfast_cf-e120a-v3
239 DEVICE_VENDOR := COMFAST
240 DEVICE_MODEL := CF-E120A
242 DEVICE_PACKAGES := rssileds kmod-leds-gpio -uboot-envtools
245 TARGET_DEVICES += comfast_cf-e120a-v3
247 define Device/comfast_cf-e5
249 DEVICE_VENDOR := COMFAST
250 DEVICE_MODEL := CF-E5/E7
251 DEVICE_PACKAGES := rssileds kmod-leds-gpio kmod-usb-core kmod-usb2 kmod-usb-net \
252 kmod-usb-net-qmi-wwan -swconfig -uboot-envtools
255 TARGET_DEVICES += comfast_cf-e5
257 define Device/devolo_dvl1200e
259 DEVICE_VENDOR := devolo
260 DEVICE_MODEL := WiFi pro 1200e
261 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
264 TARGET_DEVICES += devolo_dvl1200e
266 define Device/devolo_dvl1200i
268 DEVICE_VENDOR := devolo
269 DEVICE_MODEL := WiFi pro 1200i
270 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
273 TARGET_DEVICES += devolo_dvl1200i
275 define Device/devolo_dvl1750c
277 DEVICE_VENDOR := devolo
278 DEVICE_MODEL := WiFi pro 1750c
279 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
282 TARGET_DEVICES += devolo_dvl1750c
284 define Device/devolo_dvl1750e
286 DEVICE_VENDOR := devolo
287 DEVICE_MODEL := WiFi pro 1750e
288 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
291 TARGET_DEVICES += devolo_dvl1750e
293 define Device/devolo_dvl1750i
295 DEVICE_VENDOR := devolo
296 DEVICE_MODEL := WiFi pro 1750i
297 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
300 TARGET_DEVICES += devolo_dvl1750i
302 define Device/devolo_dvl1750x
304 DEVICE_VENDOR := devolo
305 DEVICE_MODEL := WiFi pro 1750x
306 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
309 TARGET_DEVICES += devolo_dvl1750x
311 define Device/dlink_dir-825-b1
313 DEVICE_VENDOR := D-Link
314 DEVICE_MODEL := DIR-825
317 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
318 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
319 SUPPORTED_DEVICES += dir-825-b1
321 TARGET_DEVICES += dlink_dir-825-b1
323 define Device/dlink_dir-825-c1
325 DEVICE_VENDOR := D-Link
326 DEVICE_MODEL := DIR-825
328 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
329 SUPPORTED_DEVICES += dir-825-c1
331 IMAGES := factory.bin sysupgrade.bin
332 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
333 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
334 append-string 00DB120AR9344-RT-101214-00 | check-size $$$$(IMAGE_SIZE)
335 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
337 TARGET_DEVICES += dlink_dir-825-c1
339 define Device/dlink_dir-835-a1
341 DEVICE_VENDOR := D-Link
342 DEVICE_MODEL := DIR-835
344 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-leds-reset kmod-owl-loader
345 SUPPORTED_DEVICES += dir-835-a1
347 IMAGES := factory.bin sysupgrade.bin
348 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
349 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
350 append-string 00DB120AR9344-RT-101214-00 | check-size $$$$(IMAGE_SIZE)
351 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
353 TARGET_DEVICES += dlink_dir-835-a1
355 define Device/dlink_dir-859-a1
358 DEVICE_VENDOR := D-Link
359 DEVICE_MODEL := DIR-859
362 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
363 SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
364 SUPPORTED_DEVICES += dir-859-a1
366 TARGET_DEVICES += dlink_dir-859-a1
368 define Device/dlink_dir-842-c2
370 DEVICE_VENDOR := D-Link
371 DEVICE_MODEL := DIR-842
373 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
374 KERNEL_INITRAMFS := $$(KERNEL) | seama
375 IMAGES += factory.bin
377 SEAMA_SIGNATURE := wrgac65_dlink.2015_dir842
379 # - 28 bytes seama_header
380 # - 36 bytes of META data (4-bytes aligned)
381 IMAGE/default := append-kernel | uImage lzma | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
382 IMAGE/sysupgrade.bin := \
383 $$(IMAGE/default) | seama | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
384 IMAGE/factory.bin := \
385 $$(IMAGE/default) | pad-rootfs -x 64 | seama | seama-seal | check-size $$$$(IMAGE_SIZE)
387 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
389 TARGET_DEVICES += dlink_dir-842-c2
391 define Device/elecom_wrc-1750ghbk2-i
393 DEVICE_VENDOR := ELECOM
394 DEVICE_MODEL := WRC-1750GHBK2-I/C
396 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
397 add-elecom-factory-initramfs RN68 WRC-1750GHBK2
398 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
400 TARGET_DEVICES += elecom_wrc-1750ghbk2-i
402 define Device/elecom_wrc-300ghbk2-i
404 DEVICE_VENDOR := ELECOM
405 DEVICE_MODEL := WRC-300GHBK2-I
407 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
408 add-elecom-factory-initramfs RN51 WRC-300GHBK2-I
410 TARGET_DEVICES += elecom_wrc-300ghbk2-i
412 define Device/embeddedwireless_dorin
414 DEVICE_VENDOR := Embedded Wireless
415 DEVICE_MODEL := Dorin
416 DEVICE_PACKAGES := kmod-usb-chipidea2
419 TARGET_DEVICES += embeddedwireless_dorin
421 define Device/engenius_ecb1750
423 DEVICE_VENDOR := EnGenius
424 DEVICE_MODEL := ECB1750
425 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
427 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
428 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
429 senao-header -r 0x101 -p 0x6d -t 2
430 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
432 TARGET_DEVICES += engenius_ecb1750
434 define Device/engenius_epg5000
436 DEVICE_VENDOR := EnGenius
437 DEVICE_MODEL := EPG5000
438 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
440 IMAGES += factory.dlf
441 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
442 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
443 senao-header -r 0x101 -p 0x71 -t 2
444 SUPPORTED_DEVICES += epg5000
446 TARGET_DEVICES += engenius_epg5000
448 define Device/engenius_ews511ap
450 DEVICE_VENDOR := EnGenius
451 DEVICE_MODEL := EWS511AP
452 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
455 TARGET_DEVICES += engenius_ews511ap
457 define Device/etactica_eg200
459 DEVICE_VENDOR := eTactica
460 DEVICE_MODEL := EG200
461 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
462 kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
464 SUPPORTED_DEVICES += rme-eg200
466 TARGET_DEVICES += etactica_eg200
468 define Device/glinet_gl-ar150
470 DEVICE_VENDOR := GL.iNet
471 DEVICE_MODEL := GL-AR150
472 DEVICE_PACKAGES := kmod-usb-chipidea2
474 SUPPORTED_DEVICES += gl-ar150
476 TARGET_DEVICES += glinet_gl-ar150
478 define Device/glinet_gl-ar300m-common-nor
480 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
482 SUPPORTED_DEVICES += gl-ar300m
485 define Device/glinet_gl-ar300m-lite
486 $(Device/glinet_gl-ar300m-common-nor)
487 DEVICE_VENDOR := GL.iNet
488 DEVICE_MODEL := GL-AR300M-Lite
490 TARGET_DEVICES += glinet_gl-ar300m-lite
492 define Device/glinet_gl-ar300m-nor
493 $(Device/glinet_gl-ar300m-common-nor)
494 DEVICE_VENDOR := GL.iNet
495 DEVICE_MODEL := GL-AR300M
497 TARGET_DEVICES += glinet_gl-ar300m-nor
499 define Device/glinet_gl-ar750s
501 DEVICE_VENDOR := GL.iNet
502 DEVICE_MODEL := GL-AR750S
503 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct block-mount
505 SUPPORTED_DEVICES += gl-ar750s
507 TARGET_DEVICES += glinet_gl-ar750s
509 define Device/glinet_gl-x750
511 DEVICE_VENDOR := GL.iNet
512 DEVICE_MODEL := GL-X750
513 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
516 TARGET_DEVICES += glinet_gl-x750
518 define Device/iodata_etg3-r
520 DEVICE_VENDOR := I-O DATA
521 DEVICE_MODEL := ETG3-R
523 DEVICE_PACKAGES := -iwinfo -kmod-ath9k -wpad-basic
525 TARGET_DEVICES += iodata_etg3-r
527 define Device/iodata_wn-ac1167dgr
529 DEVICE_VENDOR := I-O DATA
530 DEVICE_MODEL := WN-AC1167DGR
532 IMAGES += factory.bin
533 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
534 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
535 senao-header -r 0x30a -p 0x61 -t 2
536 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
538 TARGET_DEVICES += iodata_wn-ac1167dgr
540 define Device/iodata_wn-ac1600dgr
542 DEVICE_VENDOR := I-O DATA
543 DEVICE_MODEL := WN-AC1600DGR
545 IMAGES += factory.bin
546 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
547 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
548 senao-header -r 0x30a -p 0x60 -t 2 -v 200
549 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
551 TARGET_DEVICES += iodata_wn-ac1600dgr
553 define Device/iodata_wn-ac1600dgr2
555 DEVICE_VENDOR := I-O DATA
556 DEVICE_MODEL := WN-AC1600DGR2/DGR3
558 IMAGES += dgr2-dgr3-factory.bin
559 IMAGE/dgr2-dgr3-factory.bin := \
560 append-kernel | pad-to $$$$(BLOCKSIZE) | \
561 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
562 senao-header -r 0x30a -p 0x60 -t 2 -v 200
563 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
565 TARGET_DEVICES += iodata_wn-ac1600dgr2
567 define Device/iodata_wn-ag300dgr
569 DEVICE_VENDOR := I-O DATA
570 DEVICE_MODEL := WN-AG300DGR
572 IMAGES += factory.bin
573 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
574 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
575 senao-header -r 0x30a -p 0x47 -t 2
576 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
578 TARGET_DEVICES += iodata_wn-ag300dgr
580 define Device/jjplus_ja76pf2
582 DEVICE_VENDOR := jjPlus
583 DEVICE_MODEL := JA76PF2
584 DEVICE_PACKAGES += -kmod-ath9k -swconfig -wpad-mini -uboot-envtools fconfig
585 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE)
586 # IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
587 KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
588 KERNEL_INITRAMFS := kernel-bin | append-dtb
591 TARGET_DEVICES += jjplus_ja76pf2
593 define Device/librerouter_librerouter-v1
595 DEVICE_VENDOR := Librerouter
596 DEVICE_MODEL := LibreRouter
599 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
601 TARGET_DEVICES += librerouter_librerouter-v1
603 define Device/nec_wg1200cr
606 DEVICE_MODEL := Aterm WG1200CR
609 SEAMA_SIGNATURE := wrgac72_necpf.2016gui_wg1200cr
610 IMAGES += factory.bin
612 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
613 IMAGE/sysupgrade.bin := \
614 $$(IMAGE/default) | seama | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
615 IMAGE/factory.bin := \
616 $$(IMAGE/default) | pad-rootfs -x 64 | seama | seama-seal | nec-enc 9gsiy9nzep452pad | \
617 check-size $$$$(IMAGE_SIZE)
618 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
620 TARGET_DEVICES += nec_wg1200cr
622 define Device/nec_wg800hp
625 DEVICE_MODEL := Aterm WG800HP
627 IMAGES += factory.bin
628 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
629 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
630 xor-image -p 6A57190601121E4C004C1E1201061957 -x | \
632 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct-htt
634 TARGET_DEVICES += nec_wg800hp
636 define Device/ocedo_koala
638 DEVICE_VENDOR := Ocedo
639 DEVICE_MODEL := Koala
640 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
641 SUPPORTED_DEVICES += koala
643 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
645 TARGET_DEVICES += ocedo_koala
647 define Device/ocedo_raccoon
649 DEVICE_VENDOR := Ocedo
650 DEVICE_MODEL := Raccoon
652 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
654 TARGET_DEVICES += ocedo_raccoon
656 define Device/ocedo_ursus
658 DEVICE_VENDOR := Ocedo
659 DEVICE_MODEL := Ursus
660 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
662 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
664 TARGET_DEVICES += ocedo_ursus
666 define Device/openmesh_om5p-ac-v2
668 DEVICE_VENDOR := OpenMesh
669 DEVICE_MODEL := OM5P-AC
671 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct om-watchdog
673 SUPPORTED_DEVICES += om5p-acv2
675 TARGET_DEVICES += openmesh_om5p-ac-v2
677 define Device/pcs_cap324
679 DEVICE_VENDOR := PowerCloud Systems
680 DEVICE_MODEL := CAP324
682 SUPPORTED_DEVICES += cap324
684 TARGET_DEVICES += pcs_cap324
686 define Device/pcs_cr3000
688 DEVICE_VENDOR := PowerCloud Systems
689 DEVICE_MODEL := CR3000
691 SUPPORTED_DEVICES += cr3000
693 TARGET_DEVICES += pcs_cr3000
695 define Device/pcs_cr5000
697 DEVICE_VENDOR := PowerCloud Systems
698 DEVICE_MODEL := CR5000
699 DEVICE_PACKAGES := kmod-usb2 kmod-usb-core
701 SUPPORTED_DEVICES += cr5000
703 TARGET_DEVICES += pcs_cr5000
705 define Device/netgear_wndr3x00
707 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
708 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
709 $(Device/netgear_ath79)
712 define Device/netgear_ex7300_ex6400
714 NETGEAR_KERNEL_MAGIC := 0x27051956
715 NETGEAR_BOARD_ID := EX7300series
716 NETGEAR_HW_ID := 29765104+16+0+128
718 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | netgear-rootfs | pad-rootfs
719 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca99x0-ct
720 $(Device/netgear_ath79)
723 define Device/netgear_ex6400
724 $(Device/netgear_ex7300_ex6400)
725 DEVICE_MODEL := EX6400
727 TARGET_DEVICES += netgear_ex6400
729 define Device/netgear_ex7300
730 $(Device/netgear_ex7300_ex6400)
731 DEVICE_MODEL := EX7300
733 TARGET_DEVICES += netgear_ex7300
735 define Device/netgear_wndr3700
736 $(Device/netgear_wndr3x00)
737 DEVICE_MODEL := WNDR3700
739 NETGEAR_KERNEL_MAGIC := 0x33373030
740 NETGEAR_BOARD_ID := WNDR3700
742 IMAGES += factory-NA.img
743 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | check-size $$$$(IMAGE_SIZE)
744 SUPPORTED_DEVICES += wndr3700
746 TARGET_DEVICES += netgear_wndr3700
748 define Device/netgear_wndr3700v2
749 $(Device/netgear_wndr3x00)
750 DEVICE_MODEL := WNDR3700
752 NETGEAR_KERNEL_MAGIC := 0x33373031
753 NETGEAR_BOARD_ID := WNDR3700v2
754 NETGEAR_HW_ID := 29763654+16+64
756 SUPPORTED_DEVICES += wndr3700v2
758 TARGET_DEVICES += netgear_wndr3700v2
760 define Device/pisen_wmm003n
761 $(Device/tplink-8mlzma)
763 DEVICE_VENDOR := PISEN
764 DEVICE_MODEL := Cloud Easy Power (WMM003N)
765 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-chipidea2
766 TPLINK_HWID := 0x07030101
768 TARGET_DEVICES += pisen_wmm003n
770 define Device/netgear_wndr3800
771 $(Device/netgear_wndr3x00)
772 DEVICE_MODEL := WNDR3800
773 NETGEAR_KERNEL_MAGIC := 0x33373031
774 NETGEAR_BOARD_ID := WNDR3800
775 NETGEAR_HW_ID := 29763654+16+128
777 SUPPORTED_DEVICES += wndr3800
779 TARGET_DEVICES += netgear_wndr3800
781 define Device/phicomm_k2t
783 DEVICE_VENDOR := Phicomm
786 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
787 DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct ath10k-firmware-qca9888-ct
789 TARGET_DEVICES += phicomm_k2t
791 define Device/qihoo_c301
794 DEVICE_VENDOR := Qihoo
796 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct uboot-envtools
798 SEAMA_SIGNATURE := wrgac26_qihoo360_360rg
799 SUPPORTED_DEVICES += qihoo-c301
801 TARGET_DEVICES += qihoo_c301
803 define Device/rosinson_wr818
805 DEVICE_VENDOR := Rosinson
806 DEVICE_MODEL := WR818
808 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
810 TARGET_DEVICES += rosinson_wr818
812 define Device/trendnet_tew-823dru
814 DEVICE_VENDOR := Trendnet
815 DEVICE_MODEL := TEW-823DRU
816 DEVICE_VARIANT := v1.0R
817 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
818 SUPPORTED_DEVICES += tew-823dru
820 IMAGES := factory.bin sysupgrade.bin
821 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
822 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
823 append-string 00AP135AR9558-RT-131129-00 | check-size $$$$(IMAGE_SIZE)
824 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
826 TARGET_DEVICES += trendnet_tew-823dru
828 define Device/wd_mynet-n750
831 DEVICE_VENDOR := Western Digital
832 DEVICE_MODEL := My Net N750
834 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
835 SEAMA_SIGNATURE := wrgnd13_wd_av
836 SUPPORTED_DEVICES += mynet-n750
838 TARGET_DEVICES += wd_mynet-n750
840 define Device/wd_mynet-wifi-rangeextender
842 DEVICE_VENDOR := Western Digital
843 DEVICE_MODEL := My Net Wi-Fi Range Extender
844 DEVICE_PACKAGES := rssileds nvram -swconfig
846 ADDPATTERN_ID := mynet-rext
847 ADDPATTERN_VERSION := 1.00.01
848 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
849 addpattern | append-metadata
850 SUPPORTED_DEVICES += mynet-rext
852 TARGET_DEVICES += wd_mynet-wifi-rangeextender
854 define Device/winchannel_wb2000
856 DEVICE_VENDOR := Winchannel
857 DEVICE_MODEL := WB2000
859 DEVICE_PACKAGES := kmod-i2c-core kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 kmod-usb-ledtrig-usbport
861 TARGET_DEVICES += winchannel_wb2000
863 define Device/xiaomi_mi-router-4q
865 DEVICE_VENDOR := Xiaomi
866 DEVICE_MODEL := Mi Router 4Q
869 TARGET_DEVICES += xiaomi_mi-router-4q
871 define Device/yuncore_a770
873 DEVICE_VENDOR := YunCore
875 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
878 TARGET_DEVICES += yuncore_a770
880 define Device/zbtlink_zbt-wd323
883 DEVICE_MODEL := WD323
885 DEVICE_PACKAGES := kmod-usb2 kmod-i2c-core kmod-i2c-gpio kmod-rtc-pcf8563 \
886 kmod-usb-serial kmod-usb-serial-cp210x uqmi
888 TARGET_DEVICES += zbtlink_zbt-wd323