Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [gpio]

The tag has no usage guidance.

1
vote
0answers
14 views

Defining GPIO for LED board - Meraki MX100

I have a Meraki MX100 that I have installed VyOS on. While otherwise perfectly functional, the one thing that I cannot seem to get working is the LED board on the front panel. I'm no developer which I'...
0
votes
0answers
14 views

Using GPIO in a kernel module

I am working on a simple kernel module for the Raspberry Pi. This involves using the GPIO. I see that the old gpio_* API is deprecated in favor of the gpiod_* API. However, all of the documentation I'...
0
votes
1answer
88 views

Driver development vs sysfs access vs mmap for GPIOs

I believe I could not fully understand the benefits of writing device drivers in embedded systems for some specific devices, such as GPIO, when there are alternative ways of doing the same job. You ...
1
vote
1answer
42 views

GPIO board read/write via bash

Trying to get a GPIO board working, need to access it from script, here is what I am using: stty -F /dev/ttyACM1 115200 raw -echo #CONFIGURE SERIAL PORT exec 3</dev/ttyACM1 #...
0
votes
1answer
763 views

How to identify GPIO pin numbers? Is GPIO driver loaded?

I am trying to get the GPIO pins on my mainboard working but I don't know the numbers/descriptions of the pins and if a driver is loaded or not. I found this guide where it says that I should echo ...
0
votes
1answer
35 views

How to Resolve `permission denied` on Cloned Image

I had a Linux image on an Orange Pi that was had access to the GPIO pins via the command line sudo echo 1 > /sys/class/gpio_sw/PA1/data. I took the SD card out and put it into another Orange Pi ...
0
votes
1answer
26 views

How to Set Default Pin State on Orange Pi

When booting an Orange Pi the default pin state seems to be HIGH. Is there a document that I can edit that will change their default state to LOW?
0
votes
0answers
25 views

How do I reconcile different GPIO labels for the same Beaglebone Black PIN?

I'm trying to learn how to use a Beaglebone Black (Revision C). The Beaglebone Black System Reference Manual contains a table on EEPROM Pin Usage. For example, it lists Pin P9-15 as having the name ...
3
votes
0answers
118 views

What is the preferred way to unhog a hogged GPIO pin?

So I'm doing development on an ARM embedded system which is using the device trees. We're going to integrate a small PCB with a processor and support components onto a bigger PCB, which will be the ...
1
vote
1answer
117 views

Why are systemd scripts not producing the expected results at boot, but correctly afterwards?

I have a Raspberry Pi on Raspbian Stretch and I want to enable some GPIO pins at boot time. I wrote the following service: [Unit] Description=GPIO23 exported as output, value off [Service] Type=...
0
votes
1answer
1k views

Unable to export specific gpio pins. How to check what uses GPIO pins and how to access register?

I use an i.mx6 board (yocto(jethro)) and am configuring a device tree. I changed a dts file and put the dtb file in a boot partition. I set GPIO4_IO19 in dts file as follows. &iomuxc { pinctrl-...
1
vote
0answers
186 views

Set GPIO Bank Mux Mode

I'm working with an ARM machine that has a buzzer attached to GPIO pin 102. The machine is running Linux 2.6, so we have a sysfs interface to the pins in /sys/class/gpio. When I first tried to get the ...
3
votes
0answers
214 views

GPIO in unprivileged LXC container

I currently try to get GPIO-access into an unprivileged LXC application container. In future this container shall execute an application. But for now (while development) I just start a normal bash in ...
3
votes
0answers
128 views

Linux GPIO mapping

I have a WD-Mycloud, which has an LED and a button as the interface. I can access the LED under /sys/class/leds/, but I cannot find where or how the button is mapped. I know how to access the GPIO ...
3
votes
0answers
69 views

lirc refusing to play

I've installed lirc on a Raspberry Pi (running Wheezy) but can't get it to send any signal. The LED is hooked up correctly (tested it using a python script). See it working here on youtube. I used ...
1
vote
1answer
548 views

Driver gpio_keys type of buttons

I'm confused about the driver gpio_keys. This driver distinguishes between two types of buttons: IRQ-only buttons and GPIO-driven buttons Could anyone explain the difference between one and ...
1
vote
0answers
22 views

configure analogic pin as digital pin

I have the SAMA5D3 Xplained. This kit has several analog ports and my idea is to be configured as analog or digital as needed. Would it be possible to do it in an easy way from the kernel?
3
votes
0answers
949 views

Triggering Linux shutdown on power failure

I have an embedded Linux system (currently running Angstrom) with supercapacitor hardware to provide time for writes to complete and avoid corrupted filesystems when external power is removed. ...
6
votes
1answer
656 views

Running daemon involving GPIO on Pi

I have a daemon that monitors various things using the GPIO ports. I have used python to write the code for this using the RPi.GPIO module. I would like to ensure that the daemon is always running, i....
2
votes
1answer
2k views

Can one core on a multicore linux system be dedicated to one user-space app?

Can a core be dedicated to one user-space app (e.g. for the purpose of bit-banging GPIO without any interruptions)?
0
votes
1answer
316 views

Debian Lenny Adafruit_BBIO failure to install

I have Debian Lenny installed on a Beagle bone Black Rev B. I have been following the outlined steps provided on this web page: https://learn.adafruit.com/character-lcd-with-raspberry-pi-or-beaglebone-...
2
votes
0answers
92 views

How to enable second SIM slot in ALIX6F2 and how to switch 3G to it from the 1st one?

I am trying to enable the SIM slot under the RF card but with no success whatsoever. I'm using Voyage 0.8 (a stripped off Debian distribution) as an operating system. A bit of searching landed me to ...
1
vote
0answers
63 views

Is there a limit of GPIOs that can be used in Linux?

When it comes to use GPIOs, is there a limited number that can be used in Linux (except through the limitation of the physical availability/amount of the ports/pins) or is it theoretically possible to ...
1
vote
1answer
219 views

What priority should I give to a script running on startup?

I 'm running Angstrom distribution on an embedded device. I want to make use of its GPIO expansion ports, that are set to be high on start-up. Below, is the code segment, that releases an expansion ...
0
votes
2answers
364 views

GPIO User Space App

GPIO User Space App describes user space application to test the GPIO. Another related link is Linux GPIO Driver. This would be running on a xilinx zynq board having an ARM Cortex A 9 processor. I ...
6
votes
4answers
22k views

Unable to write to a GPIO pin despite file permissions on /sys/class/gpio/gpio18/value

This is on a Raspberry Pi. Here's the output of sudo ls -lL /sys/class/gpio/gpio18: -rwxrwx--- 1 root gpio 4096 Mar 8 10:50 active_low -rwxrwx--- 1 root gpio 4096 Mar 8 10:52 ...
1
vote
1answer
1k views

Basic script in Angstrom Linux running on a Beaglebone Black

On my embedded system, I can toggle a user led with: echo > 1 sys/class/leds/beaglebone:green:usr2/value. Similarly, I can find the value of a GPIO (gpio60) (set to input), with more sys/class/...
0
votes
0answers
566 views

RaspberryPi GPIO FreeBSD assignment

First my Assignment: I'm a beginner with BSD and low level peripherals like GPIO etc., and I need to toggle Raspberry GPIO Pins from a C programme on BSD. I am Using this BSD Image i took from here: ...
3
votes
0answers
1k views

Enabling GPIO in kernel not working [closed]

I have tried to enable the GPIO pins for my system through the Kernel but I am not able to get them to work. When I try this: echo 1 > /sys/class/gpio/export The terminal window just closes. ...
3
votes
2answers
3k views

How can I access GPIO pins from CentOS 6.4?

I have a single board computer with 8 GPIO pins that I would like to access from user space on my CentOS 6.4 installation. I see the GPIO pins mentioned in the 'dmesg' output, but the /sys/class/gpio ...
4
votes
1answer
2k views

Set GPIO permissions cleanly

Can the default permissions and ownership of /sys/class/gpio/ files be set, e.g. by configuring udev? The point would be to have a real gid for processes that can access GPIO pins on a board. Most "...
4
votes
2answers
3k views

Run Python Portio script as normal user without root access

I know there are risks running a root script as a normal user, but in this case I don't have a choice and what I am doing is machine related. I have an Small Board Computer that has GPIO ports and I ...