Skip to content

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

@leetweezard

Description

@leetweezard

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! 🫡

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions