Discussion:
GPIO
(too old to reply)
manjunathreddy boreddy
2024-05-17 04:20:01 UTC
Permalink
Hello
I am using debian 12 bookworm i am unable to export gpio pins
by using echo 0 > /sys/class/gpio/export i am getting bash: echo : write
error earlier it was working fine when i re installed debian package i am
unable to export them. I am using intel i686 7600u processor.and kernel
version is 6.1.0-18-686-pae.can anyone help me in solving this issue.

Thanks&Regards,
B.Manjunath Reddy.
Felix Miata
2024-05-17 04:40:02 UTC
Permalink
Post by manjunathreddy boreddy
I am using intel i686 7600u processor.
Exactly what does that mean? The only 7600u processor I see on intel.com is this
x86_64 much like two of mine, both using amd64 Bookworm, not i686:
<https://ark.intel.com/content/www/us/en/ark/products/97466/intel-core-i7-7600u-processor-4m-cache-up-to-3-90-ghz.html>
--
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata
didier gaumet
2024-05-17 05:40:01 UTC
Permalink
Hello
            I am using debian 12 bookworm i am unable to export gpio
write error earlier it was working fine when i re installed debian
package i am unable to export them. I am using intel i686 7600u
processor.and kernel version is 6.1.0-18-686-pae.can anyone help me in
solving this issue.
Thanks&Regards,
B.Manjunath Reddy.
Hello,

From what I understand, accessing GPIO thru /sys/class/gpio* is
deprecated and thus discouraged. GPIO is to be accessed thru /dev/gpio*.
gpiod (interactive use) and libgpiod (programming use) Debian packages
can be useful here.

linux kernel documentation, GPIO section:
https://www.kernel.org/doc/html/latest/driver-api/gpio/index.html
list of gpio related Debian packages:
https://www.kernel.org/doc/html/latest/driver-api/gpio/index.html
didier gaumet
2024-05-17 06:00:01 UTC
Permalink
I am unable to access under /dev/gpio*.
Please post to the debian user mailing list rather than to me :-)

I do not myself use GPIO devices so I am not able to offer a truely
sensible advice but I would begin with what the gpiodetect command
(gpiod package) tells

here is an introduction to GPIO access from bash:
https://developer.technexion.com/docs/using-gpio-from-a-linux-shell
Loading...