"sudo perf script -g python" command resulting in segmentation fault in...
I am new to working with "perf" tool, exploring perf script with python capabilities.I have generated perf.data with following command(pft) [csaraiya@localhost Desktop]$ sudo perf sched record -- sleep...
View Articleadding i2c client devices on x86_64
On my x86_64 board, there is i2c-bus coming out of a MFD device. There are devices on to this i2c-bus. I am able to detect these devices using i2cdetect program. # i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a...
View ArticleHow do i compile the linux kernel headers?
I have compiled and installed kernel-5.8. But it seems that the kernel headers were not installed for that kernel. How do i compile and install the headers?I realize that, i have not explained my...
View ArticleThe reason for explicitly start C/C++ enum at 0
I know that c and c++ standards state that if you don't specify first element's value a start value of enum will default to 0.But e.g. in Linux kernel sources I faced strange declarations dozens of...
View ArticleCannot find -l R
Using Linux Mint 18.3 (Ubuntu 16.04)I am using R studio 1.1.383 with R 3.4.2 in the Anaconda environment and I am getting what appears to be compiler errors when trying to install a number of different...
View ArticleHow I get the default net namespace on my kernel module?
I've a kernel module which will store some data for each net namespace, at some point, I want to get the default net namespace, I've searched a lot but didn't find answers just for the user space...
View ArticleMakefile:129: *** multiple target patterns. Stop. error on ubuntu
On building linux kernal on ubuntuI am getting error Makefile:129: *** multiple target patterns. Stop.build errorMakefile:129: *** multiple target patterns. Stop.
View ArticleHow to make a Linux based operating system with no shell and should launch an...
I want a Linux kernel and on top of it, I have no shell and no logins. The only job that I want the operating system to do is launch an application. I have to attach the application to the image of the...
View ArticleI ran the "dnf update" command on centos8 vagrantbox facing the error GPG...
error: /var/cache/dnf/BaseOS-31c79d9833c65cf7/packages/libwbclient-4.11.2-13.el8.x86_64.rpm: Header SHA1 digest: BAD (Expected 39d602ec38ca75b278d84729f30c37229e43c034 !=...
View ArticleHow to have backward compatibility with the shared libraries?
Suppose I have a single workspace with $LD_LIBRARY_PATH and I have an executable that depends a shared library (say libsof.so), now each time I get a new version of “libsof.so” I will replace the older...
View ArticleHow use SPI in kernel driver
Used code from this psot https://e2e.ti.com/support/legacy_forums/embedded/linux/f/354/t/529207?am335x-gpio-interrupt , I wrote my kernel driver.Now I want use existing SPI driver in this driver.Hove...
View ArticleWhy do my calls to gpiod_set_value return an "invalid GPIO" error?
I am attempting to write a driver for an OV2680 camera sensor. I want to turn on some GPIO pins as one of the steps in its ->probe() function. Those GpioIo() pins are declared in the DSDT tables...
View ArticleHow to do file operations with sockets in the kernel?
I'm writing a protocol as a kernel module (v4.19.97) and the call to bind() of my user-space app is returning the following error.bind: Socket operation on non-socketerrno: 88This error is being...
View ArticleCompile Android Kernel Module from Source
I'm trying to configure an ethernet interface on my phone to use VLAN. My idea is to compile the VLAN module from the kernel source and simply copy it to my phone.For this, I need to load the 8021q...
View ArticleCall function of kernal module from another kernal module
I am new in kernel driver development. So i just stuck in that, how can i call function of kernel module from another kernel module. This is my both .c...
View ArticleHow to access Ethernet frame in Linux kernel driver (stmmac)
For an Ethernet traffic, in the kernel stmmac driver, when an Ethernet frame is received, the function stmmac_rx is called here:static int stmmac_rx(struct stmmac_priv *priv, int limit)I would like to...
View ArticleHow to printk value of specific memory adrress?
I want to print 12byte from specific memory address in kernel.Following is my hard coding.void *Unique_Id = 0x5C000234;for(int i=0;i<12;i++){ printk("%02x ", *(uniqueId+i));}This is correct? or...
View ArticleHow to use a GPIO driver to control pins from a different device's driver?
I am experimenting with linux device drivers. I'm attempting to build an OV2680 driver for my laptop, a Lenovo Miix 510. On that platform the sensor sits behind an INT3472 PMIC, and accessing the...
View ArticleInstall OV7251 driver in RPI-3B+ to use with ROS
I wanted to install the OV7251 camera driver to work with a module I've recently purchased, the Arducam OV7251 MIPI, as I need to perform SLAM-like system called Virtual Inertial Navigation (VIN) and...
View ArticleUsed memory in /proc/meminfo does not adds up
Looks at the output of cat /proc/meminfo I have MemTotal = 38GB, and Active + Inactive = 14 Gb. Cached is only 3GBWhat is using most of my RAM on top of those 14GB of Active and Inactive ?How does it...
View Article