r/embeddedlinux • • Nov 13 '23

Getting started with embedded linux

11 Upvotes

hello geeks,

gonna ask a basic question, please bear with me. how to get started with embedded linux? what are the steps to get pro in embedded linux? i want to get into a big semiconductor based MNC in a near future.

thanks!!


r/embeddedlinux • • Jun 07 '22

Quick tutorial about ARM cross-compilation using Buildroot and emulation/debugging with QEMU (x-post from r/embedded)

Thumbnail 0xor0ne.xyz
11 Upvotes

r/embeddedlinux • • Sep 22 '21

I’m not putting a WiFi router into a phone charger (Part 3)

Thumbnail
machinehum.medium.com
11 Upvotes

r/embeddedlinux • • Aug 17 '21

From Linux Foundation project Dent (network OS based on Linux Kernel, SwitchDev and more) - Why Delta views Disaggregation in data centers and the Dent project as a key emerging technology

Thumbnail
dent.dev
11 Upvotes

r/embeddedlinux • • Jun 12 '21

Our weekend project: buildroot environment for pinephone

Thumbnail
github.com
11 Upvotes

r/embeddedlinux • • Feb 12 '21

Dependency Hell, A story.

11 Upvotes

Aim: I need Node-Red on my dev board. I did it successfully with Yocto, now to do it with Buildroot.

Restraint: The kernel source for the board I have (bound to it because of the dts files specific to the carrier board) is patched with an old version of Linux . It can be compiled with its own compiler, gcc3, gcc4, or gcc5. I'm working on an Ubuntu machine, but building everything inside that, a container running Ubuntu 18.04

Step 1. Start with fresh clone of Buildroot git repo. Fine tune everything from arm version to load address for the kernel. Sweet.

Step 2. Realise Node-Red requires at least version 8.0 of nodejs. Good on Buildroot to provide package for it. Wait a minute, that has restrictions. Newer version of nodejs (from 8 onwards), can only be built with a compiler with gcc ≥ 4.9, wchar and g++ support. So happens that external tool chain of Sourcery Bench (the one external toolchain option available to me) is on gcc 4.8 . It won't even let me see the option to enable nodejs or npm.

Step 3. Try to find another external toolchain. Hmm, Linaro didn't have one for my need with VFP and NEON support for ARMv9 with gcc ≥ 4.9 (or I couldn't find). Tried extracting it from Yocto build, failed miserably again (maybe I'm not as good an engineer I think of myself? )

Step 4. Choose Buildroot internal toolchain. Give all the requirements of nodejs with gcc options 8,9, and 10. Cool.

Step 5. Realise I set the kernel header version wrong. Start build of 2+ hours again with right header version.

Step 6. Realise using gcc9 of the Buildroot toolchain sets GNUC to that of compiler-gcc9.h. why is this an issue? Remember my kernel source comes with its own compiler options? Yeah, that doesn't have gcc9 so this won't work.

Step 7. Realise older Buildroot will probably give options for older gcc. Start again, this time with 2019.02 branch of Buildroot.

Step 8. In this branch, I can set options of external gcc from 4.9 to 8. Sweet. Let's go on safe side, let's use gcc5. The external compiler (from step 7) has it, my kernel source has it, so even if GNUC is set to that of gcc5, it should be fine.

Step 9. Remember my container? Ubuntu 18.04? The /usr/bin/gcc --version for it is 5.x.y . Now while building my kernel, the container gets confused, which GNUC are you? System gcc or kernel gcc? Redefinition error faced.

Step 10. Change external compiler version to 4.9 . It's available, satisfies nodejs condition, doesn't make my kernel compiler to pick any weird GNUC values, doesn't cause conflict with system gcc.

Step 11. Run everything I'm here right now.

Once it builds, transfer it to machine, check. I know it might fail because I'll first need to set up nypd and ntpdate else npm certificates will fail. Hopefully after that I'll have node at version 12 with npm support.

Then I'll install Node-Red.

Welcome to my Dependency Hell.

Edit: It worked. Required setting eth0 as default network interface. and increasing the image size from default 60M to 1G to fit Node-Red. Got node-red-dashboard on it as well.


r/embeddedlinux • • Dec 23 '20

What is the right way to review my Busybox configurations for unused tools?

11 Upvotes

I am doing some analysis on my Busybox configurations and I found out that; my build is selecting more than `675`
options of them !

This might be a very vague questions; but what is the right way to review those tools and remove unused ones (mainly to reduce the attacked surface) for an embedded system that has a lot of applications running on, unselecting all options and starting from scratch and see what will be broken seems like a very time consuming activity!

I don't know if I have asked the right question, but as an Expert how would you tackle this problem in a systematic way?

For example I started by looking at the known Common Vulnerabilities and Exposures on this site for my current busybox version, what else could be done ?


r/embeddedlinux • • Nov 17 '20

Embedded Linux - Yocto - Application Development

11 Upvotes

Hi Guys,

thanks for reading this:

I'm sticking my toes into Embedded Linux Development and the Yocto Project. I use the "wallboard" as the hardware \ target.

I also compiled Poky as image-core-minimal and flashed it to the SD card. It boots up and everything works as expected. I also created a first "Hello world" in a new yocto layer with C and made it work.

My question now is what the "correct" development process actually looks like?

I imagine programming and compiling on my host computer and then using "Serial / Ethernet / etc." to push the binary onto the Linux board. Debugging with GDB should then also be possible. I know this procedure from the BeagleBone Black.

Unfortunately, I can't find any real references to it and I don't know whether this is the preferred method. Maybe someone here can show me the right way.

I've read a lot of SDKs and eSDKs, but I'm missing exactly the concept behind them. How can I debug the software?

Thank you all for reading till here and maybe helping me.

David


r/embeddedlinux • • Nov 10 '20

GRUB mini-summit 2020 today

11 Upvotes

Hi Fellows,
We are continuing with GRUB minisummit live. Not to bother you more than necessary:

details here

live here - we are starting today at 04:00 PM UTC+01:00.

Quite interesting you may it find.


r/embeddedlinux • • Oct 22 '19

Is Embedded Linux Primer still relevant 10 years after it was released?

11 Upvotes

I'm a developer from an RTOS background who wants to prime himself to using Linux in my embedded applications, and so I'm looking for "overview-y" resources I could absorb without staring into a screen. Embedded Linux Primer seems to be the book on the subject various places on the internet recommend. However, given how fast technology moves is the book still relevant nearly a decade after it's been released?


r/embeddedlinux • • Jul 25 '19

Here's how to build a customized Linux distro with Yocto Project

11 Upvotes

The learning curve for any embedded development tool can be tough. Most people who use complex, powerful tools like this have been through college and spent several years mastering them in day to day life. Yocto is no exception to the list, but the potential to create a robust, custom Linux distribution that meets your needs is game changing. Especially considering where the technical market has been driving the past couple decades.

It’s now easier than ever to host a whole operating system on a small embedded system for a low cost.

Hardware and OS Requirements

The computer that you are building on should have at least 8GB of RAM and 120GB of hard drive space. It can be done with less, but Yocto can be resource intensive, depending on what your end goal is.

The build host should also be running a supported Linux distribution. I recommend Ubuntu. It’s simple to use, has a modern look, and is well maintained. You can also use:

  • Fedora

  • openSUSE

  • CentOS

  • Debian

If you’re using Windows or Mac, checkout VirtualBox which will allow you to run a virtual Linux machine inside your computer.

Dependencies

Let’s start off by making sure you have the correct dependencies installed on your Ubuntu machine. If you are using a distribution other than Ubuntu, visit The Build Host Packages section of the Yocto Project Quick Start guide.

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

Clone Yocto Poky

You can download the latest version of Yocto from the Yocto Project website. It’s probably best to clone the repo with git. This makes it easier to update later and saves time in setup. Currently the command to clone the repo is as follows, which automatically checks out the latest release (the “sumo” branch).

git clone -b sumo git://git.yoctoproject.org/poky.git

You can put this directory anywhere you’d like to. I’d recommend cloning the repo into something like ~/yocto/project-name/. That way you can have a common directory if you ever need to use the same machine for a different Yocto environment.

Initializing

In order to build anything in Yocto, you need to initialize the environment. Execute the following commands to navigate into the repo that you cloned and initialize the build environment.

cd ~/yocto/project-name/pokysource oe-init-build-env build

This is an easy step but a couple things happen here. Mainly, the build directory is created. This is where all the building is executed and where you can find the image files once the build is complete. The configuration file is also created allowing you to customize your settings.

You don’t need to source the oe-init-build-env every time you build, only when you reboot your computer, or close the shell you’re using.

Configuring

The configuration file is located in the build directory at poky/build/conf/local.conf. By default this configuration file is set to build for QEMU. You can look over the configuration file. Before building the first time, I recommend adding two lines to the end of the local.conf.

BB_NUMBER_THREADS = “X”PARALLEL_MAKE = “-j X”

Replace the value “X” in the lines with twice the number of processors/CPUs you have for you computer. For example if there are 4 processors, the lines would look like this BB_NUMBER_THREADS = “8” and PARALLEL_MAKE = “-j 8”. To view the number of processors you have on your machine, use the command lscpu.

Build image

To build the image, enter the command bitbake core-image-sato inside the build directory (poky/build). Bitbake will handle the build, downloading source files it needs and implementing them in the correct places. The first time you build, it will take a while (maybe a couple hours). Sometimes Bitbake does have an error while building. If this happens examine the error. A lot of times it can be caused by an external website being down for a few minutes or it couldn’t find certain source. Usually it’s worth trying to rebuilding the image. Do this by running bitbake core-image-sato again and Yocto will pick up where it left off. Once the build is complete, you can locate the binary images in your build directory at poky/build/tmp/deploy/images/qemux86.

Conclusion

While Yocto can be a difficult tool to master, getting started in the right direction is essential. Pretty soon you’ll be running your own custom Linux distribution on the hardware of your choice! For further help in developing your product see some of our other Yocto resources or contact us at DornerWorks.com.


r/embeddedlinux • • Jan 31 '19

FOSS Project Spotlight: Mender.io, an Open-Source Over-the-Air Software Update Manager for IoT Devices

Thumbnail
linuxjournal.com
11 Upvotes

r/embeddedlinux • • Jan 11 '14

2013 Embedded Linux Conference videos available online

Thumbnail
free-electrons.com
11 Upvotes

r/embeddedlinux • • Sep 22 '26

seeking help and/or advice Systems for Machine Learning

10 Upvotes

I’m a computer engineering graduate and come from a traditional embedded systems background, with knowledge of microcontrollers, computer architecture and operating systems. Is knowledge of C and C++ programming, Linux networking, memory management , multithreading, synchronization, interrupts etc useful in ML engineering. Are subjects like distributed systems, compiler optimizations (using LLVM), parallel computing etc going to be useful or are they heavily going to be automated as well by AI? In other words, is computer engineering always going to required to scale ML systems and be evergreen? Are people in ML engineering using these skills in their work everyday? Thank you.


r/embeddedlinux • • Aug 02 '26

How are you monitoring device health & handling OTA updates for embedded Linux/IoT fleets in production?

10 Upvotes

Working on a project that touches device fleet management and wanted to get a read from people actually running things in the field before I go further down a path.

For those of you managing embedded Linux or IoT devices at scale (tens to low-thousands of units):

  • How do you currently get visibility into device health/status — heartbeat, connectivity, uptime, logs? Custom MQTT + Grafana? Something like ThingsBoard/AWS IoT? Nothing at all?

  • If you're doing OTA updates, what's your update engine (SWUpdate, RAUC, Mender, something homegrown)? What's been the most painful part of getting it running reliably?

  • Have you looked at hosted/managed tools (Mender, balena, memfault, etc.) and either adopted or passed on them? What made the decision either way — price, setup complexity, vendor lock-in, forced migration off your existing update engine?

  • If you're on SWUpdate or RAUC already: would a hosted monitoring/OTA layer that works with your existing setup (instead of replacing it) be useful, or is that not really a pain point for you?

Not selling anything, genuinely trying to understand what's actually painful vs. what I'm assuming is painful. Appreciate any war stories.


r/embeddedlinux • • Jul 12 '26

Need career advice: Networking software engineer wanting to transition to Firmware/Embedded Systems (2 YOE)

10 Upvotes

Hi everyone,

I'm looking for advice from engineers who have made a similar transition.

\## Background

\- B.Tech in Electrical and Electronics Engineering (EEE) from NIT Calicut.

\- Around 2 years of experience in product companies.

## Current work

\- I'm working on cloud-managed networking products(switch , access points) at an MNC.

## My work involves:

\- Linux-based networking products.

\- C based agents running on networking devices.

\- Device discovery and monitoring.

\- Production debugging.

\- Configuration management between devices and the cloud.

\- Some changes in an existing C codebase.

\- Go-based packet capture using BPF libraries.

\- Understanding Linux-based networking systems.

## However, I'm not working on:

Firmware

RTOS

Device drivers

BSP

Bootloaders

Kernel development

## What I've realized

I think what actually interests me is lower-level work like:

\- Firmware

\- Device drivers

\- Embedded systems

\- Hardware-software interaction

I enjoy understanding how hardware actually works more than writing cloud-facing applications.

## My dilemma

I'm unsure about the best path from my current position.

Should I:

  1. Continue in networking/systems software and try to move toward firmware gradually?

  2. Learn firmware (STM32, FreeRTOS, peripherals, etc.) while staying at current company and then apply directly to firmware roles?

  3. Target companies like Qualcomm, NVIDIA, AMD, Cisco, Broadcom, etc., in systems software first and then try for an internal move later?

  4. Consider an M.Tech if I want to move closer to firmware or embedded systems?

## Questions

I'd appreciate answers from people who have actually worked in firmware or embedded systems.

  1. Is my current networking/Linux background considered relevant for firmware or embedded systems roles?

  2. If you were in my position, what would your roadmap be?

  3. What skills would you prioritize over the next 12–24 months?

  4. Am I underestimating how difficult this transition is?

  5. If you've made a similar transition, what was your path?

I'm looking for honest opinions rather than encouragement. If you think my plan has flaws, I'd appreciate direct feedback.

TIA


r/embeddedlinux • • Jun 15 '26

First linux driver development project

10 Upvotes

Hello getting into Linux driver development.

My idea: pass an RFID card to an ESP32 to authenticate sudo instead of typing a password. The secret lives on the card, not the machine. Is this a good project to learn linux driver development? ? Thanks


r/embeddedlinux • • Jun 10 '26

Best Place to Find Kernel/Embedded Jobs

10 Upvotes

Hey all! Looking to break into the kernel or embedded space and curious to get some opinions on the best places to find those jobs? I feel like LinkedIn and Indeed are lacking in these areas. For context, I have 3 yoe as a backend software engineer.


r/embeddedlinux • • May 09 '26

curious about the yocto quality level on qualcomm linux (QLI)

10 Upvotes

Evaluating adding Qualcomm to the supported silicon list on our embedded Linux platform.

Currently shipping production on Jetson, imx, pi 4/5, and others.

Previous round of Qualcomm work was choppy. Rough areas were around:

- BSP source fragmentation (Linaro QCOMLT, Qualcomm direct, board vendors)

- Kernel and Yocto release alignment

- Blob and licensing handling

- General integration overhead

For reference, Jetson BSP refresh runs us 3-4 engineer-weeks at minimum.

Curious whether things have improved, especially on robotics-class parts (QRB5165, QCS6490, IQ-9, Dragonwing).

How much engineering overhead per BSP refresh are folks seeing today vs Jetson or i.MX? Worth supporting at production grade?


r/embeddedlinux • • May 04 '26

Choosing OS (Linux vs Android) and Processor for Large-Scale IoT Vending Machine (50k+ deployment) – need advice

10 Upvotes

Hi all,

We are designing a commercial drink vending machine platform and would appreciate guidance from engineers who have worked on large-scale embedded/Linux/Android deployments.

This is a production system (not a prototype), targeting ~50,000+ machines, with a subscription-based business model. Reliability, OTA robustness, and long-term maintainability (5–7 years) are top priorities.

Current architecture:

  • STM32 for real-time control (pumps, sensors)

  • Planning Linux/Android SOM for:

    • UI (ads, videos, touch)

    • Networking (Wi-Fi + cellular fallback, GPS)

    • Cloud (AWS MQTT)

  • 24/7 uptime, no planned reboots

Key questions:

1. OS: Linux vs Android (AOSP)

  • Linux (Yocto/Debian): more control, no GMS, easier long-term maintenance?

  • Android: faster dev, better ecosystem?

👉 At scale, what actually breaks?

  • Memory leaks / long uptime issues?

  • OTA failures?

  • Security updates after BSP EOL?

2. SoC: RK3568 / RK3588 vs i.MX8

  • Need: industrial temp, 5+ year supply, stable BSP

  • RK3588 looks strong (NPU + media)

  • i.MX8M Plus offers long lifecycle + stability

👉 Real-world experience with BSP stability & supply?

3. OTA (most critical)
Planned:

  • A/B partition

  • Delta updates

  • Considering RAUC / Mender

👉 Looking for:

  • What are you using in production?

  • Handling power failure mid-update?

  • Rollout strategy (canary % / rollback triggers)?

  • Lessons when scaling to 10k+ devices?

4. UI stack

  • Currently: Qt6/QML

  • Considering: Flutter

👉 Is Qt still the safest long-term choice for embedded?
Any production use of Flutter in similar systems?

Goal:
Build a system that:

  • Never bricks in the field

  • Scales to 50k+ devices

  • Supports OTA + future AI

  • Minimizes long-term maintenance risk

Would really value insights from anyone who has worked on:

  • Kiosks / vending machines

  • Digital signage

  • Large-scale IoT deployments

Thanks!


r/embeddedlinux • • Apr 12 '26

article Building Linux and Busybox in M-Series Macs (5-min read)

10 Upvotes

Hello all,

As a Kernel-developer, I was using cloud-instances to build Linux since I do not have a Linux machine that is capable of building it fast. After spending some money to cloud providers, I wanted to search it more and find a way to build it on my Mac machine with virtualization. With the help of AI and Google searches, I could able to do it and wanted to share in my blog for anyone interested in.

I use Fedora on Lima for building the kernel, and use qemu to try it. This guide would not only give you a way to build the Linux kernel on Mac OS, but provide you a walkthrough on how to make a simple distro -- with BusyBox user-space and export as image.

Building Linux based BusyBox Distro on M-Series Macs

Feel free to comment if you find any mistakes there.

Regards,


r/embeddedlinux • • Dec 22 '25

Job offers at startups / small companies (Europe)

10 Upvotes

Hi, I'm searching for a new role as an Embedded Firmware/SW dev. I'm looking for a cool startup that I could work at. Mostly Yocto & FreeRTOS experience.

Where do you guys search for such opportunities? Usually, the job offers are not posted on "normal" websites. I'm based in Europe. I'm mostly interested in remote, but I'm open to other arrangements as well.


r/embeddedlinux • • Dec 04 '25

article MetaComputing Launches 45-TOPS Arm Linux-Ready PC Powered by CIX CP8180

10 Upvotes

Switzerland-based MetaComputing has announced a new ARM-based AI PC designed for the Framework Laptop 13 ecosystem. Developed with CIX Technology, the device introduces an ARM mainboard option for Framework systems and represents one of the first consumer-facing deployments of the CIX CP8180 processor.

The MetaComputing Arm Linux-ready PC is available in Standard and Pro configurations. The Standard model starts at $549 for the 16 GB RAM and 1 TB SSD version, with an upgraded 32 GB RAM option priced at $649. The Pro variant is listed at $999 with 16 GB RAM and 1 TB of storage, or $1,099 for the 32 GB RAM configuration.

https://linuxgizmos.com/metacomputing-launches-45-tops-arm-linux-ready-pc-powered-by-cix-cp8180/


r/embeddedlinux • • Nov 25 '25

Where and how to start learning embedded Linux

10 Upvotes

I have been in embedded programming for years. I had the unfortunate luck of not doing embedded Linux in my career. It’s always either bare metal programming or some other RTOS. VxWorks or GreenHills or FreeRtos.

What books and resources are there to help me get started and master this thing?