Krasi Georgiev Posted October 9, 2022 Posted October 9, 2022 trying to monitor a button press on GPIO19 which has an offset 40, but getting the error in the title. Switched between kernels but made no difference. http://ix.io/4cFr After switching the kernel http://ix.io/4cGd Not sure if this is related, but might help with the troubleshooting https://archlinuxarm.org/forum/viewtopic.php?f=65&t=14423 0 Quote
Krasi Georgiev Posted October 11, 2022 Author Posted October 11, 2022 another possible solution https://forum.odroid.com/viewtopic.php?t=40322 0 Quote
Igor Posted October 11, 2022 Posted October 11, 2022 You have checked this https://linux-sunxi.org/GPIO ? 0 Quote
Krasi Georgiev Posted October 11, 2022 Author Posted October 11, 2022 Just checked the info there, but don't see how is this helpful with the issue I mentioned? `gpiomon gpiochip0 40` returns an error `error waiting for events: No such device` and I think that this is due to some issue with the kernel. 0 Quote
Igor Posted October 20, 2022 Posted October 20, 2022 This is my situation, but i am using gpios for driving relays with this simple script: Spoiler #!/bin/bash task(){ gp=$1 [[ ! -d /sys/class/gpio/gpio${gp} ]] && echo ${gp} > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio${gp}/direction echo "0" > /sys/class/gpio/gpio${gp}/value sleep 10 echo "1" > /sys/class/gpio/gpio${gp}/value } task "$1" ls -l /sys/class/gpio total 0 --w------- 1 root root 4096 Jan 1 1970 export lrwxrwxrwx 1 root root 0 Jan 1 1970 gpiochip0 -> ../../devices/platform/soc/1c20800.pinctrl/gpio/gpiochip0 lrwxrwxrwx 1 root root 0 Jan 1 1970 gpiochip352 -> ../../devices/platform/soc/1f02c00.pinctrl/gpio/gpiochip352 lrwxrwxrwx 1 root root 0 Oct 20 11:22 gpiochip412 -> ../../devices/platform/soc/1c1c000.usb/usb2/2-1/2-1.4/2-1.4.4/2-1.4.4.1/2-1.4.4.1:1.0/gpio/gpiochip412 --w------- 1 root root 4096 Jan 1 1970 unexport If this can help you in some way ... 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.