Build scripts for cobox-os. VM and ARM. 2.0KB

CoBox OS


$ git clone --recursive



zsh sudo cgpt parted xz-utils curl git wget qemu-user-static build-essential rsync gcc-arm-none-eabi gcc-multilib lib32z1 u-boot-tools device-tree-compiler lzop dosfstools vboot-utils vboot-kernel-utils libftdi-dev libfdt-dev swig libpython-dev bc bison flex libssl-dev

Also with arm-sdk, once the repositories are cloned, go inside and download the additional needed GCC toolchains:

$ cd arm-sdk
$ ./


zsh sudo cgpt parted xz-utils virtualbox vagrant qemu qemu-utils


When building, the system will be built in a chroot. Its location will always be *-sdk/tmp/devuan-$arch-build.

If your build fails, you can go there to investigate any potential issues.

When done, and you want to rebuild, you should delete that directory and all of its contents. But, before removing it, make sure that you unmount the pseudo filesystems that are mounted inside (/dev, /proc, and /sys).

$ mounts=vm-sdk/tmp/devuan-amd64-build/bootstrap
$ sudo umount -R $mounts/dev $mounts/proc $mounts/sys

VM-based images

$ cd vm-sdk
$ zsh -f
$ source sdk
$ load devuan cobox
# step-by-step: lib/libdevuansdk/zlibs/helpers:build_vagrant_dist()
$ build_vagrant_dist

Arm-based images

$ cd arm-sdk
$ zsh -f
$ source sdk
$ load devuan sunxi cobox
# step-by-step: lib/libdevuansdk/zlibs/helpers:build_image_dist()
$ build_image_dist

For the Olimex LIME2 target, the device name in arm-sdk is sunxi. The u-boot bootloader will be found in dist/u-boot called A20-OLinuXino-Lime2_defconfig.bin.

Reference for images