ts-7000
[Top] [All Lists]

Re: [ts-7000] Help me to write a C code for read temperarutere on TS-720

To:
Subject: Re: [ts-7000] Help me to write a C code for read temperarutere on TS-7200 (NetBSD 3.1)
From: ali <>
Date: Thu, 6 Nov 2008 13:28:20 +0100 (CET)
On Wed, 5 Nov 2008, Andres Gomez wrote:

> Date: Wed, 5 Nov 2008 08:39:03 -0800 (PST)
> From: Andres Gomez <>
> Reply-To: 
> To: 
> Subject: [ts-7000] Help me to write a C code for read temperarutere on TS-7200
>      (NetBSD 3.1)
>
> I'm trying to write my own TMP124 (temperature reader) for NetBSD 3.1 on
> TS-7200. As Jesse off no respond my messages about this question and
> anyone helps me and I don't know how to read the temperature on TS-7200
> with NetBSD 3.1 I'm writting a code to read it, based on Jesse Off's
> file: tspld.c. This script run on NetBSD 4.0 (NOT IN 3.X releases). This
> is the original script:

  Your program cannot possibly work -- the code you have tried to modify
is the NetBSD kernel device driver for the CPLD used to implement various
functions on the TS72XX boards, and no part of the kernel is accessible to
user programs.

  Support for the temperature sensor appeared in v1.9 of tspld.c, see:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/evbarm/tsarm/tspld.c?rev=1.9&content-type=text/x-cvsweb-markup&only_with_tag=MAIN

  I don't know how difficult it would be to backport that file to 3.x and
teach sysctl about the new nodes -- I suspect it might Just Work(tm) if
you backport the file, as it creates the necessary sysctl nodes at attach
time.

  An easier solution is to simply run a recent version of NetBSD instead.
I run NetBSD-current on my TS7250 board with great success, netbooting it
from my desktop machine with the filesystem on NFS. Cross-building NetBSD
from any supported architecture to any other is fully supported out of the
box, and *exactly* the same procedure as a native build -- so it really is
a no-brainer to rebuild your own distribution from source.

/ali:)


------------------------------------

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