changes in usb_deregister_device_driver is not reflected
I have change the code inkernel-source/drivers/usb/core/driver.cto:void usb_deregister_device_driver(struct usb_device_driver *udriver){ pr_info("%s: deregistering device driver %s\n", usbcore_name,...
View ArticleIs the isb necessary between modifying ttbr and flushing TLB?
I encountered a problem about replacing the active TTBR0_EL2 register. It seems that the new data loading does not use the new page table, or the instruction execution is messed up. In short, Data...
View ArticleWriting to two SPI devices on the same SPI bus screws the output
I have two devices connected to the same SPI bus on a Raspberry Pi. Both devices use the same custom device driver, which exposes them as two separate miscellaneous devices in user space, supporting...
View Articleuprobe symbol adress mapping offset
I am trying to set a uprobe in the libart.so android library on an Android x86_64 emulator with Rust (aya[0]). All is well on Android-14 (Kernel 6.1), but not in Android-13 (Kernel 5.15).As far as I...
View ArticleChanges in usb_deregister_device_driver() are not reflected
I changed the code in kernel-source/drivers/usb/core/driver.c to:void usb_deregister_device_driver(struct usb_device_driver *udriver){ pr_info("%s: deregistering device driver %s\n", usbcore_name,...
View ArticleBuilding custom minimal Linux from source.with cross compiling toolchain,...
I cross compiled toolchain now building Linux kernel. I followed this pagehttps://www.linuxjournal.com/content/diy-build-custom-minimal-linux-distribution-sourceSo I compiled all the tools including...
View ArticleUbuntu - syslog & kern.log filling up with messages (audio pci?)
My syslog& kern.log files are enormous - I checked these files & found that they are being filled with the following messages.Mar 3 08:12:17 ubuntu kernel: [1033920.187739]...
View ArticleNo such device or address. Char device driver
I started studying char device drivers and encountered such a problem that with any attempt to interact with char device via read, write, ioctl, it writes "No such device or address".The device is...
View ArticleWhat does TIF_NEED_RESCHED do?
What is the purpose of TIF_NEED_RESCHED in a Linux scheduler (say CFS)? In case of writing a new scheduling class, can this flag be used? If yes, where and how can this flag be used for a new...
View ArticleNo audio in Linux with processor Core Ultra 5 (metheor lake) 125H [closed]
I'm trying to use Linux on my Samsung Galaxy Book 4 Pro but I've tried different distros and kernels (kalin, ubuntu, mint) and can't get the audio to work through speakers. The earphone works great...
View ArticleHow to customize 6.1 kernel config in aosp 15
I am trying to build a GKI kernel image from aosp. After updating the kernel config, the build does not seem to use my config. Instead, it always uses some default config.How can I build with custom...
View Articleregister_kprobe is returning -2
I am trying to hook some kernel function for learning purpose, I wrote the simple kernel module below, but for some reasons, the register_kprobe always returns -2. I didn't find nothing about what it...
View ArticleBuilding Linux kernel module on RT linux - 5.15.148-rt-tegra
I'm trying to build EtherCAT kernel module, on Forge Carrier Board for NVIDIA Jetson AGX Orin using the provided instructions in their manual.It works fine with regular kernel and BSP, but when...
View ArticleHow to generate preprocessed head.S in the Linux Kernel Source Code?
I searched online for a way to obtain head.i, the preprocessed output of head.S in the Linux kernel source code, but I couldn’t find any relevant information.Is it possible to generate head.i? If so,...
View ArticleInterrupt and spinlock
I understand that we disable interrupts when acquiring spinlocks in interrupt handlers. I have a doubt as to what happens when a spinlock is held in process context and at that instant an interrupt...
View ArticleWhy SigPnd doesn't change in /proc//status?
I am trying to understand the signals in POSIX/Linux. I wrote this test.c program:#include <stdio.h>#include <stdlib.h>#include <signal.h>#include <unistd.h>void handler(int...
View ArticleWhat's the CONFIG_OF in linux?
I see that it is being widely used at many places but could not understand in what scenarios I need to use it.What is CONFIG_OF?What is the full name of "OF"?
View ArticleWhy doesn't SigPnd change in /proc//status?
I am trying to understand the signals in POSIX/Linux. I wrote this test.c program:#include <stdio.h>#include <stdlib.h>#include <signal.h>#include <unistd.h>void handler(int...
View ArticleHeavy tcp_send_ack during recvfrom syscall
I'm digging one issue(not sure if it's an issue and not sure how tofix this) with linux tcp stack. Our application receives a big numberof small packets. Total network utilization isn't really big...
View ArticleHow do i modify the generic linux kernel on archlinux?
Im currently with os version: x86_64, the kernel: 6.13.5-arch1-1, the os runs on virtualbox.I want to change the drivers, aplications and everything that i dont use to minimize the load at booti know i...
View Article