Le 16/01/2014 15:32, Paul Fertser a écrit :
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.

Here is a short script that just does that:

for i in 1 2 3 4; do cp /dev/mtd${i}ro /media/sda1/mtd${i}.img; done


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

Thanks for sharing!

Given that there is no active component beside the RT5350, the SDRAM chip, the 
SPI Flash chip and the 2 DC/DC converters on the PCB, I suspect that the only 
available GPIOs will be the ones that are required for the bootstrap options, 
ie. GPIO#4-5/8/15/22-26, plus WLAN_LED_N and RXD2 (GPIO#16) for the console.

---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce 
que la protection avast! Antivirus est active.
http://www.avast.com
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to