Interrupt parameter: device tree configuration?
I am currently writing a device tree node to configure SCISIS752 Dual Channel UART with I2C which is connected to the slave address 0x4d. I am also using a clock of 1.8432MHz. The IRQ pin of SCISIS752...
View ArticleCan we git clone the redhat kernel source code and see the changes made by them?
I read in an article that the redhat takes the kernel from kernel.org for their releases and make some changes according to their requirement in that kernel and then they embeds that kernel in their...
View ArticleCompatibility between Kubernetes and Linux
What do I need to run / install kubernetes on a node (I refer to linux-kernel level)?, if I have a custom linux distribution with docker installed (from source), can I run k8s on it, or it needs...
View Articleerror: passing argument 1 of ‘kthread_create_on_node’ from incompatible...
I am trying to develop a kernel module which has to execute a thread.I am facing an error while compiling the module.This is the module:#include <linux/module.h> #include <linux/kernel.h>...
View Articlegdb can't resolve symbols for linux kernel
I have setup Linux Kernel debug environment with VMware Workstation. But When I tried to connect with gdb that connects correctly but I can't set any breakpoint or examine any kernel symbol.Target...
View ArticleMainline linux kernel support for beagle bone black
Do we have support for beagle bone black in mainline linux kernel?I see the support added for raspberry pi, there is a configuration for it in arch/arm/configs folder.Do we have any configuration which...
View ArticleWhat is the difference between DMA and IOMMU?
What is DMA and IOMMU ? How DMA and IOMMU used ? What if architecture does not support IOMMU ?How to use DMA without IOMMU ?
View ArticleHow can I attached a BPF program to a kernel function via a kprobe?
The Cilium BPF and XDP Reference Guide describes how you can load a BPF program to a netdevice via the ip and tc commands. How would I attach a BPF program to a kernel function/userspace function in...
View ArticleYOCTO Change kernel version and select drivers
I am trying to compile a new Linux kernel obtained from https://github.com/qoriq-open-source/linux (version 4.9) for T1042D4RDB-64B embedded board using Yocto. It's currently using 4.1.35-rt41.I...
View ArticleLinux driver - test ERESTARTSYS situation
I have my driver, which needs to send something to the application (with pthreads) when the interrupt line is triggered. What I see is that VERY VERY(!!!) rare I catch an interrupt (line not...
View ArticleHow can I change the size of dmesg ? [linux 2.4]
I'm writing some code with printk [i'm printing while in kernel mode] , but because dmesg is too small I'm losing the first few printk's.How can I increase the size of dmesg ?thanks in advance for the...
View ArticleLinux Kernel Threads : How to pass the Linux module write function as the...
I am developing Linux kernel module that communicate with user space program. This module waits for a message which is being sent from user space in order to print it in kernel mode.This is the module...
View Articlewhat is the advantage about mips uasm code
In the kernel’s TLB processing part of the mips architecture, there are some uasm code, which is another way to generate assembly instead of using gcc.I don’t know why not write inline assembly instead...
View ArticleMemory Mapping in Linux Kernel - use of vamlloc() and kmalloc()
Considering a 32bit x86 Linux system with 4 GB of RAM memory, So as described in books as well as on many forums that the Memory mapping would be as follows:Kernel logical address - upto 896 MB - Which...
View ArticleHow to call a function with its arguments from another function?
I am developing Linux Kernel Module. I want to call the module exer_write function :exer_write(struct file *pfile, const char __user *buffer, size_t length, loff_t *offset) from another function named...
View Articlecan't call VMXON on more than 1 processor
I'm trying to build my own hypervisor for Linux (5.0.x kernel) on an Intel chip and I'm running into an odd problem. Whenever I try to execute VMXON on more than one processor, it fails. I made sure...
View ArticleFinding original MAC address from Hardware itself
Os:REDHAT LINUX Linux manage: 2.6.18.8-1 #Is this possible to read MAC address form NIC directly ? I have below code but it just read from above layer but not the card itself !!!I'm trying to figure...
View ArticleLinux Kernel tcp flow tcp_validate_incoming and RFC793
RFC 793, page 69 state that:first check sequence number SYN-RECEIVED STATE ESTABLISHED STATE FIN-WAIT-1 STATE FIN-WAIT-2 STATE CLOSE-WAIT STATE CLOSING STATE LAST-ACK STATE TIME-WAIT STATE Segments are...
View Articlehow to run perl in kbuild makefile
I'm trying to add new feature to the current build. to compile, I've add obj-y += mynewfeature.c into the makefile in the same directory. But i still need to generate a header file using a perl script...
View ArticleKernel config required to build XEN DomU Linux kernel not found
I am trying build a XEN DomU Linux Kernel. I am using Mainline Kernel 5.4.0-rc3 source. Target hardware is Pine64+ board featuring arm-cortex-a53 processor. I am cross compiling using...
View Article