On Sun, Dec 26, 2021 at 07:23:09AM +0100, Dennis Nuesser wrote: > Hi, > > > 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 > <https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/INSTALL.arm64> > lists the following two steps: > > > 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 > > > I cannot get a working miniroot install following those two steps. > > > 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: > > > 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!
Hi, that trust.bin stuff is only necessary for the vendor-provided outdated U-Boot. There's no need for this. The only things you need are: dd if=miniroot70.img of=/dev/sdXc dd if=/usr/local/share/u-boot/nanopi-r2s-rk3328/idbloader.img of=/dev/sdXc seek=64 dd if=/usr/local/share/u-boot/nanopi-r2s-rk3328/u-boot.itb of=/dev/sdXc seek=16384 Thanks, Patrick