kirkwood: increase kernel size of Linksyses
[openwrt/openwrt.git] / target / linux / kirkwood / image / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2009-2013 OpenWrt.org
4
5 include $(TOPDIR)/rules.mk
6 include $(INCLUDE_DIR)/image.mk
7
8 KERNEL_LOADADDR:=0x8000
9
10 define Device/kernel-size-migration
11 DEVICE_COMPAT_VERSION := 2.0
12 DEVICE_COMPAT_MESSAGE := Partition design has changed compared to \
13 older versions (up to 21.02) due to kernel size restrictions. \
14 Upgrade via sysupgrade mechanism is not possible, so new \
15 installation via factory style image is required.
16 endef
17
18 define Device/Default
19 PROFILES := Default
20 DEVICE_DTS = kirkwood-$(lastword $(subst _, ,$(1)))
21 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
22 KERNEL := kernel-bin | append-dtb | uImage none
23 KERNEL_NAME := zImage
24 KERNEL_SUFFIX := -uImage
25 KERNEL_IN_UBI := 1
26
27 PAGESIZE := 2048
28 SUBPAGESIZE := 512
29 BLOCKSIZE := 128k
30 IMAGES := sysupgrade.bin factory.bin
31 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
32 IMAGE/factory.bin := append-ubi
33 endef
34
35 define Device/checkpoint_l-50
36 DEVICE_VENDOR := Check Point
37 DEVICE_MODEL := L-50
38 DEVICE_PACKAGES := kmod-ath9k kmod-gpio-button-hotplug kmod-mvsdio \
39 kmod-rtc-s35390a kmod-usb-ledtrig-usbport wpad-basic-wolfssl
40 IMAGES := sysupgrade.bin
41 endef
42 TARGET_DEVICES += checkpoint_l-50
43
44 define Device/cisco_on100
45 DEVICE_VENDOR := Cisco Systems
46 DEVICE_MODEL := ON100
47 KERNEL_SIZE := 5376k
48 KERNEL_IN_UBI :=
49 UBINIZE_OPTS := -E 5
50 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
51 DEVICE_PACKAGES := kmod-mvsdio
52 SUPPORTED_DEVICES += on100
53 endef
54 TARGET_DEVICES += cisco_on100
55
56 define Device/cloudengines_pogoe02
57 DEVICE_VENDOR := Cloud Engines
58 DEVICE_MODEL := Pogoplug E02
59 DEVICE_DTS := kirkwood-pogo_e02
60 SUPPORTED_DEVICES += pogo_e02
61 endef
62 TARGET_DEVICES += cloudengines_pogoe02
63
64 define Device/cloudengines_pogoplugv4
65 DEVICE_VENDOR := Cloud Engines
66 DEVICE_MODEL := Pogoplug V4
67 DEVICE_DTS := kirkwood-pogoplug-series-4
68 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-mvsdio kmod-usb3 \
69 kmod-gpio-button-hotplug
70 endef
71 TARGET_DEVICES += cloudengines_pogoplugv4
72
73 define Device/globalscale_sheevaplug
74 DEVICE_VENDOR := Globalscale
75 DEVICE_MODEL := Sheevaplug
76 DEVICE_PACKAGES := kmod-mvsdio
77 endef
78 TARGET_DEVICES += globalscale_sheevaplug
79
80 define Device/iom_iconnect-1.1
81 DEVICE_VENDOR := Iomega
82 DEVICE_MODEL := Iconnect
83 DEVICE_DTS := kirkwood-iconnect
84 SUPPORTED_DEVICES += iconnect
85 endef
86 TARGET_DEVICES += iom_iconnect-1.1
87
88 define Device/iom_ix2-200
89 DEVICE_VENDOR := Iomega
90 DEVICE_MODEL := StorCenter ix2-200
91 DEVICE_DTS := kirkwood-iomega_ix2_200
92 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
93 kmod-gpio-button-hotplug kmod-hwmon-lm63
94 PAGESIZE := 512
95 SUBPAGESIZE := 256
96 BLOCKSIZE := 16k
97 KERNEL_SIZE := 3072k
98 KERNEL_IN_UBI :=
99 UBINIZE_OPTS := -E 5
100 IMAGE_SIZE := 31744k
101 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
102 check-size
103 endef
104 TARGET_DEVICES += iom_ix2-200
105
106 define Device/linksys
107 DEVICE_VENDOR := Linksys
108 DEVICE_PACKAGES := kmod-mwl8k wpad-basic-wolfssl kmod-gpio-button-hotplug
109 KERNEL_IN_UBI :=
110 UBINIZE_OPTS := -E 5
111 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
112 endef
113
114 define Device/linksys_e4200-v2
115 $(Device/linksys)
116 $(Device/kernel-size-migration)
117 DEVICE_MODEL := E4200
118 DEVICE_VARIANT := v2
119 KERNEL_SIZE := 3072k
120 SUPPORTED_DEVICES += linksys,viper linksys-viper
121 endef
122 TARGET_DEVICES += linksys_e4200-v2
123
124 define Device/linksys_ea3500
125 $(Device/linksys)
126 $(Device/kernel-size-migration)
127 DEVICE_MODEL := EA3500
128 PAGESIZE := 512
129 SUBPAGESIZE := 256
130 BLOCKSIZE := 16k
131 KERNEL_SIZE := 3072k
132 SUPPORTED_DEVICES += linksys,audi linksys-audi
133 endef
134 TARGET_DEVICES += linksys_ea3500
135
136 define Device/linksys_ea4500
137 $(Device/linksys)
138 $(Device/kernel-size-migration)
139 DEVICE_MODEL := EA4500
140 KERNEL_SIZE := 3072k
141 SUPPORTED_DEVICES += linksys,viper linksys-viper
142 endef
143 TARGET_DEVICES += linksys_ea4500
144
145 define Device/raidsonic_ib-nas62x0
146 DEVICE_VENDOR := RaidSonic
147 DEVICE_MODEL := ICY BOX IB-NAS62x0
148 DEVICE_DTS := kirkwood-ib62x0
149 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
150 SUPPORTED_DEVICES += ib62x0
151 endef
152 TARGET_DEVICES += raidsonic_ib-nas62x0
153
154 define Device/seagate_blackarmor-nas220
155 DEVICE_VENDOR := Seagate
156 DEVICE_MODEL := Blackarmor NAS220
157 DEVICE_PACKAGES := kmod-hwmon-adt7475 kmod-fs-ext4 kmod-ata-marvell-sata \
158 mdadm kmod-gpio-button-hotplug
159 PAGESIZE := 512
160 SUBPAGESIZE := 256
161 BLOCKSIZE := 16k
162 UBINIZE_OPTS := -e 1
163 endef
164 TARGET_DEVICES += seagate_blackarmor-nas220
165
166 define Device/seagate_dockstar
167 DEVICE_VENDOR := Seagate
168 DEVICE_MODEL := FreeAgent Dockstar
169 SUPPORTED_DEVICES += dockstar
170 endef
171 TARGET_DEVICES += seagate_dockstar
172
173 define Device/seagate_goflexnet
174 DEVICE_VENDOR := Seagate
175 DEVICE_MODEL := GoFlexNet
176 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
177 SUPPORTED_DEVICES += goflexnet
178 endef
179 TARGET_DEVICES += seagate_goflexnet
180
181 define Device/seagate_goflexhome
182 DEVICE_VENDOR := Seagate
183 DEVICE_MODEL := GoFlexHome
184 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
185 SUPPORTED_DEVICES += goflexhome
186 endef
187 TARGET_DEVICES += seagate_goflexhome
188
189 define Device/zyxel_nsa310b
190 DEVICE_VENDOR := ZyXEL
191 DEVICE_MODEL := NSA310b
192 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-r8169 kmod-fs-ext4 \
193 kmod-gpio-button-hotplug kmod-hwmon-lm85
194 SUPPORTED_DEVICES += nsa310b
195 endef
196 TARGET_DEVICES += zyxel_nsa310b
197
198 define Device/zyxel_nsa310s
199 DEVICE_VENDOR := ZyXEL
200 DEVICE_MODEL := NSA310S
201 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-gpio-button-hotplug
202 endef
203 TARGET_DEVICES += zyxel_nsa310s
204
205 define Device/zyxel_nsa325
206 DEVICE_VENDOR := ZyXEL
207 DEVICE_MODEL := NSA325
208 DEVICE_VARIANT := v1/v2
209 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
210 kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
211 SUPPORTED_DEVICES += nsa325
212 endef
213 TARGET_DEVICES += zyxel_nsa325
214
215 $(eval $(call BuildImage))