Hi all -
When I try to add a switch named "1" on GPIO8_12, the webpage tells me:
Could not add switch 1: GPIO8_12
Anyone getting something similar? What am I doing wrong?
Thanks-
___
(BBB running Ubuntu w/ 3.8kernel)
____
Code:
Mar 28, 2015 10:21:29 PM com.sb.elsinore.LaunchControl addSwitch
WARNING: Could not add switch: Permission denied to GPIO file: /sys/ class/gpio/gpio268/direction (No such file or directory)
java.lang.RuntimeException: Permission denied to GPIO file: /sys/cla ss/gpio/gpio268/direction (No such file or directory)
at jGPIO.GPIO.writeFile(GPIO.java:172)
at jGPIO.GPIO.<init>(GPIO.java:111)
at jGPIO.OutPin.<init>(OutPin.java:16)
at com.sb.elsinore.Switch.<init>(Switch.java:54)
at com.sb.elsinore.LaunchControl.addSwitch(LaunchControl.jav a:1018)
at com.sb.elsinore.UrlEndpoints.addSwitch(UrlEndpoints.java: 634)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho d)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA ccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin gMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sb.elsinore.BrewServer.serve(BrewServer.java:306)
at com.sb.elsinore.NanoHTTPD$HTTPSession.execute(NanoHTTPD.j ava:920)
at com.sb.elsinore.NanoHTTPD$1$1.run(NanoHTTPD.java:192)
at java.lang.Thread.run(Thread.java:745)
Also, I have this in sys/devices/capemgr.9/slots
0: 54
F---
1: 55
F---
2: 56
F---
3: 57
F---
4: ff
-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff
-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
7: ff
-O-L Override Board Name,00A0,Override Manuf,w1
8: ff
-O-L Override Board Name,00A0,Override Manuf,jgpio
One last thing, possibly related:
when I try to do:
sudo echo jgpio > /sys/devices/bone_capemgr.9/slots
bash: /sys/devices/bone_capemgr.9/slots: Permission denied