My goal is to manage the GPIO contacts in Peppermint 4 Linux (Kernel version 3.8.0) on an Intel motherboard (NM70 chipset with a C1037U processor).
How can you check if your kernel supports GPIO on your hardware?
Background
- Motherboard: Intel with NM70 Chipset
- Processor: C1037U processor
- OS: Peppermint 4 Linux
- Kernel Version: 3.8.0
- GPIO Interface: sysfs
I am trying to use the sysfs interface, which allows me to get GPIO contacts from user space through the file system.
Ive successfully completed the "Alternative Build Method: Debian Old Fashioned Path" section of https://help.ubuntu.com/community/Kernel/Compile to recompile the kernel in order to allow GPIO access in user space and enable debug mode for GPIO :
As soon as the new kernel was compiled, for the first time I was able to see the GPIO folder in / sys / class / gpio. Then, theoretically, this should be the case of turning on / off the GPIO ports by writing to the file system. This approach is described in http://falsinsoft.blogspot.co.uk/2012/11/access-gpio-from-linux-user-space.html .
When you try to export contacts 0 to 255 using
echo XX > /sys/class/gpio/export
for XX from 0 to 255, the following error message appears
echo: write error: No such device
When you try to export contacts outside the range of 0 to 255 on
echo XX > /sys/class/gpio/export
echo: write error: Invalid argument
, , GPIO , , (/sys/kernel/debug/gpio) , .
,/sys/kernel/debug/gpio .
GPIO BIOS ( HIGH/LOW).
/sys/kernel/debug/gpio ?
/sys/class/gpio/export