Chroot to RaspPi from x86/x86_64 computer
You need to install qemu-user-static on your x86/x86_64 computer:
sudo apt-get install qemu-user-static
Let’s assume that your rootfs is mounted to /mnt.
sudo cp /usr/bin/qemu-arm-static /mnt/usr/bin/
sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
cd /mnt
sudo mount –bind /dev dev/
sudo mount –bind /sys sys/
sudo mount –bind /proc proc/
sudo mount –bind /dev/pts dev/pts
#sudo rm /mnt/etc/ld.so.preload # not sure about this
sudo chroot .
Share
Improve this answer
Leave a Reply