November 21, 2019, 07:20:34 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


CB2, kernel 3.4.75

Started by Valeron70, January 04, 2014, 03:47:39 am

Previous topic - Next topic

Valeron70

January 07, 2014, 11:27:45 pm #15 Last Edit: January 07, 2014, 11:32:25 pm by Valeron70
1) In script.bin:

[leds_para]
leds_used = 1
leds_num = 2
leds_pin_1 = port:PH20<1><default><default><0>
leds_name_1 = "green:ph20:led1"
leds_default_1 = 1
leds_pin_2 = port:PH21<1><default><default><0>
leds_name_2 = "blue:ph21:led2"
leds_default_2 = 0
leds_trigger_2 = "heartbeat"

2) gpio_sunxi started
But /sys/class/leds is EMPTY!!!!!
command echo 64 > /sys/class/leds/blue:ph21:led1/brightness said:
bash: /sys/class/leds/blue:ph21:led1/brightness: No such file or directory

Valeron70

January 07, 2014, 11:40:28 pm #16 Last Edit: January 07, 2014, 11:43:41 pm by Valeron70
I found alternative solution on http://docs.cubieboard.org/tutorials/common/begining_on_lubuntu
Section "LEDs On Cubieboard"

Valeron70

And native solution: compiled and installed leds_sunxi module