Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

The red LED on the on EspressoBin v5 stopped working.

Featured Replies

Hi there,

 

The red LED on the EspressoBin v5 stopped working at Version 20.11.

 

I opgrade from Armbian_20.02.0-rc1_Espressobin_buster_current_4.19.98
to the laetest version Armbian_20.11_Espressobin_buster_current_5.8.18.
Also not working with Armbian_21.02.0-trunk.18_Espressobin_buster_current_5.8.18.


On Armbian_20.02.0-rc1 to Armbian_20.05.2:

root@espressobin:/sys/class/leds# ls -al
total 0
drwxr-xr-x  2 root root 0 Jan 25  2020 .
drwxr-xr-x 51 root root 0 Feb 14  2019 ..
lrwxrwxrwx  1 root root 0 Jan 25  2020 espressobin:red:usr -> ../../devices/platform/leds/leds/espressobin:red:usr
lrwxrwxrwx  1 root root 0 Jan 25  2020 mmc0:: -> ../../devices/platform/soc/soc:internal-regs@d0000000/d00d8000.sdhci/leds/mmc0::
lrwxrwxrwx  1 root root 0 Jan 25  2020 mmc1:: -> ../../devices/platform/soc/soc:internal-regs@d0000000/d00d0000.sdhci/leds/mmc1::
root@espressobin:/sys/class/leds#
root@espressobin:/sys/class/leds/espressobin:red:usr# ls -al
total 0
-rw-r--r-- 1 root root 4096 Nov 30 15:37 brightness
lrwxrwxrwx 1 root root    0 Nov 30 15:37 device -> ../../../leds
-r--r--r-- 1 root root 4096 Nov 30 15:37 max_brightness
drwxr-xr-x 2 root root    0 Jan 25  2020 power
lrwxrwxrwx 1 root root    0 Jan 25  2020 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 4096 Nov 30 15:37 trigger
-rw-r--r-- 1 root root 4096 Jan 25  2020 uevent
root@espressobin:/sys/class/leds/espressobin:red:usr#

user_led_on:
echo 255 > /sys/class/leds/espressobin:red:usr/brightness

 

user_led_off:
echo 0 > /sys/class/leds/espressobin:red:usr/brightness

 

user_led_trigger:
echo heartbeat > /sys/class/leds/espressobin:red:usr/trigger

 

Now on Armbian_20.11:

root@espressobin:/sys/class/leds# ls -al
total 0
drwxr-xr-x  2 root root 0 Nov 25 12:19 .
drwxr-xr-x 54 root root 0 Feb 14  2019 ..
lrwxrwxrwx  1 root root 0 Nov 25 12:19 mmc0:: -> ../../devices/platform/soc/soc:internal-regs@d0000000/d00d0000.sdhci/leds/mmc0::
root@espressobin:/sys/class/leds#

Its seems file armada-3720-espressobin.dtb this not supported more.
Is there also another way that it works again?

Any suggestion ? 

 

Kind regards,
Thanks

Which one is red led? IIRC espressobin v5 has only 2 leds: power which is always on (when power adapter is attached) and wifi led which is conrolled by wifi card (if you have e.g. ath9k card you can control it via ath9k driver). There is also third led (labeled led2) but this one is non-working due to HW bug.

  • Author

I have good news!!!

 

The red LED2 now also work with Armbian_20.11.6_Espressobin_buster_current_5.8.18.

 _____                                   _     _
| ____|___ _ __  _ __ ___  ___ ___  ___ | |__ (_)_ __
|  _| / __| '_ \| '__/ _ \/ __/ __|/ _ \| '_ \| | '_ \
| |___\__ \ |_) | | |  __/\__ \__ \ (_) | |_) | | | | |
|_____|___/ .__/|_|  \___||___/___/\___/|_.__/|_|_| |_|
          |_|
Welcome to Armbian 20.11.6 Buster with Linux 5.8.18-mvebu64

 

Compiled successfully with "linux-source-5.8.18-mvebu64"
Added to the file "armada-3720-espressobin.dtsi".

        vcc_sd_reg1: regulator {
		compatible = "regulator-gpio";
		regulator-name = "vcc_sd1";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <3300000>;
		regulator-boot-on;

		gpios = <&gpionb 4 GPIO_ACTIVE_HIGH>;
		gpios-states = <0>;
		states = <1800000 0x1
			  3300000 0x0>;
                enable-active-high;
	};
	
	leds {
		compatible = "gpio-leds";
		
		red {
			label = "espressobin:red:usr";
			gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
		};
	};

These files are compiled:
armada-3720-espressobin.dtb
armada-3720-espressobin-emmc.dtb
armada-3720-espressobin-v7.dtb
armada-3720-espressobin-v7-emmc.dtb

 

Maybe it can be added to future versions if it is approved.

I have already wrote that led 2 connected to GPIO does not work on espressobin v5. And on espressobion v7 is already enabled and available in mainline kernel v7 dts files.

  • Author

This LED2 just works for me. So what is "Pali" talking about?

I wanted to upload a photo that shows that LED2 is on, but there is no facility on the web to add a photo.

Can "Pali" show the other EspressoBin v7 users how to turn LED2 on and off?

I have been communicating with Globalscaletechnologies and they confirmed me that LED2 is broken on v5 and cannot be fixed. On v7 it is working fine, I have prepared patch (now in mainline kernel) for it which other people tested and it worked. I do not have v7 so cannot show it, but relevant file is exported via /sys/class/leds/led2/brightness.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.