Hi,
I just got OpenBSD to boot on my new RockPro64.
I did not (yet) manage to boot OpenBSD's U-Boot (2021.10) directly from
MMC.
But loading U-Boot from SPI did work. The idbloader.img needs a special
layout in SPI memory on RK3399.
This is how I created an appropriate image:
idb_size=$(stat -f %z idbloader.img)
dd if=idbloader.img of=spreaded.img bs=512 count=1
let i=1
while [ $((i * 2048)) -lt "$idb_size" ]
do
dd if=idbloader.img of=spreaded.img bs=2048 skip=$i seek=$((i*2))
count=1
let i++
done
dd if=u-boot.itb of=spreaded.img bs=512 seek=768
Now I'm wondering whether this should be integrated into installboot(8)
or sysutils/u-boot,aarch64.
Why did booting from mmc not work? idbloader.img did start up, but could
not load / find U-Boot. Is the location at 0x80000 still correct?
Christopher
--
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
CB07 DA40 B0B6 571D 35E2 0DEF 87E2 92A7 13E5 DEE1