Bare metal development on rock 5b rk3588

Hi,
has anyone tried bare metal development on rk3588 in rock 5b ?

I know right now there are a lot of binaries, but any chance they get open sourced later ?

Even with the binary, what’s the boot process after the ROM code? let’s say we only have an sd card, where should the initial bootloader binary be written on the sd card? should it have a specific name or a specific address?

what about the second-stage bootloader? what binary does the initial bootloader expect to be there to load ?

I appreciate if someone can help me figure this out or if you’re interested in figuring it out together. This is a powerful board and powerful SOC, I hope it becomes more programmable and I hope it doesn’t go the raspberry pi route of being closed.

1 Like

Hi there! Hope its not too late. I tried baremetal programming on rockpi5b. All you have to do is packaging rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin and your own baremetal program.
You can use the command which locates in mk-uboot.sh:

./tools/mkimage -n rk3588 -T rksd -d ../rkbin/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin:spl/u-boot-spl.bin idbloader.img

Substitute the spl/u-boot-spl.bin with your bin. more details here