sunxi: add Radxa Cubie A5E support

Hardware
--------
Allwinner A527 ARM64 (8 cores)
1/2/4GB LPDDR4 RAM
2x 1000 Base-T
Wi-Fi 6 + BT 5.4
2x LEDs (POWER / USER)
0/8/16/32GB eMMC on-board
Micro-SD Slot
M.2 M-key Slot
USB 3.0 Port
USB Type-C 5V Power

Installation
------------
Uncompress the ImmortalWrt sysupgrade and write it to a micro SD card or
internal eMMC using dd.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2026-05-07 09:48:35 +08:00
parent 0eaae2eeb7
commit 164adef68c
6 changed files with 80 additions and 1 deletions
+11 -1
View File
@@ -406,6 +406,15 @@ define U-Boot/bananapi_p2_zero
BUILD_DEVICES:=sinovoip_bpi-p2-zero BUILD_DEVICES:=sinovoip_bpi-p2-zero
endef endef
define U-Boot/radxa-cubie-a5e
BUILD_SUBTARGET:=cortexa53
NAME:=Radxa Cubie A5E
BUILD_DEVICES:=radxa_cubie-a5e
DEPENDS:=+PACKAGE_u-boot-radxa-cubie-a5e:trusted-firmware-a-sunxi-a523
UENV:=a523
ATF:=a523
endef
UBOOT_TARGETS := \ UBOOT_TARGETS := \
a64-olinuxino \ a64-olinuxino \
@@ -463,7 +472,8 @@ UBOOT_TARGETS := \
Sinovoip_BPI_M3 \ Sinovoip_BPI_M3 \
sopine_baseboard \ sopine_baseboard \
orangepi_zero_plus \ orangepi_zero_plus \
libretech_all_h3_cc_h5 libretech_all_h3_cc_h5 \
radxa-cubie-a5e
UBOOT_CONFIGURE_VARS += USE_PRIVATE_LIBGCC=yes UBOOT_CONFIGURE_VARS += USE_PRIVATE_LIBGCC=yes
@@ -0,0 +1,10 @@
--- a/configs/radxa-cubie-a5e_defconfig
+++ b/configs/radxa-cubie-a5e_defconfig
@@ -22,6 +22,7 @@ CONFIG_SYS_I2C_MVTWSI=y
CONFIG_SYS_I2C_SLAVE=0x7f
CONFIG_SYS_I2C_SPEED=400000
CONFIG_SUPPORT_EMMC_BOOT=y
+CONFIG_PHY_MAXIO=y
CONFIG_PHY_REALTEK=y
CONFIG_SUN8I_EMAC=y
CONFIG_REGULATOR_AXP=y
+6
View File
@@ -0,0 +1,6 @@
setenv mmc_rootpart 2
part uuid mmc ${mmc_bootdev}:${mmc_rootpart} uuid
setenv loadkernel fatload mmc \$mmc_bootdev \$kernel_comp_addr_r uImage
setenv bootargs coherent_pool=2M console=ttyS0,115200 root=PARTUUID=${uuid} rootwait
setenv uenvcmd run loadkernel \&\& bootm \$kernel_comp_addr_r
run uenvcmd
@@ -20,6 +20,7 @@ sunxi_setup_interfaces()
olimex,a13-olinuxino-micro) olimex,a13-olinuxino-micro)
ucidef_set_interface_lan "wlan0" ucidef_set_interface_lan "wlan0"
;; ;;
radxa,cubie-a5e|\
xunlong,orangepi-r1) xunlong,orangepi-r1)
ucidef_set_interfaces_lan_wan "eth0" "eth1" ucidef_set_interfaces_lan_wan "eth0" "eth1"
;; ;;
+13
View File
@@ -36,6 +36,11 @@ define Device/sun50i-h618
$(Device/sun50i) $(Device/sun50i)
endef endef
define Device/sun55i-a527
SOC := sun55i-a527
$(Device/sun50i)
endef
define Device/friendlyarm_nanopi-neo-plus2 define Device/friendlyarm_nanopi-neo-plus2
DEVICE_VENDOR := FriendlyARM DEVICE_VENDOR := FriendlyARM
DEVICE_MODEL := NanoPi NEO Plus2 DEVICE_MODEL := NanoPi NEO Plus2
@@ -105,6 +110,14 @@ define Device/pine64_sopine-baseboard
endef endef
TARGET_DEVICES += pine64_sopine-baseboard TARGET_DEVICES += pine64_sopine-baseboard
define Device/radxa_cubie-a5e
DEVICE_VENDOR := Radxa
DEVICE_MODEL := Cubie A5E
DEVICE_PACKAGES := kmod-aic8800-sdio wpad-openssl
$(Device/sun55i-a527)
endef
TARGET_DEVICES += radxa_cubie-a5e
define Device/xunlong_orangepi-one-plus define Device/xunlong_orangepi-one-plus
$(Device/sun50i-h6) $(Device/sun50i-h6)
DEVICE_VENDOR := Xunlong DEVICE_VENDOR := Xunlong
@@ -0,0 +1,39 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tianling Shen <cnsztl@gmail.com>
Date: Wed, 6 May 2026 18:12:38 +0800
Subject: [PATCH] arm64: dts: allwinner: add LED aliases to Cubie A5E
Add OpenWrt's LED aliases for showing system status.
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
---
.../boot/dts/allwinner/sun55i-a527-cubie-a5e.dts | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
--- a/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
+++ b/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
@@ -19,6 +19,10 @@
mmc0 = &mmc0;
mmc1 = &mmc1;
serial0 = &uart0;
+ led-boot = &power_led;
+ led-failsafe = &power_led;
+ led-running = &power_led;
+ led-upgrade = &power_led;
};
chosen {
@@ -28,12 +32,10 @@
leds {
compatible = "gpio-leds";
- power-led {
+ power_led: power-led {
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&r_pio 0 4 GPIO_ACTIVE_LOW>; /* PL4 */
- default-state = "on";
- linux,default-trigger = "heartbeat";
};
use-led {