Drew
I did try sudo, I posted the terminal output that shows both ways.
I tried adding the fix commands and tried it running python with and without sudo and it failed both ways.
Following is the terminal dump of applying the fixes and trying it out
Code: Select all
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:~$
Following is the terminal dump of trying it after powering down and rebooting
Code: Select all
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:~$
Tom