Advertisement
Necrose99

Arm64-on-amd-chroot

Aug 7th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.48 KB | None | 0 0
  1. # /opt/gentoo-arm64/proot-start.sh  ,  
  2. # ln -s proot-start.sh proot-start
  3. # ./proot-start fires up the chroot with bash...
  4. ## mkdir /opt/gentoo-arm64 & wget < http://distfiles.gentoo.org/experimental/arm64/stage3-arm64-20160324.tar.bz2
  5.  
  6. ## tar xvjpf stage3-*.tar.bz2 --xattrs mkdir /usr/portage  emerge-webrsync should populate it.
  7.  
  8. ## WGET https://github.com/mickael-guene/umeq
  9. ## https://github.com/mickael-guene/umeq/releases/download/1.7.4/umeq-arm64
  10. #Umeq is an equivalent of Qemu user mode.
  11. #It allows you to run foreign architecture binaries on your host system.
  12. #For example you can run arm64 binaries on x86_64 linux desktop.
  13. #https://raw.githubusercontent.com/mickael-guene/proot-static-build/master-umeq/static/proot-x86_64
  14.  
  15. ### pre-mount dirs. if possible , proot executes rather fast so it may be wiser to nfs/ssh-fusefs  
  16. # import latter on or etc to save disk-space.  the mount -t lags ?
  17. mount -t /var/lib/layman /opt/gentoo-arm64/var/lib/layman
  18. mount -t /usr/portage /opt/gentoo-arm64/usr/portage
  19. mount -t /opt/gentoo-arm64/packages /opt/gentoo-arm64/usr/portage/packages ## Packagedir layness..  
  20.  
  21.  
  22. ## do chroot and load static emulation binformat etc..
  23. ## for ease of use
  24. proot -R /opt/gentoo-arm64/ -q ./umeq-arm64 bash
  25.  
  26. #
  27. #type in "uname -m" or unmae -a
  28. # uname -a yeilds : Linux Sabayon-Proot-arm64-dev 4.3.0-sabayon #1 SMP Wed Dec 16 22:02:39 UTC 2015 aarch64 GNU/Linux
  29. # windows 10 virtualbox sabayon xfce stock , with a gentoo arm64 chroot for testing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement