Whenever I want to access a GPIO pin on the Gumstix Overo Earth, I just use the sysfs filesystem.  All the GPIOs on the board I'm using are found in /sys/class/gpio.  There is a folder for each GPIO that the kernel makes available to userspace.  For example, GPIO 171 would be found under /sys/class/gpio/gpio171.  In the gpio171 folder, there may be files for direction, value, and others as well.  You can use standard filesystem commands (e.g., echo "1" > /sys/class/gpio/gpio171/value) to change settings on the pin.  If a pin is not listed, but it exists in the kernel, then you can export it via the echo command.  E.g., echo "114" > /sys/class/gpio/export.

I also use these filesystem commands in source code via Qt's QFile and QTextStream classes.

You may need to reconfigure u-boot to enable some GPIOs if they are not available to the kernel by default.  I recently received some help in this from someone to reconfigure the pin mux configuration of the Overo's u-boot boot loader inside overo.h

I'm not sure what the "Bus Support" section is, but I hope that helps.

On Fri, Jan 29, 2010 at 2:03 PM, Richman1234 <richard.manley@navy.mil> wrote:

Where is the section "Bus Support"?  This would be very helpful.

Dave Hylands wrote:
> Hi Peter,
> On 8/10/07, Peter Lu <plu777@gmail.com> wrote:
>> Does Gumstix provide some software to access GPIO registers,
>> allowing shell scripts  (and human users)  to  get to them?
>> The docwiki mentions a proc-gpio module under tips and tricks
>> and "access GPIOs from user-space" but I don't know how to
>> get this configured into the build.
> It's a kernel loadable module and it should be configured into the
> build by default.
> It's configured as part of the kernel, and can be found under the
> section "Bus support"
> --
> Dave Hylands
> Vancouver, BC, Canada
> http://www.DaveHylands.com/
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users

View this message in context: http://old.nabble.com/GPIO-access-tp12101403p27376752.html
Sent from the Gumstix mailing list archive at Nabble.com.

The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
gumstix-users mailing list