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