Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Radxa Cubie A5E (sun55i-a527) #7852

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Updates and fixes
  • Loading branch information
juanesf committed Mar 1, 2025
commit a02f2c1e36674382bd3ad0bbf925342b891fb3db
21 changes: 19 additions & 2 deletions config/boards/radxa-cubie-a5e.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# Allwinner Cortex-A55 octa core 1/2/4GB RAM SoC
BOARD_NAME="radxa cubie a5e"
BOARDFAMILY="sun55iw3"
BOARD_MAINTAINER="Nick A, Juanesf91"
BOARD_MAINTAINER="Nick A, JuanEsf91"
BOOTCONFIG="radxa-a5e_defconfig"
OVERLAY_PREFIX="sun55i-a527"
#BOOT_LOGO="desktop"
KERNEL_TARGET="dev"
FORCE_BOOTSCRIPT_UPDATE="yes"
BOOT_FDT_FILE="dtb/allwinner/sun55i-a527-radxa-a5e.dtb"
BOOTFS_TYPE="fat"
BOOTSCRIPT="extlinux.conf"
IMAGE_PARTITION_TABLE="msdos"
#IMAGE_PARTITION_TABLE="gpt"
BOOTSTART="1"
BOOTSIZE="512"
ROOTSTART="513"
#UBOOT_EXTLINUX=yes"
#UBOOT_EXTLINUX_ROOT=root=UUID=%%ROOT_PARTUUID%%"
#UBOOT_EXTLINUX_FDT="sun55i-a527-radxa-a5e.dtb"

function post_family_tweaks__radxa_cubie-a5e() {
display_alert "Applying wifi firmware"
pushd "$SDCARD/lib/firmware"
ln -s "aic8800/SDIO/aic8800D80" "aic8800_sdio" # use armbian-firmware
popd
}
6 changes: 3 additions & 3 deletions config/sources/families/sun55iw3.conf
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ declare -g ATFBRANCH="branch:a523"
declare -g BOOTSCRIPT='boot-sun50i-next.cmd:boot.cmd'
declare -g BOOTDELAY=1
declare -g BOOTSOURCE='https://github.com/jernejsk/u-boot/'
declare -g BOOTPATCHDIR="${BOOTPATCHDIR:-"u-boot-a523"}"
declare -g BOOTPATCHDIR="sunxi-dev-${BOOTPATCHDIR:-"u-boot-a523"}"
declare -g BOOTBRANCH="${BOOTBRANCH:-"branch:a523"}"
declare -g BOOTENV_FILE='sunxi.txt'
declare -g UBOOT_TARGET_MAP="${UBOOT_TARGET_MAP:-BINMAN_ALLOW_MISSING=1;;u-boot-sunxi-with-spl.bin}"
@@ -39,8 +39,8 @@ family_tweaks() {
}

write_uboot_platform() {
dd if=/dev/zero of=$2 bs=1k count=1023 seek=1 status=noxfer > /dev/null 2>&1
dd if=$1/u-boot-sunxi-with-spl.bin of=$2 bs=1024 seek=8 status=noxfer > /dev/null 2>&1
dd if=/dev/zero of=$2 bs=512 count=1023 seek=1 status=noxfer > /dev/null 2>&1
dd if=$1/u-boot-sunxi-with-spl.bin of=$2 bs=512 seek=256 status=noxfer > /dev/null 2>&1
}

setup_write_uboot_platform() {
27 changes: 27 additions & 0 deletions patch/kernel/archive/sunxi-dev-6.12/fix-ccu-sun55i-a523.h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: John Doe <john.doe@somewhere.on.planet>
Date: Fri, 28 Feb 2025 22:09:35 -0300
Subject: Fix ccu-sun55i-a523.h

Signed-off-by: John Doe <john.doe@somewhere.on.planet>
---
drivers/clk/sunxi-ng/ccu-sun55i-a523.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/clk/sunxi-ng/ccu-sun55i-a523.h b/drivers/clk/sunxi-ng/ccu-sun55i-a523.h
index 024c91b7d49d..243e843b9edd 100644
--- a/drivers/clk/sunxi-ng/ccu-sun55i-a523.h
+++ b/drivers/clk/sunxi-ng/ccu-sun55i-a523.h
@@ -7,9 +7,8 @@
#define _CCU_SUN55I_A523_H

#include <dt-bindings/clock/sun55i-a523-ccu.h>
#include <dt-bindings/reset/sun55i-a523-ccu.h>

-#define CLK_NUMBER (CLK_FANOUT2 + 1)
#define CLK_NUMBER (CLK_MBUS_EMAC1 + 1)

#endif /* _CCU_SUN55I_A523_H */
--
Created with Armbian build tools https://github.com/armbian/build