Onboard LEDs connected to the RK805-1 out1 and out2 GPIO pins
#6
Quote:t4_4tCode:
-- Override tiriger-source --
$ sudo sh -c "echo 'none' > /sys/devices/platform/leds/leds/power-led/trigger"
$ sudo sh -c "echo 'none' > /sys/devices/platform/leds/leds/standby-led/trigger"

-- LED on/off --
$ sudo sh -c "echo '0' > /sys/devices/platform/leds/leds/power-led/brightness"
$ sudo sh -c "echo '0' > /sys/devices/platform/leds/leds/standby-led/brightness"
$ sudo sh -c "echo '255' > /sys/devices/platform/leds/leds/power-led/brightness"
$ sudo sh -c "echo '255' > /sys/devices/platform/leds/leds/standby-led/brightness"

> So neither the rk808 driver nor anything else will even try to initialize them...
Some version of kernel that fails to initialize rk8xx-gpio also exists.
Therefore, its symptom depends on the version of kernel.

there are no leds at all in /sys/devices/platform/leds

Code:
--(#)-- ls -la /sys/devices/platform/leds/
total 0
drwxr-xr-x  3 root root    0 Feb 25 12:13 .
drwxr-xr-x 76 root root    0 Feb 25 10:23 ..
-rw-r--r--  1 root root 4096 Feb 25 12:13 driver_override
-r--r--r--  1 root root 4096 Feb 25 12:13 modalias
lrwxrwxrwx  1 root root    0 Feb 25 12:13 of_node -> ../../../firmware/devicetree/base/leds
drwxr-xr-x  2 root root    0 Feb 25 12:13 power
lrwxrwxrwx  1 root root    0 Feb 25 12:13 subsystem -> ../../../bus/platform
-rw-r--r--  1 root root 4096 Feb 25 12:13 uevent


Code:
--(#)-- uname -r
4.4.103-rockchip-ayufan-175

I can't remember which of the downloadable images that was, i suspect it was one of the 0.6.x ones. I have already configured lots of stuff all over the place, so I can't just start over with a different image.

Can I install just the kernel from a different image without having to install and configure all the stuff again from scratch?
  Reply


Messages In This Thread
RE: Onboard LEDs connected to the RK805-1 out1 and out2 GPIO pins - by prof7bit - 02-25-2018, 06:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 Rev3 doesn't boot and leds blinking fast dishins 6 7,822 06-30-2022, 06:28 PM
Last Post: rookie_267
  need a dts file to set some pins as pulldown interrupts in kernel using a DTO dkebler 0 2,030 02-05-2020, 10:58 PM
Last Post: dkebler
  Gpio error wile using GPIOtest.py Aditya Rastogi 0 1,917 01-31-2019, 02:41 AM
Last Post: Aditya Rastogi
  Migrate Linux from microSD to onboard eMMC elik745i 7 9,892 11-03-2018, 08:23 AM
Last Post: mara
  Memory addresses of GPIO pins AckRite 3 4,963 10-23-2018, 03:18 PM
Last Post: AckRite
  GPIO indicators via DTB Mentaluproar 0 1,487 07-10-2018, 04:58 PM
Last Post: Mentaluproar
  RFLink connected to /dev/ttyUSB0 not working ulysse132 9 9,405 05-17-2018, 01:15 PM
Last Post: Rocklobster
  Onboard IR receiver plambe 3 4,321 03-01-2018, 04:28 AM
Last Post: plambe
  What is name of gpio hardware on a rock64? gene83 6 6,592 10-05-2017, 07:57 AM
Last Post: gene83

Forum Jump:


Users browsing this thread: 1 Guest(s)