--- In Andres Gomez <>
wrote:
>
> 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
Yes, I understand that only the init process can *reduce*
securelevel
> 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.
Single user mode should be 0 as you said, so you can at least test
the usermode linux-style program there.
Being curious, I just downloaded netBSD 3.1.1 (i386), and brought it
up. By default, my securelevel is -1 already in multiuser mode.
Sounds like ARM is different. You can add "securelevel=-1"
to /etc/rc.config, if you want to boot that way and the kernel
allows it. You may have to rebuild the kernel to allow it though.
Also, look at the kernel.mapped_files sysctl value. It will tell
you if your system offers memory mapped files. My i386 test system
shows kernel.mapped_files=1; ARM should be the same.
>
> Other options perphaps is call to my script on /etc/rc file at
start process before change de securelevel from 0 to 1.
Maybe, but that would just tell you the temperature one time, at
boot.
Regards, ......... Charlie
> 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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
____________________________________________________________________________________
> ¡Buscá desde tu celular!
>
> Yahoo! oneSEARCH ahora está en Claro
>
> http://ar.mobile.yahoo.com/onesearch
>
------------------------------------
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/
|