ocp:P8_12_pinmux was not found
See original GitHub issueThis is issue was reported on the Adafruit forums: Re: RE: Running Some Software and Making My BBB Go/Seth
This error occurred:
ocp:P8_12_pinmux was not found under /sys/devices/platform/ocp
I’ve been able to reproduce this error with the test code in the bonescript README:
root@beaglebone:~# cat bonescript-test.js
var b = require('bonescript');
b.pinMode('P8_12', b.INPUT);
b.pinMode('P8_13', b.OUTPUT);
setInterval(copyInputToOutput, 100);
function copyInputToOutput() {
b.digitalRead('P8_12', writeToOutput);
function writeToOutput(x) {
b.digitalWrite('P8_13', x.value);
}
}
Error:
root@beaglebone:~# node ./bonescript-test.js
/root/node_modules/bonescript/src/hw_mainline.js:84
if(!pinmux) { throw p + " was not found under " + my.is_ocp(); }
^
ocp:P8_12_pinmux was not found under /sys/devices/platform/ocp
My BeagleBone is running:
root@beaglebone:~# uname -a
Linux beaglebone 4.4.21-bone13 #1 Fri Sep 16 07:34:28 UTC 2016 armv7l GNU/Linux
root@beaglebone:~# cat /etc/debian_version
8.6
root@beaglebone:~# cat /etc/dogtag
BeagleBoard.org Debian Image 2016-08-14
root@beaglebone:~# node --version
v0.12.16
root@beaglebone:~# node -pe "require('bonescript').getPlatform().bonescript"
0.5.0
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,BB-SPIDEV1
5: P-O-L- 1 Override Board Name,00A0,Override Manuf,am33xx_pwm
root@beaglebone:~# cat /boot/uEnv.txt |grep -v ^# |grep -v '^$'
uname_r=4.4.21-bone13
cmdline=coherent_pool=1M quiet fbcon=map:10
cape_enable=bone_capemgr.enable_partno=BB-SPIDEV1
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
OCPP 2.0.1, Protocols, Home - Open Charge Alliance
OCPP 2.0.1 incorporates improvements for things found in the first implementations of OCPP 2.0 during ... No new functionality is added in this...
Read more >Open Charge Point Protocol 1.6
The phrase “valid reasons in particular circumstances” relating to the usage of the terms “SHOULD”,. “SHOULD NOT”, “RECOMMENDED”, and “NOT RECOMMENDED” is ...
Read more >Understanding OCPP - ChargePoint
+ Because a certification process does not yet exist any claim of interoperability is meaningless until a particular station is tested with a...
Read more >What is OCPP? - ChargeLab
OCPP is the shared language spoken between open EV chargers and charging station management systems (CSMS). Not all EV chargers and management softwares ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I also faced this issue. For a little workaround, you need to manually load device tree overlay by using following command on BeagleBone’s shell.
Since I’m using BB Green Wireless, my workaround is as followed.
Hope this help
Guessing that this pin doesn’t have a pinmux helper loaded. I’ll try to check tomorrow, if not then, later next week.