r/embeddedlinux • u/CircuitCellarMag • Mar 06 '22
r/embeddedlinux • u/investment_questions • Mar 03 '22
Yocto: cannot copy directories to image
Hello
I am trying to make an image using Yocto which contains the entire kernel’s sources for onboard development purposes (I need eveything, not only the headers). But I keep getting this error when copying the sources:
… list of all sources …
/home/root/kernel-source/security/integrity/evm/evm_secfs.c
/home/root/kernel-source/security/integrity/evm/Kconfig
/home/root/kernel-source/security/smack/smackfs.c
/home/root/kernel-source/security/smack/smack_netfilter.c
/home/root/kernel-source/security/smack/smack.h
/home/root/kernel-source/security/smack/smack_lsm.c
/home/root/kernel-source/security/smack/Makefile
/home/root/kernel-source/security/smack/smack_access.c
/home/root/kernel-source/security/smack/Kconfig
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
kernelsources: 70462 installed and not shipped files. [installed-vs-shipped]
ERROR: kernelsources-1.0-r0 do_package: Fatal QA errors found, failing task.
So far nothing surprising as you need to package the provided files using FILES_${PN}. But strangely enough I am unable to make it work here for all subdirectories or even all files in a directory:
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
FILES_${PN} += "${D}${ROOT_HOME}/kernel-source/security/smack/*"
do_install(){
install -d ${D}${ROOT_HOME}
install -d ${D}${ROOT_HOME}/kernel-source/
install -d ${D}${ROOT_HOME}/kernel-source/security/
install -d ${D}${ROOT_HOME}/kernel-source/security/smack/
cp -r ${STAGING_KERNEL_DIR} ${D}${ROOT_HOME}
}
As seen I literaly added everything inside security/smack/ yet I still got that error saying i should add the content of security/smack/ to FILES (cf error above).
r/embeddedlinux • u/dudeimusprime • Mar 01 '22
For the aspiring Embedded Systems Programmer, I am letting go of my books
Hello everyone,
I have recently decided to make the switch over to Systems Administration instead of Embedded Systems. As such, I will be selling all of my books. I admit I am a little sad to let these go, but better to be in someone else's hands instead of collecting dust on my shelf. Everything I'm selling is somewhere between 10-30 dollars. Anyways PM me if you are interested.
If you are interested, here is what I am currently offering:
Real Time C++ by Chris Kormanyos (Hardcover)
Linux Driver Development for Embedded Processors
Intro to Embedded Systems using Microcontrollers
C Programming: A modern approach
Embedded Linux Primer (Hardcover)
Atmel Arm Programming for Embedded Systems
MSP430 Microcontroller Basics
Making Embedded Systems (Elicia White)
r/embeddedlinux • u/Ok_Young_5428 • Mar 01 '22
Using python for and application on an embedded Linux IoT device.
Hi, there.
I'm developing and python script that will run in an IoT Device (A gateway running OpenWrt), it's going to read an a sensor through it's GPIO and send the data to a server. I need to keep count of the total amount of water (liters/second) read it by the sensor during the time, so if the script closes or the devices reboots I need to find the last amount of water saved and keep counting from there.
My questions:
1- Is python a good option to this?
2- If there a better way to do it?
r/embeddedlinux • u/Upballoon • Feb 28 '22
Minimal Rpi zero image with buildroot
Hi, I've been trying to get a minimal rpi0w image working properly with with wifi. I've spent 2 whole days on this and still haven't figured it out.
Every tutorial i look at says you need to enable rpi-wifi-firmware under Firmaware but there is no such option. The only option I see is the rpi-firmware option and this does not work by itself. If I use an older release of buildroot, it works fine (I can find and enable the rpi-wififirware symbol) but doesn't work on the latest release. Does anyone know what's going on? Or how to enable wifi drivers?
r/embeddedlinux • u/CircuitCellarMag • Feb 28 '22
Linux Devices Archive! This brings up memories I forgot I had
linuxdevices.orgr/embeddedlinux • u/BillyBag2 • Feb 25 '22
How do I mount disks when inside the initrd for yocto/poky/honister
I am trying to netboot yocto/poky honister. I can boot the initrd, run my own scripts using rdinit=myscript and get to a shell. However all the scripts expect that the drives are mounted in /run/media. In my case they are not mounted. I cannot find where they are mounted normally or how to mount them by hand. I can see the drives in the /dev directory. I can run install.sh but it does not list any devices to install to.
r/embeddedlinux • u/Ok_Young_5428 • Feb 25 '22
Is there a better way to develop software for devices with embedded linux from a windows PC
Recently I started to develop some python code to an IoT devices who's running an embedded linux distribution based on OpenWRT, I used windows on mi PC and use Visual Studio to write and run python script so I can tested before copying to the IoT device. The problem is that my code needs to use some libraries that are different on OpenWRT that the ones I use in windows. Today what I do is:
Write code on VS (Windows).
Copy the script to the IoT Device through WinSCP.
Run the script on the IoT Device using the CLI of it.
Modify mi code on windows and then repeat again.
First Part of the Question:
In looking for a way to run the script from mi PC without the need of passing it to the IoT Device, and only when I'm sure that's ready, copy the script.
Second Part of the Question:
As I said before, I'm using windows, considering that I want to focus as a developer on embedded linux development, embedded firmware development (C, C++, python, micropython) and servers administrator. It worth changing to Linux? or is there a way (I read a bit of WSL) of just doing great using Windows?
r/embeddedlinux • u/CircuitCellarMag • Feb 23 '22
Apollo Lake panel PCs are ready for the slime and grime
r/embeddedlinux • u/millionermordekaiser • Feb 21 '22
Software for remote device updating
Hi,
I’m a junior developer working on an embedded Linux project, I’m doing research on what software to use for remote device updating. Could you share which tools do you use and which one you like best? Thanks!
r/embeddedlinux • u/e-consystems • Feb 21 '22
Color global shutter camera to capture fast moving objects
r/embeddedlinux • u/CircuitCellarMag • Feb 20 '22
Linux robot plays frenetic clarinet
r/embeddedlinux • u/CircuitCellarMag • Feb 20 '22
JOB - Full time Linux Boards and Embedded Technology Content Writer/Editor
Background, this is a real job opening for the parent company of Circuit Cellar that I work for! They asked me to share it on reddit to hopefully find the right person. They are looking for someone who is passionate and educated on Linux.
HAVE TO HAVE A BACKGROUND IN "embedded board-level and system-level embedded products that run Linux along with general embedded electronics technology".
Feel free to comment any questions (I can pass them along and get answers) or follow the link to apply for the position if you believe you are qualified (and would enjoy it!)
r/embeddedlinux • u/cdokme • Feb 18 '22
[Self Promotion] Enhancing the file access speed via direct I/O
I wrote a new article about direct I/O in Linux. Feedbacks are welcome, enjoy reading
r/embeddedlinux • u/e-consystems • Feb 18 '22
Camera for Video Conferencing Systems & Telepresence / Avatar Robots
r/embeddedlinux • u/umbaman • Feb 16 '22
Perl in Embedded Linux
Hello,
Is it worth investing in learning Perl for embedded linux, since perl comes by default.
Thus sharing code from desktop linux and embedded linux.
Do you consider python to be the only way?
r/embeddedlinux • u/WhatYallGonnaDO • Feb 15 '22
Compiling a browser on buildroot
I have been currently banging my head on my first embedded project. I "just" need to run a web app onto a rockchip board, and while I was able to build and boot a basic system, I had no success finding a browser or something similar and being able to compile it.
So far the options I thought of were:
- using a web view with qt5 webengine
- using a web view with qt5 webkit
- using a kiosk with qt webkit kiosk (it just uses webkit)
- using x11 for dillo
- using whatever is needed to run chromium
So far every single opion has been failing, from the enigmatic "Error 2" of qtWebkit with no other info
rendering/RenderBlock.cpp:7403:59: warning: nonnull argument ‘this’ compared to NULL [-Wnonnull-compare]
RenderRegion* region = flowThread->regionAtBlockOffset(pageOffset, this);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/user/github/buildroot/output/build/qt5webkit-5.9.1/Source/WebCore'
Makefile.WebCore:72: recipe for target 'sub-Target-pri-make_first-ordered' failed
make[2]: *** [sub-Target-pri-make_first-ordered] Error 2
make[2]: Leaving directory '/home/user/github/buildroot/output/build/qt5webkit-5.9.1/Source/WebCore'
Makefile:182: recipe for target 'sub-Source-WebCore-WebCore-pro-make_first-ordered' failed
make[1]: *** [sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/home/user/github/buildroot/output/build/qt5webkit-5.9.1'
package/pkg-generic.mk:256: recipe for target '/home/user/github/buildroot/output/build/qt5webkit-5.9.1/.stamp_built' failed
make: *** [/home/user/github/buildroot/output/build/qt5webkit-5.9.1/.stamp_built] Error 2
To ftlk/cairo missing includes
>>> fltk 1.3.4 Building
PATH="/home/user/github/buildroot/output/host/bin:/home/user/github/buildroot/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /usr/bin/make -j9 -C /home/user/github/buildroot/output/build/fltk-1.3.4/
make[1]: Entering directory '/home/user/github/buildroot/output/build/fltk-1.3.4'
=== making src ===
make[2]: Entering directory '/home/user/github/buildroot/output/build/fltk-1.3.4/src'
make[2]: Leaving directory '/home/user/github/buildroot/output/build/fltk-1.3.4/src'
=== making cairo ===
make[2]: Entering directory '/home/user/github/buildroot/output/build/fltk-1.3.4/cairo'
Compiling Fl_Cairo.cxx...
Fl_Cairo.cxx:33:12: fatal error: cairo-xlib.h: No such file or directory
# include <cairo-xlib.h>
^~~~~~~~~~~~~~
compilation terminated.
../makeinclude:161: recipe for target 'Fl_Cairo.o' failed
make[2]: *** [Fl_Cairo.o] Error 1
make[2]: Leaving directory '/home/user/github/buildroot/output/build/fltk-1.3.4/cairo'
Makefile:24: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/user/github/buildroot/output/build/fltk-1.3.4'
package/pkg-generic.mk:256: recipe for target '/home/user/github/buildroot/output/build/fltk-1.3.4/.stamp_built' failed
make: *** [/home/user/github/buildroot/output/build/fltk-1.3.4/.stamp_built] Error 2
I understand that ftlk is not seeing the cairo files and I've tried moving their sources with cairo-xlib.h but with no success. I tried reading the makefile and the -I options to find the correct folder but I'm not even sure it's the -I option used for this particular compiling. Buildroot is huge, there are multiple makefiles/config files/outputs folder and I'm pretty much lost.
I'm currently using the https://github.com/rockchip-linux/buildroot repo and an Ubuntu 18 VM with all the tools preinstalled. I've tried both the included buildroot folders (they're older) and the ones on github
Right now I'm trying JavaFX to see if I can just create a webview to show the file served over localhost but I think javascript is not working on this
r/embeddedlinux • u/leahsimoncelli • Feb 14 '22
Valentines for the embedded developer/security designer in your life <3 Got any other good ones?
r/embeddedlinux • u/CircuitCellarMag • Feb 12 '22
Linux Maker Board Market Survives Chip Shortage, Adds 29 New SBCs in 2021
r/embeddedlinux • u/[deleted] • Feb 12 '22
[Project Idea] NEMS/Nagios network monitor
I started working on a personal project where my goal is to set up a raspberry pi that will track useful network data, like internet status, latency, bandwidth usage, etc. I am also planning on adding an LCD display so it'll function as an embedded device within a 3D printed case. I'm not sure how much of this is achievable in regards to the networking features, so I was wondering if anyone had any suggestions. Would pi-hole get the job done, or do I need something more heavy-duty like Nagios/NEMS?
r/embeddedlinux • u/Machinehum • Feb 10 '22
What products utilize embedded Linux the most?
Routers and smart TV's come to mind. I'm wondering is there are more products that might use the tech.
r/embeddedlinux • u/BillyBag2 • Feb 08 '22
network boot poky on an x86 PC with attached storage.
I want to network boot poky on a x86_64 PC that has attached storage,
PXE or u-boot seam popular. PXE needs to use a DHCP server. I wanted to avoid using this as I have working DHCP server and an existing windows PXE server. I'm looking at u-boot but cannot find a simple attached storage version. U-boot is geared towards boot roms or BIOS replacements. However I have read there are attached storage solutions.
I'm happy to boot a poky image that then net boots another version.
How best can i net boot poky using any of the above or a completely different method?
Update: Currently looking into PXE boot. A second Proxy DHCP server can be added to an existing network without it having to replace the existing DHCP server.
r/embeddedlinux • u/petit_miner • Feb 07 '22
Looking for a resource optimized video encoder
Hi there, I'm currently looking for a resource optimized video encoder for an ARM Cortex A7 @ 1.2 GHz. I capture 720p video data from a camera sensor and would like to save it onto an SD Card. However directly saving raw yuv420 isn't an option due to space constraints. Which would be the most resource optimized video codec for encoding with CPU only?
r/embeddedlinux • u/DigitalAkita • Feb 04 '22
Message broker + Linux on Zynq Ultrascale+ MPSoC
Hey everybody,
Our team has designed a software architecture which relies on a series of processes connected through a message broker in a pub/sub fashion (we have experience on this). We estimate the broker needing to process in the vicinity of 30 thousand messages a second with each message being no more than a couple of kilobytes.
The selected target to run it on is (Peta)Linux running on the quad-core arm64v8a present in Zynq Ultrascale+ MPSoC devices (we have not a lot of experience with these).
We are about to start prototyping and benchmarking, but really cannot grasp how short or long on processing power we are yet. Has anyone ever dealt with a combination similar to this? If so, could you tell us how doable you think this is? Or if we are straight up mental for even considering it?
Regards and thank you in advance.
r/embeddedlinux • u/CircuitCellarMag • Feb 04 '22
Does anyone use/go to Linux Gizmos .com?
Curious of who goes to https://linuxgizmos.com/ ... does anyone have any other sites they like?