I'm trying to install OpenBSD on a NanoPi R2S, but I'm having difficulties to define the correct block sizes for the
dd to command to write the .img file into the correct spot.
The OpenBSD manual at
https://ftp.openbsd.org/pub/OpenBSD/.../INSTALL.arm64 lists the following two steps:
Code:
For systems based on Rockchip RK33xx SoCs:
dd if=/usr/local/share/u-boot/board/idbloader.img \
of=/dev/sdXc seek=64
dd if=/usr/local/share/u-boot/board/u-boot.itb \
of=/dev/sdXc seek=16384
Someone uploaded this little asciinema of a fresh OpenBSD install on the same board
https://asciinema.org/a/381973
The ascii shows a third command of copying some other .bin file
Code:
sudo dd if=usr/lib/linux-u-boot-current-nanopi-r2s_20.11.3_arm64/trust.bin of=/dev/sdc seek=24576 conv=notrunc
Since releases differ in size, I need to know how to calculate this offset for the current trust.bin given the miniroot70.img
Help is greatly appreciated