Skip to content

Tag: kernel

How to disable cache memory in kernel modules

I’am currently trying to develop a Linux driver to use a custom module developed in FPGA. For that, I use a Xilinx Zynq SoC with a Linux distribution that runs on the 2 ARM cores and my VHDL modules are implemented on the FPGA part, but this is not really important to understand my problem. My FPGA modu…

Linux input driver not working properly

I have written a small linux input driver which reads the state of a gpio. The driver registers OK and also the interrupt gets fired, however the events are not always displayed. Driver runs on Beagleboneblack with Android and kernel version 3.8.13 To test it I do either: cat /dev/input/event2 Or run an user …

modify the kernel version information in the menuconfig

I downloaded the kernel source and by typing the following command I can see the linux kernel version is 3.02.02 for example. However, due to some reasons, I have to change it to say… 3.01.01-12-generic I found the appending option in the menuconfig but this does not meet my need. Please let me know if …

sys_ functions in syscalls.h are undefined

I’m just making a kernel module. And I meet this warnings: How can I fix this problem? This is my codes: And my workspace is Ubuntu 3.13.0-66-generic. I need to use file descriptor. So, I can’t use filp_ functions(like filp_open). Edit1: My Makefile: obj-m += NAME.o Answer Calling system calls(sys…