I was unable to find a pre­com­piled GPIO mod­ule for the Ath­eros build. So I cre­ated a new Open­wrt Pack­age which is based on Ticket #1172. The mod­ule itself was cre­ated by olg and is hosted here.

On this site you can find the GPIO pinout:

1
2
3
4
5
6
7
8
9
10
11
Pinout Fon­era
————-
GPIO    Descrip­tion
0       TP3
1       pin 5 of SW1
2       WLAN LED
3       pin 1 of SW1
4       pin 2 of SW1
5       RESET (!)
6       RESET but­ton
7       pin 6 of SW1

They also demon­strate how to use it:

1
2
3
4
5
6
echo WLAN LED on
echo 1 > /proc/gpio/2_dir
echo 1 > /proc/gpio/2_out
echo WLAN LED off
echo 1 > /proc/gpio/2_dir
echo 0 > /proc/gpio/2_out

Down­load the source or the (soon out­dated) binary pack­age (Ker­nel v2.6.23.1).