beagleboard / bonescript

Scripting tools for the BeagleBoard and BeagleBone
http://beagleboard.org
MIT License
32 stars 9 forks source link

Failed to find devicetree fragment bspwm #22

Open jadonk opened 6 years ago

jadonk commented 6 years ago

From @coreindustries on March 22, 2014 20:42

Hi.

Thanks for working on bonescript. It's a great asset.

I'm running a BeagleBone black, with Ubuntu 13.10 from https://rcn-ee.net/deb/rootfs/saucy/ubuntu-13.10-console-armhf-2014-02-16.tar.xz

root: uname -a
Linux arm 3.8.13-bone41 #1 SMP Sat Mar 1 04:45:31 UTC 2014 armv7l armv7l armv7l GNU/Linux

And getting the following error when I try to use PWM:

error: Failed to find devicetree fragment: bspwm_P9_14_e

info: 0: 54:PF--- 1: 55:PF--- 2: 56:PF--- 3: 57:PF--- 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI 7: ff:P-O-L Override Board Name,00A0,Override Manuf,bspm_P9_14_f 8: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm

Copied from original issue: jadonk/bonescript#78

jadonk commented 6 years ago

Can you share your test script?

jadonk commented 6 years ago

From @GeorgeHahn on April 8, 2014 9:10

Also having this issue. Script is blinkled.js from /cloud9/demo

Linux beaglebone 3.8.13-bone43 #1 SMP Wed Mar 26 14:21:39 UTC 2014 armv7l GNU/Linux

I am on Node v0.10.25 and Bonescript 0.2.4

Script is

var b = require('bonescript');

var ledPin = "P9_14";
var ledPin2 = "USR3";

b.pinMode(ledPin, b.OUTPUT);
b.pinMode(ledPin2, b.OUTPUT);

var state = b.LOW;
b.digitalWrite(ledPin, state);
b.digitalWrite(ledPin2, state);

setInterval(toggle, 250);

function toggle() {
    if(state == b.LOW) state = b.HIGH;
    else state = b.LOW;
    b.digitalWrite(ledPin, state);
    b.digitalWrite(ledPin2, state);
}

Complete error is:

error: Failed to find devicetree fragment: bspm_P9_14_f
info:  0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI

Let me know what I can do to help!

jadonk commented 6 years ago

From @GeorgeHahn on April 8, 2014 9:23

Reinstalled Bonescript with install -g bonescript and it works fine now.

Sorry to bother you!

jadonk commented 6 years ago

From @wtfleming on May 30, 2014 2:1

Periodically happens to me as well trying to blink an LED, but if I rerun the script usually works. Haven't been able to consistently reproduce.

Root, BeagleBone Black Rev C, Debian 2014-05-14 
Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l GNU/Linux

I am on Node v0.10.25 and Bonescript 0.2.4

error: Failed to find devicetree fragment: bspm_P8_13_f
info:  0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI

Other thing is that my script is written in clojurescript, but since it gets compiled to javascript prior to being run and it usually works without error, I don't think that would be causing this.

jadonk commented 6 years ago

From @adityapatadia on May 30, 2014 3:30

Don't use bone script 0.2.4 Lot of bugs there. You can use http://octalbonejs.com

jadonk commented 6 years ago

From @jwalton on October 5, 2014 2:1

I was seeing this today, too, on node v0.10.32.

jadonk commented 6 years ago

From @JohnRoach on October 5, 2014 22:19

I would also like to inform you that I have also come across this problem. Reinstalled bonescript globally and started working again. Can this be a unsafe shutdown problem(I simply pilled plug of beagleboneblack instead of shutdown -a now)? Because that is how I was able to repeat it that way on another device.