OS Creation & Flashing - Seanmatthews/rowboat1 GitHub Wiki
This page covers all things having to do with creating OSes for development and production environments, including SD card flashing, important Vagrant file additions, and Docker image creation.
- Find images for each SBC at http://odroid.com/dokuwiki/doku.php
-
ls /dev/disk*
and take note of existing drives - Insert your SD card,
ls /dev/disk*
again to find the new drive. That's your SD card. -
sudo diskutil unmountDisk /dev/disk<#>
. Do not include any specific partition identifiers. -
sudo dd if=/<path to>/<your disk image> of=/dev/disk<#> bs=1m
(this will take a while) - Eject the SD Card and remove it from the reader. Insert it into the SBC.
- Connect your SBC to a network and SSH into it:
ssh root@<ip address>
. Default password id "odroid". - On /home/odroid/Desktop, there is a script called "ODROID Utility.desktop". Part of that script runs the command
/usr/local/bin/root-utility.sh
. Run that script, thensudo reboot
. This script adjusts the filesystem so that it fills the entire SD card.
NOTA BENE: DOES NOT CURRENTLY WORK
There might exist a better way to do this, but I couldn't figure out how to unpack an IMG file in such a way that would result in a filesystem which would work as a docker image. The roundabout
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /