My Armbian Build can not boot on Radxa Zero

Hello. I recently purchased a Radxa Zero with 2GB of RAM and 8GB of eMMC. When I burned the official Armbian image provided by Radxa to the eMMC, this single-chip microcomputer starts normally and works well.

But when I tried to use the compile.sh in the latest Armbian official git repository, to build my own Armbian image and write it to eMMC, and finally try to start, it seemed to fail. I use the command dd if=/path/to/armbian.img of=/dev/sda bs=1M to write the image to my eMMC in udisk mode, and it finished with no errors.

More specifically, the problem is that, when I plugged in the microHDMI cable and plugged the USB OTG, my monitor had a signal input, but the screen was completely blank within 30 minutes (after that, I gave up trying to boot). No logo or tty showed up.

I also referred to https://wiki.radxa.com/Zero/dev/u-boot, and successfully built my own u-boot.bin file and wrote it to the radxa0. The situation became worse, and there was no input signal in my monitor. Replacing it with https://dl.radxa.com/zero/images/loader/u-boot.bin also does not work.

The content of my Armbian build log file output.log is shown below.


## BUILD SCRIPT ENVIRONMENT

Repository: 
Version: 

Host OS: bullseye
Host arch: amd64
Host system: Linux mypc 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
Virtualization type: none

## Build script directories
Build directory is located on:
TARGET SOURCE         FSTYPE AVAIL
/home  /dev/nvme1n1p5 ext4   38.4G

Build directory permissions:
# file: /home/haotian/radxa_zero/armbian/build
# owner: haotian
# group: haotian
user::rwx
group::r-x
other::r-x

Temp directory permissions:
# file: /home/haotian/radxa_zero/armbian/build/.tmp
# owner: root
# group: root
user::rwx
group::rwx
other::r-x

## BUILD CONFIGURATION

Build target:
Board: radxa-zero
Branch: current
Minimal: no
Desktop: no
Desktop Environment: 
Software groups: 

Kernel configuration:
Repository: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Branch: branch:linux-5.10.y
Config file: linux-meson64-current

U-boot configuration:
Repository: https://source.denx.de/u-boot/u-boot.git
Branch: tag:v2021.07
Config file: radxa-zero_config

Partitioning configuration: msdos offset: 4
Boot partition type: (none) 
Root partition type: ext4 

CPU configuration: 1000000 - 1800000 with ondemand
Displaying message: Preparing host info
Displaying message: Build host OS release bullseye info
Displaying message: Downloading sources  info
Displaying message: Checking git sources u-boot v2021.07 info
Displaying message:  Cleaning ....  57 files
Displaying message: Checking git sources linux-mainline linux-5.10.y info
Displaying message:  Cleaning ....  33 files
Displaying message: Checking git sources sunxi-tools master info
Displaying message: Up to date
Displaying message: Checking git sources rkbin-tools master info
Displaying message: Up to date
Displaying message: Checking git sources marvell-tools A3700_utils-armada-18.12 info
Displaying message: Up to date
Displaying message: Checking git sources marvell-ddr mv_ddr-armada-18.12 info
Displaying message: Up to date
Displaying message: Checking git sources marvell-binaries binaries-marvell-armada-18.12 info
Displaying message: Up to date
Displaying message: Checking git sources odroidc2-blobs master info
Displaying message: Up to date
Displaying message: Checking git sources testing-reports master info
Displaying message: Up to date
Displaying message: Checking git sources amlogic-boot-fip master info
Displaying message: Up to date
Displaying message: Cleaning /home/haotian/radxa_zero/armbian/build/output/debs for radxa-zero current info
Displaying message: Creating board support package for CLI armbian-bsp-cli-radxa-zero info
Displaying message: Starting rootfs and image building process for current radxa-zero focal   no info
Displaying message: Checking for local cache focal-cli-arm64.42e...3f5.tar.lz4 info
Displaying message: Extracting focal-cli-arm64.42e...3f5.tar.lz4 0 days old info
Displaying message: Adding Armbian repository and authentication key /etc/apt/sources.list.d/armbian.list info
Displaying message: Applying distribution specific tweaks for focal info
Displaying message: Applying common tweaks  info
Displaying message: Updating package lists
Displaying message: Temporarily disabling initramfs-tools hook for kernel
Displaying message: Installing from repository linux-u-boot-radxa-zero-current
Displaying message: Installing from repository linux-image-current-meson64
Displaying message: Installing from repository linux-dtb-current-meson64
Displaying message: Installing from repository armbian-bsp-cli-radxa-zero
Displaying message: Installing from repository armbian-firmware
Displaying message: Installing from repository armbian-config
Displaying message: Installing from repository armbian-zsh
Displaying message: Installing from repository wireguard-tools --no-install-recommends
Displaying message: Enabling serial console ttyAML0 info
Displaying message: Building kernel splash logo focal info
Displaying message: Installing extras-buildpkgs  hostapd htop mmc-utils sunxi-tools
Displaying message: Calling image customization script customize-image.sh info
Displaying message: No longer needed packages purge info
Displaying message: Unmounting /home/haotian/radxa_zero/armbian/build/.tmp/rootfs-b96545b3-ca05-41bd-9541-a927baaaf047 info
Displaying message: Preparing image file for rootfs radxa-zero focal info
Displaying message: Current rootfs size 1351 MiB info
Displaying message: Creating blank image for rootfs 1696 MiB info
Displaying message: Creating partitions root: ext4 info
Displaying message: Creating rootfs ext4 on /dev/loop0p1
Displaying message: Copying files to /
Displaying message: Copying files to /boot
Displaying message: Updating initramfs... update-initramfs -uv -k 5.10.60-meson64 
Displaying message: Updated initramfs. for details see: /home/haotian/radxa_zero/armbian/build/output/debug/install.log info
Displaying message: Re-enabling initramfs-tools hook for kernel
Displaying message: Unmounting /home/haotian/radxa_zero/armbian/build/.tmp/mount-b96545b3-ca05-41bd-9541-a927baaaf047/ info
Displaying message: Free SD cache 12% info
Displaying message: Mount point 89% info
Displaying message: Writing U-boot bootloader /dev/loop0 info
Displaying message: SHA256 calculating Armbian_21.11.0-trunk_Radxa-zero_focal_current_5.10.60.img info
Displaying message: GPG signing skipped - no GPG_PASS Armbian_21.11.0-trunk_Radxa-zero_focal_current_5.10.60.img wrn
Displaying message: Done building /home/haotian/radxa_zero/armbian/build/.tmp/image-b96545b3-ca05-41bd-9541-a927baaaf047/Armbian_21.11.0-trunk_Radxa-zero_focal_current_5.10.60.img info
Displaying message: Runtime 4 min info
Displaying message: Repeat Build Options ./compile.sh  BOARD=radxa-zero BRANCH=current RELEASE=focal BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=prebuilt COMPRESS_OUTPUTIMAGE=sha,gpg,img  ext

I tried my best to find a solution, but I don’t have a clue. May I ask what mistakes did I make in the above steps? Or am I missing any steps? (I’m sorry that I’m not familiar with U-Boot. :grinning:)

Thank you very much for your help and reply.

I’m using the armbian/build git repository https://github.com/armbian/build to build my image. Is that correct for my Radxa Zero?

1 Like

Same issue. I think it could be compatibility issues with Samsung Emmc dies.

Hi,
I found patched version of armbian-build on

The patch for Radxa zero says,


Add support for Radxa Zero
u-boot: new patch based on v2021.04
kernel: use patches sent to kernel list by chewitt

Tested with minimal build and cinnamon desktop:

  • SD/eMMC, ok
  • USB3, works in USB 2 mode
  • HDMI, ok
  • WiFi/BT, ok

Unfortunately, I can not check this issue since I don’t have eMMC version of the Zero and it’s 512MB/AP6212 version. So just information.

Thank you for your reply. I found that the latest commit in https://github.com/radxa/armbian-build, which adds support for radxa0, is merged into the armbian/build as pull 3128.

In that case, I guess using the armbian/build to build my image is OK. But I am not sure about that.

Building from the Armbian repo worked for me.
I used this command

./compile.sh docker \
BOARD=radxa-zero \
BRANCH=current \
RELEASE=focal \
BUILD_MINIMAL=yes \
CARD_DEVICE="/dev/sdc"

Then I had to chose build full image.
Then it’s a matter of flashing it to the emmc with dd.
I unlocked and erased the boot loader before flashing. I am not sure it was necessary. I also made sure that the emmc flashed section matched the img with dd and md5sum.
Then I just booted up the card and it worked.

I hope it helps

I haven’t tested the hdmi though as I only use the board as a headless server.