U-boot sd boot from radxa github

Ubuntu 20.04

sudo apt install bc nano mc build-essential autoconf libtool cmake pkg-config git python-dev swig3.0 libpcre3-dev libnode-dev gawk wget diffstat bison flex device-tree-compiler libncurses5-dev gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binfmt-support

git clone https://github.com/radxa/u-boot.git
git checkout radxa-zero-v2021.01
cd u-boot
export ARCH=arm
export CROSS_COMPILE=aarch64-linux-gnu-
make radxa-zero_defconfig
cd ..
git clone https://github.com/radxa/fip.git
cd fip/radxa-zero
cp $UBOOTDIR/u-boot.bin bl33.bin
df #Find usb boot partition /dev name /dev/sdc1 in this instance
sudo dd if=u-boot.bin.sd.bin of=/dev/sdc1 bs=512 seek=1 #?

I am doing this wrong as write to eMMC/SD offset 0x200 to boot.
So x200 = d512 so the seek is the 1st block or should I have done seek=2 as its not 0 based?

sudo dd if=u-boot.bin.sd.bin of=/dev/sdc1 bs=512 seek=1 #?

This should be

sudo dd if=u-boot.bin.sd.binof=/dev/sdc conv=fsync,notrunc bs=1 count=444
sudo dd if=u-boot.bin.sd.bin of=/dev/sdc conv=fsync,notrunc bs=512 skip=1 seek=1

Just to skip the MBR partition table in the SD card.


For eMMC, the offset is 0x200, 2nd sector.

sudo dd if=u-boot.bin of=/dev/sdc bs=512 seek=1

Trying to boot armbian on the board unsuccesfully, maybe you can help me

Thought this might be useful @jack

=> mmc list
sd@ffe03000: 0
sd@ffe05000: 1
mmc@ffe07000: 2
=> mmcinfo
Card did not respond to voltage select! : -110
=> mmc rescan
Card did not respond to voltage select! : -110
=> mmc dev 0 1
Card did not respond to voltage select! : -110
=> mmc dev 1 1
switch to partitions #1, ERROR
=> mmc dev 2 1
Card did not respond to voltage select! : -110

1 Like

@sven have you got it working already?

Yes I did, following the steps from radxa zero introduction thread

Without doing the dd u-boot.bin.sd.bin I get


With DD u-boot.bin.sd.bin just a repetition also

~▒▒Fixed PLL lock failed

Its usually me so what am I doing wrong :slight_smile:


If people would prefer to use mainline u-boot (2021.07) this is u-boot.bin.sd.bin:



Sources are here: https://github.com/chewitt/u-boot/commits/amlogic-2021.07 (see last two commits) which are based on the initial device-tree I’ve submitted to the kernel and a Linux oriented defconfig similar to other G12 devices. The FIP sources used here are: https://github.com/LibreELEC/amlogic-boot-fip/tree/master/radxa-zero


are the datasheet of s905d3 and the datasheet of s905y3 same ?

s905y3 is a subset of s905d3, but as far as i know s905y3 is cancelled. It seems the power consumption can not meet power from HDMI port requirements, so amlogic jumps to s905y4, which quad a35, less powerful but more power efficient.