--- In Andres Gomez <> wrote:
>
> Thanks for your response. But I can't install NetBSD 4.0 in my
TS-7200, only 3.X releases, I don't know why is it, but I think
because I have got 8 MB Flash and not 16 MB, perhaps is it.
> But I need a simple program to read TMP124 sensor on NetBSD 3.1 and
not found a possible solution for this moment. Please, help me.
> Thanks.
>
Andres,
If you can't run NetBSD 4.0, and you don't want to back-port the
changes to NetBSD 3.1, the only remaining option would be user-space
access to the sensor.
Earlier I gave you a pointer to the linux user-space program that
would read the temperature for you. Perhaps you should pursue getting
that to compile & run? Between the info on the sensor data sheet, the
linux user-space code example, and the netBSD 4.0 kernel code driver
example, you should have enough info to write a netBSD user space program.
Regards, ........ Charlie
> --- El jue 6-nov-08, ali <> escribió:
> De: ali <>
> Asunto: Re: [ts-7000] Help me to write a C code for read
temperarutere on TS-7200 (NetBSD 3.1)
> Para:
> Fecha: jueves, 6 de noviembre de 2008, 12:28 pm
>
>
> On Wed, 5 Nov 2008, Andres Gomez wrote:
>
>
> > Date: Wed, 5 Nov 2008 08:39:03 -0800 (PST)
>
> > From: Andres Gomez <andres.gomez08@ yahoo.com. ar>
>
> > Reply-To: .com
>
> > To: .com
>
> > 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! Cocina
> Recetas prácticas y comida saludable
> http://ar.mujer.yahoo.com/cocina/
>
------------------------------------
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/
|