This is a cache of https://www.96boards.org/blog/building-on-arm-yocto/. It is a snapshot of the page at 2024-11-22T04:01:11.416+0000.
Building on <strong>arm</strong> - OpenEmbedded Edition - 96Boards

Building on arm - OpenEmbedded Edition

Sahaj Sarup
|

Building on arm, for arm: OpenEmbedded Edition

With how fast arm processors have gotten in the past few years, compiling the Linux Kernel natively on arm is more than just bearable.

But what about an ENTIRE operating system, complete with boot-loader, init and user-space (GUI optional)?

My goal was to see what OS I can build, in a reasonable amount of time, using an arm based SBC, so i can’t just rent a 128 thread arm server…

So what are my choices (considering it has a decent build system with its own toolchain):

  1. AOSP (N): Although I am very much interested in this, but looks like its not ready yet, the prebuilt folder seems to house just the x86 compiler and cross-compiler.
  2. RedoxOS (N): An experimental OS based on ‘rust’, seems to be adding support for arm, but still at a very early stage.
  3. OpenEmbedded (Y): OE has a neat trick, it ALWAYS cross-compiles even if its building for x86 on an x86 machine, this makes it easier to build natively on arm, and that’s why its already supported.

The hardware requirements: To have the Poky distro built in a considerable amount of time.

  1. CPU: Octa-core: 2Ghz on at least 4 cores
  2. RAM:
    • GUI: > 8GB
    • CLI-only: > 4GB
  3. Storage: >30GB

So from in my collection of arm SBC’s, one matched the requirement… The Hikey970

It has an octa-core CPU that does more than 2GHz, 6GB of RAM, so I can comfortably have a CLI-only build and 64GB of UFS Storage.

A couple Caveats:

  1. Poky distro seems to have an odd issue with building on aarch64, but a simple workaround is to remove: INHERIT += "uninative" from: meta-poky/conf/distro/poky.conf

    What is uninative?

  2. Under continuous heavy load, Hikey970 gets HOT… add a small cooling fan.

The Result:

Surprisingly, the Hikey970 did pull off a core-image-minimal build successfully and only took as long as one of the quicker crock-pot recipes. Nice!

Whats next?

literally builds an army of arm SBC’s

comments powered by Disqus