Topic: Compiling kernel module for kernel 2.6.29 (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 05-27-2009 21:00
Sorry if this is in the wrong forum. Feel free to move. code: int init_module(void) { printk(KERN_INFO "Hello world 1.\n"); return 0; } void cleanup_module(void) { printk(KERN_INFO "Goodbye world 1.\n"); }
code: obj-m += hello-1.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 05-28-2009 05:07
No idea- never wrote anything in the kernel. I compiled the old broadcom wifi drivers, but that was ages ago.. |
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 05-28-2009 08:17
I am not trying to achieve anything. Only playing around, but not very succesfull. |