Banana/RaspberryPi

On this page there is some information especially for the small computers BananaPi and similar GPIO ports:

In order to make these GPIO’s usable for SvxLink (and also for other programs), these must first be initialized.

By writing certain parameters to /sys/class/gpio/xxx, the individual GPIO pins are defined as inputs or outputs, e.g. echo „in“>/sys/class/gpio/gpio3/direction defines the GPIO3 as an input. This can be done automatically during the boot process (/etc/init.d/boot.local). Here are a few examples.BananaPiecho „3“>/sys/class/gpio/export
echo „in“>/sys/class/gpio/gpio3/direction
echo „5“>/sys/class/gpio/export
echo „in“>/sys/class/gpio/gpio5/direction
echo „10“>/sys/class/gpio/export
echo „out“>/sys/class/gpio/gpio10/direction
echo „9“>/sys/class/gpio/export
echo „out“>/sys/class/gpio/gpio9/direction
chown -R svxlink:users /sys/class/gpio/gpio10
chown -R svxlink:users /sys/class/gpio/gpio3
chown -R svxlink:users /sys/class/gpio/gpio9
chown -R svxlink:users /sys/class/gpio/gpio5{:}