question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ocp:P8_12_pinmux was not found

See original GitHub issue

This 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:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
e29qwgcommented, Nov 22, 2016

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.

config-pin overlay cape-universal

Since I’m using BB Green Wireless, my workaround is as followed.

config-pin overlay univ-bbgw

Hope this help

1reaction
jadonkcommented, Nov 11, 2016

Guessing that this pin doesn’t have a pinmux helper loaded. I’ll try to check tomorrow, if not then, later next week.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found