e66014e66309938418b0e3b2052791bb23907796
[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 Device/domywifi-dw33d
17 DEVICE_TITLE := DomyWifi DW33D
18 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
19 BOARDNAME = DW33D
20 IMAGE_SIZE = 16000k
21 CONSOLE = ttyS0,115200
22 MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k@0x50000(firmware);ar934x-nfc:96m(rootfs_data),32m(backup)ro
23 IMAGE/sysupgrade.bin = append-rootfs | pad-rootfs | pad-to 14528k | append-kernel | check-size $$$$(IMAGE_SIZE)
24 endef
25 TARGET_DEVICES += domywifi-dw33d
26
27 define Build/MerakiNAND
28 -$(STAGING_DIR_HOST)/bin/mkmerakifw \
29 -B $(BOARDNAME) -s \
30 -i $@ \
31 -o $@.new
32 @mv $@.new $@
33 endef
34
35 define Device/mr18
36 DEVICE_TITLE := Meraki MR18
37 DEVICE_PACKAGES := kmod-spi-gpio kmod-ath9k
38 BOARDNAME = MR18
39 BLOCKSIZE := 64k
40 CONSOLE = ttyS0,115200
41 MTDPARTS = ar934x-nfc:512k(nandloader)ro,8M(kernel),8M(recovery),113664k(ubi),128k@130944k(odm-caldata)ro
42 IMAGES := sysupgrade.tar
43 KERNEL := kernel-bin | patch-cmdline | MerakiNAND
44 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND
45 IMAGE/sysupgrade.tar := sysupgrade-tar
46 endef
47 TARGET_DEVICES += mr18
48
49 define Build/MerakiNAND-old
50 -$(STAGING_DIR_HOST)/bin/mkmerakifw-old \
51 -B $(BOARDNAME) -s \
52 -i $@ \
53 -o $@.new
54 @mv $@.new $@
55 endef
56
57 define Device/z1
58 DEVICE_TITLE := Meraki Z1
59 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-spi-gpio kmod-ath9k kmod-owl-loader
60 BOARDNAME = Z1
61 BLOCKSIZE := 64k
62 CONSOLE = ttyS0,115200
63 MTDPARTS = ar934x-nfc:128K(loader1)ro,8064K(kernel),128K(loader2)ro,8064K(recovery),114560K(ubi),128K(origcaldata)ro
64 IMAGES := sysupgrade.tar
65 KERNEL := kernel-bin | patch-cmdline | MerakiNAND-old
66 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | MerakiNAND-old
67 IMAGE/sysupgrade.tar := sysupgrade-tar
68 endef
69
70 TARGET_DEVICES += z1
71
72 define LegacyDevice/R6100
73 DEVICE_TITLE := NETGEAR R6100
74 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
75 endef
76 LEGACY_DEVICES += R6100
77
78 define LegacyDevice/WNDR3700V4
79 DEVICE_TITLE := NETGEAR WNDR3700v4
80 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
81 endef
82 LEGACY_DEVICES += WNDR3700V4
83
84 define LegacyDevice/WNDR4300V1
85 DEVICE_TITLE := NETGEAR WNDR4300v1
86 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
87 endef
88 LEGACY_DEVICES += WNDR4300V1
89
90 define LegacyDevice/NBG6716
91 DEVICE_TITLE := Zyxel NBG 6716
92 DEVICE_PACKAGES := kmod-rtc-pcf8563 kmod-ath10k ath10k-firmware-qca988x
93 endef
94 LEGACY_DEVICES += NBG6716