I try to control a few gpio pins via bash script. Board and OS version is:

cat /proc/device-tree/compatible
olimex,a13-olinuxinoallwinner,sun5i-a13

cat /etc/os-release
NAME="openSUSE Leap"
VERSION="42.3"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="42.3"
PRETTY_NAME="openSUSE Leap 42.3"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:42.3"
BUG_REPORT_URL="https://bugs.opensuse.org";
HOME_URL="https://www.opensuse.org/";


In /sys/class/gpio I do:
echo 3 > export
ls
export  gpio3  gpiochip0  unexport
ls gpio3/
active_low  device/     direction   power/      subsystem/  uevent value
cat gpio3/direction
in

So when I want to change the pin direction:
echo out > gpio3/direction
bash: echo: write error: Unknown error 517

That is EPROBE_DEFER. The kernel signals that the requested device might be probed later, ...or never. I guess that there might be some device tree item missing, but from the kernel documentation I haven't found a solution for that. Does anybody have an idea how to get that working?

Br,
Frank

--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to