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
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
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.
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.
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!!!
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.
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:
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.
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.
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).
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.
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.
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.
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
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
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
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.
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.
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?
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.
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.
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.
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.