22ba5305b1f9fa5719bf44eb9b92a5efa11f712d
[openwrt/openwrt.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_dvl1750i
190 ATH_SOC := qca9558
191 DEVICE_TITLE := devolo WiFi pro 1750i
192 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
193 IMAGE_SIZE := 15936k
194 endef
195 TARGET_DEVICES += devolo_dvl1750i
196
197 define Device/dlink_dir-825-b1
198 ATH_SOC := ar7161
199 DEVICE_TITLE := D-LINK DIR-825 B1
200 IMAGE_SIZE := 6208k
201 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
202 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
203 SUPPORTED_DEVICES += dir-825-b1
204 endef
205 TARGET_DEVICES += dlink_dir-825-b1
206
207 define Device/dlink_dir-825-c1
208 ATH_SOC := ar9344
209 DEVICE_TITLE := D-LINK DIR-825 C1
210 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
211 SUPPORTED_DEVICES += dir-825-c1
212 IMAGE_SIZE := 15936k
213 IMAGES := factory.bin sysupgrade.bin
214 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
215 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
216 append-string 00DB120AR9344-RT-101214-00 | check-size $$$$(IMAGE_SIZE)
217 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
218 endef
219 TARGET_DEVICES += dlink_dir-825-c1
220
221 define Device/dlink_dir-835-a1
222 ATH_SOC := ar9344
223 DEVICE_TITLE := D-LINK DIR-835 A1
224 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-leds-reset kmod-owl-loader
225 SUPPORTED_DEVICES += dir-835-a1
226 IMAGE_SIZE := 15936k
227 IMAGES := factory.bin sysupgrade.bin
228 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
229 IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
230 append-string 00DB120AR9344-RT-101214-00 | check-size $$$$(IMAGE_SIZE)
231 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
232 endef
233 TARGET_DEVICES += dlink_dir-835-a1
234
235 define Device/dlink_dir-859-a1
236 $(Device/seama)
237 ATH_SOC := qca9563
238 DEVICE_TITLE := D-LINK DIR-859 A1
239 IMAGE_SIZE := 15872k
240 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
241 SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
242 SUPPORTED_DEVICES += dir-859-a1
243 endef
244 TARGET_DEVICES += dlink_dir-859-a1
245
246 define Device/elecom_wrc-1750ghbk2-i
247 ATH_SOC := qca9563
248 DEVICE_TITLE := ELECOM WRC-1750GHBK2-I/C
249 IMAGE_SIZE := 15808k
250 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
251 add-elecom-factory-initramfs RN68 WRC-1750GHBK2
252 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
253 endef
254 TARGET_DEVICES += elecom_wrc-1750ghbk2-i
255
256 define Device/elecom_wrc-300ghbk2-i
257 ATH_SOC := qca9563
258 DEVICE_TITLE := ELECOM WRC-300GHBK2-I
259 IMAGE_SIZE := 7616k
260 KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
261 add-elecom-factory-initramfs RN51 WRC-300GHBK2-I
262 endef
263 TARGET_DEVICES += elecom_wrc-300ghbk2-i
264
265 define Device/embeddedwireless_dorin
266 ATH_SOC := ar9331
267 DEVICE_TITLE := Embedded Wireless Dorin
268 DEVICE_PACKAGES := kmod-usb-chipidea2
269 IMAGE_SIZE := 16000k
270 endef
271 TARGET_DEVICES += embeddedwireless_dorin
272
273 define Device/engenius_ews511ap
274 ATH_SOC := qca9531
275 DEVICE_TITLE := EnGenius EWS511AP
276 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
277 IMAGE_SIZE := 16000k
278 endef
279 TARGET_DEVICES += engenius_ews511ap
280
281 define Device/etactica_eg200
282 ATH_SOC := ar9331
283 DEVICE_TITLE := eTactica EG200
284 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
285 kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
286 SUPPORTED_DEVICES += rme-eg200
287 endef
288 TARGET_DEVICES += etactica_eg200
289
290 define Device/glinet_gl-ar150
291 ATH_SOC := ar9330
292 DEVICE_TITLE := GL.iNet GL-AR150
293 DEVICE_PACKAGES := kmod-usb-chipidea2
294 IMAGE_SIZE := 16000k
295 SUPPORTED_DEVICES += gl-ar150
296 endef
297 TARGET_DEVICES += glinet_gl-ar150
298
299 define Device/glinet_gl-ar300m-nor
300 ATH_SOC := qca9531
301 DEVICE_TITLE := GL.iNet GL-AR300M
302 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
303 IMAGE_SIZE := 16000k
304 SUPPORTED_DEVICES += gl-ar300m
305 endef
306 TARGET_DEVICES += glinet_gl-ar300m-nor
307
308 define Device/glinet_gl-ar750s
309 ATH_SOC := qca9563
310 DEVICE_TITLE := GL.iNet GL-AR750S
311 DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
312 IMAGE_SIZE := 16000k
313 SUPPORTED_DEVICES += gl-ar750s
314 endef
315 TARGET_DEVICES += glinet_gl-ar750s
316
317 define Device/glinet_gl-x750
318 ATH_SOC := qca9531
319 DEVICE_TITLE := GL.iNet GL-X750
320 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
321 IMAGE_SIZE := 16000k
322 endef
323 TARGET_DEVICES += glinet_gl-x750
324
325 define Device/iodata_etg3-r
326 ATH_SOC := ar9342
327 DEVICE_TITLE := I-O DATA ETG3-R
328 IMAGE_SIZE := 7680k
329 endef
330 TARGET_DEVICES += iodata_etg3-r
331
332 define Device/iodata_wn-ac1167dgr
333 ATH_SOC := qca9557
334 DEVICE_TITLE := I-O DATA WN-AC1167DGR
335 IMAGE_SIZE := 14656k
336 IMAGES += factory.bin
337 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
338 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
339 senao-header -r 0x30a -p 0x61 -t 2
340 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
341 endef
342 TARGET_DEVICES += iodata_wn-ac1167dgr
343
344 define Device/iodata_wn-ac1600dgr2
345 ATH_SOC := qca9557
346 DEVICE_TITLE := I-O DATA WN-AC1600DGR2
347 IMAGE_SIZE := 14656k
348 IMAGES += factory.bin
349 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
350 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
351 senao-header -r 0x30a -p 0x60 -t 2 -v 200
352 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
353 endef
354 TARGET_DEVICES += iodata_wn-ac1600dgr2
355
356 define Device/iodata_wn-ag300dgr
357 ATH_SOC := ar1022
358 DEVICE_TITLE := I-O DATA WN-AG300DGR
359 IMAGE_SIZE := 15424k
360 IMAGES += factory.bin
361 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
362 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
363 senao-header -r 0x30a -p 0x47 -t 2
364 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
365 endef
366 TARGET_DEVICES += iodata_wn-ag300dgr
367
368 define Device/nec_wg800hp
369 ATH_SOC := qca9563
370 DEVICE_TITLE := NEC Aterm WG800HP
371 IMAGE_SIZE := 7104k
372 IMAGES += factory.bin
373 IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
374 append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \
375 xor-image -p 6A57190601121E4C004C1E1201061957 -x | \
376 nec-fw LASER_ATERM
377 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct-htt
378 endef
379 TARGET_DEVICES += nec_wg800hp
380
381 define Device/ocedo_koala
382 ATH_SOC := qca9558
383 DEVICE_TITLE := OCEDO Koala
384 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
385 SUPPORTED_DEVICES += koala
386 IMAGE_SIZE := 7424k
387 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
388 endef
389 TARGET_DEVICES += ocedo_koala
390
391 define Device/ocedo_raccoon
392 ATH_SOC := ar9344
393 DEVICE_TITLE := OCEDO Raccoon
394 IMAGE_SIZE := 7424k
395 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
396 endef
397 TARGET_DEVICES += ocedo_raccoon
398
399 define Device/openmesh_om5p-ac-v2
400 ATH_SOC := qca9558
401 DEVICE_TITLE := OpenMesh OM5P-AC v2
402 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct om-watchdog
403 IMAGE_SIZE := 7808k
404 SUPPORTED_DEVICES += om5p-acv2
405 endef
406 TARGET_DEVICES += openmesh_om5p-ac-v2
407
408 define Device/pcs_cap324
409 ATH_SOC := ar9344
410 DEVICE_TITLE := PowerCloud Systems CAP324
411 IMAGE_SIZE := 16000k
412 SUPPORTED_DEVICES += cap324
413 endef
414 TARGET_DEVICES += pcs_cap324
415
416 define Device/pcs_cr3000
417 ATH_SOC := ar9341
418 DEVICE_TITLE := PowerCloud Systems CR3000
419 IMAGE_SIZE := 7808k
420 SUPPORTED_DEVICES += cr3000
421 endef
422 TARGET_DEVICES += pcs_cr3000
423
424 define Device/pcs_cr5000
425 ATH_SOC := ar9344
426 DEVICE_TITLE := PowerCloud Systems CR5000
427 DEVICE_PACKAGES := kmod-usb2 kmod-usb-core
428 IMAGE_SIZE := 7808k
429 SUPPORTED_DEVICES += cr5000
430 endef
431 TARGET_DEVICES += pcs_cr5000
432
433 define Device/netgear_wndr3x00
434 ATH_SOC := ar7161
435 KERNEL := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
436 IMAGES += factory.img
437 IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
438 IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
439 IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
440 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader
441 endef
442
443 define Device/netgear_wndr3700
444 $(Device/netgear_wndr3x00)
445 DEVICE_TITLE := NETGEAR WNDR3700
446 NETGEAR_KERNEL_MAGIC := 0x33373030
447 NETGEAR_BOARD_ID := WNDR3700
448 IMAGE_SIZE := 7680k
449 IMAGES += factory-NA.img
450 IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | check-size $$$$(IMAGE_SIZE)
451 SUPPORTED_DEVICES += wndr3700
452 endef
453 TARGET_DEVICES += netgear_wndr3700
454
455 define Device/netgear_wndr3700v2
456 $(Device/netgear_wndr3x00)
457 DEVICE_TITLE := NETGEAR WNDR3700v2
458 NETGEAR_KERNEL_MAGIC := 0x33373031
459 NETGEAR_BOARD_ID := WNDR3700v2
460 NETGEAR_HW_ID := 29763654+16+64
461 IMAGE_SIZE := 15872k
462 SUPPORTED_DEVICES += wndr3700v2
463 endef
464 TARGET_DEVICES += netgear_wndr3700v2
465
466 define Device/pisen_wmm003n
467 $(Device/tplink-8mlzma)
468 ATH_SOC := ar9331
469 DEVICE_TITLE := Pisen WMM003N (Cloud Easy Power)
470 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-chipidea2
471 TPLINK_HWID := 0x07030101
472 endef
473 TARGET_DEVICES += pisen_wmm003n
474
475 define Device/netgear_wndr3800
476 $(Device/netgear_wndr3x00)
477 DEVICE_TITLE := NETGEAR WNDR3800
478 NETGEAR_KERNEL_MAGIC := 0x33373031
479 NETGEAR_BOARD_ID := WNDR3800
480 NETGEAR_HW_ID := 29763654+16+128
481 IMAGE_SIZE := 15872k
482 SUPPORTED_DEVICES += wndr3800
483 endef
484 TARGET_DEVICES += netgear_wndr3800
485
486 define Device/phicomm_k2t
487 ATH_SOC := qca9563
488 DEVICE_TITLE := Phicomm K2T
489 IMAGE_SIZE := 15744k
490 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
491 DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct ath10k-firmware-qca9888-ct
492 endef
493 TARGET_DEVICES += phicomm_k2t
494
495 define Device/rosinson_wr818
496 ATH_SOC := qca9563
497 DEVICE_TITLE := ROSINSON WR818
498 IMAGE_SIZE := 15872k
499 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
500 endef
501 TARGET_DEVICES += rosinson_wr818
502
503 define Device/wd_mynet-wifi-rangeextender
504 ATH_SOC := ar9344
505 DEVICE_TITLE := Western Digital My Net Wi-Fi Range Extender
506 DEVICE_PACKAGES := rssileds nvram -swconfig
507 IMAGE_SIZE := 7808k
508 ADDPATTERN_ID := mynet-rext
509 ADDPATTERN_VERSION := 1.00.01
510 IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
511 addpattern | append-metadata
512 SUPPORTED_DEVICES += mynet-rext
513 endef
514 TARGET_DEVICES += wd_mynet-wifi-rangeextender
515
516 define Device/winchannel_wb2000
517 ATH_SOC := ar9344
518 DEVICE_TITLE := Winchannel WB2000
519 IMAGE_SIZE := 15872k
520 DEVICE_PACKAGES := kmod-i2c-core kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 kmod-usb-ledtrig-usbport
521 endef
522 TARGET_DEVICES += winchannel_wb2000