Portal:Arm/AArch64

< Portal:Arm(Redirected from Portal:ARM/AArch64)
Jump to: navigation, search

The openSUSE ARM team is working hard to get the 64-bit ARM variant (AArch64) as green as possible! Things are looking very good already.

Latest automated tests for openSUSE Tumbleweed AArch64 are available on https://openqa.opensuse.org/group_overview/3 The packages are build on https://build.opensuse.org/project/show/openSUSE:Factory:ARM


Test openSUSE images

If you want to test openSUSE Leap or openSUSE Tumbleweed, with AArch64 images, please go to openSUSE:AArch64 page.


Setup system for local build using qemu

By default qemu-linux-aarch64 is used to build packages inside of OBS. This way is much faster then inside of Foundation Model.

  • Install osc and build package from openSUSE:Tools project
  • Install qemu-linux-aarch64 from openSUSE:Tools project in case you want
 to do chroot builds. It is not needed for KVM builds, OBS will install
 the right one automatically.
  • You need to be on a x86_64 or aarch64 system. i586 systems will not work.
  • for chroot builds call
 osc build standard aarch64
  • for kvm builds call
 osc build --vm-type=kvm standard aarch64

It will setup automatically an aarch64 system and run the build.


Setup system for local build using Foundation Model (Deprecated)

  • Install osc and build package from openSUSE:Tools project
  • Extract and install the executable and libraries into /usr/lib/build/emulator/ directory
  • Patch kernel parameters in image

The emulator does not allow to hand over kernel parameters. So you need to patch the compiled in parameter string inside the binary (as root).

sed -i 's,root=/dev/vda2,root=/dev/vda ,' img-foundation.axf

  • Enable the emulator by editing /usr/lib/build/emulator/emulator.sh . The example for aarch64 emulator handling is inside. Just remove the warning and exit in the begin of the file.

Run the build

  • osc co openSUSE:Factory:ARM <PACKAGE>
  • cd <PACKAGE>
  • osc build --vm-type emulator standard aarch64 <PACKAGE>.spec

this will build the package via the emulator.