ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Re: Help me to write a C code for read temperarutere on TS-7200 (NetBSD 3.1)
From: Andres Gomez <>
Date: Fri, 7 Nov 2008 09:47:23 -0800 (PST)
yes, Charlie, this is the point, but when I try to set securelevel in -1 or 0 it shows this message:
# sysctl -w kern.securelevel=-1
sysctl: kern.securelevel: sysctl() failed with Operation not permitted
At moment, my securelevel is 1, I read that I init from single-user mode the securelevel is 0...I'll try to run my temp sensor script (which write /dev/mem). The kernel compiled in the official NetBSD FTP for 3.1 release has compiled with OPTION INSECURE (without adding `option INSECURE' in the kernel configuration file) and I don't know how to decrease this level to -1 or 0.

Other options perphaps is call to my script on /etc/rc file at start process before change de securelevel from 0 to 1.
What do you say Charlie?
 

--- El jue 6-nov-08, charliem_1216 <> escribiÃ:
De: charliem_1216 <>
Asunto: [ts-7000] Re: Help me to write a C code for read temperarutere on TS-7200 (NetBSD 3.1)
Para:
Fecha: jueves, 6 de noviembre de 2008, 5:26 pm

--- In .com, Andres Gomez <andres.gomez08@ ...> wrote:
>
> It isn't so simple, Charlie. The Linux code tempSensor.c don't run
on NetBSD, I tried it. I reed the Datasheet

Andres,

What is the error when you run the linux tempSensor code? Have you
traced it?

Note that to be able to open /dev/mem you probably must change the
netBSD secure level, as described here:
http://wiki. netbsd.se/ Kernel_secure_ levels

Once you can open /dev/mem and mmap it as needed, I don't see why the
linux userspace approach won't work.

Regards, ......... Charlie




Yahoo! Cocina
Recetas prÃcticas y comida saludable
Visità http://ar.mujer.yahoo.com/cocina/ __._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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