71fb6e2315765bca0589881aa9ebc07229dee1bf
[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 'OpenWrt 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 SUPPORTED_DEVICES := allnet,all0333cj
120 endef
121 TARGET_DEVICES += ALL0333CJ
122
123 define Device/DGN1000B
124 IMAGE_SIZE := 6000k
125 DEVICE_DTS := DGN1000B
126 DEVICE_TITLE := Netgear DGN1000B
127 DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
128 kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
129 ltq-adsl-app ppp-mod-pppoe
130 SUPPORTED_DEVICES += netgear,dgn1000b
131 endef
132 TARGET_DEVICES += DGN1000B
133
134 endif
135
136 ifeq ($(SUBTARGET),xway_legacy)
137
138 define Device/ARV4520PW
139 IMAGE_SIZE := 3648k
140 DEVICE_TITLE := Easybox 800, WAV-281 - ARV4520PW
141 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
142 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
143 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
144 ltq-adsl-app ppp-mod-pppoa \
145 kmod-rt61-pci wpad-mini
146 SUPPORTED_DEVICES += arcadyan,arv4520pw
147 endef
148 TARGET_DEVICES += ARV4520PW
149
150 define Device/ARV4525PW
151 IMAGE_SIZE := 3776k
152 DEVICE_TITLE := Speedport W502V Typ A - ARV4525PW
153 DEVICE_PACKAGES := kmod-ath5k wpad-mini \
154 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
155 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
156 ltq-adsl-app ppp-mod-pppoa -swconfig
157 SUPPORTED_DEVICES += arcadyan,arv4525pw
158 endef
159 TARGET_DEVICES += ARV4525PW
160
161 define Device/ARV452CQW
162 IMAGE_SIZE := 3776k
163 DEVICE_TITLE := Easybox 801 - ARV452CQW
164 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
165 kmod-ath5k wpad-mini \
166 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
167 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
168 ltq-adsl-app ppp-mod-pppoa
169 SUPPORTED_DEVICES += arcadyan,arv452cqw
170 endef
171 TARGET_DEVICES += ARV452CQW
172
173 define Device/ARV4518PWR01
174 IMAGE_SIZE := 3776k
175 DEVICE_TITLE := ARV4518PWR01
176 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
177 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
178 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
179 ltq-adsl-app ppp-mod-pppoa \
180 kmod-ath5k wpad-mini
181 SUPPORTED_DEVICES += arcadyan,arv4518pwr01
182 endef
183 TARGET_DEVICES += ARV4518PWR01
184
185 define Device/ARV4518PWR01A
186 IMAGE_SIZE := 3776k
187 DEVICE_TITLE := ARV4518PWR01A
188 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
189 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
190 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
191 ltq-adsl-app ppp-mod-pppoa \
192 kmod-ath5k wpad-mini
193 SUPPORTED_DEVICES += arcadyan,arv4518pwr01a
194 endef
195 TARGET_DEVICES += ARV4518PWR01A
196
197 endif
198
199 ifeq ($(SUBTARGET),xway)
200
201 # Danube
202
203 define Device/BTHOMEHUBV2B
204 $(Device/NAND)
205 DEVICE_TITLE := BT Home Hub 2B
206 DEVICE_PACKAGES := kmod-usb-dwc2 \
207 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
208 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
209 kmod-ltq-deu-danube \
210 ltq-adsl-app ppp-mod-pppoa \
211 kmod-ath9k kmod-owl-loader wpad-mini
212 SUPPORTED_DEVICES += bt,homehub-v2b
213 endef
214 TARGET_DEVICES += BTHOMEHUBV2B
215
216 define Device/EASY50712
217 IMAGE_SIZE := 3776k
218 DEVICE_TITLE := Lantiq Danube - EASY50712
219 SUPPORTED_DEVICES := lantiq,easy50712
220 endef
221 TARGET_DEVICES += EASY50712
222
223 define Device/ACMP252
224 IMAGE_SIZE := 14848k
225 DEVICE_TITLE := AudioCodes MediaPack MP-252
226 DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
227 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
228 kmod-ltq-tapi kmod-ltq-vmmc \
229 kmod-usb-ledtrig-usbport kmod-usb-dwc2 \
230 kmod-rt2800-pci \
231 ltq-adsl-app ppp-mod-pppoa \
232 wpad-mini
233 SUPPORTED_DEVICES += audiocodes,mp-252
234 endef
235 TARGET_DEVICES += ACMP252
236
237 define Device/ARV4510PW
238 IMAGE_SIZE := 15616k
239 DEVICE_TITLE := Wippies, Elisa - ARV4510PW
240 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport kmod-usb2-pci kmod-usb-uhci \
241 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
242 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
243 ltq-adsl-app ppp-mod-pppoa \
244 kmod-ltq-tapi kmod-ltq-vmmc \
245 kmod-rt2800-pci kmod-ath5k wpad-mini
246 SUPPORTED_DEVICES += arcadyan,arv4510pw
247 endef
248 TARGET_DEVICES += ARV4510PW
249
250 define Device/ARV7525PW
251 IMAGE_SIZE := 3776k
252 DEVICE_TITLE := Speedport W303V Typ A - ARV7525PW
253 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini \
254 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
255 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
256 ltq-adsl-app ppp-mod-pppoa -swconfig
257 SUPPORTED_DEVICES += arcadyan,arv7525pw
258 endef
259 TARGET_DEVICES += ARV7525PW
260
261 define Device/ARV4519PW
262 IMAGE_SIZE := 3776k
263 DEVICE_TITLE := Vodafone, Pirelli - ARV4519PW
264 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
265 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
266 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
267 ltq-adsl-app ppp-mod-pppoa
268 SUPPORTED_DEVICES += arcadyan,arv4519pw
269 endef
270 TARGET_DEVICES += ARV4519PW
271
272 define Device/ARV7506PW11
273 IMAGE_SIZE := 7808k
274 DEVICE_TITLE := Alice/O2 IAD 4421 - ARV7506PW11
275 DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
276 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
277 ltq-adsl-app ppp-mod-pppoa \
278 kmod-rt2800-pci wpad-mini
279 SUPPORTED_DEVICES += arcadyan,arv7506pw11
280 endef
281 TARGET_DEVICES += ARV7506PW11
282
283 define Device/ARV7510PW22
284 IMAGE_SIZE := 31232k
285 DEVICE_TITLE := Astoria - ARV7510PW22
286 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
287 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
288 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
289 ltq-adsl-app ppp-mod-pppoa \
290 kmod-ltq-tapi kmod-ltq-vmmc \
291 kmod-rt2800-pci wpad-mini \
292 kmod-usb-uhci kmod-usb2 kmod-usb2-pci
293 SUPPORTED_DEVICES += arcadyan,arv7510pw22
294 endef
295 TARGET_DEVICES += ARV7510PW22
296
297 define Device/ARV7518PW
298 IMAGE_SIZE := 7872k
299 DEVICE_TITLE := Astoria - ARV7518PW
300 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
301 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
302 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
303 ltq-adsl-app ppp-mod-pppoa \
304 kmod-ath9k kmod-owl-loader wpad-mini
305 SUPPORTED_DEVICES += arcadyan,arv7518pw
306 endef
307 TARGET_DEVICES += ARV7518PW
308
309 define Device/ARV7519PW
310 IMAGE_SIZE := 15488k
311 DEVICE_TITLE := Astoria - ARV7519PW
312 DEVICE_PACKAGES := kmod-usb-dwc2 \
313 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
314 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
315 ltq-adsl-app ppp-mod-pppoa \
316 kmod-rt2800-pci wpad-mini
317 SUPPORTED_DEVICES += arcadyan,arv7519pw
318 endef
319 TARGET_DEVICES += ARV7519PW
320
321 define Device/ARV752DPW
322 IMAGE_SIZE := 7872k
323 DEVICE_TITLE := Easybox 802 - ARV752DPW
324 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
325 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
326 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
327 ltq-adsl-app ppp-mod-pppoa \
328 kmod-ltq-tapi kmod-ltq-vmmc \
329 kmod-rt2800-pci wpad-mini
330 SUPPORTED_DEVICES += arcadyan,arv752dpw
331 endef
332 TARGET_DEVICES += ARV752DPW
333
334 define Device/ARV752DPW22
335 IMAGE_SIZE := 7616k
336 DEVICE_TITLE := Easybox 803 - ARV752DPW22
337 DEVICE_PACKAGES := kmod-usb2-pci kmod-usb-uhci kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
338 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
339 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
340 ltq-adsl-app ppp-mod-pppoa \
341 kmod-ltq-tapi kmod-ltq-vmmc \
342 kmod-rt2800-pci wpad-mini
343 SUPPORTED_DEVICES += arcadyan,arv752dpw22
344 endef
345 TARGET_DEVICES += ARV752DPW22
346
347 define Device/ARV8539PW22
348 IMAGE_SIZE := 7616k
349 DEVICE_TITLE := Speedport W504V Typ A - ARV8539PW22
350 DEVICE_PACKAGES := kmod-usb-dwc2 \
351 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
352 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
353 ltq-adsl-app ppp-mod-pppoa \
354 kmod-ath9k kmod-owl-loader wpad-mini
355 SUPPORTED_DEVICES += arcadyan,arv8539pw22
356 endef
357 TARGET_DEVICES += ARV8539PW22
358
359 define Device/GIGASX76X
360 IMAGE_SIZE := 7680k
361 DEVICE_TITLE := Gigaset sx76x
362 DEVICE_PACKAGES := kmod-usb-dwc2 \
363 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
364 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
365 ltq-adsl-app ppp-mod-pppoe \
366 kmod-ath5k wpad-mini
367 SUPPORTED_DEVICES += siemens,gigaset-sx76x
368 endef
369 TARGET_DEVICES += GIGASX76X
370
371
372 # AR9
373
374 define Device/BTHOMEHUBV3A
375 $(Device/NAND)
376 DEVICE_TITLE := BT Home Hub 3A
377 DEVICE_PACKAGES := kmod-usb-dwc2 \
378 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
379 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
380 kmod-ltq-deu-ar9 \
381 ltq-adsl-app ppp-mod-pppoa \
382 kmod-ath9k kmod-owl-loader wpad-mini \
383 uboot-envtools
384 SUPPORTED_DEVICES += bt,homehub-v3a
385 endef
386 TARGET_DEVICES += BTHOMEHUBV3A
387
388 DGN3500_KERNEL_OFFSET_HEX=0x50000
389 DGN3500_KERNEL_OFFSET_DEC=327680
390 define Device/DGN3500
391 IMAGE_SIZE := 16000k
392 IMAGES := \
393 sysupgrade-na.bin sysupgrade.bin \
394 factory-na.img factory.img
395 IMAGE/sysupgrade-na.bin := \
396 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "NA" | \
397 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
398 IMAGE/sysupgrade.bin := \
399 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "WW" | \
400 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
401 IMAGE/factory-na.img := \
402 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
403 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "NA" | pad-rootfs | \
404 check-size 16320k | pad-to 16384k
405 IMAGE/factory.img := \
406 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
407 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "WW" | pad-rootfs | \
408 check-size 16320k | pad-to 16384k
409 DEVICE_TITLE := Netgear DGN3500
410 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
411 kmod-ath9k kmod-owl-loader wpad-mini \
412 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
413 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
414 ltq-adsl-app ppp-mod-pppoa \
415 kmod-ltq-deu-ar9
416 SUPPORTED_DEVICES += netgear,dgn3500
417 endef
418 TARGET_DEVICES += DGN3500
419
420 define Device/DGN3500B
421 IMAGE_SIZE := 16000k
422 IMAGES += factory.img
423 IMAGE/sysupgrade.bin := \
424 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "DE" | \
425 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
426 IMAGE/factory.img := \
427 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
428 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "DE" | pad-rootfs | \
429 check-size 16320k | pad-to 16384k
430 DEVICE_TITLE := Netgear DGN3500B
431 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
432 kmod-ath9k kmod-owl-loader wpad-mini \
433 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
434 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
435 ltq-adsl-app ppp-mod-pppoa \
436 kmod-ltq-deu-ar9
437 SUPPORTED_DEVICES += netgear,dgn3500b
438 endef
439 TARGET_DEVICES += DGN3500B
440
441 define Device/WBMRA
442 IMAGE_SIZE := 31488k
443 DEVICE_DTS := WBMR
444 DEVICE_TITLE := Buffalo WBMR-HP-G300H (A) - WBMR
445 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
446 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
447 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
448 ltq-adsl-app ppp-mod-pppoa \
449 kmod-ath9k kmod-owl-loader wpad-mini
450 SUPPORTED_DEVICES += buffalo,wbmr-hp-g300h
451 endef
452 TARGET_DEVICES += WBMRA
453
454 define Device/WBMRB
455 IMAGE_SIZE := 31488k
456 DEVICE_DTS := WBMR
457 DEVICE_TITLE := Buffalo WBMR-HP-G300H (B) - WBMR
458 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
459 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
460 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
461 ltq-adsl-app ppp-mod-pppoa \
462 kmod-ath9k kmod-owl-loader wpad-mini
463 SUPPORTED_DEVICES += buffalo,wbmr-hp-g300h
464 endef
465 TARGET_DEVICES += WBMRB
466
467 define Device/FRITZ7320
468 $(Device/AVM)
469 IMAGE_SIZE := 15744k
470 DEVICE_TITLE := 1&1 HomeServer - FRITZ7320
471 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini \
472 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
473 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
474 ltq-adsl-app ppp-mod-pppoa \
475 kmod-ltq-deu-ar9 kmod-usb-dwc2 -swconfig
476 SUPPORTED_DEVICES += avm,fritz7320
477 endef
478 TARGET_DEVICES += FRITZ7320
479
480 define Device/H201L
481 IMAGE_SIZE := 7808k
482 DEVICE_TITLE := ZTE H201L - H201L
483 DEVICE_PACKAGES := kmod-ath9k-htc wpad-mini \
484 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
485 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
486 ltq-adsl-app ppp-mod-pppoe \
487 kmod-ltq-deu-ar9 kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
488 kmod-ltq-tapi kmod-ltq-vmmc
489 SUPPORTED_DEVICES += zte,h201l
490 endef
491 TARGET_DEVICES += H201L
492
493 define Device/P2601HNFX
494 IMAGE_SIZE := 15616k
495 DEVICE_TITLE := ZyXEL P-2601HN-Fx
496 DEVICE_PACKAGES := kmod-rt2800-usb wpad-mini \
497 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
498 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
499 ltq-adsl-app ppp-mod-pppoe \
500 kmod-ltq-deu-ar9 kmod-usb-dwc2
501 SUPPORTED_DEVICES += zyxel,p-2601hn
502 endef
503 TARGET_DEVICES += P2601HNFX
504
505
506 endif
507
508
509 ifeq ($(SUBTARGET),xrx200)
510
511 # VR9
512
513 define Device/P2812HNUF1
514 $(Device/NAND)
515 DEVICE_TITLE := ZyXEL P-2812HNU-F1
516 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
517 SUPPORTED_DEVICES += zyxel,p-2812hnu-f1
518 endef
519 TARGET_DEVICES += P2812HNUF1
520
521 define Device/P2812HNUF3
522 $(Device/NAND)
523 DEVICE_TITLE := ZyXEL P-2812HNU-F3
524 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2
525 SUPPORTED_DEVICES += zyxel,p-2812hnu-f3
526 endef
527 TARGET_DEVICES += P2812HNUF3
528
529 define Device/ARV7519RW22
530 IMAGE_SIZE := 31232k
531 DEVICE_TITLE := Livebox Astoria ARV7519RW22
532 DEVICE_PACKAGES := kmod-usb-dwc2
533 SUPPORTED_DEVICES += arcadyan,arv7519rw22
534 endef
535 TARGET_DEVICES += ARV7519RW22
536
537 define Device/ASL56026
538 IMAGE_SIZE := 7488k
539 DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/I
540 SUPPORTED_DEVICES := alphanetworks,asl56026
541 endef
542 TARGET_DEVICES += ASL56026
543
544 define Device/BTHOMEHUBV5A
545 $(Device/NAND)
546 DEVICE_TITLE := BT Home Hub 5A
547 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader \
548 kmod-ath10k ath10k-firmware-qca988x wpad-mini kmod-usb-dwc2
549 SUPPORTED_DEVICES += bt,homehub-v5a
550 endef
551 TARGET_DEVICES += BTHOMEHUBV5A
552
553 define Device/DM200
554 IMAGES := sysupgrade.bin factory.img
555 IMAGE/factory.img := $$(IMAGE/sysupgrade.bin) | netgear-dni
556 IMAGE_SIZE := 7872k
557 DEVICE_TITLE := Netgear DM200
558 NETGEAR_BOARD_ID := DM200
559 NETGEAR_HW_ID := 29765233+8+0+64+0+0
560 SUPPORTED_DEVICES := netgear,dm200
561 endef
562 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
563 TARGET_DEVICES += DM200
564
565 define Device/EASY80920NAND
566 $(Device/lantiqFullImage)
567 IMAGE_SIZE := 64512k
568 DEVICE_TITLE := Lantiq VR9 - EASY80920NAND
569 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
570 SUPPORTED_DEVICES := lantiq,easy80920-nand
571 endef
572 TARGET_DEVICES += EASY80920NAND
573
574 define Device/EASY80920NOR
575 IMAGE_SIZE := 7936k
576 DEVICE_TITLE := Lantiq VR9 - EASY80920NOR
577 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
578 SUPPORTED_DEVICES := lantiq,easy80920-nor
579 endef
580 TARGET_DEVICES += EASY80920NOR
581
582 define Device/FRITZ3370
583 $(Device/AVM)
584 $(Device/NAND)
585 DEVICE_TITLE := Fritz!Box WLan - FRITZ3370
586 DEVICE_PACKAGES := kmod-ath9k wpad-mini kmod-usb-dwc2
587 SUPPORTED_DEVICES += avm,fritz3370
588 endef
589 TARGET_DEVICES += FRITZ3370
590
591 define Device/FRITZ7360SL
592 $(Device/AVM)
593 IMAGE_SIZE := 15744k
594 DEVICE_TITLE := 1&1 HomeServer - FRITZ7360SL
595 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2
596 SUPPORTED_DEVICES += avm,fritz7360sl
597 endef
598 TARGET_DEVICES += FRITZ7360SL
599
600 define Device/VG3503J
601 IMAGE_SIZE := 8000k
602 DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/R
603 SUPPORTED_DEVICES += arcadyan,vg3503j
604 endef
605 TARGET_DEVICES += VG3503J
606
607 include tp-link.mk
608
609 define Device/WBMR300
610 IMAGE_SIZE := 15616k
611 DEVICE_TITLE := Buffalo WBMR-300HPD
612 DEVICE_PACKAGES := kmod-mt7603 wpad-mini kmod-usb-dwc2
613 SUPPORTED_DEVICES += buffalo,wbmr-300hpd
614 endef
615 TARGET_DEVICES += WBMR300
616
617 define Device/VGV7510KW22NOR
618 IMAGE_SIZE := 15232k
619 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (NOR)
620 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
621 SUPPORTED_DEVICES += arcadyan,vgv7510kw22-nor
622 endef
623 TARGET_DEVICES += VGV7510KW22NOR
624
625 define Device/VGV7510KW22BRN
626 $(Device/lantiqBrnImage)
627 IMAGE_SIZE := 7168k
628 SIGNATURE := BRNDA6431
629 MAGIC := 0x12345678
630 CRC32_POLY := 0x04c11db7
631 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (BRN)
632 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
633 SUPPORTED_DEVICES += arcadyan,vgv7510kw22-brn
634 endef
635 TARGET_DEVICES += VGV7510KW22BRN
636
637 define Device/VGV7519NOR
638 IMAGE_SIZE := 15360k
639 DEVICE_TITLE := Experiabox 8 VGV7519
640 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
641 SUPPORTED_DEVICES += arcadyan,vgv7519-nor
642 endef
643 TARGET_DEVICES += VGV7519NOR
644
645 define Device/VGV7519BRN
646 $(Device/lantiqBrnImage)
647 IMAGE_SIZE := 7168k
648 SIGNATURE := 5D00008000
649 MAGIC := 0x12345678
650 CRC32_POLY := 0x2083b8ed
651 DEVICE_TITLE := Experiabox 8 VGV7519 (BRN)
652 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
653 SUPPORTED_DEVICES += arcadyan,vgv7519-brn
654 endef
655 TARGET_DEVICES += VGV7519BRN
656
657 endif
658
659
660 ifeq ($(SUBTARGET),falcon)
661
662 define Device/EASY98000NOR
663 IMAGE_SIZE := 3904k
664 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NOR
665 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
666 SUPPORTED_DEVICES := lantiq,easy98000-nor
667 endef
668 TARGET_DEVICES += EASY98000NOR
669
670 define Device/EASY98000NAND
671 IMAGE_SIZE := 3904k
672 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NAND
673 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
674 SUPPORTED_DEVICES := lantiq,easy98000-nand
675 endef
676 TARGET_DEVICES += EASY98000NAND
677
678 define Device/EASY98000SFLASH
679 IMAGE_SIZE := 7424k
680 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board SFLASH
681 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
682 SUPPORTED_DEVICES := lantiq,easy98000-sflash
683 endef
684 TARGET_DEVICES += EASY98000SFLASH
685
686 define Device/FALCON-MDU
687 IMAGE_SIZE := 7424k
688 DEVICE_TITLE := MDU - Lantiq Falcon / VINAXdp MDU Board
689 SUPPORTED_DEVICES := lantiq,falcon-mdu
690 endef
691 TARGET_DEVICES += FALCON-MDU
692
693 define Device/EASY88388
694 IMAGE_SIZE := 7424k
695 DEVICE_TITLE := EASY88388 - Lantiq Falcon FTTDP8 Reference Board
696 SUPPORTED_DEVICES := lantiq,easy88388
697 endef
698 TARGET_DEVICES += EASY88388
699
700 define Device/EASY88444
701 IMAGE_SIZE := 7424k
702 DEVICE_TITLE := EASY88444 - Lantiq Falcon FTTdp G.FAST Reference Board
703 SUPPORTED_DEVICES := lantiq,easy88444
704 endef
705 TARGET_DEVICES += EASY88444
706
707 define Device/FALCON-SFP
708 IMAGE_SIZE := 7424k
709 DEVICE_TITLE := SFP - Lantiq Falcon SFP Stick
710 SUPPORTED_DEVICES := lantiq,falcon-sfp
711 endef
712 TARGET_DEVICES += FALCON-SFP
713
714 define Device/EASY98035SYNCE
715 IMAGE_SIZE := 7424k
716 DEVICE_TITLE := EASY98035SYNCE - Lantiq Falcon SFP Stick with Synchronous Ethernet
717 SUPPORTED_DEVICES := lantiq,easy98035synce
718 endef
719 TARGET_DEVICES += EASY98035SYNCE
720
721 define Device/EASY98035SYNCE1588
722 IMAGE_SIZE := 7424k
723 DEVICE_TITLE := EASY98035SYNCE1588 - Lantiq Falcon SFP Stick with SyncE and IEEE1588
724 SUPPORTED_DEVICES := lantiq,easy98035synce1588
725 endef
726 TARGET_DEVICES += EASY98035SYNCE1588
727
728 define Device/EASY98020
729 IMAGE_SIZE := 7424k
730 DEVICE_TITLE := EASY98020 - Lantiq Falcon SFU Reference Board
731 SUPPORTED_DEVICES := lantiq,easy98020
732 endef
733 TARGET_DEVICES += EASY98020
734
735 define Device/EASY98020V18
736 IMAGE_SIZE := 7424k
737 DEVICE_TITLE := EASY98020V18 - Lantiq Falcon SFU Reference Board V1.8
738 SUPPORTED_DEVICES := lantiq,easy98020-v18
739 endef
740 TARGET_DEVICES += EASY98020V18
741
742 define Device/EASY98021
743 IMAGE_SIZE := 7424k
744 DEVICE_TITLE := EASY98021 - Lantiq Falcon HGU Reference Board
745 SUPPORTED_DEVICES := lantiq,easy98021
746 endef
747 TARGET_DEVICES += EASY98021
748
749 endif
750
751 $(eval $(call BuildImage))