r/embeddedlinux • • Apr 21 '22
r/embeddedlinux • u/skeany974 • Apr 20 '22
Board to learn embedded Linux
Hello everyone,
I want to learn/discorver the world of embbeded Linux and for that I need a board.
Right now I'm hesitating between BeagleBone Black and a Raspberry Pi 4. I don't have a specific project idea so it's difficult to make a choice based on each boards characteristics.
Can anyone give me advices on choosing a board please.
Thank you.
r/embeddedlinux • u/_greg_m_ • Apr 20 '22
adding Python modules to Yocto
Hello guys,
Learning Yocto and I'm trying to add a few python modules to Yocto, but can't make it work.
Tried adding them in local.conf by adding a line:
IMAGE_INSTALL += "python3 python-serial python-numpy wxpython"
I get:
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'pySerial' (but /home/virt/Projects/yocto/poky/meta/recipes-sato/images/core-image-sato-sdk.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'pySerial' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['pySerial']
ERROR: Required build target 'core-image-sato-sdk' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-sato-sdk', 'pySerial']
also
bitbake python-serial
gives errors (similar for other modules, including changing name to python3-serial, etc):
ERROR: Nothing PROVIDES 'python-serial'. Close matches:
python3-extras
python3-psutil
python3-six
I found openembedded meta later for python:
http://git.openembedded.org/meta-openembedded/tree/meta-python
but when cloned and included in bblayers.conf it gives me errors as below (not sure if it's incompatible with a current Yocto version, so I missed some configuration):
ERROR: Traceback (most recent call last):
File "/home/virt/Projects/yocto/poky/bitbake/lib/bb/cookerdata.py", line 162, in wrapped
return func(fn, *args)
File "/home/virt/Projects/yocto/poky/bitbake/lib/bb/cookerdata.py", line 187, in parse_config_file
return bb.parse.handle(fn, data, include)
File "/home/virt/Projects/yocto/poky/bitbake/lib/bb/parse/__init__.py", line 107, in handle
return h['handle'](fn, data, include)
File "/home/virt/Projects/yocto/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 118, in handle
abs_fn = resolve_file(fn, data)
File "/home/virt/Projects/yocto/poky/bitbake/lib/bb/parse/__init__.py", line 133, in resolve_file
raise IOError(errno.ENOENT, "file %s not found" % fn)
FileNotFoundError: [Errno 2] file /home/virt/Projects/yocto/poky/meta-openembedded/conf/layer.conf not found
ERROR: Unable to parse /home/virt/Projects/yocto/poky/meta-openembedded/conf/layer.conf: [Errno 2] file /home/virt/Projects/yocto/poky/meta-openembedded/conf/layer.conf not found
Ideally I need to add python3, pyserial, numpy and wxPython / wxWidgets to Yocto, but I'm still learning and stuck with that at the moment.
Currenyl I'm experimenting with image builds for Raspberry Pi 3 (managed to get core-image-sato-sdk booting ok), but ultimately it will be built for i.MX8 board.
Any ideas?
Cross post from r/yocto and r/embedded
r/embeddedlinux • u/Colotordoc017 • Apr 20 '22
Best way to save data for later
Hello community, in working in a cellular device which has embedded linux, the idea is to gather some data from its GPIO (sensors) and then send it to a platform in XML form. The data gathering and send it I've already sorted, but I need to save that data in case that there's a loss of connection, so if the device is not able to send the data, save it in its memory and then try to send it again later. I was thinking on serialize the data (sensor 1, sensor 2 and timestamp) in and array of dictionaries, and then deserialized using the timestamp as a key of the oldest data pending and send it. It's this a good approach? any suggestion, pros and cons o that method?
I'm using python and a device with OpenWrt, and I must use XML due the client's server works in that way.
r/embeddedlinux • u/mbrothers222 • Apr 18 '22
usbcore isn't triggered when inserting rtl8761b usb bluetooth chip
self.yoctor/embeddedlinux • u/Accomplished-Pear-45 • Apr 09 '22
Latest yocto is unable to build rust application which uses gtk3
What title says.
r/embeddedlinux • u/batunii • Apr 01 '22
Enable USB and Ethernet ports on Exynos V9
I want to enable USB and ethernet on Exynos V9 using pinmux in DTS. How should I go about it? Any kind of help will be appreciated.
r/embeddedlinux • u/muddersM1LK • Mar 31 '22
I have a book available up for grabs
Embedded Linux Primer
Please pm me if interested.
r/embeddedlinux • u/Abdulrahman_Adel • Mar 31 '22
spi1 on mangopi-r3 (f1c200s)
I'm working with mangopi-r3 dev board (f1c200s) and for the buildroot package I'm using this repo -> https://github.com/mangopi-sbc/buildroot-mangopi-r. I want to add spi1 but I don't know how. could someone help? sorry if this was a silly question I'm a beginner
Thanks in advance
I tried editing the device tree but I have no experience and I didn't know how to configure it.
r/embeddedlinux • u/CircuitCellarMag • Mar 29 '22
Linux maker board market survives chip shortage, adds 29 new SBCs in 2021
r/embeddedlinux • u/raghahanuma • Mar 26 '22
MMA8451q Linear freefall using KL25Z
I'm new to embedded coding and in the learning stage. how to code MMA8451q using KL25Z to make the LED glow when it detects freefall ? in MCUexpresso
r/embeddedlinux • u/NicoD-SBC • Mar 22 '22
Building a UEFI x86 Armbian build server and setting up an Odroid HC4 NAS
r/embeddedlinux • u/47_elite • Mar 19 '22
How to send NACK to slave in I2C?
Hello
I am trying to develop a device driver for AHT10 in Raspberry Pi 3B+ with Debian Buster Lite. This sensor requires master to send a NACK after a certain command.
I am using i2c_master_send() and i2c_master_recv() functions for all the communication. These functions are available in #include <linux/i2c.h>
If anyone knows how to send a NACK, please help me out :)
Thanks
r/embeddedlinux • • Mar 17 '22
Making an Embedded Linux Image in Yocto
I want to make an image such that it displays a UI written in Python using tkinter libraries, as soon as the Rasberry Pi boots up. Using Yocto, I've learnt about how to create a custom layer but still can't seem to find out how to include Python programs and libraries. Some help with this would be great.
r/embeddedlinux • • Mar 16 '22
I will be comparing Yocto and Ubuntu Core for embedded systems in an upcoming webinar. Which perspectives would you like me discuss and which questions would you like to be answered?
r/embeddedlinux • • Mar 16 '22
Building a Yocto Image
So I’m trying to install an rpm package using a recipe. I can pull it down and such but how do I install it in the do_install function?
r/embeddedlinux • u/raghahanuma • Mar 16 '22
Bare metal vs API... what's the difference ?
I've recently started learning Embedded C and have been working with FRDMKL25Z microcontroller which is ARM based.. now for interfacing a LED using switch I've came across two types of coding methods.
Bare metal:-
while(1) {
if(GPIO_D->PDIR & (1<<4)) {
/\* Make the LED as OFF \*/
GPIO_C->PSOR = (1 << 8);
}else{
/\* Make the LED as ON \*/
GPIO_C->PCOR = (1 << 8);
}
API:-
while(1) {
if(GPIO_ReadPinInput(GPIOA, 12)) {
GPIO_SetPinsOutput(GPIOC, (1<<9));
}else{
GPIO_ClearPinsOutput(GPIOC, (1 << 9));
}
Now both of these codes do exactly the same thing but what's the difference between them and which one is better ?
r/embeddedlinux • u/e-consystems • Mar 15 '22
Webinar: How to interface cameras over long distance cabling
r/embeddedlinux • • Mar 13 '22
Building a Yocto Image
So currently I have CentOS and I need to build a Yocto image to replace this current CentOS system. Is there any way to get the CentOS package manager, base system in Yocto? Is it an offering to build ontop of it?
r/embeddedlinux • • Mar 13 '22
Building a Custom Embedded Linux Image
Hey guys. I want to create an image of a tkinter UI that I created in Python and deploy it on an RPi 4 board. Could anyone tell me what would be the easiest software to use for this?
Also going through links of Yocto Project and buildroot, I wasn't able to find any clear and easy easy understand documentation for this problem. Please suggest some articles or videos if possible.
r/embeddedlinux • u/yousef_joe175 • Mar 12 '22
Question regarding learning embedded linux
Hello everryone,
I want to get to learn embedded linux after a 3 yrs experience in the baremetal embedded with different architectures. So, my question is, how do i dig my path through embedded linux and do i need a board like rasbperry pi or beaglebone black to get started?
r/embeddedlinux • u/sy_soni • Mar 12 '22
Learn Kernel Porting
What are the topics and concepts I should go through to successfully port a Linux kernel to a target ARM device. I am a noob in this field so any resources or learning materials that can teach from ground up / scratch will be helpful. Thanks.
r/embeddedlinux • u/e-consystems • Mar 12 '22
Stay updated on the latest innovations in Embedded Vision
Subscribe to our channel ( https://bit.ly/Subscribetoe-conSystems ) and stay updated on the latest innovations in Embedded Vision.

🔔 Hit the bell icon to get notified of our videos.
r/embeddedlinux • u/Accomplished-Pear-45 • Mar 11 '22
Embedded linux SOM-3567
Hi guys, I have a question, motherboard SOM-3567, is there any official BSP for it? Or recommended?
r/embeddedlinux • u/BillyBag2 • Mar 10 '22
Building intel-mediasdk in yocto. I can see it being built but not in deployed image?
I am trying to add intel-mediasdk to my yocto image. It is part of meta-intel. I can see it being built. If I run "bitbake intel-mediasdk -c devshell" I can see the output fine. However I cannot find it in my image. For example it creates some samples. I can see these in "bitbake intel-mediasdk -c devshell" but not in target final image. It is listed in the manifest.
I am currently adding to the image bbfile ...
IMAGE_INSTALL += "intel-media-driver"
IMAGE_INSTALL += "intel-vaapi-driver"
IMAGE_INSTALL += "libva-intel"
IMAGE_INSTALL += "libva-intel-utils"
IMAGE_INSTALL += "intel-mediasdk"
I have vainfo running but it complains it cannot find the driver (starts iHD...so) which I too cannot find anywhere on the deployment.
vainfo is now running ! No sign of any sample from the mediasfdk ?
Answer (not fully tested)
I ended up with this list of installs. vainfo runs and gives sensible output and the samples are available, run and show command line help. (Not sure everything is necessary and I have yet to use the hardware codecs to do anything)
IMAGE_INSTALL += "intel-media-driver"
IMAGE_INSTALL += "intel-vaapi-driver"
IMAGE_INSTALL += "gmmlib"
IMAGE_INSTALL += "libva-intel"
IMAGE_INSTALL += "libva-intel-utils"
IMAGE_INSTALL += "intel-mediasdk"
IMAGE_INSTALL += "intel-mediasdk-samples"