Creating a snappy SD card image for the OdroidC board
=====================================================

Downloading
-----------

First download the device tarball from the URL below.

    wget http://people.canonical.com/~ogra/snappy/odroidc/device_part_odroidc.tar.xz

Building an image
-----------------

Install the latest ubuntu-device-flash from the snappy-dev beta PPA.

    sudo add-apt-repository ppa:snappy-dev/beta
    sudo apt-get update
    sudo apt-get install ubuntu-device-flash

Now use the example below to create your own img file that you can then 
write with dd to an SD card. In the example below we build a 3GB big "mysnappy.img" file.

    sudo ubuntu-device-flash core --size 3 -o mysnappy.img --channel ubuntu-core/devel-proposed --device generic_armhf --device-part device_part_odroidc.tar.xz --developer-mode --platform odroidc

Writing the image
-----------------

Write the created mysnappy.img to an SD card. 
In the example below we write to a card that sits in the SD Card Reader at /dev/sdc

    sudo dd if=mysnappy.img of=/dev/sdc bs=4k

Booting
-------

Attach your serial cable to the OdroidC board, plug the SD card into the SD slot 
and power up the board. After snappy is done doing the initial configuration 
with cloud-init you will be presented with a serial login prompt at which you can
log in with the user "ubuntu" using the password "ubuntu".


Sources
-------

The source for the kernel binary can be cloned with the following command:

    git clone -b snappy_odroidc git://kernel.ubuntu.com/ppisati/ubuntu-vivid.git

To build it the configuration snappy_odroidc_defconfig was used
