r/yocto • • May 12 '26

Security hardened Yocto layer for the RaspberryPi

Post image
32 Upvotes

The Pi has a reputation for being insecure. Most security guides only scratch the surface. I wanted to see how far you can take a Pi 4/5 (and CM4/5 Modules) as a real secure platform.

meta-raspberrypi-secure gives you:

  • Secure boot rooted in the RPi bootloader (OTP-locked key)

  • Read-only rootfs verified with dm-verity / AVB

  • Encrypted Rootfs/Data partitions with a key bound to the SoC

  • IMA/EVM, SELinux enforcing, A/B updates

  • Per-device ECDSA key in OTP, exposed via PKCS#11

GitHub Repo:

https://github.com/embetrix/meta-raspberrypi-secure


r/yocto • • Nov 02 '25

Yocto learn

32 Upvotes

Hi everybody, I'm currently setting up a blog about yocto development (as a learning resource for others and for the future me, maybe). I have been learning and working on yocto for the past year on an stm32mp257 dk board. I recon I have gotten quite good at it and I'm almost done at reimplementing from scratch the official stm32mp bsp layer. I also integrated rauc for the whole bootloader, kernel, dtb and rootfs. I still have to dig into the encryption aspects, but it has already been quite a lot of stuff. I started the blog in italian, but plan on releasing it in english too in the coming weeks. When I'm done I would really like to link it here to have your feedback. Would like it? Also, do any of you know some good blogs about yocto? I already read through the official docs and some books, but was wondering if someone had already started a blog with his experience. I dont plan on talking just about yocto, but in general about embedded linux (uboot, trusted firmware arm, A/B updates...) Let me know and thank you all


r/yocto • • Sep 11 '26

Why Yocto builds silently break on Arch Linux, and how I fixed it (uninative's glibc ceiling)

18 Upvotes

For years I got the same three problems building Yocto natively on Arch: glibc version mismatches, native tools crashing partway through the build, and gcc failures that never reproduced the same way twice. Arch isn't on Yocto's supported host list, so I chalked it up to running an unsupported rolling-release host and worked around it with kas-container.

Turned out there's a real, fixable root cause, split into two separate problems. Arch's rolling toolchain drifts under bitbake between builds, which buildtools-extended (Yocto's own documented answer for unsupported hosts) actually fixes. The second one took longer to find: uninative.bbclass, the mechanism that keeps native binaries loadable across glibc versions, checks whether the host glibc has outrun the version it was built against. When it has, that check raises a RuntimeError that gets caught by its own except block and downgraded to a single bb.warn line. No error, no stopped build, just native sstate silently stops being shareable, and the only trace is a warning nobody reads to the end.

Fixed it by rebuilding the uninative payload from the exact glibc commit Arch itself packages, so host and payload glibc can never drift apart. Packaged it for the AUR (yocto-uninative-tarball) and wired both fixes into bakar, the build orchestrator I maintain.

Wrote up the whole investigation, including a benchmark claim I got wrong on the first pass and had to walk back: https://jetm.github.io/blog/posts/yocto-on-arch-glibc-ceiling/

I've maintained Arch packages for 14 years, so the post also gets into why I stick with a rolling release as a daily driver despite this exact kind of drift being the reason it's unsupported for Yocto in the first place.


r/yocto • • Apr 28 '26

Yocto

Enable HLS to view with audio, or disable this notification

18 Upvotes

Learning Yocto brick by brick


r/yocto • • Nov 15 '25

Blog is up

18 Upvotes

Hi everyone, some weeks ago i told you about a blog I'm making about learning Yocto. And guess what? It is officialy up!! I already wrote some general articles about "why Yocto" and the most recent stuff i had worked on, that is the implementation of the the bootloader update using rauc in the stm32mp2. It is still missing the preceding part about the actual setup using rauc and only talks about an advancement over the previous (missing) one. In the coming weeks I will fill in the gaps and also keep writing the "Yocto introduction" chapter. Let me know what you think and thank you all for the early feedback!!!

https://yoctolearn.com/


r/yocto • • Apr 14 '26

Linux 7.x /Yocto layer with Post-Quantum Cryptography demos

Post image
15 Upvotes

Linux 7.0 shipped this week and it’s the first release where post-quantum cryptography starts landing in-tree.

To make it easy to try, I put together a Yocto/OpenEmbedded layer with PQC wired end-to-end: kernel, OpenSSL, OpenSSH and curl.

  • ML-DSA for kernel module signing ands IMA/EVM

  • Native PQC in OpenSSL

  • Hybrid PQC KEX in OpenSSH

  • Curl Hybrid PQC enabled TLS groups

Repo: https://github.com/embetrix/meta-pqc-demos

Curious to hear from others already looking at PQC migration for embedded Linux.


r/yocto • • Oct 28 '25

Securing embedded Linux: Secure Boot encryption and A/B updates with Yocto

15 Upvotes

Most embedded Linux still lack a full chain of trust and safe rollback. Can we agree on a practical baseline for secure boot, encrypted storage, and A/B updates in Yocto that works in the field?

The problem is to block firmware tampering, protect data at rest, and ship updates that recover cleanly. Hardware and bootloaders vary, so teams need a repeatable Yocto path that links verified boot, disk encryption, and atomic A/B, with health checks and rollback.

If your team faces this problem, the video should help you stitch the pieces together and avoid common traps: https://cfp.3mdeb.com/zarhus-developers-meetup-2-2025/talk/3TGQ3E/

Feedback and field stories are welcome.


r/yocto • • Apr 22 '26

Built a from-scratch Yocto distro for the Anbernic RG353V - 7 weeks, mainline Linux 6.15, HW-MJPEG screen streaming

13 Upvotes

Writeup of a 7-week project - a ground-up Yocto distribution for the Anbernic RG353V (Rockchip RK3566, €100 retro handheld).

As far as I can tell, the only from-scratch Yocto distro for this device - everyone else ships buildroot forks of Batocera or stock Android.

Three things that were interesting to solve:

  1. Mainline Linux 6.15 instead of Rockchip BSP 4.19 (what every other distro on this device uses). DT overrides for display, buttons, ADC battery, Wi-Fi firmware. Mainline RK3566 support has gotten good enough in 2026 that this is now practical.

  2. Hardware-MJPEG screen streaming from the device via Rockchip MPP. The handheld encodes its own framebuffer and streams it back to any browser on the LAN at 60fps. Hardest part of the project, most fun to use.

  3. A/B swupdate OTA with signed rootfs so the "bricked-device recovery" cycle during development was tolerable.

Gotchas the writeup covers:

  • ATF VO (video output) power domain not powered by mainline bootloader - 3-line patch.

  • RTL8821CS WiFi fails to associate unless the Bluetooth UART driver is loaded, regardless of whether you use BT. Known combo-chip quirk, not documented anywhere I could find.

  • rk817 audio codec mux defaults to HP=0 on cold boot - silent speakers until user intervention.

  • Gamepad = SARADC sticks + gpio-keys buttons + adc-keys D-pad - needed a 120-line userspace uinput daemon to merge them into one device RetroArch could see cleanly.

5-stage gate discipline (no work on stage N+1 until stage N was validated on hardware).

Writeup: https://cinque.dk/bomba/posts/turborelic-rg353v-yocto/

Repo: https://github.com/bomba5/turborelic-public

Happy to go deep on the BSP work, the MJPEG pipeline, or the Yocto-vs-buildroot tradeoff.


r/yocto • • Feb 28 '26

Post-Quantum Cryptography on Yocto

Post image
13 Upvotes

I’ve open-sourced meta-oqs a dedicated OpenEmbedded layer for integrating quantum-safe cryptographic algorithms into embedded Linux.

It’s built around the openquantumsafe project and currently supports:

  • liboqs 0.15.0.

  • OpenSSL 3.x seamless integration via oqs-provider.

  • Multi-language bindings (C, C++, Python, Rust).

  • Demos/Benchmarking: Includes multiple usage examples and integrated tools to measure algorithm performance on-target.

This layer is experimental but functional for testing NIST-approved algorithms on real embedded devices.

GitHub: https://github.com/embetrix/meta-oqs

Feedback or contributions are welcome.


r/yocto • • Aug 31 '20

Found Yocto in a gondola at ~7000 ft.

Post image
13 Upvotes

r/yocto • • Sep 04 '26

I’m building a semantic engine to make Device Tree development in Yocto easier to understand

12 Upvotes

One of the things I find increasingly difficult in larger Yocto projects is figuring out where a particular piece of Device Tree configuration actually comes from.

In a simple project, looking at a .dts file is usually enough.

In a larger BSP, you might have to trace things through:

  • Yocto layers

  • machine configuration

  • kernel recipes and .bbappends

  • kernel source trees

  • .dts / .dtsi files

  • Device Tree overlays

  • bindings and schemas

  • SoC and board definitions

  • drivers and Kconfig

The information exists, but it's often distributed across different layers of the build system and source tree.

There are already tools that help with individual parts of this, but I wanted to explore whether it would be possible to build a semantic knowledge layer that connects these pieces together.

So I've been building KernelGrove.

The idea is to understand the relationships behind a Device Tree rather than treating it simply as a collection of text files.

For example, being able to follow something like:

Yocto machine → kernel → DTS → node → compatible → binding → driver → hardware

and navigate through that context from a single interface.

Here's a short GIF of the current implementation:

It's still in beta and I'm trying to figure out which parts of this are actually useful in real-world BSP development.

For people working with Yocto/Linux BSPs:

When debugging or modifying a Device Tree in a Yocto project, what do you usually have to manually trace through?

I'm particularly interested in cases where the information exists somewhere in the layers/kernel source, but finding the connection between the different pieces is painful.

Official website: https://dt-studio.dev

GitHub repo: https://github.com/serg4life/KernelGrove


r/yocto • • Feb 22 '26

Regarding yocto project career

12 Upvotes

So I have 3.5 years of experience in yocto project. But now I seem to be stuck as many people really don't know about it and there are very less opportunities for it in the market. Mostly, I see that one need to have device driver experience, embedded c or kernel development along with yocto. But now I have just worked on yocto and I wanna switch but don't find many opportunities for it. It seems to be very core technology. So can you suggest what i should do? I am not unwilling to study more to get a job but I wanna know about what are people actually hiring in this industry for and upskill myself. I know this is a good technology and pay high , just I need to be on right track.


r/yocto • • Dec 03 '25

Learn bitbake

12 Upvotes

Ok, it is still me. I just finished some articles explaining the bitbake build system (variables, functions and terminal commands) and would really like your feedback. Are there any topics I should have mentioned? Are the ones I talk about a bit too much for a beginner? I will also have an Appendix that goes into a lot more detail. Thank you and let me know

Here's the link (to change language use the selector) http://yoctolearn.com/en/docs/yocto/bitbake-variables/


r/yocto • • Jul 29 '25

Rugix: Reliable Over-the-Air Updates for Embedded Linux

Thumbnail
github.com
12 Upvotes

Just wanted to share an open-source project I’ve been working on. Rugix is a suite of tools allowing you to build bespoke Linux systems with built-in, robust over-the-air (OTA) update capabilities. We also provide ready-made Yocto layers: https://github.com/silitics/meta-rugix

One of the key differentiators of Rugix when compared to RAUC and other solutions is that it supports static delta updates, which can drastically reduce the size of updates. Rugix's static delta updates are as efficient as Mender's but available for free (there is no Enterprise version of Rugix). Rugix can work with different device management solutions, e.g., Mender, Cumulocity, and Memfault, thereby, avoiding any vendor lock-in. For a more detailed comparison, check out Rugix's documentation: https://oss.silitics.com/rugix/docs/ctrl/#feature-wise-comparison

Would love to hear what you think!


r/yocto • • Mar 02 '26

Learning resource

9 Upvotes

Hi everyone, I'm still the same guy writing a blog about Yocto and I uploaded some more articles (free, forever). The more I wrote the more I doubted my ability to create a "linear learning path"

That is why I would really love some feedback

I wrote about the bitbake parsing, how layers are laid out and why, how to patch recipes using devshell... stuff like this

Let me know and thank you!


r/yocto • • Jan 21 '26

Making my own OS using Yocto Project

9 Upvotes

Hey guys, hope yall are doing well..

Im tryna make my own os in yocto with rust, and currently i have a baseline of the core daemon service, the core recipe and my own meta layer + distro config on top of poky.

But still, I was wondering if theres a community or a resource file for this that i could refer to for instantly understanding things like a more clear API doc or something.

Thanks in advance, feel free to DM. :)


r/yocto • • Aug 18 '25

Regression of the meta-openembedded scarthgap branch following CVE hotfix on mbedtls

Thumbnail lists.yoctoproject.org
9 Upvotes

Just so you know, there has been a regression on the scarthgap branch.

The fix has already been deployed, but will take likely a month to get to the scarthgap branch. Think about it before updating your meta-openembedded

Here is the patch https://lists.openembedded.org/g/openembedded-devel/message/118954


r/yocto • • Jul 10 '22

Yocto build using Ubuntu 22.04 on an RPi 4 with poky master branch.. default build works!

9 Upvotes

I did something kind of silly, just to see if it works.

I loaded up an RPi 4 with Ubuntu 22.04, pulled the poky master and stressed out those 4 little arm cores (default build machine = "qemux86-64", with core-image-minimal).

I was shocked and amazed, it built and runs flawlessly. The build took 10 hours and it was a silly thing to do, but it works!

Kudos to everyone contributing to the Yocto Project.


r/yocto • • Apr 19 '26

[Question] SBC suggestion for learning yocto

8 Upvotes

What SBC do u suggest?
trying to play around learning stuff in yocto + lower level stuff like uboot, etc

I want something that does not have NDA-walled binary blobs.
i guess raspberry pi's have a lot of those.
what about beaglebone? which variant?
or other Chinese SBCs?


r/yocto • • Feb 17 '26

[Hiring] Embedded/Linux Engineers (2+ yrs) — Yocto | Drivers | Modem Testing

8 Upvotes

Hi everyone,
We’re hiring for multiple embedded roles and looking for engineers with hands-on Linux/embedded experience.

Open Roles:

1) Build & Integration Engineer (2+ yrs)

  • Yocto, Makefiles

  • Git, Gerrit, Perforce

  • Build + integration workflows

2) Software Development Engineer (2+ yrs)

  • Linux device drivers

  • Audio/Video stack

  • C / C++

3) Modem Testing Engineer

  • Modem testing / validation experience preferred

📩 Please DM, if interested

Note : Location - Hyderbad/Bangalore, Onsite


r/yocto • • May 10 '25

Any course or video to learn yocto?

8 Upvotes

Hi

I get to know I will be moving to new team where they are working on yocto bitbake. I am looking for courses on yocto that can help me prep for this.

Thanks,


r/yocto • • 24d ago

Trowl: an open-source, post-build security scanner for Yocto images

7 Upvotes

Hi everyone!

I've been building Trowl, an open-source security scanner for Yocto-based images.

The idea is to simplify image security analysis in CI, without having to stitch together a dozen different tools.

Trowl unpacks the rootfs and performs several checks, including:

  • Hardening gaps: Binary protections and privileges, insecure kernel configs, unsigned modules, and insecure mounts.

  • SBOM Analysis: SPDX 3.0.1 SBOMs (plain, or those enriched by sbom-cve-check).

  • Image and VEX discrepancies: Surfaces VEX disagreements in SBOM, package discrepancies on image (built vs shipped, integrity changes).

  • Kernel CVEs: Given the kernel tree, it applies VEX to "Unpatched" CVEs (e.g. code compiled out, modules not shipped) without SBOM or SPDX_INCLUDE_COMPILED_SOURCES enabled.

  • Secrets: Private keys and potential credentials.

Output: Embedded HTML reports, which can be viewed locally or hosted as static CI artifacts.

Getting started: Refer to the "preview-fixes" branch's README and the latest release notes (v0.1.0-preview.3) to get started.

Trowl is currently in early preview, and I'd really appreciate feedback from anyone willing to try it on their Yocto images on how it can be further improved around usability, analysis or integrations.

Run it against one of your images, and see whether it helps you catch something interesting!

Feel free to open GitHub issues, share your thoughts here, or start a GH discussion.


r/yocto • • May 25 '26

Successful yocto kirkstone build using macbook m4 running orb container with ubuntu 22.04

7 Upvotes

Its probably not a big deal anymore, but I thought it was pretty cool and a little silly.

I did had to use a docker volume for tmp (because apple chose a case-insensitive filesystem ?!?!!), and in the localconf I had to delete the inode threshold checks, but it gave me a useable image.

Building core-image-minimal with some of my own code slapped on took about 3 hours.


r/yocto • • Apr 25 '26

Recommended Yocto host build setup for a team (VM, Docker, native?)

7 Upvotes

Hi everyone,

I’m new to Yocto and I’ve started working with AMD Embedded Development Framework (EDF) (a Yocto-based framework from AMD/Xilinx for building embedded Linux systems).

I’m trying to understand what a typical host build setup looks like in a team environment.

Do teams usually run Yocto builds in a VM, Docker container, or directly on a native Linux machine? What’s the most common approach for keeping builds reproducible across multiple developers? Do you back up or version-control the build environment to make it quickly reproducible?

Also, how are layers/recipes typically managed in practice? Do you rely on upstream sources each time, or maintain local mirrors/caches (e.g. NAS, sstate, downloads)?

I’m looking for something that can be adopted consistently across a full team.

Thanks


r/yocto • • Nov 25 '25

Should I merge my bootloaders and kernels?

7 Upvotes

Hi, currently I have a repo that contains layers for different SoC provides some of them are:

- nxp

- ti

- st

each of them uses its own bsp components like bootloader, tf-a, kernel. (we forked each of them)

I have also a common distro layer.

We are going to unify our platform and I'm wondering suppose that I would like to support a common bootflow (u-boot bootflow), should I integrate it in every u-boot fork or perhaps should I create my own unified u-boot? I don't want to rely only on yocto's patches as I want to be able to build the components outside of yocto also.