To use, execute chmod +x chroot-arm.sh
to make the shell script executable, then execute sudo ./chroot-arm.sh /path/to/dir
to chroot into the directory. Exit the chroot shell for the script to clean up.
Requires qemu-arm-static
, which can be installed on Ubuntu with sudo apt install qemu-user-static
.