459d595a425fc906c1f5767f08a53231f4c0e4c0
[openwrt/openwrt.git] / target / linux / ath79 / image / generic.mk
1 include ./common-buffalo.mk
2 include ./common-netgear.mk
3 include ./common-senao.mk
4 include ./common-tp-link.mk
5 include ./common-yuncore.mk
6 include ./common-ubnt.mk
7
8 DEVICE_VARS += ADDPATTERN_ID ADDPATTERN_VERSION
9 DEVICE_VARS += KERNEL_INITRAMFS_PREFIX DAP_SIGNATURE
10 DEVICE_VARS += EDIMAX_HEADER_MAGIC EDIMAX_HEADER_MODEL
11 DEVICE_VARS += ELECOM_HWID
12 DEVICE_VARS += MOXA_MAGIC MOXA_HWID
13 DEVICE_VARS += OPENMESH_CE_TYPE ZYXEL_MODEL_STRING
14 DEVICE_VARS += SUPPORTED_TELTONIKA_DEVICES
15
16 define Build/addpattern
17 -$(STAGING_DIR_HOST)/bin/addpattern -B $(ADDPATTERN_ID) \
18 -v v$(ADDPATTERN_VERSION) -i $@ -o $@.new
19 -mv "$@.new" "$@"
20 endef
21
22 define Build/append-md5sum-bin
23 $(MKHASH) md5 $@ | sed 's/../\\\\x&/g' |\
24 xargs echo -ne >> $@
25 endef
26
27 define Build/cybertan-trx
28 @echo -n '' > $@-empty.bin
29 -$(STAGING_DIR_HOST)/bin/trx -o $@.new \
30 -f $(IMAGE_KERNEL) -F $@-empty.bin \
31 -x 32 -a 0x10000 -x -32 -f $@
32 -mv "$@.new" "$@"
33 -rm $@-empty.bin
34 endef
35
36 define Build/dlink-sge-signature
37 ( \
38 crc=$$(gzip -c $@ | tail -c 8 | od -An -tx4 --endian little | cut -d " " -f2); \
39 cat $@; \
40 $(MKHASH) md5 $@ ; \
41 echo $(1); \
42 echo -n $$crc; \
43 ) > $@.new
44 mv $@.new $@
45 endef
46
47 define Build/edimax-headers
48 $(eval edimax_magic=$(word 1,$(1)))
49 $(eval edimax_model=$(word 2,$(1)))
50
51 $(STAGING_DIR_HOST)/bin/edimax_fw_header -M $(edimax_magic) -m $(edimax_model)\
52 -v $(VERSION_DIST)$(firstword $(subst +, , $(firstword $(subst -, ,$(REVISION))))) \
53 -n "uImage" \
54 -i $(KDIR)/loader-$(DEVICE_NAME).uImage \
55 -o $@.uImage
56 $(STAGING_DIR_HOST)/bin/edimax_fw_header -M $(edimax_magic) -m $(edimax_model)\
57 -v $(VERSION_DIST)$(firstword $(subst +, , $(firstword $(subst -, ,$(REVISION))))) \
58 -n "rootfs" \
59 -i $@ \
60 -o $@.rootfs
61 cat $@.uImage $@.rootfs > $@
62 rm -rf $@.uImage $@.rootfs
63 endef
64
65 define Build/mkdapimg2
66 $(STAGING_DIR_HOST)/bin/mkdapimg2 \
67 -i $@ -o $@.new \
68 -s $(DAP_SIGNATURE) \
69 -v $(VERSION_DIST)-$(firstword $(subst +, , \
70 $(firstword $(subst -, ,$(REVISION))))) \
71 -r Default \
72 $(if $(1),-k $(1))
73 mv $@.new $@
74 endef
75
76 define Build/mkmylofw_16m
77 $(eval device_id=$(word 1,$(1)))
78 $(eval revision=$(word 2,$(1)))
79
80 # On WPJ344, WPJ531, and WPJ563, the default boot command tries 0x9f680000
81 # first and fails if the remains of the stock image are sill there
82 # - resulting in an infinite boot loop.
83 # The size parameter is grown to have that block deleted if the firmware
84 # isn't big enough by itself.
85
86 let \
87 size="$$(stat -c%s $@)" \
88 pad="$(call exp_units,$(BLOCKSIZE))" \
89 pad="(pad - (size % pad)) % pad" \
90 newsize='size + pad' ; \
91 [ $$newsize -lt $$((0x660000)) ] && newsize=0x660000 ; \
92 $(STAGING_DIR_HOST)/bin/mkmylofw \
93 -B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
94 -s 0x1000000 -p0x30000:$$newsize:al:0x80060000:"OpenWRT":$@ \
95 $@.new
96 @mv $@.new $@
97 endef
98
99 define Build/mkwrggimg
100 $(STAGING_DIR_HOST)/bin/mkwrggimg -b \
101 -i $@ -o $@.imghdr -d /dev/mtdblock/1 \
102 -m $(DEVICE_MODEL)-$(DEVICE_VARIANT) -s $(DAP_SIGNATURE) \
103 -v $(VERSION_DIST) -B $(REVISION)
104 mv $@.imghdr $@
105 endef
106
107 define Build/nec-enc
108 $(STAGING_DIR_HOST)/bin/nec-enc \
109 -i $@ -o $@.new -k $(1)
110 mv $@.new $@
111 endef
112
113 define Build/nec-fw
114 ( stat -c%s $@ | tr -d "\n" | dd bs=16 count=1 conv=sync; ) >> $@
115 ( \
116 echo -n -e "$(1)" | dd bs=16 count=1 conv=sync; \
117 echo -n "0.0.00" | dd bs=16 count=1 conv=sync; \
118 dd if=$@; \
119 ) > $@.new
120 mv $@.new $@
121 endef
122
123 define Build/pisen_wmb001n-factory
124 -[ -f "$@" ] && \
125 mkdir -p "$@.tmp" && \
126 cp "$(KDIR)/loader-$(word 1,$(1)).uImage" "$@.tmp/uImage" && \
127 mv "$@" "$@.tmp/rootfs" && \
128 cp "bin/pisen_wmb001n_factory-header.bin" "$@" && \
129 $(TAR) -cp --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name \
130 $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
131 -C "$@.tmp" . | gzip -9n >> "$@" && \
132 rm -rf "$@.tmp"
133 endef
134
135 define Build/teltonika-fw-fake-checksum
136 # Teltonika U-Boot web based firmware upgrade/recovery routine compares
137 # 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes
138 # from begin of the firmware file) with 16 bytes stored just before
139 # 0xdeadc0de marker. Values are only compared, MD5 sum is not verified.
140 let \
141 offs="$$(stat -c%s $@) - $(1)"; \
142 dd if=$@ bs=1 count=16 skip=76 |\
143 dd of=$@ bs=1 count=16 seek=$$offs conv=notrunc
144 endef
145
146 define Build/teltonika-v1-header
147 $(STAGING_DIR_HOST)/bin/mktplinkfw \
148 -c -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -L $(KERNEL_LOADADDR) \
149 -E $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
150 -m $(TPLINK_HEADER_VERSION) -N "$(VERSION_DIST)" -V "RUT2xx " \
151 -k $@ -o $@.new $(1)
152 @mv $@.new $@
153 endef
154
155 metadata_json_teltonika = \
156 '{ $(if $(IMAGE_METADATA),$(IMAGE_METADATA)$(comma)) \
157 "metadata_version": "1.1", \
158 "compat_version": "$(call json_quote,$(compat_version))", \
159 "version":"$(call json_quote,$(VERSION_DIST))-$(call json_quote,$(VERSION_NUMBER))-$(call json_quote,$(REVISION))", \
160 "device_code": [".*"], \
161 "hwver": [".*"], \
162 "batch": [".*"], \
163 "serial": [".*"], \
164 $(if $(DEVICE_COMPAT_MESSAGE),"compat_message": "$(call json_quote,$(DEVICE_COMPAT_MESSAGE))"$(comma)) \
165 $(if $(filter-out 1.0,$(compat_version)),"new_supported_devices": \
166 [$(call metadata_devices,$(SUPPORTED_TELTONIKA_DEVICES))]$(comma) \
167 "supported_devices": ["$(call json_quote,$(legacy_supported_message))"]$(comma)) \
168 $(if $(filter 1.0,$(compat_version)),"supported_devices":[$(call metadata_devices,$(SUPPORTED_TELTONIKA_DEVICES))]$(comma)) \
169 "version_wrt": { \
170 "dist": "$(call json_quote,$(VERSION_DIST))", \
171 "version": "$(call json_quote,$(VERSION_NUMBER))", \
172 "revision": "$(call json_quote,$(REVISION))", \
173 "target": "$(call json_quote,$(TARGETID))", \
174 "board": "$(call json_quote,$(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)))" \
175 }, \
176 "hw_support": {}, \
177 "hw_mods": {} \
178 }'
179
180 define Build/append-metadata-teltonika
181 echo $(call metadata_json_teltonika) | fwtool -I - $@
182 endef
183
184 define Build/wrgg-pad-rootfs
185 $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@
186 endef
187
188 define Build/zyxel-tar-bz2
189 mkdir -p $@.tmp
190 mv $@ $@.tmp/$(word 2,$(1))
191 cp $(KDIR)/loader-$(DEVICE_NAME).uImage $@.tmp/$(word 1,$(1)).lzma.uImage
192 $(TAR) -cjf $@ -C $@.tmp .
193 rm -rf $@.tmp
194 endef
195
196
197 define Device/8dev_carambola2
198 SOC := ar9331
199 DEVICE_VENDOR := 8devices
200 DEVICE_MODEL := Carambola2
201 DEVICE_PACKAGES := kmod-usb-chipidea2
202 IMAGE_SIZE := 16000k
203 SUPPORTED_DEVICES += carambola2
204 endef
205 TARGET_DEVICES += 8dev_carambola2
206
207 define Device/8dev_carambola3
208 SOC := qca9531
209 DEVICE_VENDOR := 8devices
210 DEVICE_MODEL := Carambola3
211 DEVICE_PACKAGES := kmod-usb2
212 IMAGE_SIZE := 32768k
213 SUPPORTED_DEVICES += carambola3
214 endef
215 TARGET_DEVICES += 8dev_carambola3
216
217 define Device/8dev_lima
218 SOC := qca9531
219 DEVICE_VENDOR := 8devices
220 DEVICE_MODEL := Lima
221 DEVICE_PACKAGES := kmod-usb2
222 IMAGE_SIZE := 15616k
223 SUPPORTED_DEVICES += lima
224 endef
225 TARGET_DEVICES += 8dev_lima
226
227 define Device/adtran_bsap1880
228 SOC := ar7161
229 DEVICE_VENDOR := Adtran/Bluesocket
230 DEVICE_PACKAGES += -swconfig -uboot-envtools fconfig
231 KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
232 KERNEL_INITRAMFS := kernel-bin | append-dtb
233 IMAGE_SIZE := 11200k
234 IMAGES += kernel.bin rootfs.bin
235 IMAGE/kernel.bin := append-kernel
236 IMAGE/rootfs.bin := append-rootfs | pad-rootfs | pad-to $$(BLOCKSIZE)
237 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
238 check-size | sysupgrade-tar rootfs=$$$$@ | append-metadata
239 endef
240
241 define Device/adtran_bsap1800-v2
242 $(Device/adtran_bsap1880)
243 DEVICE_MODEL := BSAP-1800
244 DEVICE_VARIANT := v2
245 endef
246 TARGET_DEVICES += adtran_bsap1800-v2
247
248 define Device/adtran_bsap1840
249 $(Device/adtran_bsap1880)
250 DEVICE_MODEL := BSAP-1840
251 endef
252 TARGET_DEVICES += adtran_bsap1840
253
254 define Device/alcatel_hh40v
255 SOC := qca9531
256 DEVICE_VENDOR := Alcatel
257 DEVICE_MODEL := HH40V
258 DEVICE_PACKAGES := kmod-usb2 kmod-usb-serial-option kmod-usb-net-rndis
259 IMAGE_SIZE := 14976k
260 IMAGES += factory.bin
261 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
262 append-rootfs | pad-rootfs
263 endef
264 TARGET_DEVICES += alcatel_hh40v
265
266 define Device/airtight_c-75
267 SOC := qca9550
268 DEVICE_VENDOR := AirTight Networks
269 DEVICE_MODEL := C-75
270 DEVICE_ALT0_VENDOR := Mojo Networks
271 DEVICE_ALT0_MODEL := C-75
272 DEVICE_ALT1_VENDOR := WatchGuard
273 DEVICE_ALT1_MODEL := AP320
274 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
275 IMAGE_SIZE := 32320k
276 KERNEL_SIZE := 15936k
277 endef
278 TARGET_DEVICES += airtight_c-75
279
280 define Device/alfa-network_ap121f
281 SOC := ar9331
282 DEVICE_VENDOR := ALFA Network
283 DEVICE_MODEL := AP121F
284 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-storage -swconfig
285 IMAGE_SIZE := 16064k
286 SUPPORTED_DEVICES += ap121f
287 endef
288 TARGET_DEVICES += alfa-network_ap121f
289
290 define Device/alfa-network_ap121fe
291 SOC := ar9331
292 DEVICE_VENDOR := ALFA Network
293 DEVICE_MODEL := AP121FE
294 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-gadget-eth -swconfig
295 IMAGE_SIZE := 16064k
296 endef
297 TARGET_DEVICES += alfa-network_ap121fe
298
299 define Device/alfa-network_n2q
300 SOC := qca9531
301 DEVICE_VENDOR := ALFA Network
302 DEVICE_MODEL := N2Q
303 DEVICE_PACKAGES := kmod-i2c-gpio kmod-gpio-pcf857x kmod-usb2 \
304 kmod-usb-ledtrig-usbport rssileds
305 IMAGE_SIZE := 15872k
306 endef
307 TARGET_DEVICES += alfa-network_n2q
308
309 define Device/alfa-network_n5q
310 SOC := ar9344
311 DEVICE_VENDOR := ALFA Network
312 DEVICE_MODEL := N5Q
313 DEVICE_PACKAGES := rssileds
314 IMAGE_SIZE := 15872k
315 SUPPORTED_DEVICES += n5q
316 endef
317 TARGET_DEVICES += alfa-network_n5q
318
319 define Device/alfa-network_pi-wifi4
320 SOC := qca9531
321 DEVICE_VENDOR := ALFA Network
322 DEVICE_MODEL := Pi-WiFi4
323 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport -swconfig
324 IMAGE_SIZE := 15872k
325 endef
326 TARGET_DEVICES += alfa-network_pi-wifi4
327
328 define Device/alfa-network_r36a
329 SOC := qca9531
330 DEVICE_VENDOR := ALFA Network
331 DEVICE_MODEL := R36A
332 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
333 IMAGE_SIZE := 15872k
334 SUPPORTED_DEVICES += r36a
335 endef
336 TARGET_DEVICES += alfa-network_r36a
337
338 define Device/alfa-network_tube-2hq
339 SOC := qca9531
340 DEVICE_VENDOR := ALFA Network
341 DEVICE_MODEL := Tube-2HQ
342 DEVICE_PACKAGES := rssileds -swconfig
343 IMAGE_SIZE := 15872k
344 SUPPORTED_DEVICES += tube-2hq
345 endef
346 TARGET_DEVICES += alfa-network_tube-2hq
347
348 define Device/allnet_all-wap02860ac
349 $(Device/senao_loader_okli)
350 SOC := qca9558
351 DEVICE_VENDOR := ALLNET
352 DEVICE_MODEL := ALL-WAP02860AC
353 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
354 IMAGE_SIZE := 11584k
355 LOADER_FLASH_OFFS := 0x220000
356 SENAO_IMGNAME := senao-allwap02860ac
357 endef
358 TARGET_DEVICES += allnet_all-wap02860ac
359
360 define Device/araknis_an-300-ap-i-n
361 $(Device/senao_loader_okli)
362 SOC := ar9344
363 DEVICE_VENDOR := Araknis
364 DEVICE_MODEL := AN-300-AP-I-N
365 IMAGE_SIZE := 12096k
366 LOADER_FLASH_OFFS := 0x220000
367 SENAO_IMGNAME := senao-an300
368 endef
369 TARGET_DEVICES += araknis_an-300-ap-i-n
370
371 define Device/araknis_an-500-ap-i-ac
372 $(Device/senao_loader_okli)
373 SOC := qca9557
374 DEVICE_VENDOR := Araknis
375 DEVICE_MODEL := AN-500-AP-I-AC
376 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
377 IMAGE_SIZE := 11584k
378 LOADER_FLASH_OFFS := 0x220000
379 SENAO_IMGNAME := senao-generic-v1-an500
380 endef
381 TARGET_DEVICES += araknis_an-500-ap-i-ac
382
383 define Device/araknis_an-700-ap-i-ac
384 $(Device/senao_loader_okli)
385 SOC := qca9558
386 DEVICE_VENDOR := Araknis
387 DEVICE_MODEL := AN-700-AP-I-AC
388 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
389 IMAGE_SIZE := 11584k
390 LOADER_FLASH_OFFS := 0x220000
391 SENAO_IMGNAME := senao-generic-v1-an700
392 endef
393 TARGET_DEVICES += araknis_an-700-ap-i-ac
394
395 define Device/arduino_yun
396 SOC := ar9331
397 DEVICE_VENDOR := Arduino
398 DEVICE_MODEL := Yun
399 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-ledtrig-usbport \
400 kmod-usb-storage block-mount -swconfig
401 IMAGE_SIZE := 15936k
402 SUPPORTED_DEVICES += arduino-yun
403 endef
404 TARGET_DEVICES += arduino_yun
405
406 define Device/aruba_ap-105
407 SOC := ar7161
408 DEVICE_VENDOR := Aruba
409 DEVICE_MODEL := AP-105
410 IMAGE_SIZE := 16000k
411 DEVICE_PACKAGES := kmod-i2c-gpio kmod-tpm-i2c-atmel
412 LOADER_TYPE := bin
413 LOADER_FLASH_OFFS := 0x42000
414 COMPILE := loader-$(1).bin
415 COMPILE/loader-$(1).bin := loader-okli-compile
416 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128 | uImage none
417 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
418 endef
419 TARGET_DEVICES += aruba_ap-105
420
421 define Device/aruba_ap-115
422 SOC := qca9558
423 DEVICE_VENDOR := Aruba
424 DEVICE_MODEL := AP-115
425 IMAGE_SIZE := 16000k
426 DEVICE_PACKAGES := kmod-usb2
427 LOADER_TYPE := bin
428 LOADER_FLASH_OFFS := 0x102000
429 COMPILE := loader-$(1).bin
430 COMPILE/loader-$(1).bin := loader-okli-compile
431 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128 | uImage none
432 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel
433 endef
434 TARGET_DEVICES += aruba_ap-115
435
436 define Device/aruba_ap-175
437 SOC := ar7161
438 DEVICE_VENDOR := Aruba
439 DEVICE_MODEL := AP-175
440 IMAGE_SIZE := 16000k
441 DEVICE_PACKAGES := kmod-gpio-pca953x kmod-hwmon-lm75 kmod-i2c-gpio kmod-rtc-ds1374
442 LOADER_TYPE := bin
443 LOADER_FLASH_OFFS := 0x42000
444 COMPILE := loader-$(1).bin
445 COMPILE/loader-$(1).bin := loader-okli-compile
446 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128 | uImage none
447 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
448 endef
449 TARGET_DEVICES += aruba_ap-175
450
451 define Device/asus_pl-ac56
452 SOC := qca9563
453 DEVICE_VENDOR := ASUS
454 DEVICE_MODEL := PL-AC56
455 DEVICE_VARIANT := A1
456 IMAGE_SIZE := 15488k
457 IMAGES += factory.bin
458 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
459 append-rootfs | pad-rootfs
460 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
461 endef
462 TARGET_DEVICES += asus_pl-ac56
463
464 define Device/asus_rp-ac51
465 SOC := qca9531
466 DEVICE_VENDOR := ASUS
467 DEVICE_MODEL := RP-AC51
468 IMAGE_SIZE := 16000k
469 IMAGES += factory.bin
470 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
471 append-rootfs | pad-rootfs
472 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct \
473 -swconfig
474 endef
475 TARGET_DEVICES += asus_rp-ac51
476
477 define Device/asus_rp-ac66
478 SOC := qca9563
479 DEVICE_VENDOR := ASUS
480 DEVICE_MODEL := RP-AC66
481 IMAGE_SIZE := 16000k
482 IMAGES += factory.bin
483 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
484 append-rootfs | pad-rootfs
485 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct \
486 rssileds -swconfig
487 endef
488 TARGET_DEVICES += asus_rp-ac66
489
490 define Device/asus_qcn5502
491 SOC := qcn5502
492 DEVICE_VENDOR := ASUS
493 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
494 KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
495 IMAGES += factory.bin
496 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
497 append-rootfs | pad-rootfs
498 endef
499
500 define Device/asus_rt-ac59u
501 $(Device/asus_qcn5502)
502 DEVICE_MODEL := RT-AC59U
503 DEVICE_ALT0_VENDOR := ASUS
504 DEVICE_ALT0_MODEL := RT-AC1200GE
505 DEVICE_ALT1_VENDOR := ASUS
506 DEVICE_ALT1_MODEL := RT-AC1500G PLUS
507 DEVICE_ALT2_VENDOR := ASUS
508 DEVICE_ALT2_MODEL := RT-AC1500UHP
509 DEVICE_ALT3_VENDOR := ASUS
510 DEVICE_ALT3_MODEL := RT-AC57U
511 DEVICE_ALT3_VARIANT := v2
512 DEVICE_ALT4_VENDOR := ASUS
513 DEVICE_ALT4_MODEL := RT-AC58U
514 DEVICE_ALT4_VARIANT := v2
515 DEVICE_ALT5_VENDOR := ASUS
516 DEVICE_ALT5_MODEL := RT-ACRH12
517 IMAGE_SIZE := 16000k
518 DEVICE_PACKAGES += kmod-usb2 kmod-usb-ledtrig-usbport
519 endef
520 TARGET_DEVICES += asus_rt-ac59u
521
522 define Device/asus_rt-ac59u-v2
523 $(Device/asus_qcn5502)
524 DEVICE_MODEL := RT-AC59U
525 DEVICE_VARIANT := v2
526 DEVICE_ALT0_VENDOR := ASUS
527 DEVICE_ALT0_MODEL := RT-AC1300G PLUS
528 DEVICE_ALT0_VARIANT := v3
529 DEVICE_ALT1_VENDOR := ASUS
530 DEVICE_ALT1_MODEL := RT-AC57U
531 DEVICE_ALT1_VARIANT := v3
532 DEVICE_ALT2_VENDOR := ASUS
533 DEVICE_ALT2_MODEL := RT-AC58U
534 DEVICE_ALT2_VARIANT := v3
535 IMAGE_SIZE := 32384k
536 DEVICE_PACKAGES += kmod-usb2 kmod-usb-ledtrig-usbport
537 endef
538 TARGET_DEVICES += asus_rt-ac59u-v2
539
540 define Device/asus_zenwifi-cd6n
541 $(Device/asus_qcn5502)
542 DEVICE_MODEL := ZenWiFi CD6N
543 IMAGE_SIZE := 16000k
544 endef
545 TARGET_DEVICES += asus_zenwifi-cd6n
546
547 define Device/asus_zenwifi-cd6r
548 $(Device/asus_qcn5502)
549 DEVICE_MODEL := ZenWiFi CD6R
550 IMAGE_SIZE := 32384k
551 endef
552 TARGET_DEVICES += asus_zenwifi-cd6r
553
554 define Device/atheros_db120
555 $(Device/loader-okli-uimage)
556 SOC := ar9344
557 DEVICE_VENDOR := Atheros
558 DEVICE_MODEL := DB120
559 DEVICE_PACKAGES := kmod-usb2
560 IMAGE_SIZE := 7808k
561 SUPPORTED_DEVICES += db120
562 LOADER_FLASH_OFFS := 0x50000
563 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
564 IMAGES += factory.bin
565 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
566 append-rootfs | pad-rootfs | check-size | pad-to 6336k | \
567 append-loader-okli-uimage $(1) | pad-to 64k
568 endef
569 TARGET_DEVICES += atheros_db120
570
571 define Device/avm
572 DEVICE_VENDOR := AVM
573 KERNEL := kernel-bin | append-dtb | lzma | eva-image
574 KERNEL_INITRAMFS := $$(KERNEL)
575 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
576 append-squashfs-fakeroot-be | pad-to 256 | append-rootfs | pad-rootfs | \
577 check-size | append-metadata
578 DEVICE_PACKAGES := fritz-tffs
579 endef
580
581 define Device/avm_fritz1750e
582 $(Device/avm)
583 SOC := qca9556
584 IMAGE_SIZE := 15232k
585 DEVICE_MODEL := FRITZ!WLAN Repeater 1750E
586 DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
587 ath10k-firmware-qca988x-ct -swconfig
588 endef
589 TARGET_DEVICES += avm_fritz1750e
590
591 define Device/avm_fritz300e
592 $(Device/avm)
593 SOC := ar7242
594 IMAGE_SIZE := 15232k
595 DEVICE_MODEL := FRITZ!WLAN Repeater 300E
596 DEVICE_PACKAGES += rssileds -swconfig
597 SUPPORTED_DEVICES += fritz300e
598 endef
599 TARGET_DEVICES += avm_fritz300e
600
601 define Device/avm_fritz4020
602 $(Device/avm)
603 SOC := qca9561
604 IMAGE_SIZE := 15232k
605 DEVICE_MODEL := FRITZ!Box 4020
606 SUPPORTED_DEVICES += fritz4020
607 endef
608 TARGET_DEVICES += avm_fritz4020
609
610 define Device/avm_fritz450e
611 $(Device/avm)
612 SOC := qca9556
613 IMAGE_SIZE := 15232k
614 DEVICE_MODEL := FRITZ!WLAN Repeater 450E
615 SUPPORTED_DEVICES += fritz450e
616 endef
617 TARGET_DEVICES += avm_fritz450e
618
619 define Device/avm_fritzdvbc
620 $(Device/avm)
621 SOC := qca9556
622 IMAGE_SIZE := 15232k
623 DEVICE_MODEL := FRITZ!WLAN Repeater DVB-C
624 DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
625 ath10k-firmware-qca988x-ct -swconfig
626 endef
627 TARGET_DEVICES += avm_fritzdvbc
628
629 define Device/belkin_f9x-v2
630 $(Device/loader-okli-uimage)
631 SOC := qca9558
632 DEVICE_VENDOR := Belkin
633 IMAGE_SIZE := 14464k
634 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2 \
635 kmod-usb3 kmod-usb-ledtrig-usbport
636 LOADER_FLASH_OFFS := 0x50000
637 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
638 IMAGES += factory.bin
639 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
640 append-rootfs | pad-rootfs | check-size | \
641 edimax-headers $$$$(EDIMAX_HEADER_MAGIC) $$$$(EDIMAX_HEADER_MODEL) | \
642 pad-to $$$$(BLOCKSIZE)
643 endef
644
645 define Device/belkin_f9j1108-v2
646 $(Device/belkin_f9x-v2)
647 DEVICE_MODEL := F9J1108 v2 (AC1750 DB Wi-Fi)
648 EDIMAX_HEADER_MAGIC := F9J1108v1
649 EDIMAX_HEADER_MODEL := BR-6679BAC
650 endef
651 TARGET_DEVICES += belkin_f9j1108-v2
652
653 define Device/belkin_f9k1115-v2
654 $(Device/belkin_f9x-v2)
655 DEVICE_MODEL := F9K1115 v2 (AC1750 DB Wi-Fi)
656 EDIMAX_HEADER_MAGIC := eDiMaX
657 EDIMAX_HEADER_MODEL := F9K1115V2
658 endef
659 TARGET_DEVICES += belkin_f9k1115-v2
660
661 define Device/buffalo_bhr-4grv
662 $(Device/buffalo_common)
663 SOC := ar7242
664 DEVICE_MODEL := BHR-4GRV
665 BUFFALO_PRODUCT := BHR-4GRV
666 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
667 IMAGE_SIZE := 32256k
668 SUPPORTED_DEVICES += wzr-hp-g450h
669 endef
670 TARGET_DEVICES += buffalo_bhr-4grv
671
672 define Device/buffalo_bhr-4grv2
673 SOC := qca9557
674 DEVICE_VENDOR := Buffalo
675 DEVICE_MODEL := BHR-4GRV2
676 IMAGE_SIZE := 16000k
677 endef
678 TARGET_DEVICES += buffalo_bhr-4grv2
679
680 define Device/buffalo_wzr_ar7161
681 $(Device/buffalo_common)
682 SOC := ar7161
683 BUFFALO_PRODUCT := WZR-HP-AG300H
684 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
685 kmod-owl-loader
686 IMAGE_SIZE := 32320k
687 SUPPORTED_DEVICES += wzr-hp-ag300h
688 endef
689
690 define Device/buffalo_wzr-600dhp
691 $(Device/buffalo_wzr_ar7161)
692 DEVICE_MODEL := WZR-600DHP
693 endef
694 TARGET_DEVICES += buffalo_wzr-600dhp
695
696 define Device/buffalo_wzr-hp-ag300h
697 $(Device/buffalo_wzr_ar7161)
698 DEVICE_MODEL := WZR-HP-AG300H
699 endef
700 TARGET_DEVICES += buffalo_wzr-hp-ag300h
701
702 define Device/buffalo_wzr-hp-g300nh
703 $(Device/buffalo_common)
704 SOC := ar9132
705 BUFFALO_PRODUCT := WZR-HP-G300NH
706 BUFFALO_HWVER := 1
707 DEVICE_PACKAGES := kmod-gpio-cascade kmod-mux-gpio kmod-usb2 kmod-usb-ledtrig-usbport
708 BLOCKSIZE := 128k
709 IMAGE_SIZE := 32128k
710 SUPPORTED_DEVICES += wzr-hp-g300nh
711 endef
712
713 define Device/buffalo_wzr-hp-g300nh-rb
714 $(Device/buffalo_wzr-hp-g300nh)
715 DEVICE_MODEL := WZR-HP-G300NH (RTL8366RB switch)
716 DEVICE_PACKAGES += kmod-switch-rtl8366rb
717 endef
718 TARGET_DEVICES += buffalo_wzr-hp-g300nh-rb
719
720 define Device/buffalo_wzr-hp-g300nh-s
721 $(Device/buffalo_wzr-hp-g300nh)
722 DEVICE_MODEL := WZR-HP-G300NH (RTL8366S switch)
723 DEVICE_PACKAGES += kmod-switch-rtl8366s
724 endef
725 TARGET_DEVICES += buffalo_wzr-hp-g300nh-s
726
727 define Device/buffalo_wzr-hp-g302h-a1a0
728 $(Device/buffalo_common)
729 SOC := ar7242
730 DEVICE_MODEL := WZR-HP-G302H
731 DEVICE_VARIANT := A1A0
732 BUFFALO_PRODUCT := WZR-HP-G302H
733 BUFFALO_HWVER := 4
734 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
735 IMAGE_SIZE := 32128k
736 SUPPORTED_DEVICES += wzr-hp-g300nh2
737 endef
738 TARGET_DEVICES += buffalo_wzr-hp-g302h-a1a0
739
740 define Device/buffalo_wzr-hp-g450h
741 $(Device/buffalo_common)
742 SOC := ar7242
743 DEVICE_MODEL := WZR-HP-G450H/WZR-450HP
744 BUFFALO_PRODUCT := WZR-HP-G450H
745 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
746 IMAGE_SIZE := 32256k
747 SUPPORTED_DEVICES += wzr-hp-g450h
748 endef
749 TARGET_DEVICES += buffalo_wzr-hp-g450h
750
751 define Device/comfast_cf-e110n-v2
752 SOC := qca9533
753 DEVICE_VENDOR := COMFAST
754 DEVICE_MODEL := CF-E110N
755 DEVICE_VARIANT := v2
756 DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
757 IMAGE_SIZE := 16192k
758 endef
759 TARGET_DEVICES += comfast_cf-e110n-v2
760
761 define Device/comfast_cf-e120a-v3
762 SOC := ar9344
763 DEVICE_VENDOR := COMFAST
764 DEVICE_MODEL := CF-E120A
765 DEVICE_VARIANT := v3
766 DEVICE_PACKAGES := rssileds -uboot-envtools
767 IMAGE_SIZE := 8000k
768 endef
769 TARGET_DEVICES += comfast_cf-e120a-v3
770
771 define Device/comfast_cf-e130n-v2
772 SOC := qca9531
773 DEVICE_VENDOR := COMFAST
774 DEVICE_MODEL := CF-E130N
775 DEVICE_VARIANT := v2
776 DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
777 IMAGE_SIZE := 7936k
778 endef
779 TARGET_DEVICES += comfast_cf-e130n-v2
780
781 define Device/comfast_cf-e313ac
782 SOC := qca9531
783 DEVICE_VENDOR := COMFAST
784 DEVICE_MODEL := CF-E313AC
785 DEVICE_PACKAGES := rssileds kmod-ath10k-ct-smallbuffers \
786 ath10k-firmware-qca9888-ct -swconfig -uboot-envtools
787 IMAGE_SIZE := 7936k
788 endef
789 TARGET_DEVICES += comfast_cf-e313ac
790
791 define Device/comfast_cf-e314n-v2
792 SOC := qca9531
793 DEVICE_VENDOR := COMFAST
794 DEVICE_MODEL := CF-E314N
795 DEVICE_VARIANT := v2
796 DEVICE_PACKAGES := rssileds
797 IMAGE_SIZE := 7936k
798 endef
799 TARGET_DEVICES += comfast_cf-e314n-v2
800
801 define Device/comfast_cf-e375ac
802 SOC := qca9563
803 DEVICE_VENDOR := COMFAST
804 DEVICE_MODEL := CF-E375AC
805 DEVICE_PACKAGES := kmod-ath10k-ct \
806 ath10k-firmware-qca9888-ct -uboot-envtools
807 IMAGE_SIZE := 16000k
808 endef
809 TARGET_DEVICES += comfast_cf-e375ac
810
811 define Device/comfast_cf-e380ac-v2
812 SOC := qca9558
813 DEVICE_VENDOR := COMFAST
814 DEVICE_MODEL := CF-E380AC
815 DEVICE_VARIANT := v2
816 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 \
817 kmod-ath10k-ct ath10k-firmware-qca988x-ct
818 IMAGE_SIZE := 16000k
819 endef
820 TARGET_DEVICES += comfast_cf-e380ac-v2
821
822 define Device/comfast_cf-e5
823 SOC := qca9531
824 DEVICE_VENDOR := COMFAST
825 DEVICE_MODEL := CF-E5/E7
826 DEVICE_PACKAGES := rssileds kmod-usb2 kmod-usb-net-qmi-wwan -swconfig \
827 -uboot-envtools
828 IMAGE_SIZE := 16192k
829 endef
830 TARGET_DEVICES += comfast_cf-e5
831
832 define Device/comfast_cf-e560ac
833 SOC := qca9531
834 DEVICE_VENDOR := COMFAST
835 DEVICE_MODEL := CF-E560AC
836 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
837 IMAGE_SIZE := 16128k
838 endef
839 TARGET_DEVICES += comfast_cf-e560ac
840
841 define Device/comfast_cf-ew71-v2
842 SOC := qca9531
843 DEVICE_VENDOR := COMFAST
844 DEVICE_MODEL := CF-EW71
845 DEVICE_VARIANT := v2
846 DEVICE_PACKAGES := kmod-usb2 -uboot-envtools -swconfig
847 IMAGE_SIZE := 16192k
848 endef
849 TARGET_DEVICES += comfast_cf-ew71-v2
850
851 define Device/comfast_cf-ew72
852 SOC := qca9531
853 DEVICE_VENDOR := COMFAST
854 DEVICE_MODEL := CF-EW72
855 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
856 -uboot-envtools -swconfig
857 IMAGE_SIZE := 16192k
858 endef
859 TARGET_DEVICES += comfast_cf-ew72
860
861 define Device/comfast_cf-wr650ac-v1
862 SOC := qca9558
863 DEVICE_VENDOR := COMFAST
864 DEVICE_MODEL := CF-WR650AC
865 DEVICE_VARIANT := v1
866 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
867 IMAGE_SIZE := 16128k
868 endef
869 TARGET_DEVICES += comfast_cf-wr650ac-v1
870
871 define Device/comfast_cf-wr650ac-v2
872 SOC := qca9558
873 DEVICE_VENDOR := COMFAST
874 DEVICE_MODEL := CF-WR650AC
875 DEVICE_VARIANT := v2
876 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
877 IMAGE_SIZE := 16000k
878 endef
879 TARGET_DEVICES += comfast_cf-wr650ac-v2
880
881 define Device/comfast_cf-wr752ac-v1
882 SOC := qca9531
883 DEVICE_VENDOR := COMFAST
884 DEVICE_MODEL := CF-WR752AC
885 DEVICE_VARIANT := v1
886 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
887 -uboot-envtools
888 IMAGE_SIZE := 16192k
889 endef
890 TARGET_DEVICES += comfast_cf-wr752ac-v1
891
892 define Device/compex_wpj344-16m
893 SOC := ar9344
894 DEVICE_PACKAGES := kmod-usb2
895 IMAGE_SIZE := 16128k
896 DEVICE_VENDOR := Compex
897 DEVICE_MODEL := WPJ344
898 DEVICE_VARIANT := 16M
899 SUPPORTED_DEVICES += wpj344
900 IMAGES += cpximg-6a08.bin
901 IMAGE/cpximg-6a08.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x690 3
902 endef
903 TARGET_DEVICES += compex_wpj344-16m
904
905 define Device/compex_wpj531-16m
906 SOC := qca9531
907 DEVICE_PACKAGES := kmod-usb2
908 IMAGE_SIZE := 16128k
909 DEVICE_VENDOR := Compex
910 DEVICE_MODEL := WPJ531
911 DEVICE_VARIANT := 16M
912 SUPPORTED_DEVICES += wpj531
913 IMAGES += cpximg-7a03.bin cpximg-7a04.bin cpximg-7a06.bin cpximg-7a07.bin
914 IMAGE/cpximg-7a03.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x68a 2
915 IMAGE/cpximg-7a04.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
916 IMAGE/cpximg-7a06.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
917 IMAGE/cpximg-7a07.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
918 endef
919 TARGET_DEVICES += compex_wpj531-16m
920
921 define Device/compex_wpj558-16m
922 SOC := qca9558
923 IMAGE_SIZE := 16128k
924 DEVICE_VENDOR := Compex
925 DEVICE_MODEL := WPJ558
926 DEVICE_VARIANT := 16M
927 SUPPORTED_DEVICES += wpj558
928 IMAGES += cpximg-6a07.bin
929 IMAGE/cpximg-6a07.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
930 append-rootfs | pad-rootfs | mkmylofw_16m 0x691 3
931 DEVICE_PACKAGES := kmod-gpio-beeper
932 endef
933 TARGET_DEVICES += compex_wpj558-16m
934
935 define Device/compex_wpj563
936 SOC := qca9563
937 DEVICE_PACKAGES := kmod-usb2 kmod-usb3
938 IMAGE_SIZE := 16128k
939 DEVICE_VENDOR := Compex
940 DEVICE_MODEL := WPJ563
941 SUPPORTED_DEVICES += wpj563
942 IMAGES += cpximg-7a02.bin
943 IMAGE/cpximg-7a02.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x694 2
944 endef
945 TARGET_DEVICES += compex_wpj563
946
947 define Device/dell_apl26-0ae
948 SOC := qca9550
949 DEVICE_VENDOR := Dell
950 DEVICE_MODEL := SonicPoint
951 DEVICE_VARIANT := ACe (APL26-0AE)
952 DEVICE_ALT0_VENDOR := SonicWall
953 DEVICE_ALT0_MODEL := SonicPoint
954 DEVICE_ALT0_VARIANT := ACe (APL26-0AE)
955 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
956 KERNEL_SIZE := 5952k
957 IMAGE_SIZE := 31680k
958 IMAGE/sysupgrade.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | \
959 append-rootfs | pad-rootfs | check-size | append-metadata
960 endef
961 TARGET_DEVICES += dell_apl26-0ae
962
963 define Device/devolo_dlan-pro-1200plus-ac
964 SOC := ar9344
965 DEVICE_VENDOR := devolo
966 DEVICE_MODEL := dLAN pro 1200+ WiFi ac
967 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
968 IMAGE_SIZE := 15872k
969 endef
970 TARGET_DEVICES += devolo_dlan-pro-1200plus-ac
971
972 define Device/devolo_wifi-pro
973 SOC := qca9558
974 DEVICE_VENDOR := devolo
975 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
976 IMAGE_SIZE := 15936k
977 endef
978
979 define Device/devolo_dvl1200e
980 $(Device/devolo_wifi-pro)
981 DEVICE_MODEL := WiFi pro 1200e
982 endef
983 TARGET_DEVICES += devolo_dvl1200e
984
985 define Device/devolo_dvl1200i
986 $(Device/devolo_wifi-pro)
987 DEVICE_MODEL := WiFi pro 1200i
988 endef
989 TARGET_DEVICES += devolo_dvl1200i
990
991 define Device/devolo_dvl1750c
992 $(Device/devolo_wifi-pro)
993 DEVICE_MODEL := WiFi pro 1750c
994 endef
995 TARGET_DEVICES += devolo_dvl1750c
996
997 define Device/devolo_dvl1750e
998 $(Device/devolo_wifi-pro)
999 DEVICE_MODEL := WiFi pro 1750e
1000 DEVICE_PACKAGES += kmod-usb2
1001 endef
1002 TARGET_DEVICES += devolo_dvl1750e
1003
1004 define Device/devolo_dvl1750i
1005 $(Device/devolo_wifi-pro)
1006 DEVICE_MODEL := WiFi pro 1750i
1007 endef
1008 TARGET_DEVICES += devolo_dvl1750i
1009
1010 define Device/devolo_dvl1750x
1011 SOC := qca9558
1012 DEVICE_VENDOR := devolo
1013 DEVICE_MODEL := WiFi pro 1750x
1014 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1015 IMAGE_SIZE := 15936k
1016 endef
1017 TARGET_DEVICES += devolo_dvl1750x
1018
1019 define Device/devolo_magic-2-wifi
1020 SOC := ar9344
1021 DEVICE_VENDOR := devolo
1022 DEVICE_MODEL := Magic 2 WiFi
1023 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1024 IMAGE_SIZE := 15872k
1025 endef
1026 TARGET_DEVICES += devolo_magic-2-wifi
1027
1028 define Device/dlink_covr
1029 $(Device/loader-okli-uimage)
1030 SOC := qca9563
1031 DEVICE_VENDOR := D-Link
1032 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1033 LOADER_FLASH_OFFS := 0x050000
1034 LOADER_KERNEL_MAGIC := 0x68737173
1035 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x68737173
1036 IMAGE_SIZE := 14528k
1037 IMAGE/recovery.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1038 append-rootfs | pad-rootfs | check-size | pad-to 14528k | \
1039 append-loader-okli-uimage $(1) | pad-to 15616k
1040 endef
1041
1042 define Device/dlink_covr-c1200-a1
1043 $(Device/dlink_covr)
1044 DEVICE_MODEL := COVR-C1200
1045 DEVICE_VARIANT := A1
1046 IMAGES += factory.bin
1047 IMAGE/factory.bin := $$(IMAGE/recovery.bin) | \
1048 dlink-sge-signature COVR-C1200 | dlink-sge-image COVR-C1200
1049 endef
1050 TARGET_DEVICES += dlink_covr-c1200-a1
1051
1052 define Device/dlink_covr-p2500-a1
1053 $(Device/dlink_covr)
1054 DEVICE_MODEL := COVR-P2500
1055 DEVICE_VARIANT := A1
1056 IMAGES += factory.bin recovery.bin
1057 IMAGE/factory.bin := $$(IMAGE/recovery.bin) | \
1058 dlink-sge-image COVR-P2500 | dlink-sge-signature COVR-P2500
1059 endef
1060 TARGET_DEVICES += dlink_covr-p2500-a1
1061
1062 define Device/dlink_dap-13xx
1063 SOC := qca9533
1064 DEVICE_VENDOR := D-Link
1065 DEVICE_PACKAGES += rssileds
1066 IMAGE_SIZE := 7936k
1067 IMAGES += factory.bin
1068 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1069 append-rootfs | pad-rootfs | check-size | mkdapimg2 0xE0000
1070 endef
1071
1072 define Device/dlink_dap-1330-a1
1073 $(Device/dlink_dap-13xx)
1074 DEVICE_MODEL := DAP-1330
1075 DEVICE_VARIANT := A1
1076 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1330
1077 SUPPORTED_DEVICES += dap-1330-a1
1078 endef
1079 TARGET_DEVICES += dlink_dap-1330-a1
1080
1081 define Device/dlink_dap-1365-a1
1082 $(Device/dlink_dap-13xx)
1083 DEVICE_MODEL := DAP-1365
1084 DEVICE_VARIANT := A1
1085 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1365
1086 endef
1087 TARGET_DEVICES += dlink_dap-1365-a1
1088
1089 define Device/dlink_dap-2xxx
1090 IMAGES += factory.img
1091 IMAGE/factory.img := append-kernel | pad-offset 6144k 160 | \
1092 append-rootfs | wrgg-pad-rootfs | mkwrggimg | check-size
1093 IMAGE/sysupgrade.bin := append-kernel | mkwrggimg | \
1094 pad-to $$$$(BLOCKSIZE) | append-rootfs | wrgg-pad-rootfs | \
1095 check-size | append-metadata
1096 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
1097 KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg
1098 endef
1099
1100 define Device/dlink_dap-2230-a1
1101 $(Device/dlink_dap-2xxx)
1102 SOC := qca9533
1103 DEVICE_VENDOR := D-Link
1104 DEVICE_MODEL := DAP-2230
1105 DEVICE_VARIANT := A1
1106 IMAGE_SIZE := 15232k
1107 DAP_SIGNATURE := wapn31_dkbs_dap2230
1108 endef
1109 TARGET_DEVICES += dlink_dap-2230-a1
1110
1111 define Device/dlink_dap-2660-a1
1112 $(Device/dlink_dap-2xxx)
1113 SOC := qca9557
1114 DEVICE_VENDOR := D-Link
1115 DEVICE_MODEL := DAP-2660
1116 DEVICE_VARIANT := A1
1117 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1118 IMAGE_SIZE := 15232k
1119 DAP_SIGNATURE := wapac09_dkbs_dap2660
1120 endef
1121 TARGET_DEVICES += dlink_dap-2660-a1
1122
1123 define Device/dlink_dap-2680-a1
1124 $(Device/dlink_dap-2xxx)
1125 SOC := qca9558
1126 DEVICE_VENDOR := D-Link
1127 DEVICE_MODEL := DAP-2680
1128 DEVICE_VARIANT := A1
1129 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct kmod-ath10k-ct
1130 IMAGE_SIZE := 15232k
1131 DAP_SIGNATURE := wapac36_dkbs_dap2680
1132 endef
1133 TARGET_DEVICES += dlink_dap-2680-a1
1134
1135 define Device/dlink_dap-2695-a1
1136 $(Device/dlink_dap-2xxx)
1137 SOC := qca9558
1138 DEVICE_VENDOR := D-Link
1139 DEVICE_MODEL := DAP-2695
1140 DEVICE_VARIANT := A1
1141 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1142 IMAGE_SIZE := 15360k
1143 DAP_SIGNATURE := wapac02_dkbs_dap2695
1144 SUPPORTED_DEVICES += dap-2695-a1
1145 endef
1146 TARGET_DEVICES += dlink_dap-2695-a1
1147
1148 define Device/dlink_dap-3320-a1
1149 $(Device/dlink_dap-2xxx)
1150 SOC := qca9533
1151 DEVICE_VENDOR := D-Link
1152 DEVICE_MODEL := DAP-3320
1153 DEVICE_VARIANT := A1
1154 IMAGE_SIZE := 15296k
1155 DAP_SIGNATURE := wapn29_dkbs_dap3320
1156 endef
1157 TARGET_DEVICES += dlink_dap-3320-a1
1158
1159 define Device/dlink_dap-3662-a1
1160 $(Device/dlink_dap-2xxx)
1161 SOC := qca9558
1162 DEVICE_VENDOR := D-Link
1163 DEVICE_MODEL := DAP-3662
1164 DEVICE_VARIANT := A1
1165 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1166 IMAGE_SIZE := 15296k
1167 DAP_SIGNATURE := wapac11_dkbs_dap3662
1168 endef
1169 TARGET_DEVICES += dlink_dap-3662-a1
1170
1171 define Device/dlink_dch-g020-a1
1172 SOC := qca9531
1173 DEVICE_VENDOR := D-Link
1174 DEVICE_MODEL := DCH-G020
1175 DEVICE_VARIANT := A1
1176 DEVICE_PACKAGES := kmod-gpio-pca953x kmod-i2c-gpio kmod-usb2 kmod-usb-acm
1177 IMAGES += factory.bin
1178 IMAGE_SIZE := 14784k
1179 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1180 append-rootfs | pad-rootfs | check-size | mkdapimg2 0x20000
1181 DAP_SIGNATURE := HONEYBEE-FIRMWARE-DCH-G020
1182 endef
1183 TARGET_DEVICES += dlink_dch-g020-a1
1184
1185 define Device/dlink_dir-505
1186 SOC := ar9330
1187 DEVICE_VENDOR := D-Link
1188 DEVICE_MODEL := DIR-505
1189 IMAGE_SIZE := 7680k
1190 DEVICE_PACKAGES := kmod-usb-chipidea2
1191 SUPPORTED_DEVICES += dir-505-a1
1192 endef
1193 TARGET_DEVICES += dlink_dir-505
1194
1195 define Device/dlink_dir-629-a1
1196 $(Device/seama)
1197 SOC := qca9558
1198 IMAGE_SIZE := 7616k
1199 DEVICE_VENDOR := D-Link
1200 DEVICE_MODEL := DIR-629
1201 DEVICE_VARIANT := A1
1202 DEVICE_PACKAGES := -uboot-envtools
1203 SEAMA_MTDBLOCK := 6
1204 SEAMA_SIGNATURE := wrgn83_dlob.hans_dir629
1205 endef
1206 TARGET_DEVICES += dlink_dir-629-a1
1207
1208 define Device/dlink_dir-825-b1
1209 SOC := ar7161
1210 DEVICE_VENDOR := D-Link
1211 DEVICE_MODEL := DIR-825
1212 DEVICE_VARIANT := B1
1213 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
1214 kmod-owl-loader kmod-switch-rtl8366s
1215 IMAGE_SIZE := 7808k
1216 FACTORY_SIZE := 6144k
1217 # IMAGES += factory.bin
1218 IMAGE/factory.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
1219 pad-rootfs | check-size $$$$(FACTORY_SIZE) | pad-to $$$$(FACTORY_SIZE) | \
1220 append-string 01AP94-AR7161-RT-080619-00
1221 endef
1222 TARGET_DEVICES += dlink_dir-825-b1
1223
1224 define Device/dlink_dir-825-c1
1225 SOC := ar9344
1226 DEVICE_VENDOR := D-Link
1227 DEVICE_MODEL := DIR-825
1228 DEVICE_VARIANT := C1
1229 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-owl-loader
1230 SUPPORTED_DEVICES += dir-825-c1
1231 IMAGE_SIZE := 15936k
1232 IMAGES := factory.bin sysupgrade.bin
1233 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
1234 pad-rootfs
1235 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
1236 append-string 00DB120AR9344-RT-101214-00 | check-size
1237 IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
1238 endef
1239 TARGET_DEVICES += dlink_dir-825-c1
1240
1241 define Device/dlink_dir-835-a1
1242 SOC := ar9344
1243 DEVICE_VENDOR := D-Link
1244 DEVICE_MODEL := DIR-835
1245 DEVICE_VARIANT := A1
1246 DEVICE_PACKAGES := kmod-usb2 kmod-owl-loader
1247 SUPPORTED_DEVICES += dir-835-a1
1248 IMAGE_SIZE := 15936k
1249 IMAGES := factory.bin sysupgrade.bin
1250 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
1251 pad-rootfs
1252 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
1253 append-string 00DB120AR9344-RT-101214-00 | check-size
1254 IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
1255 endef
1256 TARGET_DEVICES += dlink_dir-835-a1
1257
1258 define Device/dlink_dir-842-c
1259 SOC := qca9563
1260 DEVICE_VENDOR := D-Link
1261 DEVICE_MODEL := DIR-842
1262 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
1263 KERNEL_INITRAMFS := $$(KERNEL) | seama
1264 IMAGES += factory.bin
1265 SEAMA_MTDBLOCK := 5
1266 SEAMA_SIGNATURE := wrgac65_dlink.2015_dir842
1267 # 64 bytes offset:
1268 # - 28 bytes seama_header
1269 # - 36 bytes of META data (4-bytes aligned)
1270 IMAGE/default := append-kernel | uImage lzma | \
1271 pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
1272 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
1273 check-size | append-metadata
1274 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
1275 seama-seal | check-size
1276 IMAGE_SIZE := 15680k
1277 endef
1278
1279 define Device/dlink_dir-842-c1
1280 $(Device/dlink_dir-842-c)
1281 DEVICE_VARIANT := C1
1282 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1283 endef
1284 TARGET_DEVICES += dlink_dir-842-c1
1285
1286 define Device/dlink_dir-842-c2
1287 $(Device/dlink_dir-842-c)
1288 DEVICE_VARIANT := C2
1289 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
1290 endef
1291 TARGET_DEVICES += dlink_dir-842-c2
1292
1293 define Device/dlink_dir-842-c3
1294 $(Device/dlink_dir-842-c)
1295 DEVICE_VARIANT := C3
1296 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
1297 endef
1298 TARGET_DEVICES += dlink_dir-842-c3
1299
1300 define Device/elecom_wab
1301 DEVICE_VENDOR := ELECOM
1302 IMAGE_SIZE := 14336k
1303 IMAGES += factory.bin
1304 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
1305 pad-rootfs | check-size | elx-header $$$$(ELECOM_HWID) 8844A2D168B45A2D
1306 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-gpio-beeper \
1307 kmod-usb2 kmod-usb-ledtrig-usbport
1308 endef
1309
1310 define Device/elecom_wab-i1750-ps
1311 $(Device/elecom_wab)
1312 SOC := qca9558
1313 DEVICE_MODEL := WAB-I1750-PS
1314 ELECOM_HWID := 0107000d
1315 endef
1316 TARGET_DEVICES += elecom_wab-i1750-ps
1317
1318 define Device/elecom_wab-s1167-ps
1319 $(Device/elecom_wab)
1320 SOC := qca9557
1321 DEVICE_MODEL := WAB-S1167-PS
1322 ELECOM_HWID := 0107000c
1323 endef
1324 TARGET_DEVICES += elecom_wab-s1167-ps
1325
1326 define Device/elecom_wab-s600-ps
1327 $(Device/elecom_wab)
1328 SOC := qca9557
1329 DEVICE_MODEL := WAB-S600-PS
1330 ELECOM_HWID := 01070028
1331 endef
1332 TARGET_DEVICES += elecom_wab-s600-ps
1333
1334 define Device/elecom_wrc-1750ghbk2-i
1335 SOC := qca9563
1336 DEVICE_VENDOR := ELECOM
1337 DEVICE_MODEL := WRC-1750GHBK2-I/C
1338 IMAGE_SIZE := 15808k
1339 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
1340 ARTIFACTS := initramfs-factory.bin
1341 ARTIFACT/initramfs-factory.bin := append-image initramfs-kernel.bin | \
1342 pad-to 2 | edimax-header -b -s CSYS -m RN68 -f 0x70000 -S 0x01100000 | \
1343 elecom-product-header WRC-1750GHBK2 | check-size
1344 endif
1345 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
1346 endef
1347 TARGET_DEVICES += elecom_wrc-1750ghbk2-i
1348
1349 define Device/elecom_wrc-300ghbk2-i
1350 SOC := qca9563
1351 DEVICE_VENDOR := ELECOM
1352 DEVICE_MODEL := WRC-300GHBK2-I
1353 IMAGE_SIZE := 7616k
1354 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
1355 ARTIFACTS := initramfs-factory.bin
1356 ARTIFACT/initramfs-factory.bin := append-image initramfs-kernel.bin | \
1357 pad-to 2 | edimax-header -b -s CSYS -m RN51 -f 0x70000 -S 0x01100000 | \
1358 elecom-product-header WRC-300GHBK2-I | check-size
1359 endif
1360 endef
1361 TARGET_DEVICES += elecom_wrc-300ghbk2-i
1362
1363 define Device/embeddedwireless_balin
1364 SOC := ar9344
1365 DEVICE_VENDOR := Embedded Wireless
1366 DEVICE_MODEL := Balin
1367 DEVICE_PACKAGES := kmod-usb-chipidea2
1368 IMAGE_SIZE := 16000k
1369 endef
1370 TARGET_DEVICES += embeddedwireless_balin
1371
1372 define Device/embeddedwireless_dorin
1373 SOC := ar9331
1374 DEVICE_VENDOR := Embedded Wireless
1375 DEVICE_MODEL := Dorin
1376 DEVICE_PACKAGES := kmod-usb-chipidea2
1377 IMAGE_SIZE := 16000k
1378 endef
1379 TARGET_DEVICES += embeddedwireless_dorin
1380
1381 define Device/engenius_eap1200h
1382 $(Device/senao_loader_okli)
1383 SOC := qca9557
1384 DEVICE_VENDOR := EnGenius
1385 DEVICE_MODEL := EAP1200H
1386 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1387 IMAGE_SIZE := 11584k
1388 LOADER_FLASH_OFFS := 0x220000
1389 SENAO_IMGNAME := ar71xx-generic-eap1200h
1390 endef
1391 TARGET_DEVICES += engenius_eap1200h
1392
1393 define Device/engenius_eap1750h
1394 $(Device/senao_loader_okli)
1395 SOC := qca9558
1396 DEVICE_VENDOR := EnGenius
1397 DEVICE_MODEL := EAP1750H
1398 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1399 IMAGE_SIZE := 11584k
1400 LOADER_FLASH_OFFS := 0x220000
1401 SENAO_IMGNAME := ar71xx-generic-eap1750h
1402 endef
1403 TARGET_DEVICES += engenius_eap1750h
1404
1405 define Device/engenius_eap300-v2
1406 $(Device/senao_loader_okli)
1407 SOC := ar9341
1408 DEVICE_VENDOR := EnGenius
1409 DEVICE_MODEL := EAP300
1410 DEVICE_VARIANT := v2
1411 IMAGE_SIZE := 12096k
1412 LOADER_FLASH_OFFS := 0x220000
1413 SENAO_IMGNAME := senao-eap300v2
1414 endef
1415 TARGET_DEVICES += engenius_eap300-v2
1416
1417 define Device/engenius_eap600
1418 $(Device/senao_loader_okli)
1419 SOC := ar9344
1420 DEVICE_VENDOR := EnGenius
1421 DEVICE_MODEL := EAP600
1422 IMAGE_SIZE := 12096k
1423 LOADER_FLASH_OFFS := 0x220000
1424 SENAO_IMGNAME := senao-eap600
1425 endef
1426 TARGET_DEVICES += engenius_eap600
1427
1428 define Device/engenius_ecb1200
1429 SOC := qca9557
1430 DEVICE_VENDOR := EnGenius
1431 DEVICE_MODEL := ECB1200
1432 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1433 IMAGE_SIZE := 15680k
1434 IMAGES += factory.bin
1435 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1436 append-rootfs | pad-rootfs | check-size | \
1437 senao-header -r 0x101 -p 0x6e -t 2
1438 endef
1439 TARGET_DEVICES += engenius_ecb1200
1440
1441 define Device/engenius_ecb1750
1442 SOC := qca9558
1443 DEVICE_VENDOR := EnGenius
1444 DEVICE_MODEL := ECB1750
1445 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1446 IMAGE_SIZE := 15680k
1447 IMAGES += factory.bin
1448 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1449 append-rootfs | pad-rootfs | check-size | \
1450 senao-header -r 0x101 -p 0x6d -t 2
1451 endef
1452 TARGET_DEVICES += engenius_ecb1750
1453
1454 define Device/engenius_ecb600
1455 $(Device/senao_loader_okli)
1456 SOC := ar9344
1457 DEVICE_VENDOR := EnGenius
1458 DEVICE_MODEL := ECB600
1459 IMAGE_SIZE := 12096k
1460 LOADER_FLASH_OFFS := 0x220000
1461 SENAO_IMGNAME := senao-ecb600
1462 endef
1463 TARGET_DEVICES += engenius_ecb600
1464
1465 define Device/engenius_ens202ext-v1
1466 $(Device/senao_loader_okli)
1467 SOC := ar9341
1468 DEVICE_VENDOR := EnGenius
1469 DEVICE_MODEL := ENS202EXT
1470 DEVICE_VARIANT := v1
1471 DEVICE_PACKAGES := rssileds
1472 IMAGE_SIZE := 12096k
1473 LOADER_FLASH_OFFS := 0x220000
1474 SENAO_IMGNAME := senao-ens202ext
1475 endef
1476 TARGET_DEVICES += engenius_ens202ext-v1
1477
1478 define Device/engenius_enstationac-v1
1479 $(Device/senao_loader_okli)
1480 SOC := qca9557
1481 DEVICE_VENDOR := EnGenius
1482 DEVICE_MODEL := EnStationAC
1483 DEVICE_VARIANT := v1
1484 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct rssileds
1485 IMAGE_SIZE := 11584k
1486 LOADER_FLASH_OFFS := 0x220000
1487 SENAO_IMGNAME := ar71xx-generic-enstationac
1488 endef
1489 TARGET_DEVICES += engenius_enstationac-v1
1490
1491 define Device/engenius_epg5000
1492 SOC := qca9558
1493 DEVICE_VENDOR := EnGenius
1494 DEVICE_MODEL := EPG5000
1495 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
1496 IMAGE_SIZE := 14656k
1497 IMAGES += factory.dlf
1498 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1499 append-rootfs | pad-rootfs | check-size | \
1500 senao-header -r 0x101 -p 0x71 -t 2
1501 SUPPORTED_DEVICES += epg5000
1502 endef
1503 TARGET_DEVICES += engenius_epg5000
1504
1505 define Device/engenius_esr1200
1506 SOC := qca9557
1507 DEVICE_VENDOR := EnGenius
1508 DEVICE_MODEL := ESR1200
1509 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
1510 IMAGE_SIZE := 14656k
1511 IMAGES += factory.dlf
1512 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1513 append-rootfs | pad-rootfs | check-size | \
1514 senao-header -r 0x101 -p 0x61 -t 2
1515 SUPPORTED_DEVICES += esr1200 esr1750 engenius,esr1750
1516 endef
1517 TARGET_DEVICES += engenius_esr1200
1518
1519 define Device/engenius_esr1750
1520 SOC := qca9558
1521 DEVICE_VENDOR := EnGenius
1522 DEVICE_MODEL := ESR1750
1523 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
1524 IMAGE_SIZE := 14656k
1525 IMAGES += factory.dlf
1526 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1527 append-rootfs | pad-rootfs | check-size | \
1528 senao-header -r 0x101 -p 0x62 -t 2
1529 SUPPORTED_DEVICES += esr1750 esr1200 engenius,esr1200
1530 endef
1531 TARGET_DEVICES += engenius_esr1750
1532
1533 define Device/engenius_esr900
1534 SOC := qca9558
1535 DEVICE_VENDOR := EnGenius
1536 DEVICE_MODEL := ESR900
1537 DEVICE_PACKAGES := kmod-usb2
1538 IMAGE_SIZE := 14656k
1539 IMAGES += factory.dlf
1540 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1541 append-rootfs | pad-rootfs | check-size | \
1542 senao-header -r 0x101 -p 0x4e -t 2
1543 SUPPORTED_DEVICES += esr900
1544 endef
1545 TARGET_DEVICES += engenius_esr900
1546
1547 define Device/engenius_ews511ap
1548 SOC := qca9531
1549 DEVICE_VENDOR := EnGenius
1550 DEVICE_MODEL := EWS511AP
1551 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
1552 IMAGE_SIZE := 16000k
1553 endef
1554 TARGET_DEVICES += engenius_ews511ap
1555
1556 define Device/engenius_ews_dual_ap
1557 $(Device/senao_loader_okli)
1558 SOC := qca9558
1559 DEVICE_VENDOR := EnGenius
1560 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1561 IMAGE_SIZE := 11584k
1562 LOADER_FLASH_OFFS := 0x220000
1563 endef
1564
1565 define Device/engenius_ews660ap
1566 $(Device/engenius_ews_dual_ap)
1567 DEVICE_MODEL := EWS660AP
1568 SENAO_IMGNAME := ar71xx-generic-ews660ap
1569 endef
1570 TARGET_DEVICES += engenius_ews660ap
1571
1572 define Device/engenius_ens1750
1573 $(Device/engenius_ews_dual_ap)
1574 DEVICE_MODEL := ENS1750
1575 SENAO_IMGNAME := ar71xx-generic-ens1750
1576 endef
1577 TARGET_DEVICES += engenius_ens1750
1578
1579 define Device/enterasys_ws-ap3705i
1580 SOC := ar9344
1581 DEVICE_VENDOR := Enterasys
1582 DEVICE_MODEL := WS-AP3705i
1583 IMAGE_SIZE := 30528k
1584 endef
1585 TARGET_DEVICES += enterasys_ws-ap3705i
1586
1587 define Device/etactica_eg200
1588 SOC := ar9331
1589 DEVICE_VENDOR := eTactica
1590 DEVICE_MODEL := EG200
1591 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
1592 kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
1593 IMAGE_SIZE := 16000k
1594 SUPPORTED_DEVICES += rme-eg200
1595 endef
1596 TARGET_DEVICES += etactica_eg200
1597
1598 define Device/extreme-networks_ws-ap3805i
1599 SOC := qca9557
1600 BLOCKSIZE := 256k
1601 DEVICE_VENDOR := Extreme Networks
1602 DEVICE_MODEL := WS-AP3805i
1603 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1604 IMAGE_SIZE := 29440k
1605 endef
1606 TARGET_DEVICES += extreme-networks_ws-ap3805i
1607
1608 define Device/fortinet_fap_common
1609 $(Device/senao_loader_okli)
1610 DEVICE_VENDOR := Fortinet
1611 IMAGE_SIZE := 9216k
1612 LOADER_FLASH_OFFS := 0x040000
1613 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1614 append-rootfs | pad-rootfs | \
1615 check-size | pad-to $$$$(IMAGE_SIZE) | \
1616 append-loader-okli-uimage $(1) | pad-to 10944k | \
1617 gzip-filename $$$$(FACTORY_IMG_NAME)
1618 endef
1619
1620 define Device/fortinet_fap-220-b
1621 $(Device/fortinet_fap_common)
1622 SOC := ar7161
1623 DEVICE_MODEL := FAP-220-B
1624 FACTORY_IMG_NAME := FAP22B-9.99-AP-build999-999999-patch99
1625 DEVICE_PACKAGES := -uboot-envtools kmod-usb-ohci kmod-usb2 \
1626 kmod-owl-loader
1627 endef
1628 TARGET_DEVICES += fortinet_fap-220-b
1629
1630 define Device/fortinet_fap-221-b
1631 $(Device/fortinet_fap_common)
1632 SOC := ar9344
1633 DEVICE_MODEL := FAP-221-B
1634 FACTORY_IMG_NAME := FP221B-9.99-AP-build999-999999-patch99
1635 endef
1636 TARGET_DEVICES += fortinet_fap-221-b
1637
1638 define Device/glinet_6408
1639 $(Device/tplink-8mlzma)
1640 SOC := ar9331
1641 DEVICE_VENDOR := GL.iNet
1642 DEVICE_MODEL := 6408
1643 DEVICE_PACKAGES := kmod-usb-chipidea2
1644 IMAGE_SIZE := 8000k
1645 TPLINK_HWID := 0x08000001
1646 IMAGES := sysupgrade.bin
1647 SUPPORTED_DEVICES += gl-inet
1648 endef
1649 TARGET_DEVICES += glinet_6408
1650
1651 define Device/glinet_6416
1652 $(Device/tplink-16mlzma)
1653 SOC := ar9331
1654 DEVICE_VENDOR := GL.iNet
1655 DEVICE_MODEL := 6416
1656 DEVICE_PACKAGES := kmod-usb-chipidea2
1657 IMAGE_SIZE := 16192k
1658 TPLINK_HWID := 0x08000001
1659 IMAGES := sysupgrade.bin
1660 SUPPORTED_DEVICES += gl-inet
1661 endef
1662 TARGET_DEVICES += glinet_6416
1663
1664 define Device/glinet_gl-ar150
1665 SOC := ar9330
1666 DEVICE_VENDOR := GL.iNet
1667 DEVICE_MODEL := GL-AR150
1668 DEVICE_PACKAGES := kmod-usb-chipidea2
1669 IMAGE_SIZE := 16000k
1670 SUPPORTED_DEVICES += gl-ar150
1671 endef
1672 TARGET_DEVICES += glinet_gl-ar150
1673
1674 define Device/glinet_gl-ar300m-common-nor
1675 SOC := qca9531
1676 DEVICE_VENDOR := GL.iNet
1677 DEVICE_PACKAGES := kmod-usb2
1678 IMAGE_SIZE := 16000k
1679 SUPPORTED_DEVICES += gl-ar300m
1680 endef
1681
1682 define Device/glinet_gl-ar300m-lite
1683 $(Device/glinet_gl-ar300m-common-nor)
1684 DEVICE_MODEL := GL-AR300M
1685 DEVICE_VARIANT := Lite
1686 endef
1687 TARGET_DEVICES += glinet_gl-ar300m-lite
1688
1689 define Device/glinet_gl-ar300m16
1690 $(Device/glinet_gl-ar300m-common-nor)
1691 DEVICE_MODEL := GL-AR300M16
1692 endef
1693 TARGET_DEVICES += glinet_gl-ar300m16
1694
1695 define Device/glinet_gl-ar750
1696 SOC := qca9531
1697 DEVICE_VENDOR := GL.iNet
1698 DEVICE_MODEL := GL-AR750
1699 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
1700 IMAGE_SIZE := 16000k
1701 SUPPORTED_DEVICES += gl-ar750
1702 endef
1703 TARGET_DEVICES += glinet_gl-ar750
1704
1705 define Device/glinet_gl-mifi
1706 SOC := ar9331
1707 DEVICE_VENDOR := GL.iNET
1708 DEVICE_MODEL := GL-MiFi
1709 DEVICE_PACKAGES := kmod-usb-chipidea2
1710 IMAGE_SIZE := 16000k
1711 SUPPORTED_DEVICES += gl-mifi
1712 endef
1713 TARGET_DEVICES += glinet_gl-mifi
1714
1715 define Device/glinet_gl-usb150
1716 SOC := ar9331
1717 DEVICE_VENDOR := GL.iNET
1718 DEVICE_MODEL := GL-USB150
1719 IMAGE_SIZE := 16000k
1720 SUPPORTED_DEVICES += gl-usb150
1721 endef
1722 TARGET_DEVICES += glinet_gl-usb150
1723
1724 define Device/glinet_gl-x300b
1725 SOC := qca9531
1726 DEVICE_VENDOR := GL.iNet
1727 DEVICE_MODEL := GL-X300B
1728 DEVICE_PACKAGES := kmod-usb2
1729 IMAGE_SIZE := 16000k
1730 endef
1731 TARGET_DEVICES += glinet_gl-x300b
1732
1733 define Device/glinet_gl-x750
1734 SOC := qca9531
1735 DEVICE_VENDOR := GL.iNet
1736 DEVICE_MODEL := GL-X750
1737 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
1738 IMAGE_SIZE := 16000k
1739 endef
1740 TARGET_DEVICES += glinet_gl-x750
1741
1742 define Device/hak5_lan-turtle
1743 $(Device/tplink-16mlzma)
1744 SOC := ar9331
1745 DEVICE_VENDOR := Hak5
1746 DEVICE_MODEL := LAN Turtle
1747 TPLINK_HWID := 0x5348334c
1748 IMAGES := sysupgrade.bin
1749 DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
1750 -uboot-envtools -wpad-basic-mbedtls
1751 SUPPORTED_DEVICES += lan-turtle
1752 endef
1753 TARGET_DEVICES += hak5_lan-turtle
1754
1755 define Device/hak5_packet-squirrel
1756 $(Device/tplink-16mlzma)
1757 SOC := ar9331
1758 DEVICE_VENDOR := Hak5
1759 DEVICE_MODEL := Packet Squirrel
1760 TPLINK_HWID := 0x5351524c
1761 IMAGES := sysupgrade.bin
1762 DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
1763 -uboot-envtools -wpad-basic-mbedtls
1764 SUPPORTED_DEVICES += packet-squirrel
1765 endef
1766 TARGET_DEVICES += hak5_packet-squirrel
1767
1768 define Device/hak5_wifi-pineapple-nano
1769 $(Device/tplink-16mlzma)
1770 SOC := ar9331
1771 DEVICE_VENDOR := Hak5
1772 DEVICE_MODEL := WiFi Pineapple NANO
1773 TPLINK_HWID := 0x4e414e4f
1774 IMAGES := sysupgrade.bin
1775 DEVICE_PACKAGES := kmod-ath9k-htc kmod-usb-chipidea2 kmod-usb-storage \
1776 -swconfig -uboot-envtools
1777 SUPPORTED_DEVICES += wifi-pineapple-nano
1778 endef
1779 TARGET_DEVICES += hak5_wifi-pineapple-nano
1780
1781 define Device/hiwifi_hc6361
1782 SOC := ar9331
1783 DEVICE_VENDOR := HiWiFi
1784 DEVICE_MODEL := HC6361
1785 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-chipidea2 kmod-usb-storage \
1786 kmod-fs-ext4 kmod-nls-iso8859-1 e2fsprogs
1787 BOARDNAME := HiWiFi-HC6361
1788 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-to $$(BLOCKSIZE)
1789 IMAGE_SIZE := 16128k
1790 endef
1791 TARGET_DEVICES += hiwifi_hc6361
1792
1793 define Device/huawei_ap5030dn
1794 SOC := qca9550
1795 DEVICE_VENDOR := Huawei
1796 DEVICE_MODEL := AP5030DN
1797 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
1798 LOADER_TYPE := bin
1799 LOADER_FLASH_OFFS := 0x111DC0
1800 KERNEL_SIZE := 15360k
1801 IMAGE_SIZE := 30720k
1802 COMPILE := loader-$(1).bin
1803 COMPILE/loader-$(1).bin := loader-okli-compile | pad-to 64k | uImage none
1804 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128
1805 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
1806 endef
1807 TARGET_DEVICES += huawei_ap5030dn
1808
1809 define Device/huawei_ap6010dn
1810 SOC := ar9344
1811 DEVICE_VENDOR := Huawei
1812 DEVICE_MODEL := AP6010DN
1813 LOADER_TYPE := bin
1814 LOADER_FLASH_OFFS := 0x111DC0
1815 KERNEL_SIZE := 15360k
1816 IMAGE_SIZE := 30720k
1817 COMPILE := loader-$(1).bin
1818 COMPILE/loader-$(1).bin := loader-okli-compile | pad-to 64k | uImage none
1819 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128
1820 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
1821 endef
1822 TARGET_DEVICES += huawei_ap6010dn
1823
1824 define Device/iodata_etg3-r
1825 SOC := ar9342
1826 DEVICE_VENDOR := I-O DATA
1827 DEVICE_MODEL := ETG3-R
1828 IMAGE_SIZE := 7680k
1829 DEVICE_PACKAGES := -iwinfo -kmod-ath9k -wpad-basic-mbedtls
1830 endef
1831 TARGET_DEVICES += iodata_etg3-r
1832
1833 define Device/iodata_wn-ac1167dgr
1834 SOC := qca9557
1835 DEVICE_VENDOR := I-O DATA
1836 DEVICE_MODEL := WN-AC1167DGR
1837 IMAGE_SIZE := 14656k
1838 IMAGES += factory.bin
1839 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1840 append-rootfs | pad-rootfs | check-size | \
1841 senao-header -r 0x30a -p 0x61 -t 2
1842 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1843 endef
1844 TARGET_DEVICES += iodata_wn-ac1167dgr
1845
1846 define Device/iodata_wn-ac1600dgr
1847 SOC := qca9557
1848 DEVICE_VENDOR := I-O DATA
1849 DEVICE_MODEL := WN-AC1600DGR
1850 IMAGE_SIZE := 14656k
1851 IMAGES += factory.bin
1852 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1853 append-rootfs | pad-rootfs | check-size | \
1854 senao-header -r 0x30a -p 0x60 -t 2 -v 200
1855 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1856 endef
1857 TARGET_DEVICES += iodata_wn-ac1600dgr
1858
1859 define Device/iodata_wn-ac1600dgr2
1860 SOC := qca9557
1861 DEVICE_VENDOR := I-O DATA
1862 DEVICE_MODEL := WN-AC1600DGR2/DGR3
1863 IMAGE_SIZE := 14656k
1864 IMAGES += dgr2-dgr3-factory.bin
1865 IMAGE/dgr2-dgr3-factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1866 append-rootfs | pad-rootfs | check-size | \
1867 senao-header -r 0x30a -p 0x60 -t 2 -v 200
1868 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
1869 endef
1870 TARGET_DEVICES += iodata_wn-ac1600dgr2
1871
1872 define Device/iodata_wn-ag300dgr
1873 SOC := ar1022
1874 DEVICE_VENDOR := I-O DATA
1875 DEVICE_MODEL := WN-AG300DGR
1876 IMAGE_SIZE := 15424k
1877 IMAGES += factory.bin
1878 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1879 append-rootfs | pad-rootfs | check-size | \
1880 senao-header -r 0x30a -p 0x47 -t 2
1881 DEVICE_PACKAGES := kmod-usb2
1882 endef
1883 TARGET_DEVICES += iodata_wn-ag300dgr
1884
1885 define Device/jjplus_ja76pf2
1886 SOC := ar7161
1887 DEVICE_VENDOR := jjPlus
1888 DEVICE_MODEL := JA76PF2
1889 DEVICE_PACKAGES += -kmod-ath9k -swconfig -wpad-basic-mbedtls -uboot-envtools fconfig kmod-hwmon-lm75
1890 LOADER_TYPE := bin
1891 LOADER_FLASH_OFFS := 0x60000
1892 COMPILE := loader-$(1).bin
1893 COMPILE/loader-$(1).bin := loader-okli-compile | lzma | pad-to 128k
1894 ARTIFACTS := loader.bin
1895 ARTIFACT/loader.bin := append-loader-okli $(1)
1896 IMAGES += firmware.bin
1897 IMAGE/firmware.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
1898 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | check-size
1899 IMAGE/sysupgrade.bin := $$(IMAGE/firmware.bin) | \
1900 sysupgrade-tar kernel=$$$$(KDIR)/loader-$(1).bin rootfs=$$$$@ | append-metadata
1901 KERNEL := kernel-bin | append-dtb | lzma
1902 KERNEL_INITRAMFS := kernel-bin | append-dtb
1903 IMAGE_SIZE := 15872k
1904 DEVICE_COMPAT_VERSION := 2.0
1905 DEVICE_COMPAT_MESSAGE := Partition design has changed compared to older versions (19.07 and 21.02) \
1906 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
1907 Downgrading OpenWrt version will involve usage of bootloader command line interface.
1908 endef
1909 TARGET_DEVICES += jjplus_ja76pf2
1910
1911 define Device/jjplus_jwap230
1912 SOC := qca9558
1913 DEVICE_VENDOR := jjPlus
1914 DEVICE_MODEL := JWAP230
1915 IMAGE_SIZE := 16000k
1916 endef
1917 TARGET_DEVICES += jjplus_jwap230
1918
1919 define Device/joyit_jt-or750i
1920 SOC := qca9531
1921 DEVICE_VENDOR := Joy-IT
1922 DEVICE_MODEL := JT-OR750i
1923 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
1924 IMAGE_SIZE := 16000k
1925 endef
1926 TARGET_DEVICES += joyit_jt-or750i
1927
1928 define Device/kuwfi_c910
1929 $(Device/loader-okli-uimage)
1930 SOC := qca9533
1931 DEVICE_VENDOR := KuWFi
1932 DEVICE_MODEL := C910
1933 DEVICE_PACKAGES := kmod-usb2 kmod-usb-net-cdc-ether comgt-ncm
1934 LOADER_FLASH_OFFS := 0x50000
1935 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
1936 IMAGE_SIZE := 15936k
1937 IMAGES += factory.bin
1938 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1939 append-rootfs | pad-rootfs | check-size | pad-to 14528k | \
1940 append-loader-okli-uimage $(1) | pad-to 64k
1941 endef
1942 TARGET_DEVICES += kuwfi_c910
1943
1944 define Device/letv_lba-047-ch
1945 $(Device/loader-okli-uimage)
1946 SOC := qca9531
1947 DEVICE_VENDOR := Letv
1948 DEVICE_MODEL := LBA-047-CH
1949 DEVICE_PACKAGES := -uboot-envtools
1950 FACTORY_SIZE := 14528k
1951 IMAGE_SIZE := 15936k
1952 LOADER_FLASH_OFFS := 0x50000
1953 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
1954 IMAGES += kernel.bin rootfs.bin
1955 IMAGE/kernel.bin := append-loader-okli-uimage $(1) | pad-to 64k
1956 IMAGE/rootfs.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
1957 append-rootfs | pad-rootfs | check-size $$$$(FACTORY_SIZE)
1958 endef
1959 TARGET_DEVICES += letv_lba-047-ch
1960
1961 define Device/librerouter_librerouter-v1
1962 SOC := qca9558
1963 DEVICE_VENDOR := Librerouter
1964 DEVICE_MODEL := LibreRouter
1965 DEVICE_VARIANT := v1
1966 IMAGE_SIZE := 7936k
1967 DEVICE_PACKAGES := kmod-usb2
1968 endef
1969 TARGET_DEVICES += librerouter_librerouter-v1
1970
1971 define Device/meraki_mr12
1972 SOC := ar7242
1973 DEVICE_VENDOR := Meraki
1974 DEVICE_MODEL := MR12
1975 IMAGE_SIZE := 15616k
1976 DEVICE_PACKAGES := kmod-owl-loader rssileds
1977 SUPPORTED_DEVICES += mr12
1978 DEVICE_COMPAT_VERSION := 2.0
1979 DEVICE_COMPAT_MESSAGE := Partitions differ from ar71xx version of MR12. Image format is incompatible. \
1980 To use sysupgrade, you must change /lib/update/common.sh::get_image to prepend 128K zeroes to this image, \
1981 and change the bootcmd in u-boot to "bootm 0xbf0a0000". After that, you can use "sysupgrade -F -n". \
1982 Make sure you do not keep your old config, as ethernet setup is not compatible either. \
1983 For more details, see the OpenWrt Wiki: https://openwrt.org/toh/meraki/MR12, \
1984 or the commit message of the MR12 ath79 port on git.openwrt.org.
1985 endef
1986 TARGET_DEVICES += meraki_mr12
1987
1988 define Device/meraki_mr16
1989 SOC := ar7161
1990 DEVICE_VENDOR := Meraki
1991 DEVICE_MODEL := MR16
1992 IMAGE_SIZE := 15616k
1993 DEVICE_PACKAGES := kmod-owl-loader
1994 SUPPORTED_DEVICES += mr16
1995 DEVICE_COMPAT_VERSION := 2.0
1996 DEVICE_COMPAT_MESSAGE := Partitions differ from ar71xx version of MR16. Image format is incompatible. \
1997 To use sysupgrade, you must change /lib/update/common.sh::get_image to prepend 128K zeroes to this image, \
1998 and change the bootcmd in u-boot to "bootm 0xbf0a0000". After that, you can use "sysupgrade -F". \
1999 For more details, see the OpenWrt Wiki: https://openwrt.org/toh/meraki/mr16, \
2000 or the commit message of the MR16 ath79 port on git.openwrt.org.
2001 endef
2002 TARGET_DEVICES += meraki_mr16
2003
2004 define Device/mercury_mw4530r-v1
2005 $(Device/tplink-8mlzma)
2006 SOC := ar9344
2007 DEVICE_VENDOR := Mercury
2008 DEVICE_MODEL := MW4530R
2009 DEVICE_VARIANT := v1
2010 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
2011 TPLINK_HWID := 0x45300001
2012 SUPPORTED_DEVICES += tl-wdr4300
2013 endef
2014 TARGET_DEVICES += mercury_mw4530r-v1
2015
2016 define Device/moxa_awk-1137c
2017 SOC := ar9344
2018 DEVICE_MODEL := AWK-1137C
2019 DEVICE_VENDOR := MOXA
2020 MOXA_MAGIC := 0x8919123028877702
2021 MOXA_HWID := 0x01080000
2022 IMAGE_SIZE := 14336k
2023 DEVICE_PACKAGES := uboot-envtools
2024 IMAGES += factory.rom
2025 IMAGE/factory.rom := $$(IMAGE/sysupgrade.bin) | moxa-encode-fw
2026 endef
2027 TARGET_DEVICES += moxa_awk-1137c
2028
2029 define Device/nec_wx1200cr
2030 DEVICE_VENDOR := NEC
2031 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
2032 IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
2033 check-size | append-metadata
2034 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
2035 endef
2036
2037 define Device/nec_wf1200cr
2038 $(Device/nec_wx1200cr)
2039 SOC := qca9561
2040 DEVICE_MODEL := Aterm WF1200CR
2041 IMAGE_SIZE := 7680k
2042 SEAMA_MTDBLOCK := 5
2043 SEAMA_SIGNATURE := wrgac62_necpf.2016gui_wf1200cr
2044 IMAGES += factory.bin
2045 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
2046 seama-seal | nec-enc ryztfyutcrqqo69d | check-size
2047 endef
2048 TARGET_DEVICES += nec_wf1200cr
2049
2050 define Device/nec_wg1200cr
2051 $(Device/nec_wx1200cr)
2052 SOC := qca9563
2053 DEVICE_MODEL := Aterm WG1200CR
2054 IMAGE_SIZE := 7616k
2055 SEAMA_MTDBLOCK := 6
2056 SEAMA_SIGNATURE := wrgac72_necpf.2016gui_wg1200cr
2057 IMAGES += factory.bin
2058 IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
2059 seama-seal | nec-enc 9gsiy9nzep452pad | check-size
2060 endef
2061 TARGET_DEVICES += nec_wg1200cr
2062
2063 define Device/nec_wg800hp
2064 SOC := qca9563
2065 DEVICE_VENDOR := NEC
2066 DEVICE_MODEL := Aterm WG800HP
2067 IMAGE_SIZE := 7104k
2068 IMAGES += factory.bin
2069 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
2070 append-rootfs | pad-rootfs | check-size | \
2071 xor-image -p 6A57190601121E4C004C1E1201061957 -x | nec-fw LASER_ATERM
2072 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct-full-htt
2073 endef
2074 TARGET_DEVICES += nec_wg800hp
2075
2076 define Device/netgear_ex7300
2077 SOC := qca9558
2078 DEVICE_VENDOR := NETGEAR
2079 DEVICE_MODEL := EX7300
2080 DEVICE_ALT0_VENDOR := NETGEAR
2081 DEVICE_ALT0_MODEL := EX6400
2082 NETGEAR_BOARD_ID := EX7300series
2083 NETGEAR_HW_ID := 29765104+16+0+128
2084 IMAGE_SIZE := 15552k
2085 IMAGES += factory.img
2086 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
2087 netgear-rootfs | pad-rootfs
2088 IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
2089 IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size
2090 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca99x0-ct
2091 SUPPORTED_DEVICES += netgear,ex6400
2092 endef
2093 TARGET_DEVICES += netgear_ex7300
2094
2095 define Device/netgear_ex7300-v2
2096 SOC := qcn5502
2097 DEVICE_VENDOR := NETGEAR
2098 DEVICE_MODEL := EX7300
2099 DEVICE_VARIANT := v2
2100 DEVICE_ALT0_VENDOR := NETGEAR
2101 DEVICE_ALT0_MODEL := EX6250
2102 DEVICE_ALT1_VENDOR := NETGEAR
2103 DEVICE_ALT1_MODEL := EX6400
2104 DEVICE_ALT1_VARIANT := v2
2105 DEVICE_ALT2_VENDOR := NETGEAR
2106 DEVICE_ALT2_MODEL := EX6410
2107 DEVICE_ALT3_VENDOR := NETGEAR
2108 DEVICE_ALT3_MODEL := EX6420
2109 DEVICE_ALT4_VENDOR := NETGEAR
2110 DEVICE_ALT4_MODEL := EX7320
2111 NETGEAR_BOARD_ID := EX7300v2series
2112 NETGEAR_HW_ID := 29765907+16+0+128
2113 IMAGE_SIZE := 14528k
2114 IMAGES += factory.img
2115 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
2116 netgear-rootfs | pad-rootfs
2117 IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
2118 IMAGE/factory.img := $$(IMAGE/default) | check-size | netgear-dni
2119 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9984-ct
2120 endef
2121 TARGET_DEVICES += netgear_ex7300-v2
2122
2123 define Device/netgear_wndap360
2124 $(Device/netgear_generic)
2125 SOC := ar7161
2126 DEVICE_MODEL := WNDAP360
2127 IMAGE_SIZE := 7744k
2128 BLOCKSIZE := 256k
2129 KERNEL := kernel-bin | append-dtb | gzip | uImage gzip
2130 KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
2131 IMAGES := sysupgrade.bin
2132 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | \
2133 check-size | append-metadata
2134 endef
2135 TARGET_DEVICES += netgear_wndap360
2136
2137 define Device/netgear_wndr3x00
2138 $(Device/netgear_generic)
2139 SOC := ar7161
2140 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
2141 kmod-leds-reset kmod-owl-loader kmod-switch-rtl8366s
2142 endef
2143
2144 define Device/netgear_wndr3700
2145 $(Device/netgear_wndr3x00)
2146 DEVICE_MODEL := WNDR3700
2147 DEVICE_VARIANT := v1
2148 UIMAGE_MAGIC := 0x33373030
2149 NETGEAR_BOARD_ID := WNDR3700
2150 IMAGE_SIZE := 7680k
2151 IMAGES += factory-NA.img
2152 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
2153 check-size
2154 SUPPORTED_DEVICES += wndr3700
2155 endef
2156 TARGET_DEVICES += netgear_wndr3700
2157
2158 define Device/netgear_wndr3700-v2
2159 $(Device/netgear_wndr3x00)
2160 DEVICE_MODEL := WNDR3700
2161 DEVICE_VARIANT := v2
2162 UIMAGE_MAGIC := 0x33373031
2163 NETGEAR_BOARD_ID := WNDR3700v2
2164 NETGEAR_HW_ID := 29763654+16+64
2165 IMAGE_SIZE := 15872k
2166 SUPPORTED_DEVICES += wndr3700 netgear,wndr3700v2
2167 endef
2168 TARGET_DEVICES += netgear_wndr3700-v2
2169
2170 define Device/netgear_wndr3800
2171 $(Device/netgear_wndr3x00)
2172 DEVICE_MODEL := WNDR3800
2173 UIMAGE_MAGIC := 0x33373031
2174 NETGEAR_BOARD_ID := WNDR3800
2175 NETGEAR_HW_ID := 29763654+16+128
2176 IMAGE_SIZE := 15872k
2177 SUPPORTED_DEVICES += wndr3700
2178 endef
2179 TARGET_DEVICES += netgear_wndr3800
2180
2181 define Device/netgear_wndr3800ch
2182 $(Device/netgear_wndr3x00)
2183 DEVICE_MODEL := WNDR3800CH
2184 UIMAGE_MAGIC := 0x33373031
2185 NETGEAR_BOARD_ID := WNDR3800CH
2186 NETGEAR_HW_ID := 29763654+16+128
2187 IMAGE_SIZE := 15872k
2188 SUPPORTED_DEVICES += wndr3700
2189 endef
2190 TARGET_DEVICES += netgear_wndr3800ch
2191
2192 define Device/netgear_wndrmac-v1
2193 $(Device/netgear_wndr3x00)
2194 DEVICE_MODEL := WNDRMAC
2195 DEVICE_VARIANT := v1
2196 UIMAGE_MAGIC := 0x33373031
2197 NETGEAR_BOARD_ID := WNDRMAC
2198 NETGEAR_HW_ID := 29763654+16+64
2199 IMAGE_SIZE := 15872k
2200 SUPPORTED_DEVICES += wndr3700
2201 endef
2202 TARGET_DEVICES += netgear_wndrmac-v1
2203
2204 define Device/netgear_wndrmac-v2
2205 $(Device/netgear_wndr3x00)
2206 DEVICE_MODEL := WNDRMAC
2207 DEVICE_VARIANT := v2
2208 UIMAGE_MAGIC := 0x33373031
2209 NETGEAR_BOARD_ID := WNDRMACv2
2210 NETGEAR_HW_ID := 29763654+16+128
2211 IMAGE_SIZE := 15872k
2212 SUPPORTED_DEVICES += wndr3700
2213 endef
2214 TARGET_DEVICES += netgear_wndrmac-v2
2215
2216 define Device/netgear_wnr2200_common
2217 $(Device/netgear_generic)
2218 SOC := ar7241
2219 DEVICE_MODEL := WNR2200
2220 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
2221 UIMAGE_MAGIC := 0x32323030
2222 NETGEAR_BOARD_ID := wnr2200
2223 endef
2224
2225 define Device/netgear_wnr2200-8m
2226 $(Device/netgear_wnr2200_common)
2227 DEVICE_VARIANT := 8M
2228 NETGEAR_HW_ID := 29763600+08+64
2229 IMAGE_SIZE := 7808k
2230 IMAGES += factory-NA.img
2231 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
2232 check-size
2233 SUPPORTED_DEVICES += wnr2200
2234 endef
2235 TARGET_DEVICES += netgear_wnr2200-8m
2236
2237 define Device/netgear_wnr2200-16m
2238 $(Device/netgear_wnr2200_common)
2239 DEVICE_VARIANT := 16M
2240 DEVICE_ALT0_VENDOR := NETGEAR
2241 DEVICE_ALT0_MODEL := WNR2200
2242 DEVICE_ALT0_VARIANT := CN/RU
2243 NETGEAR_HW_ID :=
2244 IMAGE_SIZE := 16000k
2245 endef
2246 TARGET_DEVICES += netgear_wnr2200-16m
2247
2248 define Device/ocedo_koala
2249 SOC := qca9558
2250 DEVICE_VENDOR := Ocedo
2251 DEVICE_MODEL := Koala
2252 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
2253 SUPPORTED_DEVICES += koala
2254 IMAGE_SIZE := 14848k
2255 endef
2256 TARGET_DEVICES += ocedo_koala
2257
2258 define Device/ocedo_raccoon
2259 SOC := ar9344
2260 DEVICE_VENDOR := Ocedo
2261 DEVICE_MODEL := Raccoon
2262 IMAGE_SIZE := 14848k
2263 endef
2264 TARGET_DEVICES += ocedo_raccoon
2265
2266 define Device/ocedo_ursus
2267 SOC := qca9558
2268 DEVICE_VENDOR := Ocedo
2269 DEVICE_MODEL := Ursus
2270 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
2271 IMAGE_SIZE := 14848k
2272 endef
2273 TARGET_DEVICES += ocedo_ursus
2274
2275 define Device/onion_omega
2276 $(Device/tplink-16mlzma)
2277 SOC := ar9331
2278 DEVICE_VENDOR := Onion
2279 DEVICE_MODEL := Omega
2280 DEVICE_PACKAGES := kmod-usb-chipidea2
2281 SUPPORTED_DEVICES += onion-omega
2282 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
2283 IMAGE_SIZE := 16192k
2284 TPLINK_HWID := 0x04700001
2285 endef
2286 TARGET_DEVICES += onion_omega
2287
2288 define Device/openmesh_common_64k
2289 DEVICE_VENDOR := OpenMesh
2290 DEVICE_PACKAGES := uboot-envtools
2291 IMAGE_SIZE := 7808k
2292 OPENMESH_CE_TYPE :=
2293 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | \
2294 pad-to $$(BLOCKSIZE)
2295 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
2296 openmesh-image ce_type=$$$$(OPENMESH_CE_TYPE) | append-metadata
2297 endef
2298
2299 define Device/openmesh_common_256k
2300 DEVICE_VENDOR := OpenMesh
2301 DEVICE_PACKAGES := uboot-envtools
2302 IMAGE_SIZE := 7168k
2303 BLOCKSIZE := 256k
2304 OPENMESH_CE_TYPE :=
2305 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | \
2306 pad-to $$(BLOCKSIZE)
2307 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
2308 openmesh-image ce_type=$$$$(OPENMESH_CE_TYPE) | append-metadata
2309 endef
2310
2311 define Device/openmesh_a40
2312 $(Device/openmesh_common_64k)
2313 SOC := qca9558
2314 DEVICE_MODEL := A40
2315 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2
2316 OPENMESH_CE_TYPE := A60
2317 SUPPORTED_DEVICES += a40
2318 endef
2319 TARGET_DEVICES += openmesh_a40
2320
2321 define Device/openmesh_a60
2322 $(Device/openmesh_common_64k)
2323 SOC := qca9558
2324 DEVICE_MODEL := A60
2325 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2
2326 OPENMESH_CE_TYPE := A60
2327 SUPPORTED_DEVICES += a60
2328 endef
2329 TARGET_DEVICES += openmesh_a60
2330
2331 define Device/openmesh_mr600-v1
2332 $(Device/openmesh_common_64k)
2333 SOC := ar9344
2334 DEVICE_MODEL := MR600
2335 DEVICE_VARIANT := v1
2336 OPENMESH_CE_TYPE := MR600
2337 SUPPORTED_DEVICES += mr600
2338 endef
2339 TARGET_DEVICES += openmesh_mr600-v1
2340
2341 define Device/openmesh_mr600-v2
2342 $(Device/openmesh_common_64k)
2343 SOC := ar9344
2344 DEVICE_MODEL := MR600
2345 DEVICE_VARIANT := v2
2346 OPENMESH_CE_TYPE := MR600
2347 SUPPORTED_DEVICES += mr600v2
2348 endef
2349 TARGET_DEVICES += openmesh_mr600-v2
2350
2351 define Device/openmesh_mr900-v1
2352 $(Device/openmesh_common_64k)
2353 SOC := qca9558
2354 DEVICE_MODEL := MR900
2355 DEVICE_VARIANT := v1
2356 OPENMESH_CE_TYPE := MR900
2357 SUPPORTED_DEVICES += mr900
2358 endef
2359 TARGET_DEVICES += openmesh_mr900-v1
2360
2361 define Device/openmesh_mr900-v2
2362 $(Device/openmesh_common_64k)
2363 SOC := qca9558
2364 DEVICE_MODEL := MR900
2365 DEVICE_VARIANT := v2
2366 OPENMESH_CE_TYPE := MR900
2367 SUPPORTED_DEVICES += mr900v2
2368 endef
2369 TARGET_DEVICES += openmesh_mr900-v2
2370
2371 define Device/openmesh_mr1750-v1
2372 $(Device/openmesh_common_64k)
2373 SOC := qca9558
2374 DEVICE_MODEL := MR1750
2375 DEVICE_VARIANT := v1
2376 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
2377 OPENMESH_CE_TYPE := MR1750
2378 SUPPORTED_DEVICES += mr1750
2379 endef
2380 TARGET_DEVICES += openmesh_mr1750-v1
2381
2382 define Device/openmesh_mr1750-v2
2383 $(Device/openmesh_common_64k)
2384 SOC := qca9558
2385 DEVICE_MODEL := MR1750
2386 DEVICE_VARIANT := v2
2387 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
2388 OPENMESH_CE_TYPE := MR1750
2389 SUPPORTED_DEVICES += mr1750v2
2390 endef
2391 TARGET_DEVICES += openmesh_mr1750-v2
2392
2393 define Device/openmesh_om2p-v1
2394 $(Device/openmesh_common_256k)
2395 SOC := ar7240
2396 DEVICE_MODEL := OM2P
2397 DEVICE_VARIANT := v1
2398 OPENMESH_CE_TYPE := OM2P
2399 SUPPORTED_DEVICES += om2p
2400 endef
2401 TARGET_DEVICES += openmesh_om2p-v1
2402
2403 define Device/openmesh_om2p-v2
2404 $(Device/openmesh_common_256k)
2405 SOC := ar9330
2406 DEVICE_MODEL := OM2P
2407 DEVICE_VARIANT := v2
2408 OPENMESH_CE_TYPE := OM2P
2409 SUPPORTED_DEVICES += om2pv2
2410 endef
2411 TARGET_DEVICES += openmesh_om2p-v2
2412
2413 define Device/openmesh_om2p-v4
2414 $(Device/openmesh_common_256k)
2415 SOC := qca9533
2416 DEVICE_MODEL := OM2P
2417 DEVICE_VARIANT := v4
2418 OPENMESH_CE_TYPE := OM2P
2419 SUPPORTED_DEVICES += om2pv4
2420 endef
2421 TARGET_DEVICES += openmesh_om2p-v4
2422
2423 define Device/openmesh_om2p-hs-v1
2424 $(Device/openmesh_common_256k)
2425 SOC := ar9341
2426 DEVICE_MODEL := OM2P-HS
2427 DEVICE_VARIANT := v1
2428 OPENMESH_CE_TYPE := OM2P
2429 SUPPORTED_DEVICES += om2p-hs
2430 endef
2431 TARGET_DEVICES += openmesh_om2p-hs-v1
2432
2433 define Device/openmesh_om2p-hs-v2
2434 $(Device/openmesh_common_256k)
2435 SOC := ar9341
2436 DEVICE_MODEL := OM2P-HS
2437 DEVICE_VARIANT := v2
2438 OPENMESH_CE_TYPE := OM2P
2439 SUPPORTED_DEVICES += om2p-hsv2
2440 endef
2441 TARGET_DEVICES += openmesh_om2p-hs-v2
2442
2443 define Device/openmesh_om2p-hs-v3
2444 $(Device/openmesh_common_256k)
2445 SOC := ar9341
2446 DEVICE_MODEL := OM2P-HS
2447 DEVICE_VARIANT := v3
2448 OPENMESH_CE_TYPE := OM2P
2449 SUPPORTED_DEVICES += om2p-hsv3
2450 endef
2451 TARGET_DEVICES += openmesh_om2p-hs-v3
2452
2453 define Device/openmesh_om2p-hs-v4
2454 $(Device/openmesh_common_256k)
2455 SOC := qca9533
2456 DEVICE_MODEL := OM2P-HS
2457 DEVICE_VARIANT := v4
2458 OPENMESH_CE_TYPE := OM2P
2459 SUPPORTED_DEVICES += om2p-hsv4
2460 endef
2461 TARGET_DEVICES += openmesh_om2p-hs-v4
2462
2463 define Device/openmesh_om2p-lc
2464 $(Device/openmesh_common_256k)
2465 SOC := ar9330
2466 DEVICE_MODEL := OM2P-LC
2467 OPENMESH_CE_TYPE := OM2P
2468 SUPPORTED_DEVICES += om2p-lc
2469 endef
2470 TARGET_DEVICES += openmesh_om2p-lc
2471
2472 define Device/openmesh_om5p
2473 $(Device/openmesh_common_64k)
2474 SOC := ar9344
2475 DEVICE_MODEL := OM5P
2476 OPENMESH_CE_TYPE := OM5P
2477 SUPPORTED_DEVICES += om5p
2478 endef
2479 TARGET_DEVICES += openmesh_om5p
2480
2481 define Device/openmesh_om5p-ac-v1
2482 $(Device/openmesh_common_64k)
2483 SOC := qca9558
2484 DEVICE_MODEL := OM5P-AC
2485 DEVICE_VARIANT := v1
2486 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
2487 OPENMESH_CE_TYPE := OM5PAC
2488 SUPPORTED_DEVICES += om5p-ac
2489 endef
2490 TARGET_DEVICES += openmesh_om5p-ac-v1
2491
2492 define Device/openmesh_om5p-ac-v2
2493 $(Device/openmesh_common_64k)
2494 SOC := qca9558
2495 DEVICE_MODEL := OM5P-AC
2496 DEVICE_VARIANT := v2
2497 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
2498 OPENMESH_CE_TYPE := OM5PAC
2499 SUPPORTED_DEVICES += om5p-acv2
2500 endef
2501 TARGET_DEVICES += openmesh_om5p-ac-v2
2502
2503 define Device/openmesh_om5p-an
2504 $(Device/openmesh_common_64k)
2505 SOC := ar9344
2506 DEVICE_MODEL := OM5P-AN
2507 OPENMESH_CE_TYPE := OM5P
2508 SUPPORTED_DEVICES += om5p-an
2509 endef
2510 TARGET_DEVICES += openmesh_om5p-an
2511
2512 define Device/pcs_cap324
2513 SOC := ar9344
2514 DEVICE_VENDOR := PowerCloud Systems
2515 DEVICE_MODEL := CAP324
2516 IMAGE_SIZE := 16000k
2517 SUPPORTED_DEVICES += cap324
2518 endef
2519 TARGET_DEVICES += pcs_cap324
2520
2521 define Device/pcs_cr3000
2522 SOC := ar9341
2523 DEVICE_VENDOR := PowerCloud Systems
2524 DEVICE_MODEL := CR3000
2525 IMAGE_SIZE := 7808k
2526 SUPPORTED_DEVICES += cr3000
2527 endef
2528 TARGET_DEVICES += pcs_cr3000
2529
2530 define Device/pcs_cr5000
2531 SOC := ar9344
2532 DEVICE_VENDOR := PowerCloud Systems
2533 DEVICE_MODEL := CR5000
2534 DEVICE_PACKAGES := kmod-usb2
2535 IMAGE_SIZE := 7808k
2536 SUPPORTED_DEVICES += cr5000
2537 endef
2538 TARGET_DEVICES += pcs_cr5000
2539
2540 define Device/phicomm_k2t
2541 SOC := qca9563
2542 DEVICE_VENDOR := Phicomm
2543 DEVICE_MODEL := K2T
2544 IMAGE_SIZE := 15744k
2545 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
2546 check-size | append-metadata
2547 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
2548 endef
2549 TARGET_DEVICES += phicomm_k2t
2550
2551 define Device/pisen_ts-d084
2552 $(Device/tplink-8mlzma)
2553 SOC := ar9331
2554 DEVICE_VENDOR := PISEN
2555 DEVICE_MODEL := TS-D084
2556 DEVICE_PACKAGES := kmod-usb-chipidea2
2557 TPLINK_HWID := 0x07030101
2558 endef
2559 TARGET_DEVICES += pisen_ts-d084
2560
2561 define Device/pisen_wmb001n
2562 $(Device/loader-okli-uimage)
2563 SOC := ar9341
2564 DEVICE_VENDOR := PISEN
2565 DEVICE_MODEL := WMB001N
2566 IMAGE_SIZE := 14080k
2567 DEVICE_PACKAGES := kmod-i2c-gpio kmod-usb2
2568 LOADER_FLASH_OFFS := 0x20000
2569 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
2570 IMAGES += factory.bin
2571 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pisen_wmb001n-factory $(1)
2572 endef
2573 TARGET_DEVICES += pisen_wmb001n
2574
2575 define Device/pisen_wmm003n
2576 $(Device/tplink-8mlzma)
2577 SOC := ar9331
2578 DEVICE_VENDOR := PISEN
2579 DEVICE_MODEL := Cloud Easy Power (WMM003N)
2580 DEVICE_PACKAGES := kmod-usb-chipidea2
2581 TPLINK_HWID := 0x07030101
2582 endef
2583 TARGET_DEVICES += pisen_wmm003n
2584
2585 define Device/plasmacloud_pa300-common
2586 SOC := qca9533
2587 DEVICE_VENDOR := Plasma Cloud
2588 DEVICE_PACKAGES := uboot-envtools
2589 IMAGE_SIZE := 7168k
2590 IMAGES += factory.bin
2591 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-to $$(BLOCKSIZE)
2592 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA300
2593 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
2594 endef
2595
2596 define Device/plasmacloud_pa300
2597 $(Device/plasmacloud_pa300-common)
2598 DEVICE_MODEL := PA300
2599 endef
2600 TARGET_DEVICES += plasmacloud_pa300
2601
2602 define Device/plasmacloud_pa300e
2603 $(Device/plasmacloud_pa300-common)
2604 DEVICE_MODEL := PA300E
2605 endef
2606 TARGET_DEVICES += plasmacloud_pa300e
2607
2608 define Device/qca_ap143
2609 $(Device/loader-okli-uimage)
2610 SOC := qca9533
2611 DEVICE_VENDOR := Qualcomm Atheros
2612 DEVICE_MODEL := AP143
2613 DEVICE_PACKAGES := kmod-usb2
2614 SUPPORTED_DEVICES += ap143
2615 LOADER_FLASH_OFFS := 0x50000
2616 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
2617 endef
2618
2619 define Device/qca_ap143-8m
2620 $(Device/qca_ap143)
2621 DEVICE_VARIANT := (8M)
2622 IMAGE_SIZE := 7744k
2623 IMAGES += factory.bin
2624 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
2625 append-rootfs | pad-rootfs | check-size | pad-to 6336k | \
2626 append-loader-okli-uimage $(1) | pad-to 64k
2627 endef
2628 TARGET_DEVICES += qca_ap143-8m
2629
2630 define Device/qca_ap143-16m
2631 $(Device/qca_ap143)
2632 DEVICE_VARIANT := (16M)
2633 IMAGE_SIZE := 15936k
2634 IMAGES += factory.bin
2635 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
2636 append-rootfs | pad-rootfs | check-size | pad-to 14528k | \
2637 append-loader-okli-uimage $(1) | pad-to 64k
2638 endef
2639 TARGET_DEVICES += qca_ap143-16m
2640
2641 define Device/qihoo_c301
2642 $(Device/seama)
2643 SOC := ar9344
2644 DEVICE_VENDOR := Qihoo
2645 DEVICE_MODEL := C301
2646 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct \
2647 uboot-envtools
2648 IMAGE_SIZE := 15744k
2649 SEAMA_SIGNATURE := wrgac26_qihoo360_360rg
2650 SUPPORTED_DEVICES += qihoo-c301
2651 endef
2652 TARGET_DEVICES += qihoo_c301
2653
2654 define Device/qxwlan_e1700ac-v2
2655 SOC := qca9563
2656 DEVICE_VENDOR := Qxwlan
2657 DEVICE_MODEL := E1700AC
2658 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
2659 SUPPORTED_DEVICES += e1700ac-v2
2660 endef
2661
2662 define Device/qxwlan_e1700ac-v2-16m
2663 $(Device/qxwlan_e1700ac-v2)
2664 DEVICE_VARIANT := v2 (16M)
2665 IMAGE_SIZE := 15936k
2666 endef
2667 TARGET_DEVICES += qxwlan_e1700ac-v2-16m
2668
2669 define Device/qxwlan_e1700ac-v2-8m
2670 $(Device/qxwlan_e1700ac-v2)
2671 DEVICE_VARIANT := v2 (8M)
2672 IMAGE_SIZE := 7744k
2673 endef
2674 TARGET_DEVICES += qxwlan_e1700ac-v2-8m
2675
2676 define Device/qxwlan_e558-v2
2677 SOC := qca9558
2678 DEVICE_VENDOR := Qxwlan
2679 DEVICE_MODEL := E558
2680 DEVICE_PACKAGES := kmod-usb2
2681 SUPPORTED_DEVICES += e558-v2
2682 endef
2683
2684 define Device/qxwlan_e558-v2-16m
2685 $(Device/qxwlan_e558-v2)
2686 DEVICE_VARIANT := v2 (16M)
2687 IMAGE_SIZE := 15936k
2688 endef
2689 TARGET_DEVICES += qxwlan_e558-v2-16m
2690
2691 define Device/qxwlan_e558-v2-8m
2692 $(Device/qxwlan_e558-v2)
2693 DEVICE_VARIANT := v2 (8M)
2694 IMAGE_SIZE := 7744k
2695 endef
2696 TARGET_DEVICES += qxwlan_e558-v2-8m
2697
2698 define Device/qxwlan_e600g-v2
2699 SOC := qca9531
2700 DEVICE_VENDOR := Qxwlan
2701 DEVICE_MODEL := E600G
2702 DEVICE_PACKAGES := kmod-usb2
2703 SUPPORTED_DEVICES += e600g-v2
2704 endef
2705
2706 define Device/qxwlan_e600g-v2-16m
2707 $(Device/qxwlan_e600g-v2)
2708 DEVICE_VARIANT := v2 (16M)
2709 IMAGE_SIZE := 15936k
2710 endef
2711 TARGET_DEVICES += qxwlan_e600g-v2-16m
2712
2713 define Device/qxwlan_e600g-v2-8m
2714 $(Device/qxwlan_e600g-v2)
2715 DEVICE_VARIANT := v2 (8M)
2716 IMAGE_SIZE := 7744k
2717 endef
2718 TARGET_DEVICES += qxwlan_e600g-v2-8m
2719
2720 define Device/qxwlan_e600gac-v2
2721 SOC := qca9531
2722 DEVICE_VENDOR := Qxwlan
2723 DEVICE_MODEL := E600GAC
2724 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
2725 SUPPORTED_DEVICES += e600gac-v2
2726 endef
2727
2728 define Device/qxwlan_e600gac-v2-16m
2729 $(Device/qxwlan_e600gac-v2)
2730 DEVICE_VARIANT := v2 (16M)
2731 IMAGE_SIZE := 15936k
2732 endef
2733 TARGET_DEVICES += qxwlan_e600gac-v2-16m
2734
2735 define Device/qxwlan_e600gac-v2-8m
2736 $(Device/qxwlan_e600gac-v2)
2737 DEVICE_VARIANT := v2 (8M)
2738 IMAGE_SIZE := 7744k
2739 endef
2740 TARGET_DEVICES += qxwlan_e600gac-v2-8m
2741
2742 define Device/qxwlan_e750a-v4
2743 SOC := ar9344
2744 DEVICE_VENDOR := Qxwlan
2745 DEVICE_MODEL := E750A
2746 DEVICE_PACKAGES := kmod-usb2
2747 SUPPORTED_DEVICES += e750a-v4
2748 endef
2749
2750 define Device/qxwlan_e750a-v4-16m
2751 $(Device/qxwlan_e750a-v4)
2752 DEVICE_VARIANT := v4 (16M)
2753 IMAGE_SIZE := 15936k
2754 endef
2755 TARGET_DEVICES += qxwlan_e750a-v4-16m
2756
2757 define Device/qxwlan_e750a-v4-8m
2758 $(Device/qxwlan_e750a-v4)
2759 DEVICE_VARIANT := v4 (8M)
2760 IMAGE_SIZE := 7744k
2761 endef
2762 TARGET_DEVICES += qxwlan_e750a-v4-8m
2763
2764 define Device/qxwlan_e750g-v8
2765 SOC := ar9344
2766 DEVICE_VENDOR := Qxwlan
2767 DEVICE_MODEL := E750G
2768 DEVICE_PACKAGES := kmod-usb2
2769 SUPPORTED_DEVICES += e750g-v8
2770 endef
2771
2772 define Device/qxwlan_e750g-v8-16m
2773 $(Device/qxwlan_e750g-v8)
2774 DEVICE_VARIANT := v8 (16M)
2775 IMAGE_SIZE := 15936k
2776 endef
2777 TARGET_DEVICES += qxwlan_e750g-v8-16m
2778
2779 define Device/qxwlan_e750g-v8-8m
2780 $(Device/qxwlan_e750g-v8)
2781 DEVICE_VARIANT := v8 (8M)
2782 IMAGE_SIZE := 7744k
2783 endef
2784 TARGET_DEVICES += qxwlan_e750g-v8-8m
2785
2786 define Device/rosinson_wr818
2787 SOC := qca9563
2788 DEVICE_VENDOR := Rosinson
2789 DEVICE_MODEL := WR818
2790 IMAGE_SIZE := 15872k
2791 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
2792 endef
2793 TARGET_DEVICES += rosinson_wr818
2794
2795 define Device/ruckus_common
2796 DEVICE_VENDOR := Ruckus
2797 LOADER_TYPE := bin
2798 KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
2799 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
2800 endef
2801
2802 define Device/ruckus_zf7025
2803 $(Device/ruckus_common)
2804 SOC := ar7240
2805 DEVICE_MODEL := ZoneFlex 7025
2806 IMAGE_SIZE := 15616k
2807 BLOCKSIZE := 256k
2808 endef
2809 TARGET_DEVICES += ruckus_zf7025
2810
2811 define Device/ruckus_gd11_common
2812 $(Device/ruckus_common)
2813 SOC := ar7161
2814 IMAGE_SIZE := 15616k
2815 BLOCKSIZE := 256k
2816 DEVICE_PACKAGES := kmod-usb2 kmod-usb-chipidea2
2817 endef
2818
2819 define Device/ruckus_zf7341
2820 $(Device/ruckus_gd11_common)
2821 DEVICE_MODEL := ZoneFlex 7341[-U]
2822 DEVICE_PACKAGES += -swconfig
2823 endef
2824 TARGET_DEVICES += ruckus_zf7341
2825
2826 define Device/ruckus_zf7351
2827 $(Device/ruckus_gd11_common)
2828 DEVICE_MODEL := ZoneFlex 7351[-U]
2829 DEVICE_PACKAGES += -swconfig
2830 endef
2831 TARGET_DEVICES += ruckus_zf7351
2832
2833 define Device/ruckus_zf7363
2834 $(Device/ruckus_gd11_common)
2835 DEVICE_MODEL := ZoneFlex 7363[-U]
2836 DEVICE_ALT0_VENDOR := Ruckus
2837 DEVICE_ALT0_MODEL := ZoneFlex 7343[-U]
2838 endef
2839 TARGET_DEVICES += ruckus_zf7363
2840
2841 define Device/ruckus_zf73xx_common
2842 $(Device/ruckus_common)
2843 DEVICE_PACKAGES := -swconfig kmod-usb2 kmod-usb-chipidea2
2844 IMAGE_SIZE := 31744k
2845 endef
2846
2847 define Device/ruckus_zf7321
2848 $(Device/ruckus_zf73xx_common)
2849 SOC := ar9342
2850 DEVICE_MODEL := ZoneFlex 7321[-U]
2851 endef
2852 TARGET_DEVICES += ruckus_zf7321
2853
2854 define Device/ruckus_zf7372
2855 $(Device/ruckus_zf73xx_common)
2856 SOC := ar9344
2857 DEVICE_MODEL := ZoneFlex 7352/7372[-E/-U]
2858 endef
2859 TARGET_DEVICES += ruckus_zf7372
2860
2861 define Device/samsung_wam250
2862 SOC := ar9344
2863 DEVICE_VENDOR := Samsung
2864 DEVICE_MODEL := WAM250
2865 IMAGE_SIZE := 15872k
2866 DEVICE_PACKAGES := kmod-usb2
2867 SUPPORTED_DEVICES += wam250
2868 endef
2869 TARGET_DEVICES += samsung_wam250
2870
2871 define Device/siemens_ws-ap3610
2872 SOC := ar7161
2873 DEVICE_VENDOR := Siemens
2874 DEVICE_MODEL := WS-AP3610
2875 IMAGE_SIZE := 14336k
2876 BLOCKSIZE := 256k
2877 LOADER_TYPE := bin
2878 LOADER_FLASH_OFFS := 0x82000
2879 COMPILE := loader-$(1).bin
2880 COMPILE/loader-$(1).bin := loader-okli-compile
2881 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128 | uImage none
2882 KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
2883 endef
2884 TARGET_DEVICES += siemens_ws-ap3610
2885
2886 define Device/sitecom_wlr-7100
2887 SOC := ar1022
2888 DEVICE_VENDOR := Sitecom
2889 DEVICE_MODEL := WLR-7100
2890 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct-smallbuffers kmod-usb2
2891 IMAGES += factory.dlf
2892 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
2893 append-rootfs | pad-rootfs | check-size | \
2894 senao-header -r 0x222 -p 0x53 -t 2
2895 IMAGE_SIZE := 7488k
2896 endef
2897 TARGET_DEVICES += sitecom_wlr-7100
2898
2899 define Device/sitecom_wlr-8100
2900 SOC := qca9558
2901 DEVICE_VENDOR := Sitecom
2902 DEVICE_MODEL := WLR-8100
2903 DEVICE_ALT0_VENDOR := Sitecom
2904 DEVICE_ALT0_MODEL := X8 AC1750
2905 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2 kmod-usb3
2906 SUPPORTED_DEVICES += wlr8100
2907 IMAGES += factory.dlf
2908 IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
2909 append-rootfs | pad-rootfs | check-size | \
2910 senao-header -r 0x222 -p 0x56 -t 2
2911 IMAGE_SIZE := 15424k
2912 endef
2913 TARGET_DEVICES += sitecom_wlr-8100
2914
2915 define Device/sophos_ap15
2916 SOC := qca9557
2917 DEVICE_VENDOR := Sophos
2918 DEVICE_MODEL := AP15
2919 IMAGE_SIZE := 15936k
2920 endef
2921 TARGET_DEVICES += sophos_ap15
2922
2923 define Device/sophos_ap55
2924 SOC := qca9558
2925 DEVICE_VENDOR := Sophos
2926 DEVICE_MODEL := AP55
2927 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2
2928 IMAGE_SIZE := 15936k
2929 endef
2930 TARGET_DEVICES += sophos_ap55
2931
2932 define Device/sophos_ap55c
2933 SOC := qca9558
2934 DEVICE_VENDOR := Sophos
2935 DEVICE_MODEL := AP55C
2936 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
2937 IMAGE_SIZE := 15936k
2938 endef
2939 TARGET_DEVICES += sophos_ap55c
2940
2941 define Device/sophos_ap100
2942 SOC := qca9558
2943 DEVICE_VENDOR := Sophos
2944 DEVICE_MODEL := AP100
2945 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2
2946 IMAGE_SIZE := 15936k
2947 endef
2948 TARGET_DEVICES += sophos_ap100
2949
2950 define Device/sophos_ap100c
2951 SOC := qca9558
2952 DEVICE_VENDOR := Sophos
2953 DEVICE_MODEL := AP100C
2954 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
2955 IMAGE_SIZE := 15936k
2956 endef
2957 TARGET_DEVICES += sophos_ap100c
2958
2959 define Device/telco_t1
2960 SOC := qca9531
2961 DEVICE_VENDOR := Telco
2962 DEVICE_MODEL := T1
2963 DEVICE_PACKAGES := kmod-usb2 kmod-usb-net-qmi-wwan \
2964 kmod-usb-serial-option uqmi -swconfig -uboot-envtools
2965 IMAGE_SIZE := 16192k
2966 SUPPORTED_DEVICES += telco_electronics,tel-t1
2967 endef
2968 TARGET_DEVICES += telco_t1
2969
2970 define Device/teltonika_rut230-v1
2971 SOC := ar9331
2972 DEVICE_VENDOR := Teltonika
2973 DEVICE_MODEL := RUT230
2974 DEVICE_VARIANT := v1
2975 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-acm kmod-usb-net-qmi-wwan \
2976 uqmi -uboot-envtools
2977 IMAGE_SIZE := 15552k
2978 TPLINK_HWID := 0x32200002
2979 TPLINK_HWREV := 0x1
2980 TPLINK_HEADER_VERSION := 1
2981 KERNEL := kernel-bin | append-dtb | lzma | teltonika-v1-header
2982 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
2983 IMAGES += factory.bin
2984 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
2985 pad-rootfs | pad-extra 64 | teltonika-fw-fake-checksum 54 | check-size
2986 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
2987 append-rootfs | pad-rootfs | append-metadata |\
2988 check-size
2989 endef
2990 TARGET_DEVICES += teltonika_rut230-v1
2991
2992 define Device/teltonika_rut300
2993 SOC := qca9531
2994 DEVICE_VENDOR := Teltonika
2995 DEVICE_MODEL := RUT300
2996 SUPPORTED_TELTONIKA_DEVICES := teltonika,rut30x
2997 DEVICE_PACKAGES := -kmod-ath9k -uboot-envtools -wpad-basic-mbedtls kmod-usb2
2998 IMAGE_SIZE := 15552k
2999 IMAGES += factory.bin
3000 IMAGE/factory.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | \
3001 append-rootfs | pad-rootfs | append-metadata-teltonika | \
3002 check-size $$$$(IMAGE_SIZE)
3003 IMAGE/sysupgrade.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | \
3004 append-rootfs | pad-rootfs | append-metadata | \
3005 check-size $$$$(IMAGE_SIZE)
3006 endef
3007 TARGET_DEVICES += teltonika_rut300
3008
3009 define Device/teltonika_rut955
3010 SOC := ar9344
3011 DEVICE_VENDOR := Teltonika
3012 DEVICE_MODEL := RUT955
3013 DEVICE_PACKAGES := kmod-usb2 kmod-usb-acm kmod-usb-net-qmi-wwan \
3014 kmod-usb-serial-option kmod-hwmon-mcp3021 uqmi -uboot-envtools
3015 IMAGE_SIZE := 15552k
3016 TPLINK_HWID := 0x35000001
3017 TPLINK_HWREV := 0x1
3018 TPLINK_HEADER_VERSION := 1
3019 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header
3020 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
3021 IMAGES += factory.bin
3022 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
3023 pad-rootfs | teltonika-fw-fake-checksum 20 | append-string master |\
3024 append-md5sum-bin | check-size
3025 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
3026 append-rootfs | pad-rootfs | check-size | append-metadata
3027 endef
3028 TARGET_DEVICES += teltonika_rut955
3029
3030 define Device/teltonika_rut955-h7v3c0
3031 $(Device/teltonika_rut955)
3032 DEVICE_VARIANT := H7V3C0
3033 endef
3034 TARGET_DEVICES += teltonika_rut955-h7v3c0
3035
3036 define Device/trendnet_tew-673gru
3037 SOC := ar7161
3038 DEVICE_VENDOR := Trendnet
3039 DEVICE_MODEL := TEW-673GRU
3040 DEVICE_VARIANT := v1.0R
3041 DEVICE_PACKAGES := -uboot-envtools kmod-usb-ohci kmod-usb2 \
3042 kmod-owl-loader kmod-switch-rtl8366s
3043 IMAGE_SIZE := 7808k
3044 FACTORY_SIZE := 6144k
3045 # IMAGES += factory.bin
3046 IMAGE/factory.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
3047 pad-rootfs | check-size $$$$(FACTORY_SIZE) | pad-to $$$$(FACTORY_SIZE) | \
3048 append-string AP94-AR7161-RT-080619-01
3049 endef
3050 TARGET_DEVICES += trendnet_tew-673gru
3051
3052 define Device/trendnet_tew-823dru
3053 SOC := qca9558
3054 DEVICE_VENDOR := Trendnet
3055 DEVICE_MODEL := TEW-823DRU
3056 DEVICE_VARIANT := v1.0R
3057 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
3058 SUPPORTED_DEVICES += tew-823dru
3059 IMAGE_SIZE := 15296k
3060 IMAGES := factory.bin sysupgrade.bin
3061 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
3062 pad-rootfs
3063 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
3064 append-string 00AP135AR9558-RT-131129-00 | check-size
3065 IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
3066 endef
3067 TARGET_DEVICES += trendnet_tew-823dru
3068
3069 define Device/wallys_dr531
3070 SOC := qca9531
3071 DEVICE_VENDOR := Wallys
3072 DEVICE_MODEL := DR531
3073 DEVICE_PACKAGES := kmod-usb2 rssileds
3074 IMAGE_SIZE := 7808k
3075 SUPPORTED_DEVICES += dr531
3076 endef
3077 TARGET_DEVICES += wallys_dr531
3078
3079 define Device/watchguard_ap100
3080 $(Device/senao_loader_okli)
3081 SOC := ar9344
3082 DEVICE_VENDOR := WatchGuard
3083 DEVICE_MODEL := AP100
3084 IMAGE_SIZE := 12096k
3085 LOADER_FLASH_OFFS := 0x220000
3086 SENAO_IMGNAME := senao-ap100
3087 WATCHGUARD_MAGIC := 82kdlzk2
3088 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
3089 check-size | senao-tar-gz $$$$(SENAO_IMGNAME) | watchguard-cksum $$$$(WATCHGUARD_MAGIC)
3090 endef
3091 TARGET_DEVICES += watchguard_ap100
3092
3093 define Device/watchguard_ap200
3094 $(Device/senao_loader_okli)
3095 SOC := ar9344
3096 DEVICE_VENDOR := WatchGuard
3097 DEVICE_MODEL := AP200
3098 IMAGE_SIZE := 12096k
3099 LOADER_FLASH_OFFS := 0x220000
3100 SENAO_IMGNAME := senao-ap200
3101 WATCHGUARD_MAGIC := 82kdlzk2
3102 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
3103 check-size | senao-tar-gz $$$$(SENAO_IMGNAME) | watchguard-cksum $$$$(WATCHGUARD_MAGIC)
3104 endef
3105 TARGET_DEVICES += watchguard_ap200
3106
3107 define Device/watchguard_ap300
3108 $(Device/senao_loader_okli)
3109 SOC := qca9558
3110 DEVICE_VENDOR := WatchGuard
3111 DEVICE_MODEL := AP300
3112 DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
3113 IMAGE_SIZE := 11584k
3114 LOADER_FLASH_OFFS := 0x220000
3115 SENAO_IMGNAME := senao-ap300
3116 WATCHGUARD_MAGIC := 82kdlzk2
3117 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
3118 check-size | senao-tar-gz $$$$(SENAO_IMGNAME) | watchguard-cksum $$$$(WATCHGUARD_MAGIC)
3119 endef
3120 TARGET_DEVICES += watchguard_ap300
3121
3122 define Device/wd_mynet-n600
3123 $(Device/seama)
3124 SOC := ar9344
3125 DEVICE_VENDOR := Western Digital
3126 DEVICE_MODEL := My Net N600
3127 IMAGE_SIZE := 15872k
3128 DEVICE_PACKAGES := kmod-usb2
3129 SEAMA_SIGNATURE := wrgnd16_wd_db600
3130 SUPPORTED_DEVICES += mynet-n600
3131 endef
3132 TARGET_DEVICES += wd_mynet-n600
3133
3134 define Device/wd_mynet-n750
3135 $(Device/seama)
3136 SOC := ar9344
3137 DEVICE_VENDOR := Western Digital
3138 DEVICE_MODEL := My Net N750
3139 IMAGE_SIZE := 15872k
3140 DEVICE_PACKAGES := kmod-usb2
3141 SEAMA_SIGNATURE := wrgnd13_wd_av
3142 SUPPORTED_DEVICES += mynet-n750
3143 endef
3144 TARGET_DEVICES += wd_mynet-n750
3145
3146 define Device/wd_mynet-wifi-rangeextender
3147 SOC := ar9344
3148 DEVICE_VENDOR := Western Digital
3149 DEVICE_MODEL := My Net Wi-Fi Range Extender
3150 DEVICE_PACKAGES := rssileds nvram -swconfig
3151 IMAGE_SIZE := 7808k
3152 ADDPATTERN_ID := mynet-rext
3153 ADDPATTERN_VERSION := 1.00.01
3154 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
3155 addpattern | append-metadata
3156 SUPPORTED_DEVICES += mynet-rext
3157 DEFAULT := n
3158 endef
3159 TARGET_DEVICES += wd_mynet-wifi-rangeextender
3160
3161 define Device/winchannel_wb2000
3162 SOC := ar9344
3163 DEVICE_VENDOR := Winchannel
3164 DEVICE_MODEL := WB2000
3165 IMAGE_SIZE := 15872k
3166 DEVICE_PACKAGES := kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 \
3167 kmod-usb-ledtrig-usbport
3168 endef
3169 TARGET_DEVICES += winchannel_wb2000
3170
3171 define Device/xiaomi_aiot-ac2350
3172 SOC := qca9563
3173 DEVICE_VENDOR := Xiaomi
3174 DEVICE_MODEL := AIoT AC2350
3175 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9984-ct
3176 IMAGE_SIZE := 14336k
3177 endef
3178 TARGET_DEVICES += xiaomi_aiot-ac2350
3179
3180 define Device/xiaomi_mi-router-4q
3181 SOC := qca9561
3182 DEVICE_VENDOR := Xiaomi
3183 DEVICE_MODEL := Mi Router 4Q
3184 IMAGE_SIZE := 14336k
3185 endef
3186 TARGET_DEVICES += xiaomi_mi-router-4q
3187
3188 define Device/yuncore_a770
3189 SOC := qca9531
3190 DEVICE_VENDOR := YunCore
3191 DEVICE_MODEL := A770
3192 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
3193 IMAGE_SIZE := 16000k
3194 IMAGES += tftp.bin
3195 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
3196 endef
3197 TARGET_DEVICES += yuncore_a770
3198
3199 define Device/yuncore_a782
3200 SOC := qca9563
3201 DEVICE_VENDOR := YunCore
3202 DEVICE_MODEL := A782
3203 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
3204 IMAGE_SIZE := 16000k
3205 IMAGES += tftp.bin
3206 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
3207 endef
3208 TARGET_DEVICES += yuncore_a782
3209
3210 define Device/yuncore_a930
3211 SOC := qca9533
3212 DEVICE_VENDOR := YunCore
3213 DEVICE_MODEL := A930
3214 IMAGE_SIZE := 16000k
3215 IMAGES += tftp.bin
3216 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
3217 endef
3218 TARGET_DEVICES += yuncore_a930
3219
3220 define Device/yuncore_xd3200
3221 SOC := qca9563
3222 DEVICE_VENDOR := YunCore
3223 DEVICE_MODEL := XD3200
3224 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
3225 IMAGE_SIZE := 16000k
3226 IMAGES += tftp.bin
3227 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
3228 endef
3229 TARGET_DEVICES += yuncore_xd3200
3230
3231 define Device/yuncore_xd4200
3232 SOC := qca9563
3233 DEVICE_VENDOR := YunCore
3234 DEVICE_MODEL := XD4200
3235 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
3236 IMAGE_SIZE := 16000k
3237 IMAGES += tftp.bin
3238 IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
3239 endef
3240 TARGET_DEVICES += yuncore_xd4200
3241
3242 define Device/ziking_cpe46b
3243 SOC := ar9330
3244 DEVICE_VENDOR := ZiKing
3245 DEVICE_MODEL := CPE46B
3246 IMAGE_SIZE := 8000k
3247 DEVICE_PACKAGES := kmod-i2c-gpio
3248 DEFAULT := n
3249 endef
3250 TARGET_DEVICES += ziking_cpe46b
3251
3252 define Device/zbtlink_zbt-wd323
3253 SOC := ar9344
3254 DEVICE_VENDOR := ZBT
3255 DEVICE_MODEL := WD323
3256 IMAGE_SIZE := 16000k
3257 DEVICE_PACKAGES := kmod-usb2 kmod-i2c-gpio kmod-rtc-pcf8563 \
3258 kmod-usb-serial-cp210x uqmi
3259 endef
3260 TARGET_DEVICES += zbtlink_zbt-wd323
3261
3262 define Device/zyxel_nwa11xx
3263 $(Device/loader-okli-uimage)
3264 SOC := ar9342
3265 DEVICE_VENDOR := Zyxel
3266 LOADER_FLASH_OFFS := 0x050000
3267 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
3268 IMAGE_SIZE := 8192k
3269 IMAGES += factory-$$$$(ZYXEL_MODEL_STRING).bin
3270 IMAGE/factory-$$$$(ZYXEL_MODEL_STRING).bin := \
3271 append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
3272 pad-rootfs | pad-to 8192k | check-size | zyxel-tar-bz2 \
3273 vmlinux_mi124_f1e mi124_f1e-jffs2 | append-md5sum-bin
3274 endef
3275
3276 define Device/zyxel_nwa1100-nh
3277 $(Device/zyxel_nwa11xx)
3278 DEVICE_MODEL := NWA1100
3279 DEVICE_VARIANT := NH
3280 ZYXEL_MODEL_STRING := AASI
3281 endef
3282 TARGET_DEVICES += zyxel_nwa1100-nh
3283
3284 define Device/zyxel_nwa1121-ni
3285 $(Device/zyxel_nwa11xx)
3286 DEVICE_MODEL := NWA1121
3287 DEVICE_VARIANT := NI
3288 ZYXEL_MODEL_STRING := AABJ
3289 endef
3290 TARGET_DEVICES += zyxel_nwa1121-ni
3291
3292 define Device/zyxel_nwa1123-ac
3293 $(Device/zyxel_nwa11xx)
3294 DEVICE_MODEL := NWA1123
3295 DEVICE_VARIANT := AC
3296 ZYXEL_MODEL_STRING := AAOX
3297 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers \
3298 ath10k-firmware-qca988x-ct
3299 endef
3300 TARGET_DEVICES += zyxel_nwa1123-ac
3301
3302 define Device/zyxel_nwa1123-ni
3303 $(Device/zyxel_nwa11xx)
3304 DEVICE_MODEL := NWA1123
3305 DEVICE_VARIANT := NI
3306 ZYXEL_MODEL_STRING := AAEO
3307 endef
3308 TARGET_DEVICES += zyxel_nwa1123-ni
3309
3310 define Device/zyxel_nbg6616
3311 SOC := qca9557
3312 DEVICE_VENDOR := Zyxel
3313 DEVICE_MODEL := NBG6616
3314 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-rtc-pcf8563 \
3315 kmod-ath10k-ct ath10k-firmware-qca988x-ct
3316 IMAGE_SIZE := 15232k
3317 RAS_BOARD := NBG6616
3318 RAS_ROOTFS_SIZE := 14464k
3319 RAS_VERSION := "OpenWrt Linux-$(LINUX_VERSION)"
3320 IMAGES += factory.bin
3321 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
3322 append-rootfs | pad-rootfs | pad-to 64k | check-size | zyxel-ras-image
3323 SUPPORTED_DEVICES += nbg6616
3324 endef
3325 TARGET_DEVICES += zyxel_nbg6616