r/embeddedlinux • • Sep 24 '24

article There’s No Lower Spec Linux Machine Than This One

Thumbnail
hackaday.com
12 Upvotes

r/embeddedlinux • • Aug 27 '24

Best API for interacting with wifi from C/C++

12 Upvotes

I have been building a firmware for many months and tried a few different approaches to managing wifi via C and C++.

iw and network manager have been the two closest things to a solution that I have found, but neither one of them really hit home.

What tools are you guys using to manage wifi from code. Scanning for wifi networks, retrieving RSSI, security type, connecting to networks, bringing up and down wireless interfaces, etc, etc.


r/embeddedlinux • • Apr 17 '23

How to browse through Linux Kernel Documentation?

12 Upvotes

Let's say that I want to find out how to handle module's parameters when inserting a module - I know that's possible, however, I don't know how to use it. When I search it on Google it gives me plenty of links where it's explained, however, these sources are usually some blogs etc, but I would like to stick only to the official documentation.

The same goes for some specific functions, like let's say function pointer from file_operations struct:

ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);

How to know what's the purpose of size_t and loff_t parameters? In this case, I know how to use it because I've read about this in LDD3, however, I would like to know how to approach unknown APIs and subsystems that have not been covered in books or on blogs.

Don't get me wrong - I know that Linux kernel is a complex project - I totally get it, I only want to know how I should use the Kernel's documentation to get answers to my questions and how professional Linux Kernel developers do this.


r/embeddedlinux • • Jan 09 '23

Chip-Off Firmware Extraction and Reverse Engineering of Arris SB6121 Cable Modem

Thumbnail
youtu.be
12 Upvotes

r/embeddedlinux • • Mar 29 '22

Linux maker board market survives chip shortage, adds 29 new SBCs in 2021

Thumbnail
linuxgizmos.com
12 Upvotes

r/embeddedlinux • • Jun 18 '21

Emba, an open source firmware analyzer, has received many new features and improvements recently. Under its hood are many of the most popular static analysis tools that you don't have to use manually, just run emba and find all sorts of possible vulnerabilities. https://github.com/e-m-b-a/emba

12 Upvotes

r/embeddedlinux • • May 04 '21

Best distro for embedded linux development?

12 Upvotes

Hi, I'm currently working with RTOS based systems but want to also learn Embedded Linux development. Thinking of using a VM since I really need Windows on my PC. Was wondering if I could get some pointers or general tips on which Linux distro to use amd what to keep in mind.


r/embeddedlinux • • Mar 27 '21

SoC for video streaing H.265 encoding

12 Upvotes

Hi, I am searching for a SoC to add onto a STM32F7 based flight controller. At the time I want to use Rockchip RV1126 but i have not got the pin layout (general datasheet) yet.

Are there any other SoCs to take into consideration?


r/embeddedlinux • • Feb 08 '21

How to programmatically use GPIO Expander driver in Linux?

12 Upvotes

I am trying to configure my yocto Linux distro to setup two on-board I2C GPIO Expanders and document how to access them programatically (i.e. from a C user application). The GPIO Expanders are both NXP PCA9557, which is supported by the gpio-pca953x.c kernel driver:

https://github.com/torvalds/linux/blob/master/drivers/gpio/gpio-pca953x.c

I understand how to compile this driver into the kernel (using CONFIG_GPIO_PCA953X config item) and load it (using modprobe). I also understand I can instantiate these two I2C devices in the device tree (this is an embedded device, so the GPIO expanders are static and unchanging):

   gpio@20 {         
        compatible = "nxp,pca9557";         
        reg = <0x1a>;         
        gpio-controller;         
        #gpio-cells = <2>;     
   }; 

The information I'm lacking is how to use the pca953x driver with these instantiated devices? Do I need to associate these devices with that particular driver? What APIs do I use to access them in a user application written in C? Do these just act like normal GPIOs once I've configured them correctly?

I'm more than happy to read through any relevant documentation, lengthy or otherwise, on how to do this. I'm just a beginner in Linux device drivers and have no idea where to go from here, despite a great deal of googling.

Thanks for any help you can offer!


r/embeddedlinux • • Nov 04 '19

how to secure embedded linux devices ?

12 Upvotes

https://youtu.be/h5PRvBpLuJs the above link is a black hat conference that demonstrates varous ways to get root access in 20 of most common embedded devices all runnig linux.

my question: how to secure uart, spi, i2c , emmc usb and most of the vulnerability as shown in the video?


r/embeddedlinux • • Jul 26 '19

Use These Helpful Yocto Tips & Tricks to Save Time and Streamline Your Workflow

12 Upvotes

Yocto has a steep learning curve, it can take months to get a handle on the ins and outs. Knowing a few simple techniques that can be used to cut down on wasted time and streamline a Yocto workflow can be extremely helpful.

Look to the Mega-Manual First

When a developer faces a challenge or error that hasn’t been seen before, their instinct is often to Google the problem, hoping for a Stack Overflow post similar to the situation they are facing. Under normal circumstances this is often a quick way to find a solution, or at least find a post from a person with a similar problem.

However, when dealing with Yocto this problem-solving technique can cause more difficulties than solutions.

There are significant differences between Yocto versions that will render anecdotal solutions ineffective. Furthermore, many forum post solutions are not robust and will introduce bugs or uncertainty into a meta-layer. The best way to solve a new Yocto problem is to read the Yocto Mega-Manual that corresponds to the specific version of Yocto you are building with. The Yocto development team has done an excellent job of documenting their work, including examples that may elucidate the solution.

Understanding Yocto as a system can guide you in avoiding minor errors that pop up due to misunderstanding the Yocto workspace and its requirements. Again, reading the Mega-Manual is a solid recommendation for gaining that deeper understanding.

The Yocto Project Development Environment.

Devshell is Your Friend

Devshell is an underutilized tool that can be very helpful while debugging packages or recipes. Often, error messages produced by Yocto are difficult to decipher, especially when dealing with hairy packages like u-boot. Devshell allows you to run commands like make menuconfig in an environment set up specifically for the package that is being tested.

It makes it much easier to debug when you don’t have to read through bitbake error logs. For example, if debugging u-boot, executing bitbake u-boot -c devshell will deposit all the u-boot source code into a directory, apply all patches included in the recipe, and then open a terminal in that directory.

Simplify Deployment by Scripting Setup Before Boot Time

Shell scripts are extremely helpful and make life simpler in many ways. Some complex tasks that are easily executed on a running Linux OS require utilities that can be difficult to utilize during the many stages of a Yocto build. Including a package post install script in your recipe can allow execution of shell scripts during the image packaging, before the system boots for the first time.

Package post install scripts are easy to add to any recipe:

pkg_postinst_${PN}() {
#!/bin/sh
do some shell script stuff
}

Develop Faster by Using Local Sources to Build

The Yocto build process builds all packages in a distribution from source, including the Linux kernel. If you wish to update the source code for the Linux kernel, or any other package, before it is built, a patch must be created and applied via a recipe or bbappend. The process of creating a patch and recipe can be time-consuming, and if you are in the process of actively developing the package in question, many iterations of patches leads to a great deal of wasted time. This can be remedied by adding a local source to local.conf.

Adding the following lines to your build/conf/local.conf will allow you to use a local source directory to build your package. Any updates you make will be included immediately without the need to create or apply a patch. When you are satisfied with your work, a final patch set can be created and applied to the recipe.

INHERIT += “externalsrc”
EXTERNALSRC_pn-package-name = “/path/to/your/source”

Ask Someone For Help

Yocto is a deep, confusing system that is easy to get lost in. There are many resources available to a developer that will help navigate the Yocto universe.

Often, the best resource is someone who has already dealt with the intricacies of Yocto. DornerWorksengineers are experienced in Yocto wrangling, we love making using Yocto straightforward and easy for our customers. If you’re looking to use Yocto to build a custom embedded Linux distribution for your next product and are looking for some guidance getting started, let us know.


r/embeddedlinux • • Oct 02 '15

A Language Speed Test Comparing Embedded Linux Boards

Thumbnail
digitalpeer.com
12 Upvotes

r/embeddedlinux • • 10d ago

💬 discussion 💬 Early Career Question in linux embedded

11 Upvotes

Hi graduated this year,

with a degree in computer science and engineering and

now I'm doing an year long paid apprenticeship in CNS (communication ,navigation and surveillance) department of an airport organization ,

I did some small projects in university on esp32 , arduino but not great exposure to embedded systems

But unfortunately most stuff I have already forgotten,

Now I am planning to upskill myself into linux career as I did an internship at the linux foundation in my university days but internships are not even counted as job experience these days, so if you can suggest some companies that will train me and pay me as a full time employee for these related roles, that will help me gain experience instead just doing courses,

The job market is extremely competitive and not every tom dick will choose these fields because these are much gatekept for engineers.

So please suggest me some companies which are unheard by masses ( asking about less than 100 applicant companies ) which hire recent grads

Location : south asian country

  1. Embedded linux engineer

  2. Device driver engineer

  3. Firmware engineer

  4. Embedded linux network engineer


r/embeddedlinux • • May 16 '26

jetson provisioning

11 Upvotes

Developer provisioning plus JetPack installation is nowhere near reproducible.

It takes weeks to get to a stable JetPack environment, and the only path I’ve seen toward reproducibility is handing integrators a golden image and hoping nothing drifts. That’s extremely brittle in production and should scare the shit out of any OEM shipping at real volume.

Has anyone seen this work well in practice for Jetson deployments? Production-grade, multi-site, auditable across rebuilds. Not “it worked on my desk.”

We’re sinking crazy hours into solving this (leveraging EO4T/meta-tegra) and I want to make sure we’re not on a fool’s errand before we commit any harder.


r/embeddedlinux • • Apr 06 '26

project mainline linux running on hy310 projector / h713 projector

11 Upvotes

wanted to share this because the project has reached a point where it doesn’t really feel like a broken bring-up anymore, it actually feels like a proper port now

i’ve been messing around with a HY310 projector based on the allwinner h713, one of those cheap little devices where at first you think “it would already be a win if i can just get a kernel to boot on this thing”

and then, as usual, it turned into a complete rabbit hole

it’s now running mainline linux 6.16.7, and not in a “well technically it boots if you’re patient” kind of way, but in a surprisingly usable state: gpu accelerated wayland desktop, hardware video decode, speaker audio, wifi, bluetooth, ir remote, and now hs400 emmc with pretty decent throughput too. still many things need general overhauls and more RE.

most of the work was reverse engineering because there’s basically no useful documentation for the h713. so a lot of tearing apart the stock firmware, looking through dtbs, throwing ida at kernel modules and random blobs, poking registers live on the hardware, reading dmesg, reflashing, reading dmesg again, and repeating that loop way more often than i’d like to admit

what i kind of like about the project is that it started as a “let’s just see if anything works at all” type of thing, and then a few hundred boots later you suddenly find yourself buried in pinctrl layouts, msgbox quirks and undocumented usb phy behavior

right now, quite a lot is working already:
mainline boot
wayland/labwc desktop with panfrost
cedrus hardware decode + gpu (mostly untested)
speaker audio
wifi + bluetooth
ir
thermal/fan
reboot/poweroff
and emmc in hs400 mode

it’s obviously still work in progress, but it’s far enough along now that i think it’s fair to say: this thing actually runs on mainline linux now, and it’s not just a boot logo plus optimism anymore

if anyone here is also into allwinner stuff, embedded linux, or generally cursed consumer hardware, i’d be happy to chat. and if by any chance someone has docs or sdk material for h713 / sun50iw12p1, please let me know because that would make life a lot easier :D

repo: https://github.com/well0nez/allwinner-h713-linux


r/embeddedlinux • • Jan 30 '26

How can I find command in U-boot which loads linux kernel ?

11 Upvotes

Edit: found solution: printenv bootcmd

I am running linux kernel on stm32 board. I have connected through ssh.

What I want to do is: I want to stop at u-boot.. do some experiments.. and after that I want to run linux kernel.

I can stop at u-boot

If I do not stop at u-boot, linux kernel loads, but from terminal messages I couldn't find any command.

Is there any way to retrieve the command which loads the linux kernel from u-boot?


r/embeddedlinux • • Jan 04 '26

How do experienced embedded Linux engineers figure out what configuration options to enable across the stack?

11 Upvotes

How do you know which options exist, which ones are required, and which order they need to be enabled in?

Is this knowledge mainly coming from: SoC vendor documentation? Kernel documentation? Driver source code? Device tree bindings? Trial and error? Some central reference or guide?

Example

Let’s say I want to enable display output on a BeagleBone. The display hardware I’m using has a specific display driver IC (for example, an ILI9xxx-series controller). How would you typically approach this? How do you determine whether to use DRM or framebuffer? How do you know if a driver already exists in the kernel? How do you figure out which kernel configs, device tree options, and user-space libraries are needed? Are there any recommended documents, websites, or workflows you follow?

I’m less interested in just getting it working once, and more interested in learning the systematic approach that embedded Linux developers use.

Ps- used chatgpt to explain my doubt clearly


r/embeddedlinux • • Dec 15 '25

How to get into embedded linux field?

11 Upvotes

I have experience developing bare metal code for microcontrollers and I have a really boring job using it to control electromechanical systems. I took a course in computer architecture and Linux Kernel programming in my Masters and I would love to do something along those lines. Can I still switch to this domain as my career without having any experience in it, but having done courses and projects? Thanks


r/embeddedlinux • • Oct 26 '25

Which Path to choose?

11 Upvotes

I am a aspiring Embedded developer, I have worked on Stm microcontrollers and FreeRtos. What should be my next path should I either go for FPGA development or Embedded Linux. I am equally interested in both. Could you help me in taking a decision.


r/embeddedlinux • • Aug 30 '25

Need good book/study material recommendations for Embedded linux

11 Upvotes

I have some idea on Linux on beaglebkne black. But right now I want to re visit and study more about it related to relevant skills for jobs. Like Application development , kernel development, device drivers, and knowledge enough to modify the linux modules, scheduling policies so I can use it for purely real time, modify bootloader and any small modifications as per my need. So please recommend any book, study materials and courses or guidance so I'm comfortable on the topic.


r/embeddedlinux • • Mar 24 '25

300ms delay in network, kernel's TCP write buffer filled to the brim, what is the culprit?

11 Upvotes

Good day everyone,

I'm writing a semi-realtime application for an embedded board running BusyBox which packages and sends some telemetry data (around 100KB) on a TCP socket every 100 milliseconds. This board uses the RTL8723BS wifi module as its network interface. However on the receiving side, it seems like the data received is 300ms behind what it should be. I've used other embedded boards as well as more powerful computers on the receiving side and the latency has always been around 300ms, so I'm pretty sure it's the sender's fault.

By doing some diagnosis of my own, I found out that the reason for the 300ms latency is because the kernel's TCP write buffer is filled to the maximum! By trial and error, I found that

echo 4096 290000 290000 > /proc/sys/net/ipv4/tcp_wmem

offers the best latency, decreasing the TCP window below 290,000 will result in dropped packets and increasing it will slightly increase the latency.

Any ideas why the kernel keeps the data I send() in its TCP buffer instead of immediately sending it out on the network interface? What other steps can I take to get to the bottom of this problem? Thanks a lot


r/embeddedlinux • • Feb 17 '25

Learning Resources

11 Upvotes

Hi everyone, I'm quite a beginner in the embedded linux field (the only embedded work I've done is with an Arduino board and I didn't write my own drivers or anything like that, just used the pre built C library). Right now I'm trying to learn how to write my own GPIO drivers for raspberrypi 0 w (raspbian OS) to eventually turn on an LED and hopefully to eventually make a UART console. So with that, any learning resources recommendations (preferably books or videos) would be highly appreciated. Tyia!


r/embeddedlinux • • May 14 '24

Roadmap to learn embedded Linux device driver development?

11 Upvotes

r/embeddedlinux • • Feb 25 '24

Is it better to learn Buildroot before Yocto?

11 Upvotes

Like the title says. I know they are very different build systems and my end goal is to learn Yocto, but is there any advantage on learning Buildroot first since it is easier ? Or is it ok to go straight to learn Yocto if that is my end goal? What I mean is that does learning Buildroot besides being easier also teaches you some concepts that are just asume in Yocto or no ?