Comments (20)
Well our relationship to Armbian devs is not the best. Usually they don't like DietPi and issues addressed from or side.
from dietpi.
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.
from dietpi.
Maybe you like to share the related form link?
from dietpi.
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/
Would be great if you could give them a try.
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.
from dietpi.
Hi @MichaIng,
Eager to help, but do not know how to install the kernel. If you provide guidance, I will give it a try.
from dietpi.
cd /tmp
wget https://dietpi.com/downloads/binaries/testing/linux-{image,dtb}-current-sunxi64.deb
dpkg -i linux-{image,dtb}-current-sunxi64.deb
reboot
from dietpi.
It boots normal however, NanoHatOLED still dark....
2024-03-30 18:36:35 root@M-DNS:~# uname -a
Linux M-DNS 6.6.23-current-sunxi64 #1 SMP Tue Mar 26 22:22:53 UTC 2024 aarch64 GNU/Linux
2024-03-30 18:38:04 root@M-DNS:~# gpio readall
-bash: gpio: command not found
2024-03-30 18:38:25 root@M-DNS:~# ls -l /sys/class/gpio
ls: cannot access '/sys/class/gpio': No such file or directory
from dietpi.
Hmm, the gpio
command is WiringPi, which can be installed only on RPi and some Odroids. /sys/class/gpio
however should exist. Which SBC are you using?
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.
from dietpi.
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.
2024-03-30 18:36:35 root@M-DNS:~# uname -a
Linux M-DNS 6.6.23-current-sunxi64 #1 SMP Tue Mar 26 22:22:53 UTC 2024 aarch64 GNU/Linux
from dietpi.
Weird. Indeed I do not see the libgpio-sysfs
driver being compiled in the logs, and the final kernel config does not contain CONFIG_GPIO_SYSFS
, as if some dependency was missing. But all dependencies/selects are explicitly enabled: https://www.kernelconfig.io/config_gpio_sysfs?q=&kernelversion=6.6.23&arch=arm64
CONFIG_GPIOLIB=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_CDEV=y
CONFIG_SYSFS=y
Also the build log says:
[🐳|🌿] No misconfigurations or missing kernel option dependencies detected
I need to check other families configs.
from dietpi.
Ah, found the old PR which re-enabled this for 64-bit Allwinner chips: armbian/build#3635
There is another flag missing indeed, respectively a patch to make the sysfs API independent of this other flag.
from dietpi.
Next try, now with the patch added: https://github.com/MichaIng/DietPi/actions/runs/8491886407/job/23267118549
If I am not mistaken, while CONFIG_GPIO_SYSFS=y
was set for e.g. 32-bit Allwinner and Rockchip boards already, it is not effective anymore since Linux 6.6, as the patch to make it independent of CONFIG_EXPERT=y
was not ported. And it is still needed: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/gpio/Kconfig#n61
from dietpi.
Hi @MichaIng,
Next try did not help either unfortunately
2024-03-30 22:44:08 root@M-DNS:~# uname -a
Linux M-DNS 6.6.23-current-sunxi64 #1 SMP Tue Mar 26 22:22:53 UTC 2024 aarch64 GNU/Linux
2024-03-30 22:43:42 root@M-DNS:~# ls -l /sys/class/gpio
ls: cannot access '/sys/class/gpio': No such file or directory
from dietpi.
I need to learn how the patch system works. Looks like they need to be added in two config files: MichaIng/build@52f6b19
Comparing with another added patch, now it should be applied: armbian/build@cf392c1
Next attempt: https://github.com/MichaIng/DietPi/actions/runs/8491886407/job/23268009107
from dietpi.
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
from dietpi.
Yes, I can confirm. THANKS !!!
from dietpi.
For some reason I cannot open a PR at Armbian. Will try to check back tomorrow at Discord.
from dietpi.
Thanks again, @MichaIng. It's very kind of you to provide this tremendous support !!
from dietpi.
Maybe you like to share the related form link?
from dietpi.
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 CONFIG_EXPERT=y
for all of them, instead of decoupling CONFIG_GPIO_SYSFS=y
from it: armbian/build@fb17a2a
The upside is, that I can drop our patch then, keeping the diff with upstream as small as possible.
from dietpi.
Related Issues (20)
- enable GPU with dietpi os on raspberry pi 4 to improve performance HOT 1
- Iteration v9.6 (2024-07-06)
- Wrong RAM calculation in dietpi banner HOT 5
- Rock 3A fails to bring up network on DietPi 9.5 HOT 17
- DietPi_NanoPiR6C-ARMv8-Bookworm(and Bullseye) Images not working at all HOT 4
- adguard only runs on ipv6 on proxmox HOT 2
- Unable to update Dietpi HOT 11
- TP-Link Archer T2U Nano HOT 9
- Diet-Pi Update failed HOT 5
- Job for mariadb.service failed HOT 11
- [Warning] Can't create test file '/var/lib/mysql/DietPi.lower-test HOT 11
- a2enmod command not found HOT 4
- Unable to update DietPi HOT 15
- Network | WiFi extender option HOT 7
- Node-red reinstall issue HOT 9
- Amlogic S802 support
- DietPi-Drive_Manager | Add option to scan for network shares
- installing coolify HOT 8
- Cant install Netdata HOT 13
- Curl error on DietPi update from v8.16.2 to v9.5.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dietpi.