Cannot find linux/sched/types.h (for RT-patched Linux kernel)
I am running a RT-patched Linux kernel (4.14.184-rt84) for some real-time requirements in our project. I added sheduling policy-related lines in my code (borrowed from the source code) wherein the...
View ArticleHow to set udp buffer size for a docker container?
I would like to set the UDP buffer size for a docker container. Though, the UDP buffer size is a setting related to the kernel and it corresponds to that of the host, I see that, I don't see my host...
View ArticleLinux CONFIG_PREEMPT_RT for a quad core ARM A53 (newbie doubts)
I would like to activate the PREEMPTion features of my Linux Kernel. To do that I should download the right patch matching the version of the kernel I am using and that I compiled (as explained here)....
View ArticleChrony sets system time but does not sync RTC
I have configured Chrony with rtcsync flag, which SHOULD "Enable kernel synchronization of the hardware real-time clock (RTC)", but that is not the case.Chrony sets the system time correctly with ntp,...
View ArticleLinux kernel: Find all drivers reachable via syscalls
I am comparing a mainline Linux kernel source with a modified copy of the same source that has many drivers added. A little background: That modified source is an Android kernel source, it contains...
View Articlelinux crashes after calling inet_csk_reqsk_queue_drop_and_put()
I modified the linux kernel code so it drops the first TCP connection request if the syn backlog contains more than 9 connection request as shown bellow, but the system crashes when 8 connection...
View ArticleSharing anonymous non-VM_SHARED memory mappings between 2 processes
I am working on a memory introspection tool for live KVM VMs. I want to mmap KVM memory through kernel module, because process_vm_readv is rather slow, and there are lots of memory accesses. The...
View Articleusb Mass Storage driver for am335x
i want to loard a usb drive storage module so i make when i load usb mass storage module the usb drive detect in /media or /dev/sda1I have one customized bord using an am335x processor and this board...
View ArticleHow to use a TI CC2564C Bluetooth controller with a Raspberry Pi 2 under Linux?
I am trying to connect a TI CC2564C Bluetooth controller to a Raspberry Pi 2 Model B that is running a Yocto generated (core-image-base, so with BlueZ 5.50 incorporated) Linux kernel (4.19.93).For...
View ArticleVirtual block device backed by multiple files
On Linux (say, Ubuntu/Debian) I would like to create a virtual block device (let's say /dev/mapper/myvbd ) that is backed by a bunch of files on the user's home (say...
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 ArticleInclude Linux kernel headers for intellisense in vs code
I want to use VS code for developing linux kernel modules. I added the path to my browse path, but unfortunately it's not working.Here's my c_cpp_properties.json:{"configurations": [ {"name":...
View Articlekernel boot freeze when executing usleep_range()
I've designed two different boards with different .dts and pcb layouts (different peripherals).The processor is Atmel sama5d27C , file system is linux with v4.19 Linux kernel,bootstrap uboot and kernel...
View ArticleError Compiling latest Android 10 Kernel for Pixel 3XL (b1c1_defconfig) -...
I'm using Ubuntu 20.04 and compiling the kernel for Pixel 3XL (crosshatch).Adding LD=ld.gold to my script command doesn't fix the issue and gives the same error. Also, LLVMgold.so is inside the clang...
View ArticleBuild AOSP kernel, where to locate build errors
I just made this test driver using AOSP kernel "https://android.googlesource.com/kernel/common"I put my driver code "tdrive", under "common/drivers", in which contains 2 files "Makefile" and...
View ArticleWhat determines bv_len inside BIO structure (for I/O request)?
I built a ram based virtual block device driver with blk-mq API that uses none for I/O scheduler. I am running fio to perform random read/write on the device and noticed that the bv_len in each bio...
View ArticleWhere the TCP open connections are stored in linux kernel?
Where the TCP open connections (sockets that didn't received the final ACK yet) are stored in linux kernel ? is there any function that return the open sockets based on the listening port only ?PS:...
View ArticleNFS mount timeout
Like this, my server-side configure is /lenge/gnu/aarch64_sysroot_nfs 192.168.137.8(rw,sync,no_subtree_check) in /etc/exports. [ 4.995341] Root-NFS: nfsroot=/lenge/gnu/aarch64_sysroot_nfs [ 4.999167]...
View ArticleHow to undo rm -rf? [closed]
How we I undo the rm -rf command?For example, I have an Application folder and I removed it with:rm -rf ApplicationBut it was my mistake and want to recover that Application folder, but it's not in...
View ArticleWhy does this kernel_write-call crash?
Whenever I try to write to a file inside the Linux Security Module I am working on, the kernel crashes with the error message below.I tried using vfs_write instead of kernel_write, tried using a normal...
View Article