Help building module for 2.6.0
ok im trying to build a kernel module (my first :) ) when i build it on a 2.4 box everything is fine when i build it on my laptop running 2.6.0-t10 it builds fine but when i try and insmod it i get
sh$ insmod ./hgn.o
insmod: error inserting './hgn.o': -1 Invalid module format
I have attached my Makefile. Please could some one tell me if this is due to the way i compile the module (my guess) or if it is likly caused by my code. Any pointers would be welcome.
Thnx for any help
Tim Kelsey
p.s. I know this is kind of like walking into a filharmonic auchestra with a waveing a tin drum :P so if there is a more apropriate place to post this kind of question pls let me know.
Quoted 5 lines · On Wed, 26 Nov 2003 23:05:50 +0000 Tim Kelsey <[email protected]> wrote:
ok im trying to build a kernel module (my first :) ) when i build it on a 2.4 box everything is fine when i build it on my laptop running 2.6.0-t10 it builds fine but when i try and insmod it i get
sh$ insmod ./hgn.o
insmod: error inserting './hgn.o': -1 Invalid module format
Quoted 7 lines
I have attached my
Makefile. Please could some one tell me if this is due to the way i compile the module (my guess) or if it is likly caused by my code. Any pointers would be welcome.Thnx for any help
Tim Kelseyp.s. I know this is kind of like walking into a filharmonic auchestra with a waveing a tin drum :P so if there is a more apropriate place to post this kind of question pls let me know.
*blush* this time i even included the make file, *goes to find much needed coffee* (sorry about poor spelling)
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 2 lines · El Wed, 26 Nov 2003 23:14:39 +0000 Tim Kelsey <[email protected]>…
*blush* this time i even included the make file, *goes to find much needed coffee* (sorry about poor spelling)
No, you didn't ;)
Check http://lwn.net/Articles/driver-porting/
Quoted 7 lines · On Thu, 27 Nov 2003 00:20:04 +0100 Diego Calleja García <[email protected]>…
Quoted 2 lines · El Wed, 26 Nov 2003 23:14:39 +0000 Tim Kelsey <[email protected]>…
*blush* this time i even included the make file, *goes to find much needed coffee* (sorry about poor spelling)
No, you didn't ;)
Check http://lwn.net/Articles/driver-porting/
duh, realy managed to shoot my self in the foot with that one :( thnx for the link, just what i was looking for :)