889321867a50fd51ffc1689697707bd242bb334e
[openwrt/staging/mkresin.git] / target / linux / ath79 / image / generic.mk
1 include ./common-buffalo.mk
2 include ./common-netgear.mk
3
4 DEVICE_VARS += ADDPATTERN_ID ADDPATTERN_VERSION
5 DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
6 DEVICE_VARS += KERNEL_INITRAMFS_PREFIX
7
8 define Build/cybertan-trx
9 @echo -n '' > $@-empty.bin
10 -$(STAGING_DIR_HOST)/bin/trx -o $@.new \
11 -f $(IMAGE_KERNEL) -F $@-empty.bin \
12 -x 32 -a 0x10000 -x -32 -f $@
13 -mv "$@.new" "$@"
14 -rm $@-empty.bin
15 endef
16
17 define Build/addpattern
18 -$(STAGING_DIR_HOST)/bin/addpattern -B $(ADDPATTERN_ID) \
19 -v v$(ADDPATTERN_VERSION) -i $@ -o $@.new
20 -mv "$@.new" "$@"
21 endef
22
23 define Build/add-elecom-factory-initramfs
24 $(eval edimax_model=$(word 1,$(1)))
25 $(eval product=$(word 2,$(1)))
26
27 $(STAGING_DIR_HOST)/bin/mkedimaximg \
28 -b -s CSYS -m $(edimax_model) \
29 -f 0x70000 -S 0x01100000 \
30 -i $@ -o $@.factory
31
32 ( \
33 echo -n -e "ELECOM\x00\x00$(product)" | dd bs=40 count=1 conv=sync; \
34 echo -n "0.00" | dd bs=16 count=1 conv=sync; \
35 dd if=$@.factory; \
36 ) > $@.factory.new
37
38 if [ "$$(stat -c%s $@.factory.new)" -le $$(($(subst k,* 1024,$(subst m, * 1024k,$(IMAGE_SIZE))))) ]; then \
39 mv $@.factory.new $(BIN_DIR)/$(KERNEL_INITRAMFS_PREFIX)-factory.bin; \
40 else \
41 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
42 fi
43 endef
44
45 define Build/nec-fw
46 ( stat -c%s $@ | tr -d "\n" | dd bs=16 count=1 conv=sync; ) >> $@
47 ( \
48 echo -n -e "$(1)" | dd bs=16 count=1 conv=sync; \
49 echo -n "0.0.00" | dd bs=16 count=1 conv=sync; \
50 dd if=$@; \
51 ) > $@.new
52 mv $@.new $@
53 endef
54
55 define Device/seama
56 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
57 KERNEL_INITRAMFS := $$(KERNEL) | seama
58 IMAGES += factory.bin
59 SEAMA_MTDBLOCK := 1
60
61 # 64 bytes offset:
62 # - 28 bytes seama_header
63 # - 36 bytes of META data (4-bytes aligned)
64 IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
65 IMAGE/sysupgrade.bin := \
66 $$(IMAGE/default) | seama | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
67 IMAGE/factory.bin := \
68 $$(IMAGE/default) | pad-rootfs -x 64 | seama | seama-seal | check-size $$$$(IMAGE_SIZE)
69 SEAMA_SIGNATURE :=
70 endef
71
72 define Device/avm_fritz300e
73 ATH_SOC := ar7242
74 DEVICE_TITLE := AVM FRITZ!WLAN Repeater 300E
75 KERNEL := kernel-bin | append-dtb | lzma | eva-image
76 KERNEL_INITRAMFS := $$(KERNEL)
77 IMAGE_SIZE := 15232k
78 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
79 append-squashfs-fakeroot-be | pad-to 256 | \
80 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
81 DEVICE_PACKAGES := fritz-tffs rssileds -swconfig
82 endef
83 TARGET_DEVICES += avm_fritz300e
84
85 define Device/avm_fritz4020
86 ATH_SOC := qca9561
87 DEVICE_TITLE := AVM FRITZ!Box 4020
88 IMAGE_SIZE := 15232k
89 KERNEL := kernel-bin | append-dtb | lzma | eva-image
90 KERNEL_INITRAMFS := $$(KERNEL)
91 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
92 append-squashfs-fakeroot-be | pad-to 256 | \
93 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
94 DEVICE_PACKAGES := fritz-tffs
95 endef
96 TARGET_DEVICES += avm_fritz4020
97
98 define Device/buffalo_bhr-4grv
99 ATH_SOC := ar7242
100 DEVICE_TITLE := Buffalo BHR-4GRV
101 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
102 IMAGE_SIZE := 32256k
103 IMAGES += factory.bin tftp.bin
104 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
105 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc BHR-4GRV 1.99 | buffalo-tag BHR-4GRV 3
106 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
107 SUPPORTED_DEVICES += wzr-hp-g450h
108 endef
109 TARGET_DEVICES += buffalo_bhr-4grv
110
111 define Device/buffalo_bhr-4grv2
112 ATH_SOC := qca9557
113 DEVICE_TITLE := Buffalo BHR-4GRV2
114 IMAGE_SIZE := 16000k
115 endef
116 TARGET_DEVICES += buffalo_bhr-4grv2
117
118 define Device/buffalo_wzr-hp-ag300h
119 ATH_SOC := ar7161
120 DEVICE_TITLE := Buffalo WZR-HP-AG300H
121 IMAGE_SIZE := 32256k
122 IMAGES += factory.bin tftp.bin
123 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
124 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-AG300H 1.99 | buffalo-tag WZR-HP-AG300H 3
125 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
126 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
127 SUPPORTED_DEVICES += wzr-hp-ag300h
128 endef
129 TARGET_DEVICES += buffalo_wzr-hp-ag300h
130
131 define Device/buffalo_wzr-hp-g302h-a1a0
132 ATH_SOC := ar7242
133 DEVICE_TITLE := Buffalo WZR-HP-G302H A1A0
134 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
135 IMAGE_SIZE := 32128k
136 IMAGES += factory.bin tftp.bin
137 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
138 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G302H 1.99 | buffalo-tag WZR-HP-G302H 4
139 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
140 SUPPORTED_DEVICES += wzr-hp-g300nh2
141 endef
142 TARGET_DEVICES += buffalo_wzr-hp-g302h-a1a0
143
144 define Device/buffalo_wzr-hp-g450h
145 ATH_SOC := ar7242
146 DEVICE_TITLE := Buffalo WZR-HP-G450H/WZR-450HP
147 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
148 IMAGE_SIZE := 32256k
149 IMAGES += factory.bin tftp.bin
150 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
151 IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WZR-HP-G450H 1.99 | buffalo-tag WZR-HP-G450H 3
152 IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
153 SUPPORTED_DEVICES += wzr-hp-g450h
154 endef
155 TARGET_DEVICES += buffalo_wzr-hp-g450h
156
157 define Device/comfast_cf-e110n-v2
158 ATH_SOC := qca9533
159 DEVICE_TITLE := COMFAST CF-E110N v2
160 DEVICE_PACKAGES := rssileds kmod-leds-gpio -swconfig -uboot-envtools
161 IMAGE_SIZE := 16192k
162 endef
163 TARGET_DEVICES += comfast_cf-e110n-v2
164
165 define Device/devolo_dvl1200e
166 ATH_SOC := qca9558
167 DEVICE_TITLE := devolo WiFi pro 1200e
168 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
169 IMAGE_SIZE := 15936k
170 endef
171 TARGET_DEVICES += devolo_dvl1200e
172
173 define Device/devolo_dvl1200i
174 ATH_SOC := qca9558
175 DEVICE_TITLE := devolo WiFi pro 1200i
176 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
177 IMAGE_SIZE := 15936k
178 endef
179 TARGET_DEVICES += devolo_dvl1200i
180
181 define Device/devolo_dvl1750c
182 ATH_SOC := qca9558
183 DEVICE_TITLE := devolo WiFi pro 1750c
184 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
185 IMAGE_SIZE := 15936k
186 endef
187 TARGET_DEVICES += devolo_dvl1750c
188
189 define Device/devolo_dvl1750e
190 ATH_SOC := qca9558
191 DEVICE_TITLE := devolo WiFi pro 1750e
192 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
193 IMAGE_SIZE := 15936k
194 endef
195 TARGET_DEVICES += devolo_dvl1750e
196
197 define Device/devolo_dvl1750i
198 ATH_SOC := qca9558
199 DEVICE_TITLE := devolo WiFi pro 1750i
200 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
201 IMAGE_SIZE := 15936k
202 endef
203 TARGET_DEVICES += devolo_dvl1750i
204
205 define Device/dlink_dir-825-b1
206 ATH_SOC := ar7161
207 DEVICE_TITLE := D-LINK DIR-825 B1
208 IMAGE_SIZE := 6208k
209 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
210 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
211 SUPPORTED_DEVICES += dir-825-b1
212 endef
213 TARGET_DEVICES += dlink_dir-825-b1
214
215 define Device/dlink_dir-825-c1
216 ATH_SOC := ar9344
217 DEVICE_TITLE := D-LINK DIR-825 C1
218 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
219 SUPPORTED_DEVICES += dir-825-c1
220 IMAGE_SIZE := 15936k
221 IMAGES := factory.bin sysupgrade.bin
222 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
223 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
224 append-string 00DB120AR9344-RT-101214-00 | check-size $$$$(IMAGE_SIZE)
225 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
226 endef
227 TARGET_DEVICES += dlink_dir-825-c1
228
229 define Device/dlink_dir-835-a1
230 ATH_SOC := ar9344
231 DEVICE_TITLE := D-LINK DIR-835 A1
232 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-leds-reset kmod-owl-loader
233 SUPPORTED_DEVICES += dir-835-a1
234 IMAGE_SIZE := 15936k
235 IMAGES := factory.bin sysupgrade.bin
236 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
237 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
238 append-string 00DB120AR9344-RT-101214-00 | check-size $$$$(IMAGE_SIZE)
239 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
240 endef
241 TARGET_DEVICES += dlink_dir-835-a1
242
243 define Device/dlink_dir-859-a1
244 $(Device/seama)
245 ATH_SOC := qca9563
246 DEVICE_TITLE := D-LINK DIR-859 A1
247 IMAGE_SIZE := 15872k
248 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
249 SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
250 SUPPORTED_DEVICES += dir-859-a1
251 endef
252 TARGET_DEVICES += dlink_dir-859-a1
253
254 define Device/elecom_wrc-1750ghbk2-i
255 ATH_SOC := qca9563
256 DEVICE_TITLE := ELECOM WRC-1750GHBK2-I/C
257 IMAGE_SIZE := 15808k
258 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
259 add-elecom-factory-initramfs RN68 WRC-1750GHBK2
260 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
261 endef
262 TARGET_DEVICES += elecom_wrc-1750ghbk2-i
263
264 define Device/elecom_wrc-300ghbk2-i
265 ATH_SOC := qca9563
266 DEVICE_TITLE := ELECOM WRC-300GHBK2-I
267 IMAGE_SIZE := 7616k
268 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
269 add-elecom-factory-initramfs RN51 WRC-300GHBK2-I
270 endef
271 TARGET_DEVICES += elecom_wrc-300ghbk2-i
272
273 define Device/embeddedwireless_dorin
274 ATH_SOC := ar9331
275 DEVICE_TITLE := Embedded Wireless Dorin
276 DEVICE_PACKAGES := kmod-usb-chipidea2
277 IMAGE_SIZE := 16000k
278 endef
279 TARGET_DEVICES += embeddedwireless_dorin
280
281 define Device/engenius_ews511ap
282 ATH_SOC := qca9531
283 DEVICE_TITLE := EnGenius EWS511AP
284 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
285 IMAGE_SIZE := 16000k
286 endef
287 TARGET_DEVICES += engenius_ews511ap
288
289 define Device/etactica_eg200
290 ATH_SOC := ar9331
291 DEVICE_TITLE := eTactica EG200
292 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
293 kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
294 SUPPORTED_DEVICES += rme-eg200
295 endef
296 TARGET_DEVICES += etactica_eg200
297
298 define Device/glinet_gl-ar150
299 ATH_SOC := ar9330
300 DEVICE_TITLE := GL.iNet GL-AR150
301 DEVICE_PACKAGES := kmod-usb-chipidea2
302 IMAGE_SIZE := 16000k
303 SUPPORTED_DEVICES += gl-ar150
304 endef
305 TARGET_DEVICES += glinet_gl-ar150
306
307 define Device/glinet_gl-ar300m-nor
308 ATH_SOC := qca9531
309 DEVICE_TITLE := GL.iNet GL-AR300M
310 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
311 IMAGE_SIZE := 16000k
312 SUPPORTED_DEVICES += gl-ar300m
313 endef
314 TARGET_DEVICES += glinet_gl-ar300m-nor
315
316 define Device/glinet_gl-ar750s
317 ATH_SOC := qca9563
318 DEVICE_TITLE := GL.iNet GL-AR750S
319 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
320 IMAGE_SIZE := 16000k
321 SUPPORTED_DEVICES += gl-ar750s
322 endef
323 TARGET_DEVICES += glinet_gl-ar750s
324
325 define Device/glinet_gl-x750
326 ATH_SOC := qca9531
327 DEVICE_TITLE := GL.iNet GL-X750
328 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
329 IMAGE_SIZE := 16000k
330 endef
331 TARGET_DEVICES += glinet_gl-x750
332
333 define Device/iodata_etg3-r
334 ATH_SOC := ar9342
335 DEVICE_TITLE := I-O DATA ETG3-R
336 IMAGE_SIZE := 7680k
337 endef
338 TARGET_DEVICES += iodata_etg3-r
339
340 define Device/iodata_wn-ac1167dgr
341 ATH_SOC := qca9557
342 DEVICE_TITLE := I-O DATA WN-AC1167DGR
343 IMAGE_SIZE := 14656k
344 IMAGES += factory.bin
345 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
346 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
347 senao-header -r 0x30a -p 0x61 -t 2
348 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
349 endef
350 TARGET_DEVICES += iodata_wn-ac1167dgr
351
352 define Device/iodata_wn-ac1600dgr
353 ATH_SOC := qca9557
354 DEVICE_TITLE := I-O DATA WN-AC1600DGR
355 IMAGE_SIZE := 14656k
356 IMAGES += factory.bin
357 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
358 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
359 senao-header -r 0x30a -p 0x60 -t 2 -v 200
360 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
361 endef
362 TARGET_DEVICES += iodata_wn-ac1600dgr
363
364 define Device/iodata_wn-ac1600dgr2
365 ATH_SOC := qca9557
366 DEVICE_TITLE := I-O DATA WN-AC1600DGR2
367 IMAGE_SIZE := 14656k
368 IMAGES += factory.bin
369 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
370 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
371 senao-header -r 0x30a -p 0x60 -t 2 -v 200
372 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
373 endef
374 TARGET_DEVICES += iodata_wn-ac1600dgr2
375
376 define Device/iodata_wn-ag300dgr
377 ATH_SOC := ar1022
378 DEVICE_TITLE := I-O DATA WN-AG300DGR
379 IMAGE_SIZE := 15424k
380 IMAGES += factory.bin
381 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
382 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
383 senao-header -r 0x30a -p 0x47 -t 2
384 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
385 endef
386 TARGET_DEVICES += iodata_wn-ag300dgr
387
388 define Device/nec_wg800hp
389 ATH_SOC := qca9563
390 DEVICE_TITLE := NEC Aterm WG800HP
391 IMAGE_SIZE := 7104k
392 IMAGES += factory.bin
393 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
394 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
395 xor-image -p 6A57190601121E4C004C1E1201061957 -x | \
396 nec-fw LASER_ATERM
397 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct-htt
398 endef
399 TARGET_DEVICES += nec_wg800hp
400
401 define Device/ocedo_koala
402 ATH_SOC := qca9558
403 DEVICE_TITLE := OCEDO Koala
404 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
405 SUPPORTED_DEVICES += koala
406 IMAGE_SIZE := 7424k
407 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
408 endef
409 TARGET_DEVICES += ocedo_koala
410
411 define Device/ocedo_raccoon
412 ATH_SOC := ar9344
413 DEVICE_TITLE := OCEDO Raccoon
414 IMAGE_SIZE := 7424k
415 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
416 endef
417 TARGET_DEVICES += ocedo_raccoon
418
419 define Device/openmesh_om5p-ac-v2
420 ATH_SOC := qca9558
421 DEVICE_TITLE := OpenMesh OM5P-AC v2
422 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct om-watchdog
423 IMAGE_SIZE := 7808k
424 SUPPORTED_DEVICES += om5p-acv2
425 endef
426 TARGET_DEVICES += openmesh_om5p-ac-v2
427
428 define Device/pcs_cap324
429 ATH_SOC := ar9344
430 DEVICE_TITLE := PowerCloud Systems CAP324
431 IMAGE_SIZE := 16000k
432 SUPPORTED_DEVICES += cap324
433 endef
434 TARGET_DEVICES += pcs_cap324
435
436 define Device/pcs_cr3000
437 ATH_SOC := ar9341
438 DEVICE_TITLE := PowerCloud Systems CR3000
439 IMAGE_SIZE := 7808k
440 SUPPORTED_DEVICES += cr3000
441 endef
442 TARGET_DEVICES += pcs_cr3000
443
444 define Device/pcs_cr5000
445 ATH_SOC := ar9344
446 DEVICE_TITLE := PowerCloud Systems CR5000
447 DEVICE_PACKAGES := kmod-usb2 kmod-usb-core
448 IMAGE_SIZE := 7808k
449 SUPPORTED_DEVICES += cr5000
450 endef
451 TARGET_DEVICES += pcs_cr5000
452
453 define Device/netgear_wndr3x00
454 ATH_SOC := ar7161
455 KERNEL := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
456 IMAGES += factory.img
457 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
458 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
459 IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
460 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
461 endef
462
463 define Device/netgear_wndr3700
464 $(Device/netgear_wndr3x00)
465 DEVICE_TITLE := NETGEAR WNDR3700
466 NETGEAR_KERNEL_MAGIC := 0x33373030
467 NETGEAR_BOARD_ID := WNDR3700
468 IMAGE_SIZE := 7680k
469 IMAGES += factory-NA.img
470 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | check-size $$$$(IMAGE_SIZE)
471 SUPPORTED_DEVICES += wndr3700
472 endef
473 TARGET_DEVICES += netgear_wndr3700
474
475 define Device/netgear_wndr3700v2
476 $(Device/netgear_wndr3x00)
477 DEVICE_TITLE := NETGEAR WNDR3700v2
478 NETGEAR_KERNEL_MAGIC := 0x33373031
479 NETGEAR_BOARD_ID := WNDR3700v2
480 NETGEAR_HW_ID := 29763654+16+64
481 IMAGE_SIZE := 15872k
482 SUPPORTED_DEVICES += wndr3700v2
483 endef
484 TARGET_DEVICES += netgear_wndr3700v2
485
486 define Device/pisen_wmm003n
487 $(Device/tplink-8mlzma)
488 ATH_SOC := ar9331
489 DEVICE_TITLE := Pisen WMM003N (Cloud Easy Power)
490 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-chipidea2
491 TPLINK_HWID := 0x07030101
492 endef
493 TARGET_DEVICES += pisen_wmm003n
494
495 define Device/netgear_wndr3800
496 $(Device/netgear_wndr3x00)
497 DEVICE_TITLE := NETGEAR WNDR3800
498 NETGEAR_KERNEL_MAGIC := 0x33373031
499 NETGEAR_BOARD_ID := WNDR3800
500 NETGEAR_HW_ID := 29763654+16+128
501 IMAGE_SIZE := 15872k
502 SUPPORTED_DEVICES += wndr3800
503 endef
504 TARGET_DEVICES += netgear_wndr3800
505
506 define Device/phicomm_k2t
507 ATH_SOC := qca9563
508 DEVICE_TITLE := Phicomm K2T
509 IMAGE_SIZE := 15744k
510 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
511 DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct ath10k-firmware-qca9888-ct
512 endef
513 TARGET_DEVICES += phicomm_k2t
514
515 define Device/rosinson_wr818
516 ATH_SOC := qca9563
517 DEVICE_TITLE := ROSINSON WR818
518 IMAGE_SIZE := 15872k
519 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
520 endef
521 TARGET_DEVICES += rosinson_wr818
522
523 define Device/wd_mynet-wifi-rangeextender
524 ATH_SOC := ar9344
525 DEVICE_TITLE := Western Digital My Net Wi-Fi Range Extender
526 DEVICE_PACKAGES := rssileds nvram -swconfig
527 IMAGE_SIZE := 7808k
528 ADDPATTERN_ID := mynet-rext
529 ADDPATTERN_VERSION := 1.00.01
530 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
531 addpattern | append-metadata
532 SUPPORTED_DEVICES += mynet-rext
533 endef
534 TARGET_DEVICES += wd_mynet-wifi-rangeextender
535
536 define Device/winchannel_wb2000
537 ATH_SOC := ar9344
538 DEVICE_TITLE := Winchannel WB2000
539 IMAGE_SIZE := 15872k
540 DEVICE_PACKAGES := kmod-i2c-core kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 kmod-usb-ledtrig-usbport
541 endef
542 TARGET_DEVICES += winchannel_wb2000
543
544 define Device/xiaomi_mi-router-4q
545 ATH_SOC := qca9561
546 DEVICE_TITLE := Xiaomi Mi Router 4Q
547 IMAGE_SIZE := 14336k
548 endef
549 TARGET_DEVICES += xiaomi_mi-router-4q