GPIO Using Fedora 18 on pcDuino

I recently purchased a pcDuino because of it’s plenitude of I/O (5v) GPIO pins.
My Raspberry Pi was an interesting board, but it lacked the GPIO and Analog to Digital inputs that make the Arduino so useful.
The Arduino, while imminently useful, lacks the power to handle images and other
high-bandwith tasks so it’s relegated to motor control and simple I/O.

The pcDuino comes well-outfitted compared to both the Raspberry Pi and the Arduino:

Once I saw the horrid version of Lubuntu that came pre-installed on the device, I started looking for a Fedora port. Luckily Hans de Goede has published a Fedora port for the Allwinner 10 chip. Loading this was simple and straightforward – just follow the README

Then came the task of accessing the GPIO. The Lubuntu image that came with the device exposed some GPIO pins at /sys/devices/virtual/misc/gpio, but Fedora did not show any pins there. After a couple of days of probing the Internet for the source, I stumbled across the amazing GPIO sysfs capabilities of Linux.

After following the guide on elinux.org, I was still unable to access *any* GPIO. Then I remembered that I chose “cubieboard” when I loaded the port by Hans. More hunting revealed uboot, sunxi-tools and the script.bin file. Following are the rough instructions on how to get access to the GPIO on your pcDunio in Fedora…