ipq806x: add support for TP-Link Archer VR2600v
[openwrt/openwrt.git] / target / linux / ar71xx / image / nand.mk
1 define Device/c-60
2 DEVICE_TITLE := AirTight C-60
3 DEVICE_PACKAGES := kmod-spi-gpio kmod-usb-core kmod-usb2 kmod-ath9k
4 BOARDNAME = C-60
5 BLOCKSIZE := 64k
6 KERNEL_SIZE = 3648k
7 IMAGE_SIZE = 32m
8 IMAGES := sysupgrade.tar
9 MTDPARTS = spi0.0:256k(u-boot)ro,128k(u-boot-env)ro,3648k(kernel),64k(art)ro;ar934x-nfc:32m(ubi)
10 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
11 IMAGE/sysupgrade.tar := sysupgrade-tar
12 endef
13
14 TARGET_DEVICES += c-60
15
16 define Build/MerakiNAND
17 -$(STAGING_DIR_HOST)/bin/mkmerakifw \
18 -B $(BOARDNAME) -s \
19 -i $@ \
20 -o $@.new
21 @mv $@.new $@
22 endef
23
24 define Device/mr18
25 DEVICE_TITLE := Meraki MR18
26 DEVICE_PACKAGES := kmod-spi-gpio kmod-ath9k
27 BOARDNAME = MR18
28 BLOCKSIZE := 64k
29 CONSOLE = ttyS0,115200
30 MTDPARTS = ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
31 IMAGES := sysupgrade.tar
32 KERNEL := kernel-bin | patch-cmdline | MerakiNAND
33 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
34 IMAGE/sysupgrade.tar := sysupgrade-tar
35 endef
36 TARGET_DEVICES += mr18
37
38 define Build/MerakiNAND-old
39 -$(STAGING_DIR_HOST)/bin/mkmerakifw-old \
40 -B $(BOARDNAME) -s \
41 -i $@ \
42 -o $@.new
43 @mv $@.new $@
44 endef
45
46 define Device/z1
47 DEVICE_TITLE := Meraki Z1
48 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-spi-gpio kmod-ath9k kmod-owl-loader
49 BOARDNAME = Z1
50 BLOCKSIZE := 64k
51 CONSOLE = ttyS0,115200
52 MTDPARTS = ar934x-nfc:128K(loader1)ro,8064K(kernel),128K(loader2)ro,8064K(recovery),114560K(ubi),128K(origcaldata)ro
53 IMAGES := sysupgrade.tar
54 KERNEL := kernel-bin | patch-cmdline | MerakiNAND-old
55 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND-old
56 IMAGE/sysupgrade.tar := sysupgrade-tar
57 endef
58
59 TARGET_DEVICES += z1
60
61 define LegacyDevice/R6100
62 DEVICE_TITLE := NETGEAR R6100
63 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
64 endef
65 LEGACY_DEVICES += R6100
66
67 define LegacyDevice/WNDR3700V4
68 DEVICE_TITLE := NETGEAR WNDR3700v4
69 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
70 endef
71 LEGACY_DEVICES += WNDR3700V4
72
73 define LegacyDevice/WNDR4300V1
74 DEVICE_TITLE := NETGEAR WNDR4300v1
75 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
76 endef
77 LEGACY_DEVICES += WNDR4300V1
78
79 define LegacyDevice/NBG6716
80 DEVICE_TITLE := Zyxel NBG 6716
81 DEVICE_PACKAGES := kmod-rtc-pcf8563 kmod-ath10k ath10k-firmware-qca988x
82 endef
83 LEGACY_DEVICES += NBG6716