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.

Flashing the SD Card

  1. Find images for each SBC at http://odroid.com/dokuwiki/doku.php
  2. ls /dev/disk* and take note of existing drives
  3. Insert your SD card, ls /dev/disk* again to find the new drive. That's your SD card.
  4. sudo diskutil unmountDisk /dev/disk<#>. Do not include any specific partition identifiers.
  5. sudo dd if=/<path to>/<your disk image> of=/dev/disk<#> bs=1m (this will take a while)
  6. Eject the SD Card and remove it from the reader. Insert it into the SBC.
  7. Connect your SBC to a network and SSH into it: ssh root@<ip address>. Default password id "odroid".
  8. 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, then sudo reboot. This script adjusts the filesystem so that it fills the entire SD card.

Vagrantfile for Development

Docker Image Creation

Base Image

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

  1. tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /

Derivative Image

References

⚠️ **GitHub.com Fallback** ⚠️