Integrate GNU/Linux systems for single-board computers.
Albert Casals - 2015, 2016
xsysroot is a tool that tries to minimize the steps needed to prepare and install operating systems on embedded boards, making it easier to transport the OS to storage devices.
$ sudo curl -L https://raw.githubusercontent.com/skarbat/xsysroot/master/xsysroot > /usr/bin/xsysroot $ sudo chmod +x /usr/bin/xsysroot
$ xsysroot --geometry "raspbian.img fat32:40 ext4:800"
Create a profile in JSON in xsysroot.conf defining nbdev, sysroot, backing_image, and qcow_image.
$ xsysroot --profile raspbian --renew
$ sudo debootstrap --no-check-gpg --verbose --foreign --variant=minbase --arch=armhf jessie $(xsysroot --query sysroot) http://mirror.us.leaseweb.net/raspbian/raspbian/
$ xsysroot --chroot $ apt-get install curl binutils -y $ /usr/bin/rpi-update
$ xsysroot --umount $ qemu-img convert $(xsysroot --query qcow_image) raspbian-bootable.img $ sudo dd if=raspbian-bootable.img of=/dev/sda bs=4M
xsysroot can create Debian package skeletons and build packages natively for ARM targets.
import xsysroot print xsysroot.__version__