Disabling cache in a kernel module on a Raspberry Pi 3?
On a Raspberry Pi 3B+ (ARMv8), how can I disable cache (or use other methods) in a kernel module so that when I read from a memory address, its value (and the page it's in) are not cached? It would be...
View ArticleEnding the scourge of spaces and control characters in filenames
I hate spaces in filenames. It's a bad plan. I just don't want 'em.They make shell scripting tedious, cause security problems, and are just generally annoying.At one point, I wrote a fuse filesystem...
View ArticleRegarding multiple device-tree(dtb) on single image
I am using openwrt to build an embedded system image - and wondering whether I can add multple device tree files (dtb) in single image.Basically, I have multiple hardwares which needs to share the...
View ArticleError while trying to live boot ubuntu on amd ryzen 5 3500u laptop even i...
I am trying to live boot ubuntu 20.04 on my acer aspire slim 5 with amd ryzen 5 3500u processor. Each time i try to boot through usb, ends up with this screen. I tried different booting...
View ArticleWhy disabling interrupts disables kernel preemption and how spin lock...
I am reading Linux Kernel Development recently, and I have a few questions related to disabling preemption.In the "Interrupt Control" section of chapter 7, it says:Moreover, disabling interrupts also...
View ArticleWhy am I not receiving my messages from kernel?
I'm trying to send a message from kernel to user space using generic netlink and libnl, the part of my code which does this is implemented as follow:int struct my_callback(struct sk_buff *skb, struct...
View Articleunable to install linux-next kernel (next-20200717)
while making and installing kernel from linux from next-20200717 tag it ended as shown belowdivyansh@DIVYANSH ~/l/linux_next (task7) [2]> suPassword:...
View Articleos killed apache ignite process and left no reason
OS version: suse linux enterprise server 12 sp2apache ignite(2.8.0) service(one process with a child process,and the child serve out caculation ability and consumes memorys hard) running on this...
View ArticleAbnormal CPU usage when using timerfd and read
I got a high CPU usage when using timerfd on my x86 machine. This issue is randomly happened.The weird thing is if it happened at the first time running, then will happen at every time running until...
View ArticleHow to communicate between thread using message queue in C [closed]
How can i communicate between two threads using Message queue in C? I am new to embedded Linux. Can anyone provide me any sample code that helps me to write the code?
View Articlemulti threading sts_queue not de-queueing properly- what might be wrong?
im using STS queue from git hub (link) to transfer data from one thread to another, I have two threads thread 1 and 2, thread 1 will be enqueue elements to queue and thread 2 will dequeuecode spinet...
View Articletimer_create function returning EINVAL
I am writing a sample program where my main() will create a thread and then it will start a timer. When the timer expires, the thread should get the signal. This is on Ubuntu 18.04.4 LTS.My problem is...
View ArticleWhat are the factors that effects the kernel build(Image) to flash on the...
I have fully unlocked the Samsung device and I have downloaded the Kernel sources from the Samsung open-source site. I have built the kernel fine with instructions are given in the README_Kernel.txt...
View Articlemmc write protect when ext_csd[EXT_CSD_ERASE_GROUP_DEF]=0
I am trying to set write protect to my emmc. Using mmc-utils, it seems my emmc supports write protect feature, since the value of WP_GRP_ENABLE is 1 in the csd data. If I am trying to set the write...
View Articlelinux-usb.org submissions - web site broken, emails ignored?
I need to submit some new USB device IDs for addition to the list/kernel.Does anyone know what has happened to the linux-usb.org list maintainer?I've attempted to submit new IDs as per the instructions...
View ArticleWhy kernel panic error "not syncing:vfs:unable to mount root fs on...
After copiling linux kernel 5.7.9 on kali linux by usimg references from webistes i faced this error.i compiled this new kernel because i can't find source tree in my kali linux order to do pratice...
View ArticleWhy do you have to use copy_to_user()/copy_from_user() to access user space...
I'm curious, because I got a kernel panic after trying to access memory directly (then I found these functions).
View ArticleHow to install akmod on fedora? [closed]
Hey I'm trying to install a private package from another developer, and his code depends on some akmod package, which, to be honest, I don't fully understand. How do I resolve these dependencies?sudo...
View ArticleAdding a new member in struct sk_buff - any impact on performance?
I need to add one small buffer to sk_buff structure and want add it as separate member or adding it on top of default skb->cb.The size will be around 100 bytes. Here, the concern is "performance"....
View ArticleWhy am I getting segmentation fault on Beaglebone Black when accessing GPIO2...
I have been attempting to get access to GPIO2 and GPIO3 on the beaglebone black through kernel module with no success. Every time I attempt to assign an output value to GPIOs 2 and 3 I get a...
View Article