Command line script to flash SD card images of any kind.
Note that for some devices (e.g. Raspberry Pi), at the end of the flashing process the tool tries to customize the SD card e.g. it configures a hostname. If this customization is not supported, just ignore the error thrown at this point.
The typical workflow looks like this:
- Run
flash http://downloads.hypriot.com/hypriot-rpi-20151115-132854.img.zip
- Insert SD card to your notebook
- Press RETURN
- Eject SD card and insert it to your Raspberry Pi - done!
This script can
- download a compressed SD card from the internet or from S3
- use a local SD card image, either compressed or uncompressed
- wait until a SD card is plugged in
- search for a SD card plugged into your Computer
- show progress bar while flashing (if
pv
is installed) - copy an optional
device-init.yaml
oroccidentalis.txt
file into the boot partition of the SD - copy an optional
config.txt
file into the boot partition of the SD image - optional set the hostname of this SD image
- optional set the WiFi settings as well
- play a little sound after flashing
- unplugs the SD card
At the moment only Mac OS X and Linux is supported.
Download the appropriate version for Linux or Mac with this command
curl -O https://raw.githubusercontent.com/hypriot/flash/master/$(uname -s)/flash
chmod +x flash
sudo mv flash /usr/local/bin/flash