mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
Add Radxa Cubie A5E (sun55i-a527) (#7852)
* Add Radxa Cubie A5E (sun55i-a527) * Add Ethernet BSP to sun55i-dev, restore patch deleted * Update sunxi64_common.inc * Update from mainstream * Update sun55iw3.conf * Clean and switch partition table format * Update and rename radxa-cubie-a5e.conf to radxa-cubie-a5e.csc * fix gpt partition boot * Cleanup and update (6.12>6.14)
This commit is contained in:
22
config/boards/radxa-cubie-a5e.csc
Normal file
22
config/boards/radxa-cubie-a5e.csc
Normal file
@@ -0,0 +1,22 @@
|
||||
# Allwinner Cortex-A55 octa core 1/2/4GB RAM SoC
|
||||
BOARD_NAME="radxa cubie a5e"
|
||||
BOARDFAMILY="sun55iw3"
|
||||
BOARD_MAINTAINER=""
|
||||
BOOTCONFIG="radxa-a5e_defconfig"
|
||||
OVERLAY_PREFIX="sun55i-a527"
|
||||
#BOOT_LOGO="desktop"
|
||||
KERNEL_TARGET="dev"
|
||||
BOOT_FDT_FILE="dtb/allwinner/sun55i-a527-radxa-a5e.dtb"
|
||||
IMAGE_PARTITION_TABLE="gpt"
|
||||
#IMAGE_PARTITION_TABLE="msdos"
|
||||
BOOTFS_TYPE="fat"
|
||||
BOOTSTART="1"
|
||||
BOOTSIZE="512"
|
||||
ROOTSTART="513"
|
||||
|
||||
#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
|
||||
#}
|
||||
8339
config/kernel/linux-sun55iw3-dev.config
Normal file
8339
config/kernel/linux-sun55iw3-dev.config
Normal file
File diff suppressed because it is too large
Load Diff
66
config/sources/families/sun55iw3.conf
Normal file
66
config/sources/families/sun55iw3.conf
Normal file
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com
|
||||
#
|
||||
# This file is a part of the Armbian Build Framework
|
||||
# https://github.com/armbian/build/
|
||||
#
|
||||
enable_extension "sunxi-tools"
|
||||
declare -g ARCH=arm64
|
||||
declare -g ATFSOURCE='https://github.com/jernejsk/arm-trusted-firmware'
|
||||
declare -g ATF_TARGET_MAP="PLAT=sun55i_a523 DEBUG=1 bl31;;build/sun55i_a523/debug/bl31.bin"
|
||||
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="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}"
|
||||
declare -g OVERLAY_DIR="/boot/dtb/allwinner/overlay"
|
||||
declare -g LINUXFAMILY="sun55iw3"
|
||||
|
||||
case "${BRANCH}" in
|
||||
|
||||
dev)
|
||||
declare -g KERNELSOURCE='https://github.com/apritzel/linux'
|
||||
declare -g KERNELBRANCH='branch:a523-v3'
|
||||
declare -g KERNEL_MAJOR_MINOR="6.14" # Major and minor versions of this kernel.
|
||||
KERNELPATCHDIR="archive/sunxi-dev-${KERNEL_MAJOR_MINOR}"
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
family_tweaks() {
|
||||
# execute specific tweaks function if present
|
||||
[[ $(type -t family_tweaks_s) == function ]] && family_tweaks_s
|
||||
cp $SRC/packages/blobs/splash/armbian-u-boot-24.bmp $SDCARD/boot/boot.bmp
|
||||
}
|
||||
|
||||
write_uboot_platform() {
|
||||
# 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() {
|
||||
local tmp part dev
|
||||
if grep -q "ubootpart" /proc/cmdline; then
|
||||
# mainline with new boot script
|
||||
tmp=$(cat /proc/cmdline)
|
||||
tmp="${tmp##*ubootpart=}"
|
||||
tmp="${tmp%% *}"
|
||||
[[ -n $tmp ]] && part=$(findfs PARTUUID=$tmp 2> /dev/null)
|
||||
[[ -n $part ]] && dev=$(lsblk -n -o PKNAME $part 2> /dev/null)
|
||||
[[ -n $dev ]] && DEVICE="/dev/$dev"
|
||||
else
|
||||
# legacy or old boot script
|
||||
tmp=$(cat /proc/cmdline)
|
||||
tmp="${tmp##*root=}"
|
||||
tmp="${tmp%% *}"
|
||||
[[ -n $tmp ]] && part=$(findfs $tmp 2> /dev/null)
|
||||
[[ -n $part ]] && dev=$(lsblk -n -o PKNAME $part 2> /dev/null)
|
||||
# do not try to write u-boot to USB devices
|
||||
[[ -n $dev && $dev == mmcblk* ]] && DEVICE="/dev/$dev"
|
||||
fi
|
||||
}
|
||||
@@ -12686,4 +12686,3 @@ index 07695294767a..be193c7add77 100644
|
||||
int rtw_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
||||
--
|
||||
2.39.5
|
||||
|
||||
Reference in New Issue
Block a user