Environment Setup
|
Note
|
it’s highly recommended to build from Ubuntu 16.04 or later. |
% sudo apt update
% sudo apt-get install -y build-essential u-boot-tools lzop debootstrap gcc-4.8-arm-linux-gnueabihf device-tree-compiler
% sudo apt-get install -y ubuntu-snappy snapcraft
% sudo apt-get install -y snap
% sudo snap install ubuntu-image --devmode --edgeYou can check that the snap is working on your host machine by listing the available packages:
% snap list
Name Version Rev Developer Notes
core 16-2 1337 canonical -
ubuntu-image 0.15+snap3 48 canonical devmodeDownload the BSP source:
% https://github.com/nutsboard/ubuntu-core.git
% cd ubuntu-coreFor full build:
% makeFor a u-boot build:
% make u-bootFor a kernelsnap build:
% make kernelsnapFor a gadget build:
% make gadgetFor a snappy build:
% make snappyTo clean build area
% make cleanTo generate a SD card image:
% sudo dd if=nutsboard.img/nutsboard.img of=/dev/sdx bs=1M <sdx is depend on your SD card device node, ex: sde>About first boot configuration, please refer NutsBoard Blog.