Skip to content
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

[FIX] How to fix GPIO binary issues on Linux Kernel >6.2 #2

Open
0x73-w1337 opened this issue Nov 18, 2023 · 1 comment
Open

[FIX] How to fix GPIO binary issues on Linux Kernel >6.2 #2

0x73-w1337 opened this issue Nov 18, 2023 · 1 comment

Comments

@0x73-w1337
Copy link

0x73-w1337 commented Nov 18, 2023

With reference to the Issue with Linux Kernel >6.2 reported in the installation guide: https://wiki.geekworm.com/X735-script#Overview

[NOTE]

If you are using an ubuntu system, DO NOT use version ubuntu 23.04, otherwise you will get an error similar to the following when you run x735off:

/usr/local/bin/x735-softsd.sh: line 5: /sys/class/gpio/export: No such file or directory
/usr/local/bin/x735-softsd.sh: line 6: /sys/class/gpio/gpio20/direction: No such file or directory
/usr/local/bin/x735-softsd.sh: line 7: /sys/class/gpio/gpio20/value: No such file or directory
Your device will shutting down in 4 seconds...
/usr/local/bin/x735-softsd.sh: line 19: /sys/class/gpio/gpio20/value: No such file or directory

There is no gpio directory in the /sys/class directory

The reason for the error is because since Ubuntu 23.04 uses the latest 6.2 Linux kernel, we wait for the official update;

We recommend that you use ubuntu 22.04, and we have also tested the current script on version 22.04.

You can fix this issue by installing WiringPi which provides the gpio binary file: https://github.com/WiringPi/WiringPi

You can find releases for both armhf and arm64 architectures in the Releases section.

Deb armhf: https://github.com/WiringPi/WiringPi/releases/download/2.61-1/wiringpi-2.61-1-armhf.deb
Deb arm64: https://github.com/WiringPi/WiringPi/releases/download/2.61-1/wiringpi-2.61-1-arm64.deb

Enjoy! 🫡

@geekworm-com
Copy link
Owner

geekworm-com commented Mar 20, 2024

Use gpiod instead of obsolete interface, and suuports ubuntu 23.04 also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants