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