I'm trying to write a Linux kernel module, but I'm stuck just writing some stub code.
I'm trying to build a simple kernel module on Android JellyBean.
I am facing a problem while building a kernel module.
file1.c:
Quote:
#include <linux/kernel.h>
#include <linux/module.h>
#include "sam.h"
int __init sam_init(void)
{
printk(KERN_INFO "Hello, world - this is the kernel speaking\n");
return 0;
}
module_init(sam_init);
file2.c
Quote:
#include <linux/ke
Hello.
Please, show me a correct Makefile for compiling a kernel module which consist of two *.c files.
My .c files:
module.c:
//*******************************************
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
Hi, I have a problem with loading the powersaving kernel module p4-clockmod.ko. When I try inserting the module (via modprobe or insmod) I get
FATAL: Error inserting p4_clockmod (/lib/modules/2.6.31.8-mediaserver/extra/p4-clockmod.ko): Invalid module format
The module has been compiled together with the kernel. Other modules load with no problem at all.
my os is centos
kernel is 2.6.18-92.1.17.el5xen.
fuse version is fuse-2.7.4
I compiled it like this:
./configure --enable-kernel-module --with-kernel=/usr/src/linux
make && make install
then "modprobe fuse",but it warned like this:
FATAL: Error inserting fuse (/lib/modules/2.6.18-92.1.17.el5xen/kernel/fs/fuse/fuse.ko): Operation not permitted
but I did it as root.
an
Hello All,
To understand DMA, I tried to implement sample dma module in x86 machine on (SUSE ).
I make my first steps in the Kernel Module programming.
My first Test File was like in any other language -> A simple "Hello World" with printk().
I have tried install drivers of Ati ,9.10 and 9.11 always same result black screen, i think problem is information on installation system is on glibc 2.1 but, I have tested and glibc 2.3 and 2.2 are installed, for that the result is :
Unloading radeon module...
Unloading drm module...
[Message] Kernel Module : Trying to install a precompiled kernel module.