How to use timers in Linux kernel device drivers?
I want to implement a counter in Linux device drivers which increments after every fixed interval of time. I want to do this with the help of timers. A sample code snippet would be very useful.
View ArticleUnable to run linux kernel image on qemu
I have compiled the linux kernel (stable) from the tree and got the initrd and bzImage. I try running it on the qemu emulator but I am having trouble specifying the root file system partition. (I know...
View ArticleIssue with Device tree overlay on kernel 4.14.71 (BeagleBone Black)
Hello i am trying to change the pinmux for a few pins on the beaglebone black using device tree overlays and I am specifically having trouble with the PRU pins which wont change to mode 6 and 5 and...
View ArticleMinimalistic Linux Kernel not compiling
I want to compile an own minimalistic Linux Kernel with make tinyconfig and after doing all steps (like here:)I get this error message:arch/x86/kernel/apic/apic.c:2282:6: error: redefinition of...
View ArticleHow to use FF_CONSTANT for Force feedback for Linux?
I am not able to utilize FF_CONSTANT force effect. My try code is:struct ff_effect joy_effect_, joy_effect_2;if (iwantconstantforce) { joy_effect_.id = -1; joy_effect_.type = FF_CONSTANT;...
View ArticleCan I run 64-bit Ubuntu on 32-bit VMware workstation? [closed]
I have 32-bit VMware work station. Can I run 64-bit Ubuntu iso in it?I am thinking it will degrade the speed and performanceDo I have to download 32-bit Ubuntu iso for running in 32-bit VMware machine.
View ArticleQEMU : Using flash memory as MTD device
The ultimate objective of mine is to enable mtdoops on QEMU but that would be too broad to discuss. I just want to explore a sub-problem.I am using QEMU virt machine that has flash memory. This is how...
View ArticleSometime not able to do put android in sleep mode (S3 suspend to ram)
I am running android as a guest using QEMU. My host system is ubuntu20.04. Sometimes I am facing issue while putting guest to suspend (S3). We are getting the below error.[ 1243.021952] PM: suspend...
View ArticleHow mount UBIFS NAND partition automatically? [closed]
I am working on custom board based on the NXP i.MX7D SoC. I want to create new partition to save configurations database on nand.For that i have made changes in u-boot in mtdparts args which is get...
View ArticleLinux kernel "BUG: bad page state in process .." understanding
I have some proprietary kernel module.And suddenly my system crashed in kdb with such bug:BUG: bad page state in process <kworker_name> pfn:37751page:<page_address> count:-1 mapcount:0...
View ArticlesoftROCE RDMA same device on different ports
I was wondering if there is a way to create rdma rxe devices with the same device name, but different ports. Essentially, the same RDMA device but with different ports, over different eth...
View Articleinit function not present in kallsyms
I wrote a simple hello world kernel module#include <linux/kernel.h>#include <linux/module.h>#include <linux/delay.h>MODULE_LICENSE("GPL");static int __init test_hello_init(void){...
View Articlekernel /proc/pid/stack format, what does the addresses mean?
given a stack like the following:cat /proc/17019/stack[<0>] futex_wait_queue_me+0xc4/0x120[<0>] futex_wait+0x10a/0x250[<0>] do_futex+0x325/0x500[<0>]...
View ArticleQradar directory access
I want to access the folder /store/ariel/events/payloads/ in the Qradar directories from the App editor. I am trying the os.path.exists however it returns false however, the folder exists as well as...
View Articlemtdoops: Cannot write from panic without panic_write
(Please do not downvote, instead comment how can I improve it in case it does not meet the standards.)I am launching linux kernel 5.8.0 on QEMU. I want to enable mtdoops so that it can store pstore...
View Articlehow to unzip / extract tgz.part-af file with python?
I want to unzip it. The file size is almost 5GBimport tarfilefname = x_geotiff.tgz.part-afopener, mode = tarfile.open, 'r:gz2'tar = tarfile.open(fname, "r:gz") # gz,gz2,bz,bz2,* do not work as it is...
View ArticleLow UDP throughput when using the Linux Bonding Driver on wireless interfaces...
I am trying to bond 2 wireless interfaces. The first one is based on IEEE 802.11ad and the second one in IEEE 802.11ac, which means that the throughput differs a lot between them. I set up the bond...
View ArticleAdding functionality to kernel module
I am trying to implement a LKM (for educational purposes) and is going fine until I try to add some functionality to it. Currently, module echos back the string received and I am trying to make...
View ArticleQuick rebuild of device tree only with Yocto/bitbake?
So, each time I modify the device tree I typically change the dts in a custom recipe and rebuild the image. The rebuild takes a long time since it rebuilds the entire kernel, and then the image needs...
View ArticleIs there any API for determining the physical address from virtual address in...
Is there any API for determining the physical address from virtual address in Linux operating system?
View Article