Closed goliatone closed 8 years ago
I haven't heard of this exact issue before with LED, but there have been issues with Hypriot in the past.
Can you do me a favor and see where the path stops existing? I.e. does /sys/class/leds
exist, and does /sys/class/leds/led0
exist?
/sys/class/leds/
is there, but I can't sudo mdkir
a led0 directory.
PS: I also ran into the same issue as #27, the solution provided by Snorlock solved those issues.
I wouldn't expect you to be able to make the directory, the /sys/class/*
files are for configuring hardware, and a directory/file missing is equivalent to a missing entry in /dev
, which means the hardware doesn't exist (as far as the kernel knows). Even if we could create the directory/file, it wouldn't fix the problem.
Is there anything else inside of /sys/class/leds
?
As I was posting about not being able to write to /sys/class/
I was thinking that it actually made sense.
There is nothing inside /sys/class/leds
.
Is it possible for you to switch to switch from Hypriot to Raspbian?
well, I have an application deployed on 10+ RPi 2 all using Hypriot/docker, I'm currently doing the next deployment with 20+ RPi3, with a lot of the deployment infrastructure relying on docker. I think using Raspbian would be possible but not the best scenario.
Hrm...so the fix for this is to rework https://github.com/nebrius/raspi-led/blob/master/index.js so that it detects which OS it's on and use whatever mechanism Hypriot exposes instead of the one Raspian exposes.
Unfortunately I am very swamped at the moment and don't have time to investigate it myself. Is this something you might be interested in looking into?
For now I forked both raspi-io and raspi-led, modified raspi-led to check for led0 and do nothing if it's not available. Seems to work, but now I ran into a different issue. SerialPortBinding cant find dev/ttyAMA0
, which is not present either.
If I figure out what Hypriot exposes I will update this issue.
Thanks!
FYI /dev/ttyAMA0
is hard-coded in raspi-serial and also is based on Raspbian.
Having the same issue while on a Raspi 3 model B running Raspbian Jessie. Looks like /sys/class/leds
is empty for me as well.
me too and I am on rasberian
to clarify @derekrushforth, the directory /sys/class/leds
does exist, but is empty, correct?
@nebrius yep, that's correct.
I just published a new version of raspi-led that adds a guard around file I/O. Let me know if this fixes your issues.
Closing since it should have been fixed. Feel free to reopen if the issue persists
I'm running an application inside docker on a raspberry pi 3, and I get the following error:
I believe this is due to the Hypriot OS image being faulty- still in beta- but I'm wondering if this has been reported before, also curious on how this is being used.