Orange Pi Zero Gadget Snap
This repository contains the source for an Ubuntu Core gadget snap
for the OrangePi Zero. Building it with snapcraft will
automatically pull, configure, patch and build the git.denx.de/u-boot.git
upstream source for orangepi_zero_defconfig at release v2017.05 and produce
a bootable gadget snap with the resulting binaries.
Gadget Snaps
Gadget snaps are a special type of snaps that contain device specific support code and data. You can read more about them in the snapd wiki https://github.com/snapcore/snapd/wiki/Gadget-snap
Building
NOTE: this gadget snap can only build under 17.10 (artful), the sunxi u-boot build has a hard requirement on gcc6!
Natively on armhf
Create an artful (17.10) chroot or container, install snapcraft and git inside it and clone this tree.
To build the gadget snap locally on a native armhf system just run snapcraft
in the toplevel of the tree.
Cross on x86 systems
Create an artful (17.10) chroot or container, install snapcraft, git and
gcc-arm-linux-gnueabihf inside it, chroot into it, clone this tree. and run snapcraft
sudo apt install gcc-arm-linux-gnueabihf git snapcraft
git clone https://github.com/ogra1/orangepi-zero-gadget.git
cd orangepi-zero-gadget
snapcraft