ELBE is a simpler alternative to Yocto/OpenEmbedded and Buildroot

To support embedded design, there are several options when it comes to choosing an operating system (OS). Some of the traditional approaches to building custom Linux systems is to use built systems such as Yocto/OpenEmbedded or Buildroot. The options available for system integration include building everything manually, binary distributions (Debian, Ubuntu, Fedora, etc.), and build systems (Buildroot, Yocto, PTXdist, etc.). The major drawback of build systems is that they are not as easy as a binary distribution and also the build time is more.

Why was ELBE born?

In the early days, the embedded devices had 4MiB flash and 16MiB of RAM. With these specifications, people started to hack a root file system for their devices. But in some cases, they had to start with building a cross-toolchain first. For this, tools like OpenEmbedded, Buildroot are good as long as they are well maintained. For this, a lot of libraries are used for the development of a system. Now, depending on the build environment that is used, it is difficult to add a package. Reproducibility, maintenance, and cross-compilation have always been challenging for low-level development. In such a case, Debian could be reused in a way that would fulfill our needs. Here comes the ELBE (Embedded Linux Build Environment) which is a Debian based system to generate root-filesystems for embedded devices.

ELBE alternative to Yocto/OpenEmbedded

ELBE alternative to Yocto/OpenEmbedded because

So, the main advantage in this is to build your own package from the source which was more or less difficult in traditional approaches, and not feasible with Debos a similar solution to build custom Debian images. You can also manage your license and it supports several architectures. The open-source community has contributed to Ubuntu’s support for ELBE. Recently, ELBE was used to build Ubuntu systems for an ARM32 i.MX6 platform and an ARM64 Rockchip RK3399 platform.

ELBE process

ELBE process

When you run ELBE, it will create a VM for building root-filesystems, this VM is called “initvm”. In the process of building the root-filesystems, it should be supplied with an XML file. The ELBE XML file can contain an archive, which can contain configuration files, and additional software. It uses pre-built software in the form of Debian packages (.deb). It is possible to use custom repositories to get special packages into the root-filesystem which is generally difficult in other build systems. Through Debian’s tools like APT (advanced package tool), the resulting root file systems (customized Debian installations) are maintained. This is the biggest difference between ELBE and other build systems like the Yocto Project and Buildroot.

Besides all this, ELBE can also create software development kits to build the root filesystem. This SDK is very similar to Yocto’s Standard-SDK.

How to get started?

How to get started with ELBE

Steps 1,2,3 only need to be performed once.

  1. Install Debian 10 (Buster) on your host computer or virtual machine
  2. install ELBE and dependencies with apt on you Debian host
  3. Generate the initvm running the build environment:

  4. Then build a root-filesystem inside the initvm, for example for Beaglebone Black:

    The complete guide for creating initvm, and submitting an XML file can be found here. In the end, it’s up to the software developer to judge whether ELBE is a viable alternative to Yocto/OpenEmbedded or Buildroot for his/her own project(s) depending on the level of flexibility needed and resources on the target system(s).

Source: All the images were taken from Bootlin’s Embedded Linux and Kernel Engineer, Köry Maincent’s presentation slides from the Open Source Summit 2020 and Wiki.

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX Rockchip RK3588 mini-ITX motherboard

11 Replies to “ELBE is a simpler alternative to Yocto/OpenEmbedded and Buildroot”

  1. When I wrote the first embedded Linux book in 2001, 2M flash was all that was available. It was tight, but you could get a custom-compiled kernel, busybox with a little empty space for an app or 2. Thanks for this article, all the continued work to easy build a root filesystem is welcomed.

  2. Software history is a long repeating cycle… In 2001, the distro we created with a friend, Formilux (which we still use for our ALOHA load balancers) had as a primary goal to support both building packages and importing packages from other distros (back then source-based distros were non-existing and it was fairly common to copy executables and libs between machines). We quickly figured that relying on binaries provided by mainstream distros was not practical for embedded systems, because they’re built with all options turned on and come with a myriad of dependencies, resulting in hundreds of MB of unused stuff in the rootfs. Moreover, by doing so, you end up requiring frequent updates because all the unused stuff that you’re forced to package is also the one most commonly affected by security issues. In the end, we found that it’s much less work to build your own packages from sources with only the options you need. It requires more initial investment but less long-term work. And when you sell embedded products, the initial investment is an issue only if the product fails. If it succeeds, it’s the long-term work that dominates the costs.

  3. you should have mentioned the docker quick start also

  4. Being someone who grew up with ZX81 and 48k Spectrum, your 2M flash discussion, just reminds me how amazing the machine code programs were on those devices.

    1. >reminds me how amazing the machine code programs were on those devices.

      I wish ever person that parroted this nonsense would try to actually those machines as their daily driver.

  5. Embedded in 2020 requires 1GB of RAM.

    Debian is a no-go for “embedded”, its package manager alone sucks so much RAM.

    Alpine I would understand, but Debian, come on…

    1. this sounds like the old embian(?) project, embedded-debian that is, we’re still talking about hundreds of MBs rootfs, this is in some way similar to ubuntu-core as well, it might be a good fit for edge servers that has 1GB+ RAM, but many devices are still running with much small storage these days.

    2. >Debian is a no-go for “embedded”, its package manager alone sucks so much RAM.

      The problem here is you are just thinking about RAM etc. What is the cost of packaging all the bits you need, making sure the licenses are compatible with what you’re doing, tracking CVEs etc..

    3. > Debian is a no-go for “embedded”, its package manager alone sucks so much RAM.

      Interesting. This is an SBC we use to monitor the physical environment in a server room with 1GB RAM:

      https://web.arts-others.de/NanoPi_M1_400_days.png

      It’s running with ‘bloated’ Ubuntu instead of Debian. Would obviously also work with just 256MB or even 128MB RAM. BTW: we have a couple of x86_64 server VMs with 512MB or 768MB RAM assigned.

Leave a Reply

Your email address will not be published. Required fields are marked *

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...
Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...