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