tomeshnet / mesh-orange

A small ramdisk system running modern Debian to support mesh networking on ARM single-board computers
https://tomeshnet.github.io/mesh-orange/
GNU General Public License v2.0
39 stars 7 forks source link

How to copy built image to SD #9

Open benhylau opened 7 years ago

benhylau commented 7 years ago

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.

hamishcoleman commented 7 years ago

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

benhylau commented 7 years ago

Are we switching to .img?

hamishcoleman commented 7 years ago

sure, why not

darkdrgn2k commented 6 years ago

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