Print Page | Close Window

Read/Write GPIO Q1900TM-ITX with Linux

Printed From: ASRock.com
Category: Technical Support
Forum Name: Intel Motherboards
Forum Description: Question about ASRock Intel Motherboards
URL: https://forum.asrock.com/forum_posts.asp?TID=3826
Printed Date: 21 Jul 2025 at 5:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Read/Write GPIO Q1900TM-ITX with Linux
Posted By: lexaiden
Subject: Read/Write GPIO Q1900TM-ITX with Linux
Date Posted: 18 Nov 2016 at 8:56am
" rel="nofollow - 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:
http://www.kernel.org/doc/Documentation/gpio/sysfs.txt" rel="nofollow - 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 http://pypi.python.org/pypi/gpio/0.1.2" rel="nofollow - 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net