Hi, Le samedi 28 avril 2012 19:01:03, Vince Huang a écrit : > Hi,guys! > I am finding the gpio to enable USB_POWER for tl-wr843n(arthoes > ar9341).I've tried out all gpio number just can't power up the usb(with > factory firmware it does).Can someone kind to help me solve this? These > are the command I tried to find gpios,don't know if it's proper.But it > works on leds. root@OpenWrt:~# echo 6 > /sys/class/gpio/export > root@OpenWrt:~# echo out > /sys/class/gpio/gpio6/direction > root@OpenWrt:~# echo 0 > /sys/class/gpio/export > root@OpenWrt:~# echo out > /sys/class/gpio/gpio0/direction > root@OpenWrt:~# echo 1 > /sys/class/gpio/export > root@OpenWrt:~# echo out > /sys/class/gpio/gpio1/direction > root@OpenWrt:~# echo 2 > /sys/class/gpio/export > root@OpenWrt:~# echo out > /sys/class/gpio/gpio2/direction > root@OpenWrt:~# echo 3 > /sys/class/gpio/export > root@OpenWrt:~# echo out > /sys/class/gpio/gpio3/direction > root@OpenWrt:~# echo 4 > /sys/class/gpio/export > root@OpenWrt:~# echo out > /sys/class/gpio/gpio4/direction > Mach is attached.
Check whether the GPIO might be controlling the USB power using a pull-up/down GPIO. Set the GPIO direction to output, then back to input and see if that changes anything. -- Florian _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
