mesh-orange
mesh-orange copied to clipboard
How to copy built image to SD
From Linux:
$ cat build/sun8i-h2plus-orangepi-zero.raw > /dev/$SDCARD
From Windows (?): https://riot.im/app/#/room/!yzLpKcnymfPsdJyjnB:tomesh.net/$1493519399489626cWGRX:matrix.org
Verify:
one way to check - eject it and re-insert it, see if it has a filesystem on it with "/boot" now
NOTE: We may be changing .raw to .img.
I think I was trying to be too smart with the linux command - you need root to do this, but the above command does not work with sudo.
Instead:
sudo dd if=build/sun8i-h2plus-orangepi-zero.raw of=/dev/$SDCARD
Also probably useful for documentation at this point is "how do I know what my $SDCARD is":
lsblk -d -o NAME,SIZE,LABEL
Are we switching to .img?
sure, why not
I use Win32DiskImager for Windows works well
Instructions can be pulled from Raspberry pi site https://www.raspberrypi.org/documentation/installation/installing-images/windows.md
Also Linux instructions https://www.raspberrypi.org/documentation/installation/installing-images/linux.md
And MacOS for good measure https://www.raspberrypi.org/documentation/installation/installing-images/mac.md