ts-7000
[Top] [All Lists]

[ts-7000] Re: writting interrupt request routine

To:
Subject: [ts-7000] Re: writting interrupt request routine
From: "charliem_1216" <>
Date: Thu, 20 Aug 2009 14:44:13 -0000
--- 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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU