ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: ADC driver for the TS-7250 card

To:
Subject: Re: [ts-7000] Re: ADC driver for the TS-7250 card
From: David Hawkins <>
Date: Wed, 12 Sep 2007 09:16:18 -0700
Hi guys,

> I have wasted a lot of time on crosstools which succeeded in getting 
> me cross but failed to provide the tools. It's not as straightforward 
> as is suggested with certain systems. Particularly upto date systems 
> running c. 2.6.20 kernel and gcc-4.x . The current TS distro is now 
> so old I think the gap in tools is getting too wide for crosstools to 
> deal with. In any case that was my conclusion.

I got some feedback from an earlier post that the gcc-4.x
compiler run on a recent Linux distro with  2.6-based x86 host
was giving all sorts of errors when building modutils (which
is needed to work with kernel modules).

My suggestion was to first:

1. on the x86 host, build the host version of the 'old' tools;

    gcc-3.3.4-glibc-2.3.2.dat using the crosstools
    demo-i686.sh script (edited to select that particular tool)

2. build the ARM version of the tools, using gcc-3.3.4.

    You can override the hosts version of gcc by making sure
    the PATH environment contains the path to 'gcc' that
    exists in the bin folder of the i686 crosstools build
    (the bin folder containing all the tools without the
     unknown-linux-gnu- prefixes).

    use gcc -v, or which gcc, to figure out whether you have
    the PATH setup correctly.

3. build modutils for the host

Basically you need to downgrade the host compiler to the level
of the compiler used at the time of Linux 2.4 kernel development.

If you were getting errors building the ARM version of the
compiler using a gcc 4.x compiler, its probably the same problem.
Try downgrading your host tools, and re-running your test.

I haven't updated my build notes at:

http://www.ovro.caltech.edu/~dwh/ts7300/

as I haven't installed a recent Linux distro with a 4.x compiler.

However, if someone wants to try this and let the group
know the results, I'll update my notes.

Note to the original poster:
The above link has code to access the GPIO registers of
the TS7300. The same /dev/mem code can be used to access
other registers from user-space, i.e., the ADC registers.
So, if you don't want to use interrupts, that is a simply
way to start with. Later you can get into dealing with
drivers; which is also pretty straightforward.

Cheers,
Dave




 
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