Skip to content

Instantly share code, notes, and snippets.

@dominicusin
Last active July 18, 2017 23:48
Show Gist options
  • Select an option

  • Save dominicusin/d59605f1ce52819d80bd90b6d6c601a8 to your computer and use it in GitHub Desktop.

Select an option

Save dominicusin/d59605f1ce52819d80bd90b6d6c601a8 to your computer and use it in GitHub Desktop.
mips chroot
mount -R /proc /chroot/mips/proc;mount -R /sys /chroot/mips/sys;mount -R /dev /chroot/mips/dev
mount -t overlay -o rw,noatime,lowerdir=/chroot/mips/,upperdir=/chroot/mips/overlay/upper,workdir=/chroot/mips/overlay/work /chroot/mips/overlay/ /chroot/mips/
env -i /sbin/chroot /chroot/mips /bin/ash
umount -l `mount |grep mips|cut -d' ' -f3`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment