Open aaron97neu opened 4 years ago
For debugging I have found
$ modprobe ledtrig-heartbeat
$ echo heartbeat | sudo tee /sys/class/leds/LED_5_GREEN/trigger
useful
Also
$ modprobe ledtrig-default-on
$ echo default-on | sudo tee /sys/class/leds/LED_5_GREEN/trigger
$ echo 0 | sudo tee /sys/class/leds/LED_5_GREEN/brightness # turn off
$ echo 255 | sudo tee /sys/class/leds/LED_5_GREEN/brightness # turn on
In the bitbake days of ISOBlue we had a
systemctl
C script that controlled the LED lights on the board allowing us to indicate internet connectivity and general device health among other things. This was helpful for troubleshooting in the field as the operator telling us the LED status was an easy and informative first step in debuggingWe have discussed containerizing things (like networkmanager) that would have to break some of the containerization principles, and if we choose to go down that path, this might be a good first one to get our feet wet. On the old kernel the LED status was controlled by writing a value to a file