Yocto has a fantastic feature that enables it to automatically check any software packages added to a system image against the known security vulnerabilities, as tracked by the public Common Vulnerabilities and Exposures (CVE) database. To enable the check, add the following… Read more
How to layout the structure of a Yocto Project
I like to keep the directories in my Yocto projects structured so that I can easily keep track of where things come from. One of my biggest things is keeping any layers I have created separate from any layers I… Read more
How to add a Golang recipe to Yocto
Yocto supports Golang recipes, but they are slightly different to standard ones. Simple Recipe For a basic recipe without any dependancies, it is still quite simple. SUMMARY = “This is a simple example recipe that cross-compiles a Go program.” SECTION… Read more
Yocto: Conditionally setting a variable based on the image name
With one of my current build systems, I have two different build images – a production and a development one. For the production system, I want to have the root filesystem installed on the on-board eMMC storage but for the… Read more
Decompiling the Device Tree (DTB) for Embedded Linux
One of the things I find very frustrating when working with device trees is that often the entries are split over several different files. This is great when you want to support several different boards that are only differ slightly… Read more
Licences and Security in a Yocto Build (Part 1 – Licences)
I Am Not A Lawyer Please ignore anything I say in this article! When building a system that makes use of Open Source Software, it is vital to know what your licence obligations are. Other than just the common decency… Read more
Git Commands
This is purely a space for me to keep a reference to the git commands I don’t use often enough to remember. Undo The Last Commit So, you have just commited something and realised you didn’t want to do that……. Read more
Common Variables for Yocto Recipes
When writing Yocto recipes there are some common variables that can be used, espcially in the do_install() section An example of this would be: do_install() { install -d ${D}${bindir} install -m 0644 ${S}/my_program ${D}${bindir} } These variables are defined in… Read more
How to Set Up a Yocto Build Server as a Remote Package Repository
If you are using Yocto to create your embedded linux system, it can really useful to set your server up to act as a package repository. Setting up Assuming that you have set your local.conf to have PACKAGE_CLASSES ?= “package_ipk”… Read more
Setting a GPIO pin from the Device Tree on AM335x, OSD335x and Beaglebones
It seems like a common enough thing to want to do – set a GPIO pin high or low at boot. The first thing you will need to do is find the name of the GPIO pin you want to… Read more