|
2 years ago | |
---|---|---|
arm-sdk @ 5ea550fe6c | 2 years ago | |
rootfs-overlay/etc | 2 years ago | |
vm-sdk @ 410f08edcc | 2 years ago | |
.gitmodules | 2 years ago | |
README.md | 2 years ago | |
cobox.blend | 2 years ago | |
cobox.config | 2 years ago |
$ git clone --recursive https://ledger-git.dyne.org/CoBox/cobox-os
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
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
$ cd vm-sdk
$ zsh -f
$ source sdk
$ load devuan cobox
# step-by-step: lib/libdevuansdk/zlibs/helpers:build_vagrant_dist()
$ build_vagrant_dist
$ 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
.
https://files.devuan.org/devuan_ascii/embedded/README.txt