SysFs interface. I can't export gpio pins in a Xilinx's Board (Zybo and other)
I faced the same problem. The solution is to add 906 as a "base" of the "address-gpio". For example, if you want to manage the pin of the PS connected to MIO 7, you should do something like this:
zynq> echo 913 > /sys/class/gpio/export
zynq> echo out > /sys/class/gpio/gpio913/direction
zynq> echo 1 > /sys/class/gpio/gpio913/value
(where 906+7=913 of course).
Or, if you want to switch it off:
zynq> echo 0 > /sys/class/gpio/gpio913/value
How do I find this value? Well, in my case I was just lucky: if you have a look in
ls /sys/class/gpio
you can see that it already exists gpiochip906
. Go inside this directory and have a look inside the file base
(using "less" for example): there is only the value 906 of course
How to set a gpio pin to high and make it visible in /sys/class/gpio?
Well I did this with the example given here
Related Topics
Does a Fully Qualified Domain Name Need a Period
How to Launch a Background Process Through a Wrapper That'Ll Undo The Sigint Ignore
Install Gulp Browserify Gives Error Always
Home Directory Is Not Created with Adding User Resource with Chef
File Search Algorithms Using Indexing in Linux
Arguments Were Passed Wrong in Pthread
Linux User Space Threads, Kernel Threads, Lightweight Processes
How to Install Pysqlite for Python3.4.2
What Does Signal(Sigchld, Sig_Dfl); Mean
Linux Module to Hook Process Functions
How to Find Size of Heap Present in Linux
Calling Windows Subsystem for Linux Apps Through Powershell/Cmd
Can You Explain This Sed One-Liner
Gfortran: Compiling 32-Bit Executable in 64-Bit System
Bash Ip If Then Else Statement
Dialog in Bash Is Not Grabbing Variables Correctly