mesh-orange icon indicating copy to clipboard operation
mesh-orange copied to clipboard

How to copy built image to SD

Open benhylau opened this issue 8 years ago • 4 comments

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.

benhylau avatar Apr 30 '17 04:04 benhylau

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

hamishcoleman avatar Apr 30 '17 10:04 hamishcoleman

Are we switching to .img?

benhylau avatar May 01 '17 06:05 benhylau

sure, why not

hamishcoleman avatar May 01 '17 11:05 hamishcoleman

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

darkdrgn2k avatar Jun 16 '18 04:06 darkdrgn2k