hi I'm working on linux device drivers 3 book .
i got scull driver from http://examples.oreilly.com/linuxdrive3/ it needs linux-2.6.10 , but i've gentoo with linux-2.6.22.9 ( and gcc version 4.1.1 ) so i used 2.6.10 header files to compile scull like this : ( modified Makefile's scull ) : KERNELDIR ?= /lib/modules/2.6.10/build source compiled with no error but when try to load module get this error : tux scull # bash scull_load insmod: error inserting './scull.ko': -1 Invalid module format and kernel log message is : <3>scull: version magic '2.6.10 SMP preempt 686 gcc-4.1' should be '2.6.22.9SMP preempt mod_unload CORE2 ' BTW : i've thinkpad t60 with Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz and some of my config kernel is : CONFIG_SMP=y CONFIG_MCORE2=y thanks for your attentions ... -- Nothing but perfection http://iman.darabi.googlepages.com/
