--- In "moonlightshard" <> wrote:
>
> --- In Jim Jackson <jj@> wrote:
> >
> >
> > [don't top post]
>
> Ok
>
> > Are you trying to write an IRQ handler in userspace?
> > If so, give up straight away. You handle IRQ in the kernel. Phil did it in
> > a kernel module which is inserted into the kernel and runs in kernel
> > "space".
>
> Yes, I suppose we were. We have given it up.
>
> > Try just commenting the include out and try recompiling. I've checked my
> > source and it's commented out.
>
> Thanks, we commented the include out and we were able to generate adc.o.
> However, when we use /sbin/insmod command, it complains about a mismatch in
> kernel version:
>
> Using /root/adc.o
> insmod: kernel-module version mismatch
> /root/adc.o was compiled for kernel version 2.4.26
> while this kernel is version 2.4.26-ts11.
>
> We downloaded the kernel source for version 2.4.26-ts11 and used it to
> compile, but it's still giving us this error.
If the error is exactly the same, then you did not properly point to the -ts11
kernel source when (re)-compiling adc.o. Make sure you are inserting the new
module you just compiled, not the old one.
>
> Any suggestions?
>
Yes, take a look at:
http://lwn.net/Kernel/LDD2/
It helps a great deal when learning to develop linux kernel device drivers.
There is a newer one (LDD3) that is for 2.6 kernels; LDD2 is for 2.4 kernels.
> Thanks
>
regards, ......... Charlie
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|