LED status

Post Reply
MoonKid
Posts: 62
Joined: Mon Nov 09, 2020 10:43 pm
languages_spoken: english
Has thanked: 6 times
Been thanked: 0
Contact:

LED status

Post by MoonKid »

What does the two (blue & red) LED on the board indicate?

Is there a code list somewhere about blinking frequences for error codes etc?

mad_ady
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

Post by mad_ady »

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.

MoonKid
Posts: 62
Joined: Mon Nov 09, 2020 10:43 pm
languages_spoken: english
Has thanked: 6 times
Been thanked: 0
Contact:

Re: LED status

Post by MoonKid »

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.

mad_ady
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

Post by mad_ady »


User avatar
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

Post by odroid »

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

mad_ady
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

Post by mad_ady »

Neat! I didn't know that.

MoonKid
Posts: 62
Joined: Mon Nov 09, 2020 10:43 pm
languages_spoken: english
Has thanked: 6 times
Been thanked: 0
Contact:

Re: LED status

Post by MoonKid »

mad_ady wrote:
Sun Dec 06, 2020 11:49 pm
Over here: https://wiki.odroid.com/odroid-c4/appli ... ed_control
That page tells me how to modify the led behaviour. But did not explain the default behaviour.

The information is still missing.

User avatar
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

Post by tobetter »

MoonKid wrote:
Mon Dec 07, 2020 7:12 pm
mad_ady wrote:
Sun Dec 06, 2020 11:49 pm
Over here: https://wiki.odroid.com/odroid-c4/appli ... ed_control
That page tells me how to modify the led behaviour. But did not explain the default behaviour.

The information is still missing.
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.

User avatar
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

Post by odroid »

MoonKid wrote:
Mon Dec 07, 2020 7:12 pm
mad_ady wrote:
Sun Dec 06, 2020 11:49 pm
Over here: https://wiki.odroid.com/odroid-c4/appli ... ed_control
That page tells me how to modify the led behaviour. But did not explain the default behaviour.

The information is still missing.
The default behaviors could be found in the HC4 hardware specification.
https://wiki.odroid.com/odroid-hc4/hard ... ifications

MoonKid
Posts: 62
Joined: Mon Nov 09, 2020 10:43 pm
languages_spoken: english
Has thanked: 6 times
Been thanked: 0
Contact:

Re: LED status

Post by MoonKid »

odroid wrote:
Tue Dec 08, 2020 9:16 am
The default behaviors could be found in the HC4 hardware specification.
https://wiki.odroid.com/odroid-hc4/hard ... ifications
Still incomplete.

What does it mean if red and blue are not permanantly on (not blinking)?

j.fikar
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

Post by j.fikar »

odroid wrote:
Mon Dec 07, 2020 5:33 pm
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
There is a mistake in the first command

Code: Select all

# Export GPIO
root@odroid:~# echo 503 > /sys/class/export
should be

Code: Select all

# Export GPIO
root@odroid:~# echo 503 > /sys/class/gpio/export

User avatar
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

Post by odroid »

@j.fikar,
Thank you for the correction.
We've updated the wiki page.

rpardini
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

Post by rpardini »

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

User avatar
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

Post by odroid »

The wiki document was written with the stock old kernel 4.9.
Upstream kernel has some different behaviors.

rpardini
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

Post by rpardini »

odroid wrote:
Mon Jan 11, 2021 10:36 am
The wiki document was written with the stock old kernel 4.9.
Upstream kernel has some different behaviors.
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";
        };
};
These users thanked the author rpardini for the post:
odroid (Wed Jan 13, 2021 10:24 am)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests