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