-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NanoPi NEO | LEDs have stopped working with Linux v5.15 #5401
Comments
Many thanks for your report. Seems similar: #5385 I wonder whether this is the same with stable/supported kernel as well. If you find some time and a spare SD card, could you test the Armbian image (Debian Bullseye, Kernel 5.15.y): https://www.armbian.com/nanopi-neo/ Generally those are defined in the device tree. Does this show something? ls -l /proc/device-tree/leds |
Thanks for looking into this! I agree that is does look similar to #5385 I just downloaded from the link you provided; Armbian 22.02 Bullseye Kernel 5.15.y, Size: 330Mb, Updated: Feb 27, 2022 In the meantime;
|
So on device tree end, the LEDs are there, the correct default trigger is shown etc, but only the sysfs interface to change the triggers is missing. In case of the sysfs GPIO interface, it was deprecated in Linux, in favour of libgpiod, but can be re-enabled. But for LED control I don't see that it is deprecated: https://www.kernel.org/doc/html/latest/leds/leds-class.html |
Apologies for the delayed update. I was challenged by getting a working SDHC setup. NEO doesn't like Sandisk or PNY cards, only Samsung. Anyway... The results for Armbian are the same. The green LED comes on solid for 10 seconds on startup then both LEDs are off after that. See below for addition information. I've submitted a bug report to Armbian; https://forum.armbian.com/topic/20245-nanopi-neo-leds-not-working-with-linux-51525-sunxi-armbian-22021/
In the armbian-config .dts editor I found that led-0 and led-1 are reversed from what I found above. led-0 is blue and led-1 is green. I don't know if that's a show stopper or not.
The config-5.15.25-sunxi file shows;
I'll update here when I get word back on the Armbian bug report. |
I've opened case "NanoPi NEO LEDs not working with Linux 5.15.25-sunxi (Armbian 22.02.1)" in the Armbian Allwinner H2 & H3 forum. Fingers crossed! |
Appears the issue is related to; Error loading modules after kernel upgrade Solution being worked on is to disable xz module compression; disable module compression for sunxi-current armbian/build#3663 |
Contributed system information to Error loading modules after kernel upgrade |
@mhjessen update-initramfs -u or when trying to load a kernel module: modprobe ipv6 The error in this forum thread seems to be with older Ubuntu and Debian versions only, where the userland tools like |
Agreed. I ran both and there's nothing in the logs.
|
So indeed the issues are not related. I added this info to your Armbian forum thread. |
upon configuring LED's kernel prints:
-16 means EBUSY. Removing shit makes LED's work again. tested at armbian_22.05.4_Nanopineo_jammy_current_5.15.48
|
@Sfinx |
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Since we create and ship own kernel packages now, I just patched the patch from Armbian, removing their doubled LED nodes: MichaIng/build@4b8a626 Please test whether these help: cd /tmp
wget https://dietpi.com/downloads/binaries/testing/linux-{image,dtb}-current-sunxi.deb
dpkg -i linux-{image,dtb}-current-sunxi.deb
reboot |
Anyone who is able to test this? Would be great if we could close the issue, but I have no NanoPi NEO to test. |
Apologies on the delay. I downloaded and did a clean DietPi install to a clean micro-SDHC card which went OK. My production setup is using DietPi v9.4.2/ 24.5.1on kernel 6.6.31-current-sunxi. I didn't test the above solution on my production setup because there's only 32 MB in the /tmp tmpfs. I also wasn't sure if the above solution would lock me into the test version. Any suggestions as to how I can get this solution integrated onto my production setup? Thanks again for your patience and dedication! |
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Great, I just pushed a rebuild of the kernel to our APT server: f324d76 |
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401 Signed-off-by: MichaIng <[email protected]>
Creating a bug report/issue
Beginning with either v8.1 or v8.2 the green & blue LEDs on my NanoPi NEO have stopped working. I restored an image of v8.0.2 and the LEDs were working again as before. I then upgraded to v8.3.1 and they no longer work.
Required Information
DietPi version |
cat /boot/dietpi/.version
G_DIETPI_VERSION_SUB=3
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
bullseye
Kernel version |
uname -a
Linux mhj-neo 5.15.25-sunxi #22.02.1 SMP Sun Feb 27 09:23:25 UTC 2022 armv7l GNU/Linux
SBC model |
echo $G_HW_MODEL_NAME
or (EG: RPi3)NanoPi NEO (armv7l)
Power supply used | (EG: 5V 1A RAVpower)
North Pada 5v 3A (verified via USB multi-meter)
SD card used | (EG: SanDisk ultra)
Samsung 32GB EVO and PNY 32GB Elite
Additional Information (if applicable)
echo $G_HW_UUID
= 22ab27f3-4601-4df7-b20f-9f32cc6fc943Steps to reproduce
Expected behaviour
Actual behaviour
Extra details
I did notice that with v8.0.2 (
Linux mhj-neo 5.10.60-sunxi #21.08.2 SMP Tue Sep 14 16:28:44 UTC 2021 armv7l GNU/Linux
) none of the files in /lib/modules/5.10.60-sunxi/kernel/drivers/ were xz compressed. In v8.3.1 they are all xz compressed.The text was updated successfully, but these errors were encountered: