Date: Fri, 16 Feb 2018 14:22:07 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: tech-lists <tech-lists@zyxst.net> Cc: freebsd-virtualization@freebsd.org, freebsd-stable@freebsd.org Subject: Re: is it possible to chroot into arm64 from amd64? Message-ID: <CAJuc1zNVBCFZc8kM77%2BL0Law-4wLYwhxW0jDrjwJ3-LxG3y5nA@mail.gmail.com> In-Reply-To: <30cfa8a3-76e4-73ac-3b2a-2d64ed24aef8@zyxst.net> References: <30cfa8a3-76e4-73ac-3b2a-2d64ed24aef8@zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16 February 2018 at 14:00, tech-lists <tech-lists@zyxst.net> wrote: > Hi, > > Is it possible to have on an amd64 system, a chrooted or jailed arm64 > environment? It's possible to cross-compile an arm6 environment on > amd64 and then chroot into the arm6 environment - is the same possible > for arm64? I can cross-compile arm64 like this: > > # SYSROOT=/crossbuild/arm64 > # cd /usr/src > # make -j32 TARGET=arm64 TARGET_ARCH=aarch64 buildworld > # make DESTDIR=$SYSROOT TARGET=arm64 TARGET_ARCH=aarch64 installworld > > # make DESTDIR=$SYSROOT TARGET=arm TARGET_ARCH=armv6 distribution > # cp /usr/local/bin/qemu-aarch64-static $SYSROOT/sbin > > # /usr/sbin/binmiscctl add arm64 --interpreter > "/usr/local/bin/qemu-aarch64" \ [...] You've copied qemu-aarch64-static to $SYSROOT/sbin. binmiscctl(8) should use /sbin/qemu-aarch64-static as its arm64 interpreter in the arm64-chroot. Cheers. -- Jonathan Chen <jonc@chen.org.nz>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJuc1zNVBCFZc8kM77%2BL0Law-4wLYwhxW0jDrjwJ3-LxG3y5nA>