Build scripts for cobox-os. VM and ARM.
parazyd 489c5d6ad2
Append to the extra_packages array.
1 year ago
arm-sdk @ 5ea550fe6c Add initial git modules. 1 year ago
rootfs-overlay/etc Add logic for rootfs-overlay. 1 year ago
vm-sdk @ 410f08edcc Add initial git modules. 1 year ago
.gitmodules Add initial git modules. 1 year ago
README.md Minor cleanup and additional info. 1 year ago
cobox.blend Minor cleanup and additional info. 1 year ago
cobox.config Append to the extra_packages array. 1 year ago

README.md

CoBox OS

Cloning

$ git clone --recursive https://ledger-git.dyne.org/CoBox/cobox-os

Dependencies

Arm

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
$ ./init.sh

VM

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

Usage

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

Arm

https://files.devuan.org/devuan_ascii/embedded/README.txt

VM

https://files.devuan.org/devuan_ascii/virtual/README.txt