0

So, I recently got an APU3 board (like this one: Board Link). I decide to load PFSense on this, which runs on FreeBSD. There are GPIO ports on the board, which can be seen through the documentation as well. I found this command called gpioctl, which does not work in triggering the GPIO pins as it needs this directory called dev/gpio which is not present in the dev directory. GPIO pins are not present in the sys directory as well(in fact, I have no sys directory). Is there any way I can control my GPIO pins?

Thank you

Rob
  • 14,746
  • 28
  • 47
  • 65
  • 2
    Is gpiobus loaded into the kernel? https://www.freebsd.org/cgi/man.cgi?gpio(4) – Michael-O Aug 23 '21 at 13:12
  • 2
    Perhaps [gpioctl(8)](https://www.freebsd.org/cgi/man.cgi?query=gpioctl&apropos=0&sektion=0&manpath=FreeBSD%2013.0-RELEASE%20and%20Ports&arch=default&format=html) is what you want? – Steve Wills Aug 23 '21 at 14:46
  • @Michael-O a bit new to this, but I am not able to find a kernel configuration file where I can make these changes. Can you tell me the possible locations where this could be located? – Arjun Chakkrapani Aug 24 '21 at 07:30
  • @ArjunChakkrapani You don't necessarily need to recompile the kernel. First try `gpioctl` command to see if it works. – arrowd Aug 24 '21 at 07:52
  • @arrowd I tried. The command definitely exists. But when I try to control a GPIO pin, it says, gpio_open: No such file or directory. As in, the command exists, but the gpio files do not? – Arjun Chakkrapani Aug 24 '21 at 09:14
  • `ls /dev/gpio*`? – arrowd Aug 24 '21 at 10:21

0 Answers0