Did not work for me.

I attached the terminal dumps.
ssh into BBBW apply commands try python and sudo python failed both times 
is first file.
Power down reboot and try again is second file.

Tom


On Thursday, August 31, 2017 at 10:28:57 PM UTC-4, Drew Fustini wrote:
>
> Thanks, Peter. After running those commands, I  was able to write to 
> slots file as user debian. 
>
> On Thu, Aug 31, 2017 at 6:56 AM, Peter Lawler <[email protected] 
> <javascript:>> wrote: 
> > 
> > 
> > On Thursday, 31 August 2017 12:58:16 UTC+10, Drew Fustini wrote: 
> >> 
> >> This person noticed that Adafruit_BBIO doesn't work when not root: 
> >> https://forums.adafruit.com/viewtopic.php?f=49&t=105847#p606973 
> >> 
> >> Issue seems to be: 
> >> open("/sys/devices/platform/bone_capemgr/slots", O_RDWR|O_LARGEFILE) = 
> -1 
> >> EACCES (Permission denied) 
> >> 
> >> Do we want to let normal users write to 
> >> /sys/devices/platform/bone_capemgr/slots ? 
> >> . chmod 664 /sys/devices/platform/bone_capemgr/slots 
> > 
> > 
> > 
> > $groupadd --system slots 
> > $usermod --append --groups slots debian 
> > then 
> > $chmod 664 /sys/devices/platform/bone_capemgr/slots 
> > $chgrp slots /sys/devices/platform/bone_capemgr/slots 
> > (though to be honest I have no idea if this would be permanent etc. and 
> > probably not, it would be 'nice') 
> > 
> > 
> > -- 
> > For more options, visit http://beagleboard.org/discuss 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "BeagleBoard" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/beagleboard/6871541d-a420-4cf2-9a62-fa40379df41e%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/76705b81-7149-4712-884a-a0718448f7a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Last login: Fri Sep  1 13:52:01 on ttys000
Thomass-Mac-mini-2:~ TDLMacmini$ ssh [email protected]
[email protected]'s password: 
Linux beaglebone 4.4.83-ti-r119 #1 SMP Thu Aug 17 06:39:24 UTC 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Sep  1 17:52:17 2017 from 192.168.0.15
debian@beaglebone:~$ uname -a
Linux beaglebone 4.4.83-ti-r119 #1 SMP Thu Aug 17 06:39:24 UTC 2017 armv7l 
GNU/Linux
debian@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org Debian Image 2017-08-24
debian@beaglebone:~$ # Reboot after applying the following file write fix
debian@beaglebone:~$ # sudo groupadd --system slots
debian@beaglebone:~$ # sudo usermod --append --groups slots debian
debian@beaglebone:~$ # sudo chmod 664 /sys/devices/platform/bone_capemgr/slots
debian@beaglebone:~$ # sudo chgrp slots 
/sys/devices/platform/bone_capemgr/slotsdebian@beaglebone:~$ 
debian@beaglebone:~$ python 
Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Adafruit_BBIO.ADC as ADC
>>> ADC.setup()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Unable to setup ADC system. Possible causes are: 
  - A cape with a conflicting pin mapping is loaded 
  - A device tree object is loaded that uses the same name for a fragment: 
helper
>>> quit()
debian@beaglebone:~$ # Try sudo
debian@beaglebone:~$ 
debian@beaglebone:~$ sudo python
[sudo] password for debian: 
Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Adafruit_BBIO.ADC as ADC
>>> ADC.setup()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Unable to setup ADC system. Possible causes are: 
  - A cape with a conflicting pin mapping is loaded 
  - A device tree object is loaded that uses the same name for a fragment: 
helper
>>> quit()
debian@beaglebone:~$ 
Last login: Fri Sep  1 11:19:53 on console
Thomass-Mac-mini-2:~ TDLMacmini$ ssh [email protected]
[email protected]'s password: 
Linux beaglebone 4.4.83-ti-r119 #1 SMP Thu Aug 17 06:39:24 UTC 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Aug 30 18:00:10 2017 from 192.168.0.15
debian@beaglebone:~$ uname -a
Linux beaglebone 4.4.83-ti-r119 #1 SMP Thu Aug 17 06:39:24 UTC 2017 armv7l 
GNU/Linux
debian@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org Debian Image 2017-08-24
debian@beaglebone:~$ sudo groupadd --system slots
[sudo] password for debian: 
debian@beaglebone:~$ sudo usermod --append --groups slots debian
debian@beaglebone:~$ sudo chmod 664 /sys/devices/platform/bone_capemgr/slots
debian@beaglebone:~$ sudo chgrp slots /sys/devices/platform/bone_capemgr/slots
debian@beaglebone:~$ python
Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Adafruit_BBIO.ADC as ADC
>>> ADC.setup()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Unable to setup ADC system. Possible causes are: 
  - A cape with a conflicting pin mapping is loaded 
  - A device tree object is loaded that uses the same name for a fragment: 
helper
>>> quit()
debian@beaglebone:~$ sudo python
Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Adafruit_BBIO.ADC as ADC
>>> ADC.setup()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Unable to setup ADC system. Possible causes are: 
  - A cape with a conflicting pin mapping is loaded 
  - A device tree object is loaded that uses the same name for a fragment: 
helper
>>> quit()
debian@beaglebone:~$ 

Reply via email to