SD/eMMC card helper Multitool for TV boxes and alike
This assumes a Debian-derived system, adapt to your system as appropriate. First, install required packages:
sudo apt install multistrap squashfs-tools parted dosfstools ntfs-3gFetch the source code:
git clone https://github.com/paolosabatino/multitoolThen build an image for the appropriate board (root is required, as the script must have enough permissions to set up and manipulate loop devices for the target image):
sudo ./create_image.sh $boardSee sources/*.conf for supported board configurations; the resulting image can be found at dist-$board/multitool.img.