The build environment

The first thing to note is that I have seen your build environment is important, I have found dockers even with Linux to be tricky, if you know how to share the memory between dockers and your host, great stuff, if not, use a Linux machine (virtual or real). Windows with dockers was always tricky and eventually why I moved over to having ubuntu on my personal laptop and also build PC.

My suggestion is to build directly on a machine, I’ve used Ubuntu 20.04 on an ARM processor. You will also need the following for sure:

  • Linux based machine
  • 4GB RAM
  • 300GB Hard disk space (preferably 200GB free)
  • A good internet connection
  • Good CPU access/multiple cores

You’ll also need to setup a swapfile so you have more RAM, otherwise you’ll hit an error about cc1plus at big compilations like GCC. You’ll probably already have a swapfile so start by running through the “Removing a swap file” section of this article and then go back and run from the start:

https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/

Next, let’s get yocto’s dependancies as well:

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev

Tags:

One thought on “Compiling the NI Linux RT with Yocto

  1. Thank you for every other informative website.
    The place else could I get that kind of info written in such
    an ideal approach? I’ve a project that I am simply now running
    on, and I’ve been at the look out for such info.

Leave a Reply

All fields marked with an asterisk (*) are required