Hi,
for a project of mine I want to write my own bootloader for the Rock Pi 5 that boots from eMMC. As far as I’ve understood, on reset, an Arm core executes from the stage 1 bootloader from BROM, I don’t want to touch that.
That BROM code then looks in the eMMC for the ID block. If found, the arms pc jumps there. Now my question. The boot is split into a spl and the actual uboot bootloader, why is that? I’ve also found that you can download the spl from RockPi’s git directly so it’s not even compiled with uboot, so is it proprietary?
I would love to replace both stages but I can’t find the spl’s code anywhere. If the spl is proprietary, can I then just put the provided spl in my img and put my bootloader at the here specified location(0x4000)?
Maybe knows some project where something like that has been done before?
regards Robert