Re: compiling module

2009-01-08 Thread Tzafrir Cohen
On Thu, Jan 08, 2009 at 08:58:20AM +0100, Abdelkader Belahcene wrote: > Hi, > I have problem to compile a small module example here is hello.c > > #include > #include > > int init_module(){ > printk(KERN_DEBUG "Hello Kernel"); > return 0; > } > void cleanup_module(){ > printk(KERN_DEBUG "Good B

compiling module

2009-01-08 Thread Abdelkader Belahcene
Hi, I have problem to compile a small module example here is hello.c #include #include int init_module(){ printk(KERN_DEBUG "Hello Kernel"); return 0; } void cleanup_module(){ printk(KERN_DEBUG "Good Bye Kernel"); } I compile it with the command gcc -D__KERNEL__ -I/usr/src/linux/include/ -DMOD

trouble compiling module

2001-01-21 Thread Chris Stalker-Herron
Hello, My ultimate goal is to get my Netgear FA311 card running on 2.2r2. I have found some information on downloading and compiling a couple of modules (pci-scan and natsemi) which other posts indicate should work. I've been able to get these to compile, but when I try insmod on pci-scan, I get