konosubakonoakua / blog

https://konosubakonoakua.github.io/blog/
MIT License
0 stars 0 forks source link

[sw][linux][chroot][arm] chroot into arm target rootfs on x86_64 host os #77

Open konosubakonoakua opened 3 months ago

konosubakonoakua commented 3 months ago
sudo apt install qemu-user-static
# plugin U disk
sudo cp $(which qemu-user-static) /media/rf/rootfs/usr/bin
sudo chroot /media/rf/rootfs qemu-arm-static /bin/bash

# should enter target rootfs
qemu-arm-static /bin/ls
qemu-arm-static /bin/vi