Re: [RDD] GPIO Permissions

2015-10-14 Thread Wayne Merricks
I wrote this for Debian 6 as a source install a few years ago but it 
still applies:


http://rivendell.tryphon.org/wiki/Debian_6_GPIO_MC_PCIDIO24

On 2015-10-14 18:51, Cowboy wrote:

On Wednesday 14 October 2015 01:33:42 pm Michael Barnes wrote:

I check /dev/gpio0 and find the permissions only for root.


 By "only for root" I suspect you mean owner only, and it's owned by 
root ?


 Or do you mean owner and group root ?

 I suspect a udev rule, or something along those lines.


___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] GPIO Permissions

2015-10-14 Thread Michael Barnes
A chown command in the rc.local file worked.  Thanks for your help.

Michael

On Wed, Oct 14, 2015 at 12:41 PM, Brian P. McGlynn  wrote:

> Michael,
>
> Put a command in /etc/rc.local that chown's and it will work each time on
> reboot.
>
> Brian
>
> --
> Brian P. McGlynn
> Sent from my iPhone
>
> > On Oct 14, 2015, at 13:33, Michael Barnes  wrote:
> >
> > Setting up a new Rivendell box that has a Measurement Computing PCI
> DIO-24 card installed.  When I fire it up, I find that it doesn't read
> contact closures.  Using gpitest I get a popup box that says "Can't open
> GPIO device." I check /dev/gpio0 and find the permissions only for root.  I
> chmod it to 777 and everything works fine.  However, on rebooting the
> machine, the permissions reset and the relay contacts don't work again.
> >
> > How do I permanently change the permissions so they stay in place after
> a reboot?
> >
> > This is a CentOS 6 Appliance install.
> >
> > Thanks for your ideas.
> >
> > Michael
> >
> > ___
> > Rivendell-dev mailing list
> > Rivendell-dev@lists.rivendellaudio.org
> > http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
>
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] GPIO Permissions

2015-10-14 Thread Cowboy
On Wednesday 14 October 2015 01:33:42 pm Michael Barnes wrote:
> I check /dev/gpio0 and find the permissions only for root.

 By "only for root" I suspect you mean owner only, and it's owned by root ?

 Or do you mean owner and group root ?

 I suspect a udev rule, or something along those lines.

-- 
Cowboy
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] GPIO Permissions

2015-10-14 Thread Brian P. McGlynn
Michael,

Put a command in /etc/rc.local that chown's and it will work each time on 
reboot.  

Brian

--
Brian P. McGlynn
Sent from my iPhone

> On Oct 14, 2015, at 13:33, Michael Barnes  wrote:
> 
> Setting up a new Rivendell box that has a Measurement Computing PCI DIO-24 
> card installed.  When I fire it up, I find that it doesn't read contact 
> closures.  Using gpitest I get a popup box that says "Can't open GPIO 
> device." I check /dev/gpio0 and find the permissions only for root.  I chmod 
> it to 777 and everything works fine.  However, on rebooting the machine, the 
> permissions reset and the relay contacts don't work again.
> 
> How do I permanently change the permissions so they stay in place after a 
> reboot?
> 
> This is a CentOS 6 Appliance install.
> 
> Thanks for your ideas.
> 
> Michael
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] GPIO Permissions

2015-10-14 Thread Michael Barnes
Setting up a new Rivendell box that has a Measurement Computing PCI DIO-24
card installed.  When I fire it up, I find that it doesn't read contact
closures.  Using gpitest I get a popup box that says "Can't open GPIO
device." I check /dev/gpio0 and find the permissions only for root.  I
chmod it to 777 and everything works fine.  However, on rebooting the
machine, the permissions reset and the relay contacts don't work again.

How do I permanently change the permissions so they stay in place after a
reboot?

This is a CentOS 6 Appliance install.

Thanks for your ideas.

Michael
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev