> On Tue, Oct 01, 2024 at 12:57:20PM +0100, Fred wrote: >> Hi arm@ >> >> I'm trying to boot the OpenBSD installer on a NanoPi R5S LTS, I have >> done: >> >> dd if=miniroot76.img of=/dev/rsd2c bs=1m >> >> but when I do: >> >> dd if=u-boot-rockchip.bin of=/dev/sd2c seek=64 >> >> the bin file overwrites the msdos partition and part of the OpenBSD >> partition as the u-boot-rockchip.bin file is 9.1 Mb in size and the >> default >> msdos partition created by the first dd is only 7.9 Mb. >> >> Am I missing something obvious or do I need build a bigger msdos >> partition >> on the sd card? > > the start offset of the msdos partition in the miniroot is 16M > there is enough space
As said above, skip a couple of megabytes and it is fine. I skip 32MB here and then use: !/bin/sh DEV=$1 dd if=idbloader.img of=/dev/$DEV seek=64 bs=512 conv=sync dd if=u-boot.itb of=/dev/$DEV seek=16384 bs=512 conv=sync I use these commands over Linux and FreeBSD though. matheus