LED status
-
- Posts: 62
- Joined: Mon Nov 09, 2020 10:43 pm
- languages_spoken: english
- Has thanked: 6 times
- Been thanked: 0
- Contact:
LED status
What does the two (blue & red) LED on the board indicate?
Is there a code list somewhere about blinking frequences for error codes etc?
Is there a code list somewhere about blinking frequences for error codes etc?
-
- Posts: 9049
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
- Location: Bucharest, Romania
- Has thanked: 595 times
- Been thanked: 573 times
- Contact:
Re: LED status
Red led on - means there is power at the barrel jack.
Red led off - means there is no power (or wrong voltage) at the power jack
Blue led on (immediatelly after boot)- Board is running u-boot
Blue led flashing - kernel is running (heartbeat)
You can change blue led function after boot.
Red led off - means there is no power (or wrong voltage) at the power jack
Blue led on (immediatelly after boot)- Board is running u-boot
Blue led flashing - kernel is running (heartbeat)
You can change blue led function after boot.
-
- Posts: 62
- Joined: Mon Nov 09, 2020 10:43 pm
- languages_spoken: english
- Has thanked: 6 times
- Been thanked: 0
- Contact:
Re: LED status
Where is the official documentation about it?
I still try to learn how the information flow is in the odroid world. I don't want to ask such simple questions on the board. I want to find the answers myself.
I still try to learn how the information flow is in the odroid world. I don't want to ask such simple questions on the board. I want to find the answers myself.
- odroid
- Site Admin
- Posts: 36385
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 1431 times
- Been thanked: 980 times
- Contact:
Re: LED status
The ODROID-HC4 is our first product which can control the red power LED by software.
https://wiki.odroid.com/odroid-hc4/appl ... ed_control
https://wiki.odroid.com/odroid-hc4/appl ... ed_control
-
- Posts: 62
- Joined: Mon Nov 09, 2020 10:43 pm
- languages_spoken: english
- Has thanked: 6 times
- Been thanked: 0
- Contact:
Re: LED status
That page tells me how to modify the led behaviour. But did not explain the default behaviour.mad_ady wrote: ↑Sun Dec 06, 2020 11:49 pmOver here: https://wiki.odroid.com/odroid-c4/appli ... ed_control
The information is still missing.
- tobetter
- Posts: 7118
- Joined: Mon Feb 25, 2013 10:55 am
- languages_spoken: Korean, English
- ODROIDs: Many
- Location: Paju, South Korea
- Has thanked: 380 times
- Been thanked: 1044 times
- Contact:
Re: LED status
The default LED status is as @mad_ady has exaplained. The RED LED is not controllerable since it just lits when power is supplied, while the BLUE LED is lit when the boot loader is started and start to blink when the OS is started. But the blue LED can be controlled by software - U-boot and kernel, it will would not be same with all OS images. Just most OS image behaves same.MoonKid wrote: ↑Mon Dec 07, 2020 7:12 pmThat page tells me how to modify the led behaviour. But did not explain the default behaviour.mad_ady wrote: ↑Sun Dec 06, 2020 11:49 pmOver here: https://wiki.odroid.com/odroid-c4/appli ... ed_control
The information is still missing.
- odroid
- Site Admin
- Posts: 36385
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 1431 times
- Been thanked: 980 times
- Contact:
Re: LED status
The default behaviors could be found in the HC4 hardware specification.MoonKid wrote: ↑Mon Dec 07, 2020 7:12 pmThat page tells me how to modify the led behaviour. But did not explain the default behaviour.mad_ady wrote: ↑Sun Dec 06, 2020 11:49 pmOver here: https://wiki.odroid.com/odroid-c4/appli ... ed_control
The information is still missing.
https://wiki.odroid.com/odroid-hc4/hard ... ifications
-
- Posts: 62
- Joined: Mon Nov 09, 2020 10:43 pm
- languages_spoken: english
- Has thanked: 6 times
- Been thanked: 0
- Contact:
Re: LED status
Still incomplete.odroid wrote: ↑Tue Dec 08, 2020 9:16 amThe default behaviors could be found in the HC4 hardware specification.
https://wiki.odroid.com/odroid-hc4/hard ... ifications
What does it mean if red and blue are not permanantly on (not blinking)?
-
- Posts: 4
- Joined: Tue Dec 08, 2020 9:32 pm
- languages_spoken: english
- ODROIDs: HC4
- Has thanked: 1 time
- Been thanked: 0
- Contact:
Re: LED status
There is a mistake in the first commandodroid wrote: ↑Mon Dec 07, 2020 5:33 pmThe ODROID-HC4 is our first product which can control the red power LED by software.
https://wiki.odroid.com/odroid-hc4/appl ... ed_control
Code: Select all
# Export GPIO
root@odroid:~# echo 503 > /sys/class/export
Code: Select all
# Export GPIO
root@odroid:~# echo 503 > /sys/class/gpio/export
- odroid
- Site Admin
- Posts: 36385
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 1431 times
- Been thanked: 980 times
- Contact:
-
- Posts: 11
- Joined: Thu Jan 07, 2021 6:36 am
- languages_spoken: english
- ODROIDs: HC4
- Has thanked: 5 times
- Been thanked: 1 time
- Contact:
Re: LED status
Hi, I've the HC4, running @tobetter's Ubuntu Focal (netboot_default install), with Kernel 5.10.0-odroid-arm64 and DTB dtbs/5.10.0-odroid-arm64/amlogic/meson64_odroidhc4.dtb
Blue LED control works perfectly, but the path is slightly different from the docs, /sys/class/leds/blue:status/trigger (escaped form is /sys/class/leds/blue\:status/trigger).
Red LED, via GPIO, does not work, 503 is exported, but does nothing.
Any ideas?
Thanks
Blue LED control works perfectly, but the path is slightly different from the docs, /sys/class/leds/blue:status/trigger (escaped form is /sys/class/leds/blue\:status/trigger).
Red LED, via GPIO, does not work, 503 is exported, but does nothing.
Any ideas?
Thanks
- odroid
- Site Admin
- Posts: 36385
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 1431 times
- Been thanked: 980 times
- Contact:
Re: LED status
The wiki document was written with the stock old kernel 4.9.
Upstream kernel has some different behaviors.
Upstream kernel has some different behaviors.
-
- Posts: 11
- Joined: Thu Jan 07, 2021 6:36 am
- languages_spoken: english
- ODROIDs: HC4
- Has thanked: 5 times
- Been thanked: 1 time
- Contact:
Re: LED status
Very nice, I just sent @tobetter a Pull Request #21 adding the red/power led to the DTS/DTB for the HC4 on the 5.10.y series.
Code: Select all
leds {
compatible = "gpio-leds";
led-red {
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_POWER;
gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-on";
};
};
Who is online
Users browsing this forum: No registered users and 0 guests