Discussion
Switch off the leds ?
66
75243
|
I cannot compile the BananaLEDd: "BananaLEDd.c:28:19: fatal error: stdio.h: No such file or directory" Google is not my friend on this. Is there anything else I should install than gcc? |
|
|
|
|
|
|
|
hoppy replied at Sun Mar 15, 2015 05:03 
I cannot compile the BananaLEDd: "BananaLEDd.c:28:19: fatal error: stdio.h: No such file or director ...
Ok, I needed build-essential. So far so good, now I cannot figure out what option I should use in Blue=<opts> to switch it off. |
|
|
|
|
|
|
|
hoppy replied at Sun Mar 15, 2015 15:34 
Ok, I needed build-essential. So far so good, now I cannot figure out what option I should use in ...
Sorry for the late reply, I was busy for other things.
Yes, you can disable the blue LED by ether
- comment out (#) the "Blue=" configuration line : no configuration, no bliking
- Put an empty line
|
|
|
|
|
|
|
|
Hi
echo none | sudo tee /sys/class/leds/green\:ph24\:led1/trigger
echo none | sudo tee /sys/class/leds/blue\:pg02\:led2/trigger
works fine with Raspbian on the Banana PRO |
|
|
|
|
|
|
|
Hi All,
I'm using banana pro with lubuntu image installed (Lubuntu_For_BananaPi_v1412.img).
It is possible to trigger Green LED but not Blue:
root@***:# ls -ltr /sys/class/leds/
total 0
lrwxrwxrwx 1 root root 0 янв. 1 2010 green:ph24:led1 -> ../../devices/platform/leds-sunxi/leds/green:ph24:led1
The same is for bpi_ledtest:
root@***:# ./tmp/bpi_ledset eth0 1
phy led enabled
root@***:# uname -r
3.4.103
And it looks like that Blue LED is disabled by default.
Could you please tell if it's possible to enable somehow Blue LED on lubuntu?
I would like to check if it is broken or just disabled.
Thank you in advance!
|
|
|
|
|
|
|
|
Hello,
On BananaPro, the Blue LED is controled by GPIO and not by the Phy : consequently, bpi_ledtest can't help. My BananaLEDd is able to controle both Phy and GPIO Leds.
Anyway, your problem seems the Blue LED seems not exposed in /sys/class/leds/ and it's due to a missing entry in your FEX file, probably because you're using a FEX for the BananaPI, not the BananaPro. |
|
|
|
|
|
|
|
2destroyedlolo,
Thank you! Actually I found the image and didn't know that there is difference between Pi and Pro in software. I'll try to change FEX file first. If it will fail - I'll re-install all the SD card.
|
|
|
|
|
|
|
|
No need to reinstall 
Don't forget you'll have to forget your FEX file to a bin (fex2bin). |
|
|
|
|
|
|
|
Edited by achagaev at Sat Sep 26, 2015 00:23
2destroyedlolo,
Thanks again!
I had no access to Banana dirung the weekday, so I fixed Blue LED only today.
I didn't use fex2bin. I just copied script.bin from Lubuntu image for BananaPro and pasted it instead of current script.bin file on my SD card.
And it works! |
|
|
|
|
|
|