ts-7000
[Top] [All Lists]

[ts-7000] Notes for building kernel driver

To:
Subject: [ts-7000] Notes for building kernel driver
From: Andy Gryc <>
Date: Tue, 03 May 2005 18:45:06 -0400
If you're a Linux kernel hacker, please don't read the rest of this 
email (or at least don't laugh out loud :-)

This is just a note to save anyone else time who's is building drivers 
for the TS-7250.  The sys-include directory from the crosstools 
distribution (i.e. everything beneath /usr/local/opt/crosstool) is 
actually from *2.6* (or at least post 2.4).  The include directory 
inside the linux24_ts8 zip is what you should use, since the kernel 
running on the board is 2.4.  USE THE FILES WITH THE KERNEL 
DISTRIBUTION, NOT CROSSTOOLS.  Although many things will actually work 
if you include the crosstool files, I can guarantee that lots won't!

Specficially, my symptoms (in case anyone else googles for them):
* Failure of "open" and "release" methods to be called.  (Reason: 
relocation of struct fields.)
* Crash (kernel oops) when calling signal_pending(current).  (Reason: 
apparently moving the task field in the thread_info struct.)
* Failure of some 2.4 macros to compile.
* Failure of some 2.6 macros to resolve references during insmod.

When I started, I didn't realize just how different 2.4 and 2.6 kernels 
were, so it took me quite a while to figure out.  Of course, *now* it 
all makes perfect sense.  Sigh.

--Andy Gryc


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> 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