Hi,

On Tue, Jan 14, 2014 at 03:46:00PM +0100, Michel Stempin wrote:
> > Well, one can relatively easily "debrick" by flashing directly to the
> > serial chip with some external device such as ftdi board or raspberrypi.
> 
> Yes, provided you did a backup of the partitions first thing:)

That's the first thing I did after telnetting to stock
firmware. Attached a mass storage device (usb flash) and made a full
backup. I think that's what every reasonable person would do.

> >>> The image for MPR-A1 works nicely on this board so there's no sense
> >>> adding it separately.
> >>
> >> What about the GPIOs?
> > 
> > Tested LEDs and the button, work as expected. Deeper digging for other
> > possible lines is yet to be performed.
> > 
> 
> @anton.rad did some further tests:
> 
> https://forum.openwrt.org/viewtopic.php?pid=222698#p222698

Damn, sometimes I wish OpenWrt users were banned from using any
webforums to avoid the community informational split.

I confirm his results for GPIO8. However, he's certainly using some
custom firmware without telling anybody because rt5350.dtsi has
"disabled" for the second "bank" of GPIOs, so I can't test anything
higher than 23. But also the existing MPR A1 dts doesn't switch
SW_PHY_LED to GPIO, so I can't test GPIO 22 and 23 either (unless I
recompile which will happen only later). I wished he shared the
improvements with the community...

Among all the lower GPIOs I wasn't able to find anything apart from
GPIO8 (and known leds and the key of course); neither usb power / root
hub controls, nor JTAG pins, nor the others :/

Here's a dirty script I'm using to probe for gpios, bisecting is fast
enough (giving first and last gpio numbers as arguments):

#!/bin/sh
cd /sys/class/gpio
for i in `seq $1 $2`; do
    echo $i > export; echo out >gpio$i/direction
done
nums=`seq $1 $2`
while true; do
      for i in $nums; do
          echo 0 > gpio$i/value
      done
      for i in $nums; do
          echo 1 > gpio$i/value
      done
done

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to