Sorry, should have included that up front. Details:
Board: Radxa Cubie A5E
OS image:
BOARD=radxa-cubie-a5e
BOARD_NAME=“Cubie A5E”
BOARDFAMILY=sun55iw3
BUILD_REPOSITORY_URL=GitHub - armbian/build: The official build framework for the Armbian Linux distribution. This repository contains the complete toolchain and scripts required to compile custom OS images from source, including kernel configuration, U-Boot handling, and board-specific tweaks for various ARM and ARM64 single-board computers. · GitHub
BUILD_REPOSITORY_COMMIT=cc103cb0f
LINUXFAMILY=sunxi64
ARCH=arm64
BOOT_SOC=
IMAGE_TYPE=user-built
BOARD_TYPE=csc
INITRD_ARCH=arm64
KERNEL_IMAGE_TYPE=Image
KERNEL_TARGET=current,edge
KERNEL_TEST_TARGET=current,edge
FORCE_BOOTSCRIPT_UPDATE=
FORCE_UBOOT_UPDATE=
OVERLAY_DIR=“/boot/dtb/allwinner/overlay”
VENDOR=“Armbian-unofficial”
VENDORCOLOR=“247;16;0”
VENDORDOCS=“https://docs.armbian.com/”
VENDORURL=“" at DuckDuckGo
VENDORSUPPORT=“https://community.armbian.com/”
VENDORBUGS=“https://armbian.atlassian.net/”
BOOTSCRIPT_FORCE_UPDATE=“no”
BOOTSCRIPT_DST=“boot.cmd”
VERSION=26.08.0-trunk
REVISION=26.08.0-trunk
BRANCH=current
U-Boot package/version:
ii linux-u-boot-radxa-cubie-a5e-current 26.08.0-trunk arm64 Das U-Boot for radxa-cubie-a5e
ii u-boot-tools 2025.01-3 arm64 companion tools for Das U-Boot bootloader
Kernel:
Linux a5e 6.18.36-current-sunxi64 #1 SMP PREEMPT Fri Jun 19 19:44:16 CST 2026 aarch64 GNU/Linux
What I did: Flashed the board’s U-Boot to SPI NOR with:
sudo dd if=/usr/lib/linux-u-boot-current-radxa-cubie-a5e/u-boot-sunxi-with-spl.bin of=/dev/mtdblock0
This fixed booting without an SD card present, but now an inserted SD card is ignored in favor of NVMe.
Diagnosis so far (via serial console, 115200 8N1 on GPIO pins 6/8/10):
Default environment:
boot_targets=fel nvme0 mmc_auto usb0 pxe dhcp
Setting boot_targets=mmc0 mmc1 nvme0 usb0 pxe dhcp and running boot manually works correctly — SD is picked up over NVMe when present:
Scanning mmc 0:1…
Found U-Boot script /boot/boot.scr
However this doesn’t persist. saveenv fails:
Saving Environment to FAT… Unable to use mmc 0:1…
Failed (1)
Checked the SD card’s partition table and filesystem:
Part Start Sector Num Sectors UUID Type
1 8192 61693952 f3e87223-01 83
=> fstype mmc 0:1
ext4
So this build is configured with CONFIG_ENV_IS_IN_FAT targeting mmc 0:1, but Armbian’s actual SD image uses a single ext4 partition there — meaning the environment can never be saved, regardless of what’s inserted.
Two things I think need fixing upstream: default boot_targets should put SD before NVMe (same as the RK3588 fix, radxa/u-boot#25), and the environment storage location should point somewhere that actually matches the partition layout Armbian ships (or somewhere persistent on-board, like SPI flash, rather than the removable SD card).