Skip to content

Commit d871e95

Browse files
map-bhauke
authored andcommitted
sunxi: image: sync target profiles names with DT compatible
Following up with errors reported in the ASU repo, these bananapi cases do not match the DT compatible "bpi", sync with dts sources. Also some profiles were overwriting SUPPORTED_DEVICES. Sysupgrade would be failing in SUPPORTED_DEVICES check since the DT compatible(/tmp/sysinfo/board_name) is not in SUPPORTED_DEVICES. This should also fix errors when using ASU sysupgrade clients. - Sync profile makefile target names with DT compatibles. - Fix overwrites of SUPPORTED_DEVICES instead of appending. - Adapt the uboot-sunxi profiles accordingly. *bpi-p2-zero dts is still not upstream. V2: - Include fixes for arm926ejs(ARM926EJ-S) subtarget (LicheePi Nano and PopStick v1.1) (profile rename for correct default SUPPORTED_DEVICES) Fixes: https://forum.openwrt.org/t/luci-attended-sysupgrade-support-thread/230552/246 Fixes: openwrt/asu#486 Fixes: openwrt/asu#524 Fixes: 9aa66b8 "sunxi: add support for Banana Pi M2 Berry" Fixes: d5f615b "sunxi: add support for Sinovoip Banana Pi M2 Plus" Fixes: 3819c16 "sunxi: Add support for Banana Pi M2 Ultra" Fixes: 6bf8193 "sunxi: add support for Bananapi P2 Zero" Fixes: 80edfaf "sunxi: add support for Banana Pi M3" Fixes: 3c24a1d "sunxi: add support for NanoPi NEO Plus2 board" Fixes: a689307 "sunxi: build image/uboot for the NanoPi NEO2" Fixes: fde68cb "sunxi: add support for FriendlyARM NanoPi R1S H5" Fixes: 3ec468f "sunxi: add F1C100 (arm926ej-s) support" Signed-off-by: Mario Andrés Pérez <[email protected]> Link: openwrt/openwrt#21095 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 63bf77b commit d871e95

File tree

5 files changed

+51
-55
lines changed

5 files changed

+51
-55
lines changed

package/boot/uboot-sunxi/Makefile

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,17 @@ define U-Boot/Mele_M9
134134
BUILD_DEVICES:=mele_m9
135135
endef
136136

137-
define U-Boot/OLIMEX_A13_SOM
137+
define U-Boot/a13-som
138138
BUILD_SUBTARGET:=cortexa8
139139
NAME:=Olimex A13 SOM
140-
BUILD_DEVICES:=olimex_a13-olimex-som
140+
BUILD_DEVICES:=olimex_a13-olinuxino
141141
endef
142142

143143
define U-Boot/licheepi_nano
144144
BUILD_SUBTARGET:=arm926ejs
145145
NAME:=LicheePi Nano
146146
UENV:=f1c
147-
BUILD_DEVICES:=licheepi-nano
147+
BUILD_DEVICES:=licheepi_licheepi-nano
148148
endef
149149

150150
define U-Boot/Linksprite_pcDuino
@@ -268,7 +268,7 @@ define U-Boot/popstick
268268
BUILD_SUBTARGET:=arm926ejs
269269
NAME:=PopStick
270270
UENV:=f1c
271-
BUILD_DEVICES:=popstick-v1.1
271+
BUILD_DEVICES:=sourceparts_popstick-v1.1
272272
endef
273273

274274
define U-Boot/libretech_all_h3_cc_h5
@@ -316,16 +316,16 @@ define U-Boot/pine64_plus
316316
ATF:=a64
317317
endef
318318

319-
define U-Boot/bananapi_m2_plus_h3
319+
define U-Boot/bpi_m2_plus_h3
320320
BUILD_SUBTARGET:=cortexa7
321321
NAME:=Bananapi M2 Plus H3
322-
BUILD_DEVICES:=sinovoip_bananapi-m2-plus
322+
BUILD_DEVICES:=sinovoip_bpi-m2-plus
323323
endef
324324

325-
define U-Boot/Sinovoip_BPI_M3
325+
define U-Boot/bpi_m3
326326
BUILD_SUBTARGET:=cortexa7
327327
NAME:=Bananapi M3
328-
BUILD_DEVICES:=sinovoip_bananapi-m3
328+
BUILD_DEVICES:=sinovoip_bpi-m3
329329
endef
330330

331331
define U-Boot/sopine_baseboard
@@ -382,22 +382,22 @@ define U-Boot/orangepi_zero3
382382
ATF:=h616
383383
endef
384384

385-
define U-Boot/Bananapi_M2_Ultra
385+
define U-Boot/bpi_m2_ultra
386386
BUILD_SUBTARGET:=cortexa7
387387
NAME:=Bananapi M2 Ultra
388-
BUILD_DEVICES:=sinovoip_bananapi-m2-ultra
388+
BUILD_DEVICES:=sinovoip_bpi-m2-ultra
389389
endef
390390

391-
define U-Boot/bananapi_m2_berry
391+
define U-Boot/bpi_m2_berry
392392
BUILD_SUBTARGET:=cortexa7
393393
NAME:=Bananapi M2 Berry
394-
BUILD_DEVICES:=sinovoip_bananapi-m2-berry
394+
BUILD_DEVICES:=sinovoip_bpi-m2-berry
395395
endef
396396

397-
define U-Boot/bananapi_p2_zero
397+
define U-Boot/bpi_p2_zero
398398
BUILD_SUBTARGET:=cortexa7
399399
NAME:=Bananapi P2 Zero
400-
BUILD_DEVICES:=sinovoip_bananapi-p2-zero
400+
BUILD_DEVICES:=sinovoip_bpi-p2-zero
401401
endef
402402

403403

@@ -406,24 +406,25 @@ UBOOT_TARGETS := \
406406
a64-olinuxino-emmc \
407407
A10-OLinuXino-Lime \
408408
A13-OLinuXino \
409+
a13-som \
409410
A20-OLinuXino-Lime \
410411
A20-OLinuXino-Lime2 \
411412
A20-OLinuXino-Lime2-eMMC \
412413
A20-OLinuXino_MICRO \
413-
bananapi_m2_plus_h3 \
414+
beelink_x2 \
415+
bpi_m2_berry \
416+
bpi_m2_plus_h3 \
417+
bpi_m2_ultra \
418+
bpi_m3 \
419+
bpi_p2_zero \
414420
Bananapi \
415-
bananapi_m2_berry \
416-
bananapi_p2_zero \
417-
Bananapi_M2_Ultra \
418421
Bananapro \
419-
beelink_x2 \
420422
Cubieboard \
421423
Cubieboard2 \
422424
Cubietruck \
423425
Hummingbird_A31 \
424426
Marsboard_A10 \
425427
Mele_M9 \
426-
OLIMEX_A13_SOM \
427428
licheepi_nano \
428429
LicheePi_Zero \
429430
Linksprite_pcDuino \
@@ -453,7 +454,6 @@ UBOOT_TARGETS := \
453454
pangolin \
454455
popstick \
455456
pine64_plus \
456-
Sinovoip_BPI_M3 \
457457
sopine_baseboard \
458458
orangepi_zero_plus \
459459
libretech_all_h3_cc_h5

target/linux/sunxi/image/arm926ejs.mk

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@
77

88
KERNEL_LOADADDR=0x81000000
99

10-
define Device/licheepi-nano
10+
define Device/licheepi_licheepi-nano
1111
$(call Device/FitImageGzip)
1212
DEVICE_VENDOR := LicheePi
13-
DEVICE_MODEL := Nano
13+
DEVICE_MODEL := LicheePi Nano
1414
DEVICE_PACKAGES := kmod-rtc-sunxi
1515
SOC := suniv-f1c100s
1616
endef
17-
TARGET_DEVICES += licheepi-nano
17+
TARGET_DEVICES += licheepi_licheepi-nano
1818

19-
define Device/popstick-v1.1
19+
define Device/sourceparts_popstick-v1.1
2020
$(call Device/FitImageGzip)
21-
DEVICE_VENDOR := PopStick
22-
DEVICE_MODEL := v1.1
21+
DEVICE_VENDOR := SourceParts
22+
DEVICE_MODEL := PopStick
23+
DEVICE_VARIANT := v1.1
2324
DEVICE_PACKAGES := kmod-rtc-sunxi
2425
SOC := suniv-f1c200s
2526
endef
26-
TARGET_DEVICES += popstick-v1.1
27+
TARGET_DEVICES += sourceparts_popstick-v1.1

target/linux/sunxi/image/cortexa53.mk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ endef
3939
define Device/friendlyarm_nanopi-neo-plus2
4040
DEVICE_VENDOR := FriendlyARM
4141
DEVICE_MODEL := NanoPi NEO Plus2
42-
SUPPORTED_DEVICES:=nanopi-neo-plus2
42+
SUPPORTED_DEVICES += nanopi-neo-plus2
4343
$(Device/sun50i-h5)
4444
endef
4545
TARGET_DEVICES += friendlyarm_nanopi-neo-plus2
4646

4747
define Device/friendlyarm_nanopi-neo2
4848
DEVICE_VENDOR := FriendlyARM
4949
DEVICE_MODEL := NanoPi NEO2
50-
SUPPORTED_DEVICES:=nanopi-neo2
50+
SUPPORTED_DEVICES += nanopi-neo2
5151
$(Device/sun50i-h5)
5252
endef
5353
TARGET_DEVICES += friendlyarm_nanopi-neo2
@@ -56,7 +56,7 @@ define Device/friendlyarm_nanopi-r1s-h5
5656
DEVICE_VENDOR := FriendlyARM
5757
DEVICE_MODEL := Nanopi R1S H5
5858
DEVICE_PACKAGES := kmod-gpio-button-hotplug kmod-usb-net-rtl8152
59-
SUPPORTED_DEVICES:=nanopi-r1s-h5
59+
SUPPORTED_DEVICES += nanopi-r1s-h5
6060
$(Device/sun50i-h5)
6161
endef
6262
TARGET_DEVICES += friendlyarm_nanopi-r1s-h5
@@ -109,7 +109,6 @@ define Device/xunlong_orangepi-one-plus
109109
$(Device/sun50i-h6)
110110
DEVICE_VENDOR := Xunlong
111111
DEVICE_MODEL := Orange Pi One Plus
112-
SUNXI_DTS_DIR := allwinner/
113112
endef
114113
TARGET_DEVICES += xunlong_orangepi-one-plus
115114

target/linux/sunxi/image/cortexa7.mk

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,29 @@ define Device/lemaker_bananapi
9292
endef
9393
TARGET_DEVICES += lemaker_bananapi
9494

95-
define Device/sinovoip_bananapi-m2-berry
95+
define Device/sinovoip_bpi-m2-berry
9696
$(call Device/FitImageGzip)
9797
DEVICE_VENDOR := Sinovoip
9898
DEVICE_MODEL := Banana Pi M2 Berry
9999
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-brcmfmac \
100100
cypress-firmware-43430-sdio wpad-basic-mbedtls
101-
SUPPORTED_DEVICES:=lemaker,bananapi-m2-berry
101+
SUPPORTED_DEVICES += lemaker,bananapi-m2-berry
102102
SOC := sun8i-v40
103+
SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-bananapi-m2-berry
103104
endef
104-
TARGET_DEVICES += sinovoip_bananapi-m2-berry
105+
TARGET_DEVICES += sinovoip_bpi-m2-berry
105106

106-
define Device/sinovoip_bananapi-m2-ultra
107+
define Device/sinovoip_bpi-m2-ultra
107108
$(call Device/FitImageGzip)
108109
DEVICE_VENDOR := Sinovoip
109110
DEVICE_MODEL := Banana Pi M2 Ultra
110111
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-brcmfmac \
111112
brcmfmac-firmware-43430a0-sdio wpad-basic-mbedtls
112-
SUPPORTED_DEVICES:=lemaker,bananapi-m2-ultra
113+
SUPPORTED_DEVICES += lemaker,bananapi-m2-ultra
113114
SOC := sun8i-r40
115+
SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-bananapi-m2-ultra
114116
endef
115-
TARGET_DEVICES += sinovoip_bananapi-m2-ultra
117+
TARGET_DEVICES += sinovoip_bpi-m2-ultra
116118

117119
define Device/lemaker_bananapro
118120
$(call Device/FitImageGzip)
@@ -217,35 +219,38 @@ define Device/roofull_beelink-x2
217219
endef
218220
TARGET_DEVICES += roofull_beelink-x2
219221

220-
define Device/sinovoip_bananapi-m2-plus
222+
define Device/sinovoip_bpi-m2-plus
221223
$(call Device/FitImageGzip)
222224
DEVICE_VENDOR := Sinovoip
223225
DEVICE_MODEL := Banana Pi M2+
224226
DEVICE_PACKAGES:=kmod-leds-gpio kmod-brcmfmac \
225227
brcmfmac-firmware-43430a0-sdio wpad-basic-mbedtls
226228
SOC := sun8i-h3
229+
SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-bananapi-m2-plus
227230
endef
228-
TARGET_DEVICES += sinovoip_bananapi-m2-plus
231+
TARGET_DEVICES += sinovoip_bpi-m2-plus
229232

230-
define Device/sinovoip_bananapi-m3
233+
define Device/sinovoip_bpi-m3
231234
$(call Device/FitImageGzip)
232235
DEVICE_VENDOR := Sinovoip
233236
DEVICE_MODEL := Banana Pi M3
234237
DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-leds-gpio kmod-rtc-ac100 \
235238
kmod-brcmfmac cypress-firmware-43430-sdio wpad-basic-mbedtls
236239
SOC := sun8i-a83t
240+
SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-bananapi-m3
237241
endef
238-
TARGET_DEVICES += sinovoip_bananapi-m3
242+
TARGET_DEVICES += sinovoip_bpi-m3
239243

240-
define Device/sinovoip_bananapi-p2-zero
244+
define Device/sinovoip_bpi-p2-zero
241245
$(call Device/FitImageGzip)
242246
DEVICE_VENDOR := Sinovoip
243247
DEVICE_MODEL := Banana Pi P2 Zero
244248
DEVICE_PACKAGES:=kmod-leds-gpio kmod-brcmfmac \
245249
cypress-firmware-43430-sdio wpad-basic-mbedtls
246250
SOC := sun8i-h2-plus
251+
SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-bananapi-p2-zero
247252
endef
248-
TARGET_DEVICES += sinovoip_bananapi-p2-zero
253+
TARGET_DEVICES += sinovoip_bpi-p2-zero
249254

250255
define Device/xunlong_orangepi-one
251256
$(call Device/FitImageGzip)

target/linux/sunxi/image/cortexa8.mk

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,12 @@ define Device/olimex_a10-olinuxino-lime
4343
endef
4444
TARGET_DEVICES += olimex_a10-olinuxino-lime
4545

46-
define Device/olimex_a13-olimex-som
47-
$(call Device/FitImageGzip)
48-
DEVICE_VENDOR := Olimex
49-
DEVICE_MODEL := A13-SOM
50-
DEVICE_PACKAGES:=kmod-rtl8192cu
51-
SUPPORTED_DEVICES:=olimex,a13-olinuxino
52-
SOC := sun5i-a13
53-
SUNXI_DTS := $$(SUNXI_DTS_DIR)sun5i-a13-olinuxino
54-
endef
55-
TARGET_DEVICES += olimex_a13-olimex-som
56-
5746
define Device/olimex_a13-olinuxino
5847
$(call Device/FitImageGzip)
5948
DEVICE_VENDOR := Olimex
6049
DEVICE_MODEL := A13-OLinuXino
50+
DEVICE_ALT0_VENDOR := Olimex
51+
DEVICE_ALT0_MODEL := A13-SOM
6152
DEVICE_PACKAGES:=kmod-rtl8192cu
6253
SOC := sun5i
6354
endef

0 commit comments

Comments
 (0)