https://en.altlinux.org/index.php?title=Ports/aarch64&feed=atom&action=historyPorts/aarch64 - Revision history2024-03-29T04:49:50ZRevision history for this page on the wikiMediaWiki 1.38.2https://en.altlinux.org/index.php?title=Ports/aarch64&diff=1012&oldid=prevMichaelShigorin: init off :ru:Ports/aarch642016-01-26T18:56:30Z<p>init off <a href="http://www.altlinux.org/Ports/aarch64" class="extiw" title="ru:Ports/aarch64">ru:Ports/aarch64</a></p>
<p><b>New page</b></p><div>= AArch64 (ARMv8) Sisyphus port =<br />
== Status ==<br />
<br />
Initial port as of 2015/2016; available [http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/aarch64/ through FTP], can be used with {{pkg|apt}} by means of this line in {{path|/etc/apt/sources.list}}:<br />
<br />
rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus aarch64 classic<br />
<br />
= Testing =<br />
<br />
The further assumes ALT Linux Sisyphus being used as a '''host''' system (a recent {{pkg|qemu}} with {{cmd|qemu-system-aarch64}} is required, one can use a [[regular|LiveCD]]); other possibilities might require some tweaks to the procedure.<br />
<br />
== Preparations ==<br />
<br />
Install {{pkg|qemu-system}} >= 2.0.0-alt1:<br />
<br />
$ apt-get update && apt-get install qemu-system<br />
<br />
Download the archive and unpack it to a convenient location having 4Gb of free space or more:<br />
<br />
$ wget -c http://beta.altlinux.org/aarch64/sisyphus-aarch64-20151215.tar.xz<br />
$ tar -C ~ -xf sisyphus-aarch64-20151215.tar.xz<br />
<br />
From now on the path to that location is supposed to be {{path|~/virt64}} which should be inscribed into the wrapper script:<br />
<br />
$ sed -i "s,/srv/tftpboot/virt64,~/virt64," ~/virt64/qbox0<br />
<br />
=== network ===<br />
<br />
Bring up a bridge interface using a spare ethernet (the archive means <tt>eth1</tt>, fix up as needed within {{path|options}} file):<br />
<br />
# cp -a /home/''USER''/virt64/etc.net.ifaces.qbox0 /etc/net/ifaces/qbox0<br />
# ifup qbox0<br />
# chown ''USER'' /dev/tap$(< /sys/class/net/qbox0/ifindex)<br />
<br />
== Starting up ==<br />
<br />
Time to run the emulator:<br />
<br />
$ ~/virt64/qbox0<br />
<br />
This prompt should occur upon successful boot:<br />
<br />
Welcome to ALT Linux 1.9.3 Server Light beta (confutuere et ratio) / ttyAMA0<br />
virt64 login: <br />
<br />
Log in as root (no password), add your public ssh key to {{path|/root/.ssh/authorized_keys}} if you like to, have a stroll around. {{pkg|apt}} should work if the network is up.<br />
<br />
== Next ==<br />
<br />
One can run the installed {{pkg|samba-DC}} server or install e.g. Xfce:<br />
<br />
# apt-get update; apt-get install xfce4-minimal fonts-ttf-dejavu glibc-locales<br />
<br />
to add an unprivileged user and run the desktop correspondingly:<br />
# useradd user<br />
$ ip addr show dev eth0 | grep inet<br />
<br />
and connect from within X session on an external host:<br />
$ ssh -Y user@''IP_AARCH64'' xfce4-about<br />
<br />
One might need to add a route via the interface that differs from the one specified as the base for macvtap (<tt>HOST</tt> within {{path|/etc/net/ifaces/qbox0/options}}) and used to access the same network (e.g. <tt>wlan0</tt> on one's laptop) when connecting from the same host that runs qemu with aarch64 environment:<br />
# ip ro ad ''IP_AARCH64'' dev ''OTHER_IFACE''<br />
<br />
[[Category:Sisyphus]]<br />
[[Category:AArch64]]<br />
[[Category:ARM]]</div>MichaelShigorin