This only copies the files, not the partition table and, more importantly, the bootloader. Use dd(1).So I mounted the image (MacOS) and copied in the Finder and now it says it can't load the kernel. But it's a step closer. I'll try cp now...didn't work either. Same error, can't load the kernel.
dd
to rdisk5s1
and the write will work. But no bootup at all. No activity on the unit whatsoever. dd
to a single slice will work. You must write the image to the whole drive.root@rpi2:~ # gpart show
=> 63 15759297 mmcsd0 MBR (7.5G)
63 102375 1 !12 [active] (50M)
102438 986 - free - (493K)
103424 15649792 2 freebsd (7.5G)
15753216 6144 - free - (3.0M)
=> 0 15649792 mmcsd0s2 BSD (7.5G)
0 15649792 1 freebsd-ufs (7.5G)
root@rpi2:~ # ls /dev/mmcsd*
/dev/mmcsd0 /dev/mmcsd0s1 /dev/mmcsd0s2 /dev/mmcsd0s2a
There is no waydd
to a single slice will work. You must write the image to the whole drive.
All Arm images include 2 slices. MBR with uboot and UFS with the FreeBSD system.