-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Regression: GPIO | Latest kernel deprecates sysfs API #5385 #6993
Comments
Well our relationship to Armbian devs is not the best. Usually they don't like DietPi and issues addressed from or side. |
Meanwhile I have addressed this issue at Armbian user forum, we leet you know if and when this issue will be resolved. |
Maybe you like to share the related form link? |
A build is running with this re-enabled: https://github.com/MichaIng/DietPi/actions/runs/8491886407/job/23264312017 You will find the kernel image and dtb packages here once done: https://dietpi.com/downloads/binaries/testing/ I'll open a PR, if it works as expected. It should do, it was removed accidentally and is still enabled in edge and legacy kernel builds. |
Hi @MichaIng, Eager to help, but do not know how to install the kernel. If you provide guidance, I will give it a try. |
cd /tmp
wget https://dietpi.com/downloads/binaries/testing/linux-{image,dtb}-current-sunxi64.deb
dpkg -i linux-{image,dtb}-current-sunxi64.deb
reboot |
It boots normal however, NanoHatOLED still dark....
|
Hmm, the Can you verify it's using this Linux 6.6.23 build: uname -a I'll test on Orange Pi Zero 3 in an hour. |
NanoPi NEO2 Have installed NanoPi's software (https://github.com/friendlyarm/NanoHatOLED) which includes https://github.com/friendlyarm/WiringNP. It worked up until latest kernel update. Will try re-installing soon if necessary.
|
Weird. Indeed I do not see the
Also the build log says:
I need to check other families configs. |
Ah, found the old PR which re-enabled this for 64-bit Allwinner chips: armbian/build#3635 |
Next try, now with the patch added: https://github.com/MichaIng/DietPi/actions/runs/8491886407/job/23267118549 |
Hi @MichaIng, Next try did not help either unfortunately
|
I need to learn how the patch system works. Looks like they need to be added in two config files: MichaIng/build@52f6b19 Next attempt: https://github.com/MichaIng/DietPi/actions/runs/8491886407/job/23268009107 |
Now it works: root@OrangePiZero3:~# ls -l /sys/class/gpio
total 0
--w------- 1 root root 4096 Mar 31 00:18 export
lrwxrwxrwx 1 root root 0 Mar 31 00:17 gpiochip0 -> ../../devices/platform/soc/300b000.pinctrl/gpio/gpiochip0
lrwxrwxrwx 1 root root 0 Mar 31 00:17 gpiochip352 -> ../../devices/platform/soc/7022000.pinctrl/gpio/gpiochip352
--w------- 1 root root 4096 Mar 31 00:18 unexport |
Yes, I can confirm. THANKS !!! |
For some reason I cannot open a PR at Armbian. Will try to check back tomorrow at Discord. |
Thanks again, @MichaIng. It's very kind of you to provide this tremendous support !! |
|
Our own kernel build with GPIO sysfs re-implemented, should have been installed with DietPi v9.4. In the meantime, also Armbian re-enabled it for all their builds, but by adding |
Hi @MichaIng,
As of lately my NanoHatOLED has stopped working
It seems GPIO devices are missing again in latest kernel.
Would you be so kind to re-address this issue at Armbian devs since you have some authority, moreover you are knowledgeable whereas I am not? So that they can include GPIO in the kernel again?
Thanks,
Maarten
The text was updated successfully, but these errors were encountered: