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-compiler using crosstool-ng for Beaglebone

Cross-compiler using crosstool-ng for Beaglebone In the previous post, I have used an already available cross-compiling compiler to cross-compile a C++ project for Beaglebone. I want to learn how I can do that so that I can utilize the learned knowledge if the need arises. I came to know that we can build a compiler using a tool called crosstool-ng. I am going to use it to build a compiler that can be used to cross-compile C and C++ applications for Beaglebone....

April 27, 2021 · 5 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

Sharing internet connection with Beaglebone

Sharing internet connection with Beaglebone The beaglebone can be connected over serial and the fun part is that the usb post emulates the lan connection. So we don’t need to have another lan connection to ssh into the board. The present versions the debian seems to recognize the SD card and boot from the SD Card directly. The instructions seem to suggest that we should hold the USERBUTTON while providing power in-order to boot from SD Card....

March 30, 2021 · 2 min · Kalyan