ASRock.com Homepage
Forum Home Forum Home > Technical Support > Intel Motherboards
  New Posts New Posts RSS Feed - Read/Write GPIO Q1900TM-ITX with Linux
  FAQ FAQ  Forum Search Search  Events   Register Register  Login Login

Read/Write GPIO Q1900TM-ITX with Linux

 Post Reply Post Reply
Author
Message
lexaiden View Drop Down
Newbie
Newbie
Avatar

Joined: 18 Nov 2016
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote lexaiden Quote  Post ReplyReply Direct Link To This Post Topic: Read/Write GPIO Q1900TM-ITX with Linux
    Posted: 18 Nov 2016 at 8:56am
Hello,

I have an Asrock Q1900TM-ITX Motherboard, which has 4 GPIOs (General Purpose Input Output). How can I access these GPIO pins under Linux?

What I have tried:
https://www.kernel.org/doc/Documentation/gpio/sysfs.txt


su
cd /sys/class/gpio/
echo "1" > export
bash: echo: write error: Invalid argument
echo 1 > export
bash: echo: write error: Invalid argument


and I have tried https://pypi.python.org/pypi/gpio/0.1.2 and get also an error message: "Invalid argument"

Why did I get this error? Is "1" the wrong pin number? Well, I have tried the pin numbers from 1 to 300, same error message...


lsmod | grep -i gpio
rfkill_gpio            16384  0
rfkill                 20480  2 rfkill_gpio


dmesg | grep -i gpio
(no matches)


Do I need a special driver for the GPIO pins? Where can I get the driver? Maybe I can write my own kernel module, but I need infos, where can I get the infomations (the manual is useless).

I use Linux Manjaro (an Arch based distribution) with Kernel 4.4.31-2-MANJARO #1 SMP PREEMPT Sun Nov 13 11:02:33 UTC 2016 x86_64 GNU/Linux


Edited by lexaiden - 18 Nov 2016 at 8:59am
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.