lantiq: ACMP252: clean up device modules
[openwrt/openwrt.git] / target / linux / lantiq / image / Makefile
1 #
2 # Copyright (C) 2010-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 # boards missing since devicetree update
9 #EASY50712 ARV3527P
10
11 KERNEL_LOADADDR = 0x80002000
12 KERNEL_ENTRY = 0x80002000
13
14 include $(TOPDIR)/rules.mk
15 include $(INCLUDE_DIR)/image.mk
16
17 ifeq ($(SUBTARGET),xway)
18 UBIFS_OPTS := -m 512 -e 15872 -c 1959
19 else
20 UBIFS_OPTS := -m 2048 -e 126KiB -c 4096
21 endif
22
23 define Build/append-avm-fakeroot
24 cat ./eva.dummy.squashfs >> $@
25 endef
26
27 define Build/dgn3500-sercom-footer
28 $(STAGING_DIR_HOST)/bin/dgn3500sum $@ $(1) $(2)
29 endef
30
31 define Build/mkbrncmdline
32 mkbrncmdline -i $@ -o $@.new BRN-BOOT
33 mv $@.new $@
34 endef
35
36 define Build/mkbrnimg
37 mkbrnimg -s $(SIGNATURE) -m $(MAGIC) -p $(CRC32_POLY) -o $@ $(IMAGE_KERNEL) $(IMAGE_ROOTFS)
38 endef
39
40 define Build/fullimage
41 mkimage -A mips -O linux -C lzma -T filesystem -a 0x00 \
42 -e 0x00 -n 'LEDE RootFS' \
43 -d $(IMAGE_ROOTFS) $(IMAGE_ROOTFS).new
44
45 cat $(IMAGE_KERNEL) $(IMAGE_ROOTFS).new > $@.tmp
46
47 mkimage -A mips -O linux -T multi -a 0x00 -C none \
48 -e 0x00 -n 'OpenWrt fullimage' \
49 -d $@.tmp $@
50
51 rm $(IMAGE_ROOTFS).new
52 rm $@.tmp
53 endef
54
55 # Shared device definition: applies to every defined device
56 define Device/Default
57 PROFILES = Default
58 KERNEL_DEPENDS = $$(wildcard ../dts/$$(DEVICE_DTS).dts)
59 KERNEL_INITRAMFS_NAME = $$(KERNEL_NAME)-initramfs
60 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
61 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
62 FILESYSTEMS := squashfs
63 DEVICE_DTS := $(1)
64 DEVICE_DTS_DIR := ../dts
65 IMAGE_SIZE :=
66 SUPPORTED_DEVICES = $$(DEVICE_DTS)
67 IMAGES := sysupgrade.bin
68 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
69 endef
70 DEVICE_VARS += IMAGE_SIZE
71
72 define Device/NAND/xway
73 BLOCKSIZE := 16k
74 PAGESIZE := 512
75 SUBPAGESIZE := 256
76 FILESYSTEMS += ubifs
77 endef
78
79 define Device/NAND/xrx200
80 BLOCKSIZE := 128k
81 PAGESIZE := 2048
82 SUBPAGESIZE := 512
83 FILESYSTEMS += ubifs
84 endef
85
86 define Device/NAND
87 $(Device/NAND/$(SUBTARGET))
88 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
89 endef
90
91 define Device/lantiqBrnImage
92 KERNEL := kernel-bin | append-dtb | mkbrncmdline | lzma-no-dict
93 IMAGES := factory.bin
94 IMAGE/factory.bin := mkbrnimg | check-size $$$$(IMAGE_SIZE)
95 endef
96 DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY
97
98 define Device/lantiqFullImage
99 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-offset 4 0
100 IMAGES := sysupgrade.bin fullimage.img
101 IMAGE/fullimage.img := fullimage | check-size $$$$(IMAGE_SIZE)
102 endef
103
104 define Device/AVM
105 KERNEL := kernel-bin | append-dtb | lzma | eva-image
106 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-avm-fakeroot | \
107 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
108 endef
109
110 ifeq ($(SUBTARGET),ase)
111
112 define Device/ALL0333CJ
113 IMAGE_SIZE := 3700k
114 DEVICE_DTS := ALL0333CJ
115 DEVICE_TITLE := Allnet ALL0333CJ
116 DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
117 kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
118 ltq-adsl-app ppp-mod-pppoe
119 endef
120 TARGET_DEVICES += ALL0333CJ
121
122 define Device/DGN1000B
123 IMAGE_SIZE := 6000k
124 DEVICE_DTS := DGN1000B
125 DEVICE_TITLE := Netgear DGN1000B
126 DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
127 kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
128 ltq-adsl-app ppp-mod-pppoe
129 endef
130 TARGET_DEVICES += DGN1000B
131
132 endif
133
134 ifeq ($(SUBTARGET),xway_legacy)
135
136 define Device/ARV4520PW
137 IMAGE_SIZE := 3648k
138 DEVICE_TITLE := Easybox 800, WAV-281 - ARV4520PW
139 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
140 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
141 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
142 ltq-adsl-app ppp-mod-pppoa \
143 kmod-rt61-pci wpad-mini
144 endef
145 TARGET_DEVICES += ARV4520PW
146
147 define Device/ARV4525PW
148 IMAGE_SIZE := 3776k
149 DEVICE_TITLE := Speedport W502V Typ A - ARV4525PW
150 DEVICE_PACKAGES := kmod-ath5k wpad-mini \
151 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
152 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
153 ltq-adsl-app ppp-mod-pppoa -swconfig
154 endef
155 TARGET_DEVICES += ARV4525PW
156
157 define Device/ARV452CQW
158 IMAGE_SIZE := 3776k
159 DEVICE_TITLE := Easybox 801 - ARV452CQW
160 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
161 kmod-ath5k wpad-mini \
162 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
163 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
164 ltq-adsl-app ppp-mod-pppoa
165 endef
166 TARGET_DEVICES += ARV452CQW
167
168 define Device/ARV4518PWR01
169 IMAGE_SIZE := 3776k
170 DEVICE_TITLE := ARV4518PWR01
171 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
172 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
173 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
174 ltq-adsl-app ppp-mod-pppoa \
175 kmod-ath5k wpad-mini
176 endef
177 TARGET_DEVICES += ARV4518PWR01
178
179 define Device/ARV4518PWR01A
180 IMAGE_SIZE := 3776k
181 DEVICE_TITLE := ARV4518PWR01A
182 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
183 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
184 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
185 ltq-adsl-app ppp-mod-pppoa \
186 kmod-ath5k wpad-mini
187 endef
188 TARGET_DEVICES += ARV4518PWR01A
189
190 endif
191
192 ifeq ($(SUBTARGET),xway)
193
194 # Danube
195
196 define Device/BTHOMEHUBV2B
197 $(Device/NAND)
198 DEVICE_TITLE := BT Home Hub 2B
199 DEVICE_PACKAGES := kmod-usb-dwc2 \
200 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
201 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
202 kmod-ltq-deu-danube \
203 ltq-adsl-app ppp-mod-pppoa \
204 kmod-ath9k kmod-owl-loader wpad-mini
205 endef
206 TARGET_DEVICES += BTHOMEHUBV2B
207
208 define Device/EASY50712
209 IMAGE_SIZE := 3776k
210 DEVICE_TITLE := Lantiq Danube - EASY50712
211 endef
212 TARGET_DEVICES += EASY50712
213
214 define Device/ACMP252
215 IMAGE_SIZE := 14848k
216 DEVICE_TITLE := AudioCodes MediaPack MP-252
217 DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
218 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
219 kmod-ltq-tapi kmod-ltq-vmmc \
220 kmod-usb-ledtrig-usbport kmod-usb-dwc2 \
221 kmod-rt2800-pci \
222 ltq-adsl-app ppp-mod-pppoa \
223 wpad-mini
224 endef
225 TARGET_DEVICES += ACMP252
226
227 define Device/ARV4510PW
228 IMAGE_SIZE := 15616k
229 DEVICE_TITLE := Wippies, Elisa - ARV4510PW
230 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport kmod-usb2-pci kmod-usb-uhci \
231 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
232 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
233 ltq-adsl-app ppp-mod-pppoa \
234 kmod-ltq-tapi kmod-ltq-vmmc \
235 kmod-rt2800-pci kmod-ath5k wpad-mini
236 endef
237 TARGET_DEVICES += ARV4510PW
238
239 define Device/ARV7525PW
240 IMAGE_SIZE := 3776k
241 DEVICE_TITLE := Speedport W303V Typ A - ARV7525PW
242 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini \
243 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
244 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
245 ltq-adsl-app ppp-mod-pppoa -swconfig
246 endef
247 TARGET_DEVICES += ARV7525PW
248
249 define Device/ARV4519PW
250 IMAGE_SIZE := 3776k
251 DEVICE_TITLE := Vodafone, Pirelli - ARV4519PW
252 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
253 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
254 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
255 ltq-adsl-app ppp-mod-pppoa
256 endef
257 TARGET_DEVICES += ARV4519PW
258
259 define Device/ARV7506PW11
260 IMAGE_SIZE := 7808k
261 DEVICE_TITLE := Alice/O2 IAD 4421 - ARV7506PW11
262 DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
263 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
264 ltq-adsl-app ppp-mod-pppoa \
265 kmod-rt2800-pci wpad-mini
266 endef
267 TARGET_DEVICES += ARV7506PW11
268
269 define Device/ARV7510PW22
270 IMAGE_SIZE := 31232k
271 DEVICE_TITLE := Astoria - ARV7510PW22
272 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
273 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
274 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
275 ltq-adsl-app ppp-mod-pppoa \
276 kmod-ltq-tapi kmod-ltq-vmmc \
277 kmod-rt2800-pci wpad-mini \
278 kmod-usb-uhci kmod-usb2 kmod-usb2-pci
279 endef
280 TARGET_DEVICES += ARV7510PW22
281
282 define Device/ARV7518PW
283 IMAGE_SIZE := 7872k
284 DEVICE_TITLE := Astoria - ARV7518PW
285 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
286 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
287 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
288 ltq-adsl-app ppp-mod-pppoa \
289 kmod-ath9k kmod-owl-loader wpad-mini
290 endef
291 TARGET_DEVICES += ARV7518PW
292
293 define Device/ARV7519PW
294 IMAGE_SIZE := 15488k
295 DEVICE_TITLE := Astoria - ARV7519PW
296 DEVICE_PACKAGES := kmod-usb-dwc2 \
297 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
298 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
299 ltq-adsl-app ppp-mod-pppoa \
300 kmod-rt2800-pci wpad-mini
301 endef
302 TARGET_DEVICES += ARV7519PW
303
304 define Device/ARV752DPW
305 IMAGE_SIZE := 7872k
306 DEVICE_TITLE := Easybox 802 - ARV752DPW
307 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
308 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
309 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
310 ltq-adsl-app ppp-mod-pppoa \
311 kmod-ltq-tapi kmod-ltq-vmmc \
312 kmod-rt2800-pci wpad-mini
313 endef
314 TARGET_DEVICES += ARV752DPW
315
316 define Device/ARV752DPW22
317 IMAGE_SIZE := 7616k
318 DEVICE_TITLE := Easybox 803 - ARV752DPW22
319 DEVICE_PACKAGES := kmod-usb2-pci kmod-usb-uhci kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
320 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
321 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
322 ltq-adsl-app ppp-mod-pppoa \
323 kmod-ltq-tapi kmod-ltq-vmmc \
324 kmod-rt2800-pci wpad-mini
325 endef
326 TARGET_DEVICES += ARV752DPW22
327
328 define Device/ARV8539PW22
329 IMAGE_SIZE := 7616k
330 DEVICE_TITLE := Speedport W504V Typ A - ARV8539PW22
331 DEVICE_PACKAGES := kmod-usb-dwc2 \
332 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
333 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
334 ltq-adsl-app ppp-mod-pppoa \
335 kmod-ath9k kmod-owl-loader wpad-mini
336 endef
337 TARGET_DEVICES += ARV8539PW22
338
339 define Device/GIGASX76X
340 IMAGE_SIZE := 7680k
341 DEVICE_TITLE := Gigaset sx76x
342 DEVICE_PACKAGES := kmod-usb-dwc2 \
343 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
344 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
345 ltq-adsl-app ppp-mod-pppoe \
346 kmod-ath5k wpad-mini
347 endef
348 TARGET_DEVICES += GIGASX76X
349
350
351 # AR9
352
353 define Device/BTHOMEHUBV3A
354 $(Device/NAND)
355 DEVICE_TITLE := BT Home Hub 3A
356 DEVICE_PACKAGES := kmod-usb-dwc2 \
357 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
358 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
359 kmod-ltq-deu-ar9 \
360 ltq-adsl-app ppp-mod-pppoa \
361 kmod-ath9k kmod-owl-loader wpad-mini \
362 uboot-envtools
363 endef
364 TARGET_DEVICES += BTHOMEHUBV3A
365
366 DGN3500_KERNEL_OFFSET_HEX=0x50000
367 DGN3500_KERNEL_OFFSET_DEC=327680
368 define Device/DGN3500
369 IMAGE_SIZE := 16000k
370 IMAGES := \
371 sysupgrade-NA.bin sysupgrade-WW.bin \
372 factory-NA.img factory-WW.img
373 IMAGE/sysupgrade-NA.bin := \
374 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "NA" | \
375 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
376 IMAGE/sysupgrade-WW.bin := \
377 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "WW" | \
378 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
379 IMAGE/factory-NA.img := \
380 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
381 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "NA" | pad-rootfs | \
382 check-size 16320k | pad-to 16384k
383 IMAGE/factory-WW.img := \
384 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
385 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "WW" | pad-rootfs | \
386 check-size 16320k | pad-to 16384k
387 DEVICE_TITLE := Netgear DGN3500
388 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
389 kmod-ath9k kmod-owl-loader wpad-mini \
390 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
391 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
392 ltq-adsl-app ppp-mod-pppoa \
393 kmod-ltq-deu-ar9
394 endef
395 TARGET_DEVICES += DGN3500
396
397 define Device/DGN3500B
398 IMAGE_SIZE := 16000k
399 IMAGES += factory.img
400 IMAGE/sysupgrade.bin := \
401 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "DE" | \
402 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
403 IMAGE/factory.img := \
404 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
405 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "DE" | pad-rootfs | \
406 check-size 16320k | pad-to 16384k
407 DEVICE_TITLE := Netgear DGN3500B
408 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
409 kmod-ath9k kmod-owl-loader wpad-mini \
410 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
411 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
412 ltq-adsl-app ppp-mod-pppoa \
413 kmod-ltq-deu-ar9
414 endef
415 TARGET_DEVICES += DGN3500B
416
417 define Device/WBMRA
418 IMAGE_SIZE := 31488k
419 DEVICE_DTS := WBMR
420 DEVICE_TITLE := Buffalo WBMR-HP-G300H (A) - WBMR
421 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
422 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
423 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
424 ltq-adsl-app ppp-mod-pppoa \
425 kmod-ath9k kmod-owl-loader wpad-mini
426 endef
427 TARGET_DEVICES += WBMRA
428
429 define Device/WBMRB
430 IMAGE_SIZE := 31488k
431 DEVICE_DTS := WBMR
432 DEVICE_TITLE := Buffalo WBMR-HP-G300H (B) - WBMR
433 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
434 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
435 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
436 ltq-adsl-app ppp-mod-pppoa \
437 kmod-ath9k kmod-owl-loader wpad-mini
438 endef
439 TARGET_DEVICES += WBMRB
440
441 define Device/FRITZ7320
442 $(Device/AVM)
443 IMAGE_SIZE := 15744k
444 DEVICE_TITLE := 1&1 HomeServer - FRITZ7320
445 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini \
446 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
447 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
448 ltq-adsl-app ppp-mod-pppoa \
449 kmod-ltq-deu-ar9 kmod-usb-dwc2 -swconfig
450 endef
451 TARGET_DEVICES += FRITZ7320
452
453 define Device/H201L
454 IMAGE_SIZE := 7808k
455 DEVICE_TITLE := ZTE H201L - H201L
456 DEVICE_PACKAGES := kmod-ath9k-htc wpad-mini \
457 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
458 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
459 ltq-adsl-app ppp-mod-pppoe \
460 kmod-ltq-deu-ar9 kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
461 kmod-ltq-tapi kmod-ltq-vmmc
462 endef
463 TARGET_DEVICES += H201L
464
465 define Device/P2601HNFX
466 IMAGE_SIZE := 15616k
467 DEVICE_TITLE := ZyXEL P-2601HN-Fx
468 DEVICE_PACKAGES := kmod-rt2800-usb wpad-mini \
469 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
470 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
471 ltq-adsl-app ppp-mod-pppoe \
472 kmod-ltq-deu-ar9 kmod-usb-dwc2
473 endef
474 TARGET_DEVICES += P2601HNFX
475
476
477 endif
478
479
480 ifeq ($(SUBTARGET),xrx200)
481
482 # VR9
483
484 define Device/P2812HNUF1
485 $(Device/NAND)
486 DEVICE_TITLE := ZyXEL P-2812HNU-F1
487 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
488 endef
489 TARGET_DEVICES += P2812HNUF1
490
491 define Device/P2812HNUF3
492 $(Device/NAND)
493 DEVICE_TITLE := ZyXEL P-2812HNU-F3
494 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2
495 endef
496 TARGET_DEVICES += P2812HNUF3
497
498 define Device/ARV7519RW22
499 IMAGE_SIZE := 31232k
500 DEVICE_TITLE := Livebox Astoria ARV7519RW22
501 DEVICE_PACKAGES := kmod-usb-dwc2
502 endef
503 TARGET_DEVICES += ARV7519RW22
504
505 define Device/ASL56026
506 IMAGE_SIZE := 7488k
507 DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/I
508 endef
509 TARGET_DEVICES += ASL56026
510
511 define Device/BTHOMEHUBV5A
512 $(Device/NAND)
513 DEVICE_TITLE := BT Home Hub 5A
514 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader \
515 kmod-ath10k ath10k-firmware-qca988x wpad-mini kmod-usb-dwc2
516 endef
517 TARGET_DEVICES += BTHOMEHUBV5A
518
519 define Device/DM200
520 IMAGES := sysupgrade.bin factory.img
521 IMAGE/factory.img := $$(IMAGE/sysupgrade.bin) | netgear-dni
522 IMAGE_SIZE := 7872k
523 DEVICE_TITLE := Netgear DM200
524 NETGEAR_BOARD_ID := DM200
525 NETGEAR_HW_ID := 29765233+8+0+64+0+0
526 endef
527 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
528 TARGET_DEVICES += DM200
529
530 define Device/EASY80920NAND
531 $(Device/lantiqFullImage)
532 IMAGE_SIZE := 64512k
533 DEVICE_TITLE := Lantiq VR9 - EASY80920NAND
534 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
535 endef
536 TARGET_DEVICES += EASY80920NAND
537
538 define Device/EASY80920NOR
539 IMAGE_SIZE := 7936k
540 DEVICE_TITLE := Lantiq VR9 - EASY80920NOR
541 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
542 endef
543 TARGET_DEVICES += EASY80920NOR
544
545 define Device/FRITZ3370
546 $(Device/AVM)
547 $(Device/NAND)
548 DEVICE_TITLE := Fritz!Box WLan - FRITZ3370
549 DEVICE_PACKAGES := kmod-ath9k wpad-mini kmod-usb-dwc2
550 endef
551 TARGET_DEVICES += FRITZ3370
552
553 define Device/FRITZ7360SL
554 $(Device/AVM)
555 IMAGE_SIZE := 15744k
556 DEVICE_TITLE := 1&1 HomeServer - FRITZ7360SL
557 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2
558 endef
559 TARGET_DEVICES += FRITZ7360SL
560
561 define Device/VG3503J
562 IMAGE_SIZE := 8000k
563 DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/R
564 endef
565 TARGET_DEVICES += VG3503J
566
567 include tp-link.mk
568
569 define Device/WBMR300
570 IMAGE_SIZE := 15616k
571 DEVICE_TITLE := Buffalo WBMR-300HPD
572 DEVICE_PACKAGES := kmod-mt7603 wpad-mini kmod-usb-dwc2
573 endef
574 TARGET_DEVICES += WBMR300
575
576 define Device/VGV7510KW22NOR
577 IMAGE_SIZE := 15232k
578 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (NOR)
579 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
580 endef
581 TARGET_DEVICES += VGV7510KW22NOR
582
583 define Device/VGV7510KW22BRN
584 $(Device/lantiqBrnImage)
585 IMAGE_SIZE := 7168k
586 SIGNATURE := BRNDA6431
587 MAGIC := 0x12345678
588 CRC32_POLY := 0x04c11db7
589 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (BRN)
590 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
591 endef
592 TARGET_DEVICES += VGV7510KW22BRN
593
594 define Device/VGV7519NOR
595 IMAGE_SIZE := 15360k
596 DEVICE_TITLE := Experiabox 8 VGV7519
597 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
598 endef
599 TARGET_DEVICES += VGV7519NOR
600
601 define Device/VGV7519BRN
602 $(Device/lantiqBrnImage)
603 IMAGE_SIZE := 7168k
604 SIGNATURE := 5D00008000
605 MAGIC := 0x12345678
606 CRC32_POLY := 0x2083b8ed
607 DEVICE_TITLE := Experiabox 8 VGV7519 (BRN)
608 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
609 endef
610 TARGET_DEVICES += VGV7519BRN
611
612 endif
613
614
615 ifeq ($(SUBTARGET),falcon)
616
617 define Device/EASY98000NOR
618 IMAGE_SIZE := 3904k
619 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NOR
620 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
621 endef
622 TARGET_DEVICES += EASY98000NOR
623
624 define Device/EASY98000NAND
625 IMAGE_SIZE := 3904k
626 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NAND
627 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
628 endef
629 TARGET_DEVICES += EASY98000NAND
630
631 define Device/EASY98000SFLASH
632 IMAGE_SIZE := 7424k
633 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board SFLASH
634 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
635 endef
636 TARGET_DEVICES += EASY98000SFLASH
637
638 define Device/FALCON-MDU
639 IMAGE_SIZE := 7424k
640 DEVICE_TITLE := MDU - Lantiq Falcon / VINAXdp MDU Board
641 endef
642 TARGET_DEVICES += FALCON-MDU
643
644 define Device/EASY88388
645 IMAGE_SIZE := 7424k
646 DEVICE_TITLE := EASY88388 - Lantiq Falcon FTTDP8 Reference Board
647 endef
648 TARGET_DEVICES += EASY88388
649
650 define Device/EASY88444
651 IMAGE_SIZE := 7424k
652 DEVICE_TITLE := EASY88444 - Lantiq Falcon FTTdp G.FAST Reference Board
653 endef
654 TARGET_DEVICES += EASY88444
655
656 define Device/FALCON-SFP
657 IMAGE_SIZE := 7424k
658 DEVICE_TITLE := SFP - Lantiq Falcon SFP Stick
659 endef
660 TARGET_DEVICES += FALCON-SFP
661
662 define Device/EASY98035SYNCE
663 IMAGE_SIZE := 7424k
664 DEVICE_TITLE := EASY98035SYNCE - Lantiq Falcon SFP Stick with Synchronous Ethernet
665 endef
666 TARGET_DEVICES += EASY98035SYNCE
667
668 define Device/EASY98035SYNCE1588
669 IMAGE_SIZE := 7424k
670 DEVICE_TITLE := EASY98035SYNCE1588 - Lantiq Falcon SFP Stick with SyncE and IEEE1588
671 endef
672 TARGET_DEVICES += EASY98035SYNCE1588
673
674 define Device/EASY98020
675 IMAGE_SIZE := 7424k
676 DEVICE_TITLE := EASY98020 - Lantiq Falcon SFU Reference Board
677 endef
678 TARGET_DEVICES += EASY98020
679
680 define Device/EASY98020V18
681 IMAGE_SIZE := 7424k
682 DEVICE_TITLE := EASY98020V18 - Lantiq Falcon SFU Reference Board V1.8
683 endef
684 TARGET_DEVICES += EASY98020V18
685
686 define Device/EASY98021
687 IMAGE_SIZE := 7424k
688 DEVICE_TITLE := EASY98021 - Lantiq Falcon HGU Reference Board
689 endef
690 TARGET_DEVICES += EASY98021
691
692 endif
693
694 $(eval $(call BuildImage))