I've just compiled openwrt from git (latest trunk), but gpio environment is broken:
After boot, I have this in /sys/class/gpio/ :
- Code: Select all
root@OpenWrt:/sys/class/gpio# ls
export gpio13 gpio18 gpio21 gpio24 gpio7 gpiochip0
gpio0 gpio14 gpio19 gpio22 gpio25 gpio8 gpiochip22
gpio12 gpio17 gpio20 gpio23 gpio26 gpio9 unexport
When I try to use gpio pin #2, I have this:
- Code: Select all
root@OpenWrt:/sys/class/gpio# echo 2 > /sys/class/gpio/export
[ 1294.500000] rt2880-pinmux pinctrl.1: pin 2 is not set to gpio mux
[ 1294.500000] rt2880-pinmux pinctrl.1: request() failed for pin 2
[ 1294.500000] rt2880-pinmux pinctrl.1: pin-2 (pio:2) status -22
ash: write error: Invalid argument
I found this topic -> http://vonger.cn/?topic=rfc-openwrt-support
However I don't understand how to fix this problem!