ramips: use new image build code for D-Link DCS-930 family
[openwrt/openwrt.git] / target / linux / ramips / image / rt305x.mk
1 #
2 # RT305X Profiles
3 #
4 define Build/buffalo-tftp-header
5 ( \
6 echo -n -e "# Airstation FirmWare\nrun u_fw\nreset\n\n" | \
7 dd bs=512 count=1 conv=sync; \
8 dd if=$@; \
9 ) > $@.tmp && \
10 $(STAGING_DIR_HOST)/bin/buffalo-tftp -i $@.tmp -o $@.new
11 mv $@.new $@
12 endef
13
14 define Build/dap-header
15 $(STAGING_DIR_HOST)/bin/mkdapimg $(1) -i $@ -o $@.new
16 mv $@.new $@
17 endef
18
19 define Build/hilink-header
20 $(STAGING_DIR_HOST)/bin/mkhilinkfw -e -i $@ -o $@.new
21 mv $@.new $@
22 endef
23
24 define Build/jcg-header
25 $(STAGING_DIR_HOST)/bin/jcgimage -v $(1) -u $@ -o $@.new
26 mv $@.new $@
27 endef
28
29
30 define Device/3g150b
31 DTS := 3G150B
32 BLOCKSIZE := 4k
33 IMAGE_SIZE := $(ralink_default_fw_size_4M)
34 UIMAGE_NAME:= Linux Kernel Image
35 DEVICE_TITLE := Tenda 3G150B
36 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
37 endef
38 TARGET_DEVICES += 3g150b
39
40 define Device/3g300m
41 DTS := 3G300M
42 IMAGE_SIZE := $(ralink_default_fw_size_4M)
43 UIMAGE_NAME := 3G150M_SPI Kernel Image
44 DEVICE_TITLE := Tenda 3G300M
45 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
46 endef
47 TARGET_DEVICES += 3g300m
48
49 define Device/3g-6200n
50 DTS := 3G-6200N
51 IMAGE_SIZE := 3648k
52 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
53 edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \
54 append-metadata | check-size $$$$(IMAGE_SIZE)
55 DEVICE_TITLE := Edimax 3g-6200n
56 endef
57 TARGET_DEVICES += 3g-6200n
58
59 define Device/3g-6200nl
60 DTS := 3G-6200NL
61 IMAGE_SIZE := 3648k
62 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
63 edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \
64 append-metadata | check-size $$$$(IMAGE_SIZE)
65 DEVICE_TITLE := Edimax 3g-6200nl
66 endef
67 TARGET_DEVICES += 3g-6200nl
68
69 define Device/a5-v11
70 DTS := A5-V11
71 IMAGE_SIZE := $(ralink_default_fw_size_4M)
72 IMAGES += factory.bin
73 IMAGE/factory.bin := \
74 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B A5-V11 -F 4M
75 DEVICE_TITLE := A5-V11
76 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2
77 endef
78 TARGET_DEVICES += a5-v11
79
80 define Device/air3gii
81 DTS := AIR3GII
82 BLOCKSIZE := 64k
83 IMAGE_SIZE := $(ralink_default_fw_size_4M)
84 DEVICE_TITLE := AirLive Air3GII
85 endef
86 TARGET_DEVICES += air3gii
87
88 define Device/all0256n-4M
89 DTS := ALL0256N-4M
90 IMAGE_SIZE := $(ralink_default_fw_size_4M)
91 DEVICE_TITLE := Allnet ALL0256N (4MB)
92 DEVICE_PACKAGES := rssileds
93 endef
94 TARGET_DEVICES += all0256n-4M
95
96 define Device/all0256n-8M
97 DTS := ALL0256N-8M
98 DEVICE_TITLE := Allnet ALL0256N (8MB)
99 DEVICE_PACKAGES := rssileds
100 endef
101 TARGET_DEVICES += all0256n-8M
102
103 define Device/all5002
104 DTS := ALL5002
105 IMAGE_SIZE := 32448k
106 DEVICE_TITLE := Allnet ALL5002
107 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
108 kmod-i2c-core kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x
109 endef
110 TARGET_DEVICES += all5002
111
112 define Device/all5003
113 DTS := ALL5003
114 IMAGE_SIZE := 32448k
115 DEVICE_TITLE := Allnet ALL5003
116 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
117 kmod-i2c-core kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x
118 endef
119 TARGET_DEVICES += all5003
120
121 define Device/asl26555-8M
122 DTS := ASL26555-8M
123 IMAGE_SIZE := 7744k
124 SUPPORTED_DEVICES += asl26555
125 DEVICE_TITLE := Alpha ASL26555
126 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
127 endef
128 TARGET_DEVICES += asl26555-8M
129
130 define Device/asl26555-16M
131 DTS := ASL26555-16M
132 IMAGE_SIZE := 15872k
133 SUPPORTED_DEVICES += asl26555
134 DEVICE_TITLE := Alpha ASL26555 16M
135 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
136 endef
137 TARGET_DEVICES += asl26555-16M
138
139 define Device/atp-52b
140 DTS := ATP-52B
141 IMAGE_SIZE := 7808k
142 DEVICE_TITLE := Argus ATP-52B
143 endef
144 TARGET_DEVICES += atp-52b
145
146 define Device/awm002-evb-4M
147 DTS := AWM002-EVB-4M
148 IMAGE_SIZE := $(ralink_default_fw_size_4M)
149 DEVICE_TITLE := AsiaRF AWM002-EVB (4M)
150 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \
151 kmod-i2c-core kmod-i2c-gpio
152 endef
153 TARGET_DEVICES += awm002-evb-4M
154
155 define Device/awm002-evb-8M
156 DTS := AWM002-EVB-8M
157 DEVICE_TITLE := AsiaRF AWM002-EVB (8M)/AsiaRF AWM003 EVB
158 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \
159 kmod-i2c-core kmod-i2c-gpio
160 endef
161 TARGET_DEVICES += awm002-evb-8M
162
163 define Device/awapn2403
164 DTS := AWAPN2403
165 BLOCKSIZE := 4k
166 IMAGE_SIZE := $(ralink_default_fw_size_4M)
167 DEVICE_TITLE := AsiaRF AWAPN2403
168 endef
169 TARGET_DEVICES += awapn2403
170
171 define Device/bc2
172 DTS := BC2
173 DEVICE_TITLE := NexAira BC2
174 endef
175 TARGET_DEVICES += bc2
176
177 define Device/broadway
178 DTS := BROADWAY
179 IMAGE_SIZE := 7744k
180 UIMAGE_NAME:= Broadway Kernel Image
181 DEVICE_TITLE := Hauppauge Broadway
182 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
183 endef
184 TARGET_DEVICES += broadway
185
186 define Device/carambola
187 DTS := CARAMBOLA
188 DEVICE_TITLE := 8devices Carambola
189 DEVICE_PACKAGES :=
190 endef
191 TARGET_DEVICES += carambola
192
193 define Device/d105
194 DTS := D105
195 BLOCKSIZE := 64k
196 IMAGE_SIZE := $(ralink_default_fw_size_4M)
197 DEVICE_TITLE := Huawei D105
198 endef
199 TARGET_DEVICES += d105
200
201 define Device/dap-1350
202 DTS := DAP-1350
203 IMAGES += factory.bin factory-NA.bin
204 IMAGE_SIZE := 7488k
205 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
206 dap-header -s RT3052-AP-DAP1350WW-3
207 IMAGE/factory-NA.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
208 dap-header -s RT3052-AP-DAP1350-3
209 DEVICE_TITLE := D-Link DAP-1350
210 endef
211 TARGET_DEVICES += dap-1350
212
213 define Device/dcs-930
214 DTS := DCS-930
215 IMAGE_SIZE := $(ralink_default_fw_size_4M)
216 DEVICE_TITLE := D-Link DCS-930
217 DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-core kmod-usb-dwc2
218 endef
219 TARGET_DEVICES += dcs-930
220
221 define Device/dcs-930l-b1
222 DTS := DCS-930L-B1
223 IMAGE_SIZE := $(ralink_default_fw_size_4M)
224 DEVICE_TITLE := D-Link DCS-930L B1
225 DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core kmod-usb-audio kmod-usb-core kmod-usb-ohci kmod-usb2
226 endef
227 TARGET_DEVICES += dcs-930l-b1
228
229 define Device/dir-300-b1
230 DTS := DIR-300-B1
231 IMAGE_SIZE := $(ralink_default_fw_size_4M)
232 IMAGES += factory.bin
233 IMAGE/factory.bin := \
234 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir300b
235 DEVICE_TITLE := D-Link DIR-300 B1
236 endef
237 TARGET_DEVICES += dir-300-b1
238
239 define Device/dir-300-b7
240 DTS := DIR-300-B7
241 BLOCKSIZE := 4k
242 IMAGE_SIZE := $(ralink_default_fw_size_4M)
243 DEVICE_TITLE := D-Link DIR-300 B7
244 endef
245 TARGET_DEVICES += dir-300-b7
246
247 define Device/dir-320-b1
248 DTS := DIR-320-B1
249 DEVICE_TITLE := D-Link DIR-320 B1
250 endef
251 TARGET_DEVICES += dir-320-b1
252
253 define Device/dir-600-b1
254 DTS := DIR-600-B1
255 IMAGE_SIZE := $(ralink_default_fw_size_4M)
256 SUPPORTED_DEVICES := dir-600-b1 dir-600-b2
257 IMAGES += factory.bin
258 IMAGE/factory.bin := \
259 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir600b
260 DEVICE_TITLE := D-Link DIR-600 B1/B2
261 endef
262 TARGET_DEVICES += dir-600-b1
263
264 define Device/dir-610-a1
265 DTS := DIR-610-A1
266 BLOCKSIZE := 4k
267 IMAGES += factory.bin
268 KERNEL := $(KERNEL_DTB)
269 IMAGE_SIZE := $(ralink_default_fw_size_4M)
270 IMAGE/sysupgrade.bin := \
271 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
272 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
273 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
274 IMAGE/factory.bin := \
275 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
276 append-rootfs | pad-rootfs -x 64 | \
277 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
278 seama-seal -m "signature=wrgn59_dlob.hans_dir610" | \
279 check-size $$$$(IMAGE_SIZE)
280 DEVICE_TITLE := D-Link DIR-610 A1
281 DEVICE_PACKAGES := kmod-ledtrig-netdev kmod-ledtrig-timer
282 endef
283 TARGET_DEVICES += dir-610-a1
284
285 define Device/dir-615-d
286 DTS := DIR-615-D
287 IMAGE_SIZE := $(ralink_default_fw_size_4M)
288 IMAGES += factory.bin
289 IMAGE/factory.bin := \
290 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn23_dlwbr_dir615d
291 DEVICE_TITLE := D-Link DIR-615 D
292 endef
293 TARGET_DEVICES += dir-615-d
294
295
296 define Device/dir-615-h1
297 DTS := DIR-615-H1
298 BLOCKSIZE := 4k
299 IMAGES += factory.bin
300 IMAGE_SIZE := $(ralink_default_fw_size_4M)
301 IMAGE/factory.bin := \
302 $$(sysupgrade_bin) | senao-header -r 0x218 -p 0x30 -t 3
303 DEVICE_TITLE := D-Link DIR-615 H1
304 endef
305 TARGET_DEVICES += dir-615-h1
306
307 define Device/dir-620-a1
308 DTS := DIR-620-A1
309 DEVICE_TITLE := D-Link DIR-620 A1
310 endef
311 TARGET_DEVICES += dir-620-a1
312
313 define Device/dir-620-d1
314 DTS := DIR-620-D1
315 DEVICE_TITLE := D-Link DIR-620 D1
316 endef
317 TARGET_DEVICES += dir-620-d1
318
319 define Device/dwr-512-b
320 DTS := DWR-512-B
321 IMAGE_SIZE := 7800k
322 DEVICE_TITLE := D-Link DWR-512 B
323 DEVICE_PACKAGES := jboot-tools kmod-usb2 kmod-spi-dev kmod-usb-serial \
324 kmod-usb-serial-option kmod-usb-net kmod-usb-net-cdc-ether \
325 comgt-ncm
326 DLINK_ROM_ID := DLK6E2412001
327 DLINK_FAMILY_MEMBER := 0x6E24
328 DLINK_FIRMWARE_SIZE := 0x7E0000
329 KERNEL := $(KERNEL_DTB)
330 IMAGES += factory.bin
331 IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
332 IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
333 endef
334 TARGET_DEVICES += dwr-512-b
335
336 define Device/esr-9753
337 DTS := ESR-9753
338 BLOCKSIZE := 64k
339 IMAGE_SIZE := $(ralink_default_fw_size_4M)
340 DEVICE_TITLE := EnGenius ESR-9753
341 endef
342 TARGET_DEVICES += esr-9753
343
344 define Device/f5d8235-v2
345 DTS := F5D8235_V2
346 IMAGE_SIZE := 7744k
347 DEVICE_TITLE := Belkin F5D8235 v2
348 DEVICE_PACKAGES := kmod-switch-rtl8366rb
349 endef
350 TARGET_DEVICES += f5d8235-v2
351
352 define Device/f7c027
353 DTS := F7C027
354 IMAGE_SIZE := 7616k
355 DEVICE_TITLE := Belkin F7C027
356 DEVICE_PACKAGES := -kmod-usb-core -kmod-usb-dwc2 -kmod-usb-ledtrig-usbport
357 endef
358 TARGET_DEVICES += f7c027
359
360 define Device/fonera20n
361 DTS := FONERA20N
362 IMAGES += factory.bin
363 IMAGE/factory.bin := $$(sysupgrade_bin) | \
364 edimax-header -s RSDK -m NL1T -f 0x50000 -S 0xc0000
365 DEVICE_TITLE := Fonera 2.0N
366 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
367 endef
368 TARGET_DEVICES += fonera20n
369
370 define Device/freestation5
371 DTS := FREESTATION5
372 DEVICE_TITLE := ARC Wireless FreeStation
373 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-rt2500-usb kmod-rt2800-usb kmod-rt2x00-usb
374 endef
375 TARGET_DEVICES += freestation5
376
377 define Device/hg255d
378 DTS := HG255D
379 IMAGE_SIZE := $(ralink_default_fw_size_16M)
380 DEVICE_TITLE := HuaWei HG255D
381 endef
382 TARGET_DEVICES += hg255d
383
384 define Device/hlk-rm04
385 DTS := HLKRM04
386 IMAGES += factory.bin
387 IMAGE/factory.bin := \
388 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | hilink-header
389 DEVICE_TITLE := Hi-Link HLK-RM04
390 endef
391 TARGET_DEVICES += hlk-rm04
392
393 define Device/ht-tm02
394 DTS := HT-TM02
395 DEVICE_TITLE := HooToo HT-TM02
396 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
397 endef
398 TARGET_DEVICES += ht-tm02
399
400 define Device/hw550-3g
401 DTS := HW550-3G
402 DEVICE_TITLE := Aztech HW550-3G
403 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
404 endef
405 TARGET_DEVICES += hw550-3g
406
407 define Device/ip2202
408 DTS := IP2202
409 DEVICE_TITLE := Poray IP2202
410 endef
411 TARGET_DEVICES += ip2202
412
413 define Device/jhr-n805r
414 DTS := JHR-N805R
415 IMAGE_SIZE := $(ralink_default_fw_size_4M)
416 IMAGES += factory.bin
417 IMAGE/factory.bin := \
418 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 29.24
419 DEVICE_TITLE := JCG JHR-N805R
420 endef
421 TARGET_DEVICES += jhr-n805r
422
423 define Device/jhr-n825r
424 DTS := JHR-N825R
425 IMAGE_SIZE := $(ralink_default_fw_size_4M)
426 IMAGES += factory.bin
427 IMAGE/factory.bin := \
428 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 23.24
429 DEVICE_TITLE := JCG JHR-N825R
430 endef
431 TARGET_DEVICES += jhr-n825r
432
433 define Device/jhr-n926r
434 DTS := JHR-N926R
435 IMAGE_SIZE := $(ralink_default_fw_size_4M)
436 IMAGES += factory.bin
437 IMAGE/factory.bin := \
438 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 25.24
439 DEVICE_TITLE := JCG JHR-N926R
440 endef
441 TARGET_DEVICES += jhr-n926r
442
443 define Device/m2m
444 DTS := M2M
445 UIMAGE_NAME:= Linux Kernel Image
446 DEVICE_TITLE := Intenso Memory 2 Move
447 DEVICE_PACKAGES := kmod-ledtrig-netdev kmod-ledtrig-timer \
448 kmod-usb-core kmod-usb2 kmod-usb-storage kmod-scsi-core \
449 kmod-fs-ext4 kmod-fs-vfat block-mount
450 endef
451 TARGET_DEVICES += m2m
452
453 define Device/m3
454 DTS := M3
455 IMAGE_SIZE := $(ralink_default_fw_size_4M)
456 IMAGES += factory.bin
457 IMAGE/factory.bin := \
458 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M3 -F 4M
459 DEVICE_TITLE := Poray M3
460 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-netdev \
461 kmod-ledtrig-timer
462 endef
463 TARGET_DEVICES += m3
464
465 define Device/m4-4M
466 DTS := M4-4M
467 IMAGE_SIZE := $(ralink_default_fw_size_4M)
468 IMAGES += factory.bin
469 IMAGE/factory.bin := \
470 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M4 -F 4M
471 DEVICE_TITLE := Poray M4 (4MB)
472 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-netdev \
473 kmod-ledtrig-timer
474 endef
475 TARGET_DEVICES += m4-4M
476
477 define Device/m4-8M
478 DTS := M4-8M
479 IMAGES += factory.bin
480 IMAGE/factory.bin := \
481 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M4 -F 8M
482 DEVICE_TITLE := Poray M4 (8MB)
483 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer
484 endef
485 TARGET_DEVICES += m4-8M
486
487 define Device/miniembplug
488 DTS := MINIEMBPLUG
489 DEVICE_TITLE := Omnima MiniEMBPlug
490 endef
491 TARGET_DEVICES += miniembplug
492
493 define Device/miniembwifi
494 DTS := MINIEMBWIFI
495 DEVICE_TITLE := Omnima MiniEMBWiFi
496 endef
497 TARGET_DEVICES += miniembwifi
498
499 define Device/mofi3500-3gn
500 DTS := MOFI3500-3GN
501 DEVICE_TITLE := MoFi Network MOFI3500-3GN
502 endef
503 TARGET_DEVICES += mofi3500-3gn
504
505 define Device/mpr-a1
506 DTS := MPRA1
507 BLOCKSIZE := 4k
508 IMAGE_SIZE := $(ralink_default_fw_size_4M)
509 UIMAGE_NAME:= Linux Kernel Image
510 DEVICE_TITLE := HAME MPR-A1
511 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev
512 endef
513 TARGET_DEVICES += mpr-a1
514
515 define Device/mpr-a2
516 DTS := MPRA2
517 UIMAGE_NAME:= Linux Kernel Image
518 DEVICE_TITLE := HAME MPR-A2
519 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev
520 endef
521 TARGET_DEVICES += mpr-a2
522
523 define Device/mr-102n
524 DTS := MR-102N
525 DEVICE_TITLE := AXIMCom MR-102N
526 endef
527 TARGET_DEVICES += mr-102n
528
529 define Device/mzk-dp150n
530 DTS := MZK-DP150N
531 BLOCKSIZE := 64k
532 IMAGE_SIZE := $(ralink_default_fw_size_4M)
533 DEVICE_TITLE := Planex MZK-DP150N
534 DEVICE_PACKAGES := kmod-spi-dev
535 endef
536 TARGET_DEVICES += mzk-dp150n
537
538 define Device/mzk-w300nh2
539 DTS := MZK-W300NH2
540 IMAGE_SIZE := 3648k
541 IMAGES += factory.bin
542 IMAGE/factory.bin := $$(sysupgrade_bin) | \
543 edimax-header -s CSYS -m RN52 -f 0x50000 -S 0xc0000
544 DEVICE_TITLE := Planex MZK-W300NH2
545 endef
546 TARGET_DEVICES += mzk-w300nh2
547
548 define Device/mzk-wdpr
549 DTS := MZK-WDPR
550 DEVICE_TITLE := Planex MZK-WDPR
551 endef
552 TARGET_DEVICES += mzk-wdpr
553
554 define Device/nbg-419n
555 DTS := NBG-419N
556 BLOCKSIZE := 64k
557 IMAGE_SIZE := $(ralink_default_fw_size_4M)
558 DEVICE_TITLE := ZyXEL NBG-419N
559 endef
560 TARGET_DEVICES += nbg-419n
561
562 define Device/nbg-419n2
563 DTS := NBG-419N2
564 IMAGE_SIZE := $(ralink_default_fw_size_8M)
565 DEVICE_TITLE := ZyXEL NBG-419N2
566 endef
567 TARGET_DEVICES += nbg-419n2
568
569 define Device/ncs601w
570 DTS := NCS601W
571 DEVICE_TITLE := Wansview NCS601W
572 DEVICE_PACKAGES := kmod-video-core kmod-video-uvc \
573 kmod-usb-core kmod-usb-ohci
574 endef
575 TARGET_DEVICES += ncs601w
576
577 define Device/nixcore-x1-8M
578 DTS := NIXCORE-8M
579 IMAGE_SIZE := 7872k
580 SUPPORTED_DEVICES += nixcore-x1
581 DEVICE_TITLE := NixcoreX1 (8M)
582 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink kmod-spi-dev
583 endef
584 TARGET_DEVICES += nixcore-x1-8M
585
586 define Device/nixcore-x1-16M
587 DTS := NIXCORE-16M
588 IMAGE_SIZE := 16064k
589 SUPPORTED_DEVICES += nixcore-x1
590 DEVICE_TITLE := NixcoreX1 (16M)
591 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-i2c-core kmod-i2c-ralink kmod-spi-dev
592 endef
593 TARGET_DEVICES += nixcore-x1-16M
594
595 define Device/nw718
596 DTS := NW718
597 IMAGE_SIZE := 3712k
598 UIMAGE_NAME:= ARA1B4NCRNW718;1
599 DEVICE_TITLE := Netcore NW718
600 endef
601 TARGET_DEVICES += nw718
602
603 define Device/psr-680w
604 DTS := PSR-680W
605 BLOCKSIZE := 64k
606 IMAGE_SIZE := $(ralink_default_fw_size_4M)
607 DEVICE_TITLE := Petatel PSR-680W Wireless 3G Router
608 endef
609 TARGET_DEVICES += psr-680w
610
611 define Device/pwh2004
612 DTS := PWH2004
613 DEVICE_TITLE := Prolink PWH2004
614 DEVICE_PACKAGES :=
615 endef
616 TARGET_DEVICES += pwh2004
617
618 define Device/px-4885-4M
619 DTS := PX-4885-4M
620 IMAGE_SIZE := $(ralink_default_fw_size_4M)
621 DEVICE_TITLE := 7Links PX-4885 (4M)
622 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \
623 kmod-usb-ledtrig-usbport kmod-leds-gpio
624 endef
625 TARGET_DEVICES += px-4885-4M
626
627 define Device/px-4885-8M
628 DTS := PX-4885-8M
629 DEVICE_TITLE := 7Links PX-4885 (8M)
630 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \
631 kmod-usb-ledtrig-usbport kmod-leds-gpio
632 endef
633 TARGET_DEVICES += px-4885-8M
634
635 define Device/rt5350f-olinuxino
636 DTS := RT5350F-OLINUXINO
637 DEVICE_TITLE := RT5350F-OLinuXino
638 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \
639 kmod-i2c-core kmod-i2c-ralink \
640 kmod-spi-dev
641 endef
642 TARGET_DEVICES += rt5350f-olinuxino
643
644 define Device/rt5350f-olinuxino-evb
645 DTS := RT5350F-OLINUXINO-EVB
646 DEVICE_TITLE := RT5350F-OLinuXino-EVB
647 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \
648 kmod-i2c-core kmod-i2c-ralink \
649 kmod-spi-dev
650 endef
651 TARGET_DEVICES += rt5350f-olinuxino-evb
652
653 define Device/rt-g32-b1
654 DTS := RT-G32-B1
655 BLOCKSIZE := 4k
656 IMAGE_SIZE := $(ralink_default_fw_size_4M)
657 DEVICE_TITLE := Asus RT-G32 B1
658 endef
659 TARGET_DEVICES += rt-g32-b1
660
661 define Device/rt-n10-plus
662 DTS := RT-N10-PLUS
663 BLOCKSIZE := 64k
664 IMAGE_SIZE := $(ralink_default_fw_size_4M)
665 DEVICE_TITLE := Asus RT-N10+
666 endef
667 TARGET_DEVICES += rt-n10-plus
668
669 define Device/rt-n13u
670 DTS := RT-N13U
671 DEVICE_TITLE := Asus RT-N13U
672 DEVICE_PACKAGES := kmod-leds-gpio kmod-rt2800-pci kmod-usb-dwc2
673 endef
674 TARGET_DEVICES += rt-n13u
675
676 define Device/rut5xx
677 DTS := RUT5XX
678 DEVICE_TITLE := Teltonika RUT5XX
679 DEVICE_PACKAGES := om-watchdog
680 endef
681 TARGET_DEVICES += rut5xx
682
683 define Device/sl-r7205
684 DTS := SL-R7205
685 BLOCKSIZE := 64k
686 IMAGE_SIZE := $(ralink_default_fw_size_4M)
687 DEVICE_TITLE := Skyline SL-R7205 Wireless 3G Router
688 endef
689 TARGET_DEVICES += sl-r7205
690
691 define Device/tew-638apb-v2
692 DTS := TEW-638APB-V2
693 BLOCKSIZE := 64k
694 IMAGE_SIZE := $(ralink_default_fw_size_4M)
695 IMAGE/sysupgrade.bin := $$(sysupgrade_bin) | umedia-header 0x026382 | \
696 append-metadata | check-size $$$$(IMAGE_SIZE)
697 DEVICE_TITLE := TRENDnet TEW-638APB v2
698 endef
699 TARGET_DEVICES += tew-638apb-v2
700
701 define Device/tew-714tru
702 DTS := TEW-714TRU
703 DEVICE_TITLE := TRENDnet TEW-714TRU
704 endef
705 TARGET_DEVICES += tew-714tru
706
707 define Device/ur-326n4g
708 DTS := UR-326N4G
709 BLOCKSIZE := 64k
710 IMAGE_SIZE := $(ralink_default_fw_size_4M)
711 DEVICE_TITLE := UPVEL UR-326N4G
712 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
713 endef
714 TARGET_DEVICES += ur-326n4g
715
716 define Device/ur-336un
717 DTS := UR-336UN
718 DEVICE_TITLE := UPVEL UR-336UN
719 DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport
720 endef
721 TARGET_DEVICES += ur-336un
722
723 define Device/v22rw-2x2
724 DTS := V22RW-2X2
725 BLOCKSIZE := 64k
726 IMAGE_SIZE := $(ralink_default_fw_size_4M)
727 DEVICE_TITLE := Ralink AP-RT3052-V22RW-2X2
728 endef
729 TARGET_DEVICES += v22rw-2x2
730
731 define Device/vocore-8M
732 DTS := VOCORE-8M
733 IMAGE_SIZE := 7872k
734 SUPPORTED_DEVICES += vocore
735 DEVICE_TITLE := VoCore (8M)
736 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \
737 kmod-i2c-core kmod-i2c-ralink \
738 kmod-spi-dev
739 endef
740 TARGET_DEVICES += vocore-8M
741
742 define Device/vocore-16M
743 DTS := VOCORE-16M
744 IMAGE_SIZE := 16064k
745 SUPPORTED_DEVICES += vocore
746 DEVICE_TITLE := VoCore (16M)
747 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \
748 kmod-i2c-core kmod-i2c-ralink \
749 kmod-spi-dev
750 endef
751 TARGET_DEVICES += vocore-16M
752
753 define Device/w150m
754 DTS := W150M
755 IMAGE_SIZE := $(ralink_default_fw_size_4M)
756 UIMAGE_NAME:= W150M Kernel Image
757 DEVICE_TITLE := Tenda W150M
758 endef
759 TARGET_DEVICES += w150m
760
761 define Device/w306r-v20
762 DTS := W306R_V20
763 IMAGE_SIZE := $(ralink_default_fw_size_4M)
764 UIMAGE_NAME:= linkn Kernel Image
765 DEVICE_TITLE := Tenda W306R V2.0
766 endef
767 TARGET_DEVICES += w306r-v20
768
769 define Device/w502u
770 DTS := W502U
771 DEVICE_TITLE := ALFA Networks W502U
772 endef
773 TARGET_DEVICES += w502u
774
775 define Device/wcr-150gn
776 DTS := WCR150GN
777 BLOCKSIZE := 64k
778 IMAGE_SIZE := $(ralink_default_fw_size_4M)
779 DEVICE_TITLE := Sparklan WCR-150GN
780 endef
781 TARGET_DEVICES += wcr-150gn
782
783 define Device/whr-g300n
784 DTS := WHR-G300N
785 BLOCKSIZE := 64k
786 IMAGE_SIZE := 3801088
787 DEVICE_TITLE := Buffalo WHR-G300N
788 IMAGES += tftp.bin
789 IMAGE/tftp.bin := $$(sysupgrade_bin) | \
790 check-size $$$$(IMAGE_SIZE) | buffalo-tftp-header
791 endef
792 TARGET_DEVICES += whr-g300n
793
794 define Device/wizard8800
795 DTS := WIZARD8800
796 UIMAGE_NAME:= Linux Kernel Image
797 DEVICE_TITLE := EasyAcc WIZARD 8800
798 endef
799 TARGET_DEVICES += wizard8800
800
801 define Device/wizfi630a
802 DTS := WIZFI630A
803 IMAGE_SIZE := $(ralink_default_fw_size_16M)
804 DEVICE_TITLE := WIZnet WizFi630A
805 endef
806 TARGET_DEVICES += wizfi630a
807
808 define Device/wl-330n
809 DTS := WL-330N
810 BLOCKSIZE := 4k
811 IMAGE_SIZE := $(ralink_default_fw_size_4M)
812 DEVICE_TITLE := Asus WL-330N
813 endef
814 TARGET_DEVICES += wl-330n
815
816 define Device/wl-330n3g
817 DTS := WL-330N3G
818 BLOCKSIZE := 4k
819 IMAGE_SIZE := $(ralink_default_fw_size_4M)
820 DEVICE_TITLE := Asus WL-330N3G
821 DEVICE_PACKAGES :=
822 endef
823 TARGET_DEVICES += wl-330n3g
824
825 define Device/wl-351
826 DTS := WL-351
827 BLOCKSIZE := 64k
828 IMAGE_SIZE := $(ralink_default_fw_size_4M)
829 DEVICE_TITLE := Sitecom WL-351 v1
830 DEVICE_PACKAGES := kmod-switch-rtl8366rb kmod-swconfig swconfig
831 endef
832 TARGET_DEVICES += wl-351
833
834 define Device/wnce2001
835 DTS := WNCE2001
836 IMAGE_SIZE := $(ralink_default_fw_size_4M)
837 IMAGES += factory.bin factory-NA.bin
838 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
839 dap-header -s RT3052-AP-WNCE2001-3 -r WW -v 1.0.0.99
840 IMAGE/factory-NA.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
841 dap-header -s RT3052-AP-WNCE2001-3 -r NA -v 1.0.0.99
842 DEVICE_TITLE := Netgear WNCE2001
843 endef
844 TARGET_DEVICES += wnce2001
845
846 define Device/wr512-3gn-4M
847 DTS := WR512-3GN-4M
848 IMAGE_SIZE := $(ralink_default_fw_size_4M)
849 DEVICE_TITLE := WR512-3GN (4M)
850 endef
851 TARGET_DEVICES += wr512-3gn-4M
852
853 define Device/wr512-3gn-8M
854 DTS := WR512-3GN-8M
855 DEVICE_TITLE := WR512-3GN (8M)
856 endef
857 TARGET_DEVICES += wr512-3gn-8M
858
859 define Device/wr6202
860 DTS := WR6202
861 DEVICE_TITLE := AWB WR6202
862 endef
863 TARGET_DEVICES += wr6202
864
865 define Device/wt1520-4M
866 DTS := WT1520-4M
867 IMAGE_SIZE := $(ralink_default_fw_size_4M)
868 IMAGES += factory.bin
869 IMAGE/factory.bin := \
870 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B WT1520 -F 4M
871 DEVICE_TITLE := Nexx WT1520 (4MB)
872 endef
873 TARGET_DEVICES += wt1520-4M
874
875 define Device/wt1520-8M
876 DTS := WT1520-8M
877 IMAGES += factory.bin
878 IMAGE/factory.bin := \
879 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B WT1520 -F 8M
880 DEVICE_TITLE := Nexx WT1520 (8MB)
881 endef
882 TARGET_DEVICES += wt1520-8M
883
884 define Device/x5
885 DTS := X5
886 IMAGES += factory.bin
887 IMAGE/factory.bin := \
888 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B X5 -F 8M
889 DEVICE_TITLE := Poray X5/X6
890 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer
891 endef
892 TARGET_DEVICES += x5
893
894
895 define Device/x8
896 DTS := X8
897 IMAGES += factory.bin
898 IMAGE/factory.bin := \
899 $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B X8 -F 8M
900 DEVICE_TITLE := Poray X8
901 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-ledtrig-netdev kmod-ledtrig-timer
902 endef
903 TARGET_DEVICES += x8
904
905 define Device/xdxrn502j
906 DTS := XDXRN502J
907 BLOCKSIZE := 64k
908 IMAGE_SIZE := $(ralink_default_fw_size_4M)
909 DEVICE_TITLE := XDX RN502J
910 endef
911 TARGET_DEVICES += xdxrn502j
912
913 define Device/kn
914 DTS := kn
915 BLOCKSIZE := 64k
916 IMAGE_SIZE := $(ralink_default_fw_size_4M)
917 DEVICE_TITLE := ZyXEL Keenetic
918 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ehci kmod-usb-ledtrig-usbport
919 endef
920 TARGET_DEVICES += kn
921
922 define Device/zorlik_zl5900v2
923 DTS := ZL5900V2
924 DEVICE_TITLE := Zorlik ZL5900V2
925 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev
926 endef
927 TARGET_DEVICES += zorlik_zl5900v2