<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Recovery from a Blown Serial Port</title>
        <description> Just for posterity/anyone who needs an idea ...  

I had an expendable Pogoplug V2/E02 that I'd picked up as bricked... recovered it via serial cable and used it as a test subject.  Due to some unforeseen circumstances, the serial port became fried... and I was unable to boot it any longer, plus the NAND contents had become trashed.  

It seems the fix for this was pretty predictable... using OpenOCD...
1.  Flash u-boot.mtd0.kwb as normally done
2.  Flash  uboot.environment to the correct location
3.  Attached a USB drive that already has  Debian set up on it.


&amp;gt; dockstar_init
dockstar_init
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
&amp;gt; nand probe 0
nand probe 0
NAND flash device 'NAND 128MiB 3.3V 8-bit (Hynix)' found
&amp;gt; nand erase 0 0x0 0xa0000
nand erase 0 0x0 0xa0000
erased blocks 0 to 5 on NAND flash device #0 'NAND 128MiB 3.3V 8-bit'
&amp;gt; nand erase 0 0xa0000 0xe0000
nand erase 0 0xa0000 0xe0000
erased blocks 5 to 12 on NAND flash device #0 'NAND 128MiB 3.3V 8-bit'
&amp;gt; nand write 0 uboot.mtd0.kwb-pogo_e02-DGL2CDisabled 0 oob_softecc_kw
nand write 0 uboot.mtd0.kwb-pogo_e02-DGL2CDisabled 0 oob_softecc_kw
&amp;gt; nand write 0 uboot_E02.environment 0x0c0000 oob_softecc_kw
nand write 0 uboot_E02.environment 0x0c0000 oob_softecc_kw
Now, to get some kind of control over it... go back in while booted in Debian and turn on the netconsole:

fw_setenv serverip 192.168.11.149
fw_setenv ipaddr 192.168.11.150
fw_setenv ethaddr 00:25:31:02:CD:67
fw_setenv if_netconsole 'ping $serverip'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'run if_netconsole start_netconsole'

...my preferred invocation of nc/netcat to chatter back and forth via netconsole...

nc -klu 6666


Alive again.

It is my guess that a capacitor, resistor or fuse has blown on the board, as booting it now requires a momentary shorting of pins 3 &amp;amp; 4 on the JTAG port.</description>
        <link>http://forum.doozan.com/read.php?3,7317,7317#msg-7317</link>
        <lastBuildDate>Sat, 25 May 2013 00:07:55 -0400</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://forum.doozan.com/read.php?3,7317,7374#msg-7374</guid>
            <title>Re: Recovery from a Blown Serial Port</title>
            <link>http://forum.doozan.com/read.php?3,7317,7374#msg-7374</link>
            <description><![CDATA[ It will only work if it is just a simple blown port.  If there is something within the processor that is shot/shorted/failed, then it wouldn't work.<br />
<br />
<a href="http://archlinuxarm.org/forum/viewtopic.php?f=18&amp;t=1120#p13778"  rel="nofollow">http://archlinuxarm.org/forum/viewtopic.php?f=18&amp;t=1120#p13778</a><br />
<br />
shows my efforts ...<br />
<br />
After a successful jtag flash, power down the kirkwood device, and disconnect the JTAG adapter from it.  Restart &amp; cross fingers... may work, may not.<br />
<br />
You may have to leave off the netconsole part... first, just get it to reboot correctly.]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 15 Mar 2012 17:04:44 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,7317,7363#msg-7363</guid>
            <title>Re: Recovery from a Blown Serial Port</title>
            <link>http://forum.doozan.com/read.php?3,7317,7363#msg-7363</link>
            <description><![CDATA[ I was quite excited reading about this, hoping I could revive my dockstar with broken serial.  Unfortunately it didn't work for me.  <br />
What did you do after flashing?  Just removed JTAG and resetted the dockstar or are some other commands needed?  Could you also share which dockstar.cfg you used?<br />
<br />
Thanks in advance!]]></description>
            <dc:creator>nielsek</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 15 Mar 2012 02:46:47 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,7317,7317#msg-7317</guid>
            <title>Recovery from a Blown Serial Port</title>
            <link>http://forum.doozan.com/read.php?3,7317,7317#msg-7317</link>
            <description><![CDATA[ Just for posterity/anyone who needs an idea ...  <br />
<br />
I had an expendable Pogoplug V2/E02 that I'd picked up as bricked... recovered it via serial cable and used it as a test subject.  Due to some unforeseen circumstances, the serial port became fried... and I was unable to boot it any longer, plus the NAND contents had become trashed.  <br />
<br />
It seems the fix for this was pretty predictable... using OpenOCD...<br />
1.  Flash u-boot.mtd0.kwb as normally done<br />
2.  Flash  uboot.environment to the correct location<br />
3.  Attached a USB drive that already has  Debian set up on it.<br />
<br />
<pre class="bbcode">
&gt; dockstar_init
dockstar_init
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
&gt; nand probe 0
nand probe 0
NAND flash device 'NAND 128MiB 3.3V 8-bit (Hynix)' found
&gt; nand erase 0 0x0 0xa0000
nand erase 0 0x0 0xa0000
erased blocks 0 to 5 on NAND flash device #0 'NAND 128MiB 3.3V 8-bit'
&gt; nand erase 0 0xa0000 0xe0000
nand erase 0 0xa0000 0xe0000
erased blocks 5 to 12 on NAND flash device #0 'NAND 128MiB 3.3V 8-bit'
&gt; nand write 0 uboot.mtd0.kwb-pogo_e02-DGL2CDisabled 0 oob_softecc_kw
nand write 0 uboot.mtd0.kwb-pogo_e02-DGL2CDisabled 0 oob_softecc_kw
&gt; nand write 0 uboot_E02.environment 0x0c0000 oob_softecc_kw
nand write 0 uboot_E02.environment 0x0c0000 oob_softecc_kw</pre>
Now, to get some kind of control over it... go back in while booted in Debian and turn on the netconsole:<br />
<pre class="bbcode">
fw_setenv serverip 192.168.11.149
fw_setenv ipaddr 192.168.11.150
fw_setenv ethaddr 00:25:31:02:CD:67
fw_setenv if_netconsole 'ping $serverip'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'run if_netconsole start_netconsole'</pre>
<br />
...my preferred invocation of nc/netcat to chatter back and forth via netconsole...<br />
<pre class="bbcode">
nc -klu 6666</pre>
<br />
<br />
Alive again.<br />
<br />
It is my guess that a capacitor, resistor or fuse has blown on the board, as booting it now requires a momentary shorting of pins 3 &amp; 4 on the JTAG port.]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 11 Mar 2012 18:41:07 -0400</pubDate>
        </item>
    </channel>
</rss>
