ODRDOID Snappy builder
To build all parts, a couple of dependencies are required. On Ubuntu you can install all build dependencies with the following command.
sudo apt-get install build-essential u-boot-tools lzop debootstrap debootstrap gcc-arm-linux-gnueabihf
Makefile is provided to build U-Boot, Kernel and Initrd from source. The
sources will be cloned into local folders if not there already.
The U-Boot provided by Hardkernel is lacking features to support Ubuntu Snappy and is based on a very old U-Boot version. For now, i have backported the missing required features in my own U-Boot tree.
Similar to U-Boot, the Kernel provided by Hardkernel is lacking latest AppArmor support. I have a ODROIDC Kernel tree with the changes for ODROIDC from Hardkernel merged together with AppArmor upstream.
To build it all, just run
make. This will produce a oem snap
device-odroidc.tar.gz device part, which can be used to build your own
Ubuntu Snappy image for ODROID C1.
Build OEM snap
You can build the OEM snap seperately too. The OEM snap contains the U-Boot,
so make sure you have build the U-Boot first with
The OEM snap, contains also a boot.ini which overwrites certain variables to make Snappy work with the U-Boot v2011.03. This is quite hacky but for now seems to be the only possible option. In addition, the OEM snap contains the binary proprietary boot loader code which bootstraps the SOC. On build, this boot code is split up as required by the hardware platform.
Build device part
Of course the device part can be built seperately as well. The device part
contains the Linux kernel and modules, so make sure to have built the Linux
Kernel first with
The device part contains the Linux Kernel in the U-Boot compatible format, the compiled device tree, the Kernel modules and the initial ram disk. As there does not seem to be any reasonable way to build the initrd, it is extracted from the preinstalled Ubuntu Snappy Core tar and repacked without Kernel and modules.
Build ODROID-C development image
Make sure you have build the OEM snap and the device part first. You will also
need to have the snappy-tools
installed. Then you can simply create the image with
sudo ubuntu-device-flash core \ --channel stable \ --oem odroidc_0.5_all.snap \ --device-part device-odroidc_0.5.tar.xz \ --developer-mode \ -o odroidc-15.04-stable-dev.img \ 15.04
Build ODROID-C image for production
To build an Ubuntu Snappy image without developer mode, the OEM snap needs to
come from the store. The ODROID-C oem snap is available in the store as
odroidc.longsleep. You still need to build a device tarball.
sudo ubuntu-device-flash core \ --channel stable \ --oem odroidc.longsleep \ --device-part device-odroidc_0.5.tar.xz \ -o odroidc-15.04-stable.img \ 15.04
Flash to SD card
Flash this to SD or eMMC and your ODROID will boot into Snappy. DHCP will be
used for ethernet networking. Default user is
ubuntu with password
-- Simon Eisenmann email@example.com