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