Need help with installing RockyLinux ARM64 on Rock-Pi 4C


Can anyone please provide me guidance on what it takes to install RockyLinux ARM64/aarch64 on RockPi4C ? RockyLinux provides only an .ISO file.

I installed UUByte ISO Editor on my Mac ( and with it, I installed the Rocky Linux ISO on to my SD Card.

But my Rock Pi4C doesn’t boot up with that SD card as I was hoping to.

Doing some reading, I believe the SD Card has to be partitioned in a specific manner, with all the required bits presented in appropriate partitions.

If so, where can one get these bits - first stage loader, U boot image, ATF ?

Appreciate if you someone can educate me if my understanding is correct and what I need to do to accomplish this.

thanks in advance.

An Update:

To build the required images, I followed this documentation on the latest version of Ubuntu VM.

But the build fails :frowning:

root@ubuntu20-vm:~/rockchip-bsp# ./build/ rockpi4c
Building U-boot for rockpi4c board!
Using rock-pi-4c-rk3399_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/

CC disk/part.o
CC disk/part_dos.o
CC disk/part_efi.o
disk/part_efi.c: In function ‘gpt_verify_partitions’:
disk/part_efi.c:858:49: error: taking address of packed member of ‘struct _gpt_entry’ may result in an unaligned pointer valu
e [-Werror=address-of-packed-member]
858 | gpt_convert_efi_name_to_char(efi_str, gpt_e[i].partition_name,
| ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/ disk/part_efi.o] Error 1
make[1]: *** [Makefile:1289: disk] Error 2
make: *** [Makefile:461: __build_one_by_one] Error 2

That arm64 iso image is not for sbc, it’s for WindowsArm notebooks, because it requires uefi.
You can’t use it for normal sbc.

Thanks Dante4 for your reply.

Tom Cubie from Radxa replied to a message that I left on their website ( He asked me to open an new issue/ticket on github with regards to build failure, which I did.

Just wanted to pass it on, incase anyone else is interested.

thank you.


Here is the message from Radxa team.

Please use gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu. Check this guide,

I was able to build the u-boot successfully y following the above link.

root@ubuntu20-vm:~/rockchip-bsp# ls -lt out/u-boot/
total 2504
drwxr-xr-x 2 root root 4096 May 20 13:46 spi
-rw-r–r-- 1 root root 1048576 May 20 13:46 trust.img
-rw-r–r-- 1 root root 1048576 May 20 13:46 uboot.img
-rw-r–r-- 1 root root 297294 May 20 13:46 rk3399_loader_v1.20.119.bin
-rw-r–r-- 1 root root 163836 May 20 13:46 idbloader.img