Understanding iio devices in Linux

Understanding iio devices in Linux The Industrial I/O core offers a unified framework for writing drivers for many different types of Embedded sensors. a standard interface to user space applications manipulating sensors. IIO device sysfs interface Attributes are sysfs files used to expose chip info and also allowing applications to set various configuration parameters. For device with index X, attributes can be found under /sys/bus/iio/iio:deviceX/ directory To look at all the attributes and their explanation, please take a look here linux/sysfs-bus-iio...

May 23, 2023 · 11 min · Kalyan

Undefined reference to pthread_getspecific

Undefined reference to pthread_getspecific In the last two post1 post2 I tried to setup a working cross-compilation environment for Beaglebone. While I was trying out a test program, I noticed that I was not able to compile a program if I link it with gtest I was getting a linking error which was not able to find references to pthread_getspecific and pthread_setspecific. If you are encountering an undefined reference to pthread_getspecific error while linking your C++ program with the Google Test (gtest) library, it is likely that your program is not linking with the pthread library....

May 7, 2023 · 2 min · Kalyan

Cross compile C++ project for beaglebone

Cross compiling a C++ project for Beaglebone I am thinking of getting into Embedded Linux, so I have ordered a Beaglebone. I don’t want to use Python to program it as I want to do some real-time processing with it. For that, I have to figure out how to compile C++ programs on the host PC instead of doing it on the Beaglebone as it has very little ram. Initially, I wanted to do the cross-compilation using QEMU but quickly gave up the idea as there is no out-of-the-box QEMU system for Beaglebone....

April 12, 2021 · 8 min · Kalyan