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-3g
Fetch the source code:
git clone https://github.com/paolosabatino/multitool
Then 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 $board
See sources/*.conf
for supported board configurations; the resulting image can be found at dist-$board/multitool.img
.