ARM-64 Sabayon-Gentoo Chroot The Easy way

If you want to talk about your personal paperweight, you've found the right place!

Moderator: Moderators

Post Reply
User avatar
necrose
Baby Hen
Posts: 17
Joined: Mon Jul 18, 2011 20:25
Location: Dallas,TX
Contact:

ARM-64 Sabayon-Gentoo Chroot The Easy way

Post by necrose » Mon Aug 08, 2016 1:25

(! 1-4 HELL steps make or install sys-apps/proot QEMU use for arm , add in binformat arm64
, scream in raw fury breath fire like a dragon when it breaks) and try to not punch something when trying to make a docker container for arm64....

PROOT static has all that crap combined , UMEQ is a light drop in Docker friendly replacement to QEMU in many cases, though limited ? ie if you got XFCE4 built or something, may need more on the host end but whom knows.
bash ssh running and going sure thing it works.
and its a chroot to arm7 or etc if you get the others. he has statics in arm or arm64 flavors....

debian DEV guy has proot-static and UMEQ , lets just say it make tinkering with arm64 or arm7 far more easier as a user and less wanting to SCYTHE someone in a fit of rage...figuratively, verbally or ....

1) Install Sabayon on local host or virtualbox


2) get gentoo arm64 tarball and some other crap portage (also included in the shell file.)

mkdir /opt/gento*/portage

Code: Select all

 # /opt/gentoo-arm64/proot-start.sh  ,  
# ln -s proot-start.sh proot-start
# ./proot-start fires up the chroot with bash...
## mkdir /opt/gentoo-arm64 & wget < http://distfiles.gentoo.org/experimental/arm64/stage3-arm64-20160324.tar.bz2
## tar xvjpf stage3-*.tar.bz2 --xattrs mkdir /usr/portage  emerge-webrsync should populate it
http://pastebin.com/FAzQAJ5T , hears a fast stater for it , including links for emu...
emerge-webrsync from inside the proot should populate /usr/portage with it's usual crap.

2a) https://github.com/mickael-guene/umeq/r ... umeq-arm64
2b)https://raw.githubusercontent.com/micka ... oot-x86_64


3 tinker from the comfort and convince of your regular Sabayon install ,

builld layman , add sabayon repos... , build equo etc , and you can wrap packages with equo smart inflate or the like..

4 run the script and enjoy the fun

5) just for documenting purposes script has wind-bag-level comments you can give these the optional "Haircut"
I tried mounting dirs over from host ie portage etc however once the emulator loads its a fail. mtab resets etc.

https://github.com/zeldin/gentoo.overlay if your going to make a boot key for NVIDIA-video-Jetson boards @ $600 a pop it'll be a few weeks. , however the fact that stock Sabayon kernels or Gentoo simular 4.x should work
https://www.amazon.com/NVIDIA-Jetson-TX ... B017NWO6LG
and regular SATA or ESATA hardware also , if you have big bucks , Gigabyte has an arm64 server with 360 cores + nvidia.

Image

Code: Select all

# /opt/gentoo-arm64/proot-start.sh  ,  
# ln -s proot-start.sh proot-start
# ./proot-start fires up the chroot with bash...
## mkdir /opt/gentoo-arm64 & wget < http://distfiles.gentoo.org/experimental/arm64/stage3-arm64-20160324.tar.bz2
 
## tar xvjpf stage3-*.tar.bz2 --xattrs mkdir /usr/portage  emerge-webrsync should populate it.
 
## WGET https://github.com/mickael-guene/umeq
## https://github.com/mickael-guene/umeq/releases/download/1.7.4/umeq-arm64
#Umeq is an equivalent of Qemu user mode.
#It allows you to run foreign architecture binaries on your host system.
#For example you can run arm64 binaries on x86_64 linux desktop.
#https://raw.githubusercontent.com/mickael-guene/proot-static-build/master-umeq/static/proot-x86_64
 
### pre-mount dirs. if possible , proot executes rather fast so it may be wiser to nfs/ssh-fusefs  
# import latter on or etc to save disk-space.  the mount -t lags ?
mount -t /var/lib/layman /opt/gentoo-arm64/var/lib/layman
mount -t /usr/portage /opt/gentoo-arm64/usr/portage
mount -t /opt/gentoo-arm64/packages /opt/gentoo-arm64/usr/portage/packages ## Packagedir layness..  
 
 
## do chroot and load static emulation binformat etc..
## for ease of use
proot -R /opt/gentoo-arm64/ -q ./umeq-arm64 bash
 
#
#type in "uname -m" or unmae -a
# 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
# windows 10 virtualbox sabayon xfce stock , with a gentoo arm64 chroot for testing.

Post Reply