pcDuino GPIO Ports?

This forum is for supported devices using an ARMv7 Allwinner SoC.

pcDuino GPIO Ports?

Postby jheising » Thu Jul 18, 2013 4:21 pm

Hey all, I have Archlinux running on my pcDuino and am trying to access the "arduino-ish" GPIO ports. Maybe I'm being dense, but I can't seem to find any sysfs device file paths that map to them. Any ideas/documentation on where or if they are mapped in the pcDuino build? I've looked for the usual culprits at /sys/class/export and /sys/kernel/debug/gpio, but those aren't there.

Any help would be greatly appreciated!
jheising
 
Posts: 3
Joined: Thu Jul 18, 2013 4:08 pm

Re: pcDuino GPIO Ports?

Postby WarheadsSE » Thu Jul 18, 2013 5:05 pm

I am not immediately sure, but check for /sys/class/gpio/export && see if you need to load a module.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: pcDuino GPIO Ports?

Postby jheising » Thu Jul 18, 2013 5:51 pm

Thanks WarheadSE. Check for /sys/class/gpio/export in the filesystem? Or somewhere else? I've checked for /sys/class/gpio/export in the filesystem and it's not there. But maybe you mean like in a .fex file or a kernel build setting maybe?
jheising
 
Posts: 3
Joined: Thu Jul 18, 2013 4:08 pm

Re: pcDuino GPIO Ports?

Postby WarheadsSE » Thu Jul 18, 2013 6:27 pm

Did you check about a module?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: pcDuino GPIO Ports?

Postby jheising » Thu Jul 18, 2013 7:14 pm

Ahhh. I'm a bit of a noob to archlinux, so sorry if I'm acting a little slow. :D

Is there a repository for kernel modules where I would need to download it, or do I just need to look for it on disk and activate under /etc/modules-load.d/?
jheising
 
Posts: 3
Joined: Thu Jul 18, 2013 4:08 pm

Re: pcDuino GPIO Ports?

Postby WarheadsSE » Fri Jul 19, 2013 12:34 pm

Yes,
$this->bbcode_second_pass_code('', '
find /lib/modules/ -name *gpio*
')

There is no "repository of modules", it is either there or not. If it isn't, I'll look into it.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Allwinner

Who is online

Users browsing this forum: No registered users and 13 guests