<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Use netconsole to troubleshoot uBoot without a serial cable</title>
        <description>This assumes that your desktop machine has an ip address of 192.168.1.2 and that the Dockstar is okay to use IP address 192.168.1.100.   You'll probably need to adjust these to something appropriate for your network.

On the Dockstar:
[code]
fw_setenv serverip 192.168.1.2
fw_setenv ipaddr 192.168.1.100
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'
[/code]

On your desktop (192.168.1.2):
[code]
nc -l -u -p 6666
[/code]

Note: the above command will start a 'view-only' console.  If you want to be able to interact with uBoot, you need to run the first 'nc' instance in the background and then use a second instance to send the commands back to the Dockstar:
[code]
nc -l -u -p 6666 &amp;
nc -u 192.168.1.100 6666
# run killall nc after you've finished to kill the background nc process
[/code]

Now when your start your Dockstar, your server should display the boot process.

A windows port of nc is available [url=http://www.rodneybeede.com/Compile_Netcat_on_Windows_using_MinGW.html]here.[/url]  You'll probably be limited to a 'view-only' console.

You may need to disable the firewall on your computer to get nc working.

Not all versions of nc use the same command line arguments.  I can verify that the above commands work on Debian and Windows.  Other distros may need different switches.

-- Jeff</description>
        <link>http://forum.doozan.com/read.php?3,14,14#msg-14</link>
        <lastBuildDate>Wed, 22 May 2013 18:47:41 -0400</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,11710#msg-11710</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,11710#msg-11710</link>
            <description><![CDATA[ I am trying to get netconsole set up on a SeaGate GoFlex. I already followed this guide: <a href="http://forum.doozan.com/read.php?3,14,14"  rel="nofollow">http://forum.doozan.com/read.php?3,14,14</a><br />
<br />
but I think that I followed it too early, as it does not work for me. It was suggested that I try upgrading uboot, but I guess because it's already been altered, the md5sum is different and the script here: <a href="http://projects.doozan.com/uboot/"  rel="nofollow">http://projects.doozan.com/uboot/</a> refuses to run.<br />
<br />
Here's the output of fw_printenv: <br />
<br />
=====================================<br />
fw_printenv output:<br />
=====================================<br />
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:<br />
<br />
${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm<br />
bootdelay=5<br />
baudrate=115200<br />
serverip=192.168.0.103<br />
ipaddr=192.168.0.107<br />
if_netconsole=ping $serverip<br />
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout <br />
<br />
nc; setenv stderr nc; version;<br />
preboot=run if_netconsole start_netconsole<br />
=======================================<br />
<br />
I'd like to force an upgrade of uboot, I guess. How can I do it manually, without using the script?]]></description>
            <dc:creator>Quinten</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 04 Mar 2013 15:03:33 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,11588#msg-11588</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,11588#msg-11588</link>
            <description><![CDATA[ Hmm first time I've had to use netcat with uboot; I'm finding a few weird things:<br />
  1) It's rare for me to be able to interrupt the boot during the 3.2.1 countdown - just carries on; unplugging the boot device stops it and I can interact.<br />
  2) printenv in uboot causes nc to exit, even though from wireshark the box sent all the data (Hint: wireshark has a thing to extract the whole stream; very nice).<br />
<br />
<br />
both of these seem true with both nc and socat (on Ubuntu raring).<br />
<br />
Dave]]></description>
            <dc:creator>Dave Gilbert</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 23 Feb 2013 16:45:12 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,11501#msg-11501</guid>
            <title>netconsole no joy dockstar</title>
            <link>http://forum.doozan.com/read.php?3,14,11501#msg-11501</link>
            <description><![CDATA[ Latest u-Boot from here, followed netconsole instructions, no output.<br />
<br />
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm<br />
baudrate=115200<br />
usb_rootdelay=10<br />
bootdelay=8<br />
serverip=192.168.1.5<br />
ipaddr=192.168.1.2<br />
if_netconsole=ping $serverip<br />
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;<br />
preboot=run if_netconsole start_netconsole<br />
<br />
Help?]]></description>
            <dc:creator>Martin Espinoza</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 13 Feb 2013 08:59:01 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10874#msg-10874</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10874#msg-10874</link>
            <description><![CDATA[ If you want to use Arch and be able to set UBoot envs, I'd suggest to use only blparam to do that (don't use fw_setenv). See if it works without corrupting the envs, I think it is very likely the reason that it got booted back to stock.<br />
<br />
Another thought: did you check dmesg after executing fw_setenv?]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 12 Dec 2012 19:33:39 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10873#msg-10873</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10873#msg-10873</link>
            <description><![CDATA[ After I modified  /etc/fw_env.config I executed fw_printenv which listed the u-boot enviroment without an errors given.  After I install Arm Linux, blparam does not exist.  I have to install the package pogoplug-blparam.<br />
<br />
What is interesting is if I try to revert back to the stock Pogoplug OS using this proceedure (http://archlinuxarm.org/platforms/armv5/pogoplug-series-4#qt-platform_tabs-ui-tabs3) it won't work for me.  Nothing happens and I am still running out the Arm Linux u-boot for the PPv4.  This is one of the reasons why I was hoping to use netconsole on the PPv4 so I can why this is failing for me.]]></description>
            <dc:creator>winestock</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 12 Dec 2012 18:45:00 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10871#msg-10871</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10871#msg-10871</link>
            <description><![CDATA[ Without seeing your log and the exact output, I can only make educated guess.  It probably messed up your UBoot envs, so UBoot used the default envs, therefore it was booted back to stock in NAND.<br />
<br />
The file /etc/fw_env.config should have the correct info for where the uboot envs are in NAND. One easy way to verify it is by executing fw_printenv, if you see all envs that you'd expected, and you get no Bad CRC error then your fw_setenv should work fine.<br />
<br />
After you've first installed ALARM using the instruction at Arch site, you should only use blparam to list envs:<br />
 <pre class="bbcode">
/usr/local/cloudengines/bin/blparam</pre>
<br />
<br />
and set envs:<br />
<pre class="bbcode">
/usr/local/cloudengines/bin/blparam <i>envname</i>=<i>value</i>
or
 /usr/local/cloudengines/bin/blparam <i>envname</i>='...'  (if the value contain a script)</pre>
<br />
<br />
So if your fw_printenv gave you error, then use blparam to list the envs to see if it works OK.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 12 Dec 2012 18:12:36 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10870#msg-10870</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10870#msg-10870</link>
            <description><![CDATA[ I was hoping to be able to use netconsole on the PPv4 with needing a physical serial cable.  Oh well.<br />
<br />
Maybe you can answer a question for me.  When I use fw_setenv after I have installed Arm Linux and reboot my PPv4 I end up being back at the Pogoplug OS.  I have two PPv4 and this happens with both.  Any idea why that happens?]]></description>
            <dc:creator>winestock</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 12 Dec 2012 17:45:25 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10868#msg-10868</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10868#msg-10868</link>
            <description><![CDATA[ @winestock,<br />
<br />
I dont think that UBoot version support netconsole. It's basically the same as the stock UBoot from Cloud Engines. Kevin (ALARM developer) said that he only recompiled and configured it to boot Arch, but did not add anything new.<br />
<br />
Davy's UBoot version, which has netconsole, works with everything but SATA. And currently, it can only be flashed through serial console, per his procedure. <br />
<br />
I've figured out how to boot Debian on PogoV4 SATA using ALARM's UBoot version, without using serial console. Basically, you just install ALARM, and then add/modify the UBoot envs through command line to enable booting with Debian kernel on either SATA or USB drive. I'll write it up and post here if that's what you're looking for!]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 12 Dec 2012 16:51:53 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10863#msg-10863</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10863#msg-10863</link>
            <description><![CDATA[ Hi,<br />
<br />
I would like to know if the u-boot for the Pogoplug Series 4 supports netconsole.  The u-boot that I have installed comes from <a href="http://archlinuxarm.org/os/ppv4/ppv4-install.sh"  rel="nofollow">http://archlinuxarm.org/os/ppv4/ppv4-install.sh</a>.  I would like to know if I perform the following commands will I be able to use netconsole from the Pogoplug Series 4 u-boot:<br />
<br />
<pre class="bbcode">
fw_setenv serverip 192.168.1.2 
fw_setenv ipaddr 192.168.1.100 
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>]]></description>
            <dc:creator>winestock</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 12 Dec 2012 10:12:03 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10760#msg-10760</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10760#msg-10760</link>
            <description><![CDATA[ Thanks, after enabling netconsole and struggling with nc netconsole works very well (concretely: using 'nc -klup 6666 &amp;' and 'socat STDIO UDP-SENDTO:192.168.1.14:6666', everything else failed). I don't want to do double-postings, so if anyone can help me to get Wheezy or Squeeze to work/ boot, please answer here: <a href="http://forum.doozan.com/read.php?2,9256,10757#msg-10757"  rel="nofollow">http://forum.doozan.com/read.php?2,9256,10757#msg-10757</a>.<br />
<br />
In short, the problem is that after installing successfully RescueV2 (in flash) via Jeff's embed-debian (booted from USB) the install scripts of wheezy (adjusted to kernel 3.2.0-4) and squeeze (adjusted for debootstrap, see script from shyd) both went fine without any error, but they do not come to a stage where ping/ssh and therefor remote access is possible. DavyGravy's NSA rootfs-image does not boot too. However, RescueV2 (from flash), RescueV3 (from USB with kernel 3.3.2), Jeff's embed-debian (from USB) boot perfectly well. As RescueV3 boots, it should not be related to kernel-version per se.<br />
<br />
&quot;Not booting&quot; means the netconsole shows all boot perfectly, ie. &quot;Starting kernel...&quot; and successfully loading &quot;uImage&quot; and &quot;uInitrd&quot;, but then no ping nor ssh is possible (IP is received via dhcp &amp; MAC, so that's not the problem I think). It is not the USB stick (tried different sticks with different images on it) and I don't know how to see any logfiles/ messages. Netconsole ends with the message &quot;Starting kernel...&quot;, so no messages after that. Is it possible to get further messages?<br />
<br />
Comment: installing RescueV2 from within RescueV3 failed with error &quot;uboot too old/ not latest&quot; although Jeff's uboot script tells definitely &quot;up to date&quot;. RescueV2 was therefor installed from embed-debian (bootet from USB) without any problem. arcNumber is correctly set to 2998 (Dockstar).<br />
<br />
Question: Can the whole thing be related to &quot;usb_root=/dev/sda1 ro&quot; as Bodhi mentions that read-only is unsual (I did not set that myself)?<br />
<br />
Again, please answer on the other thread to avoid double posting unless this seems to be a problem related to uboot or can be solved via netconsole.]]></description>
            <dc:creator>lcg</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 28 Nov 2012 16:44:26 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10751#msg-10751</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10751#msg-10751</link>
            <description><![CDATA[ Yes, it is safe to set up netconsole right after a successful UBoot install. As long as you have installed the new UBoot, and it reported as successful, print out the fw envs like you did above and see all envs are set properly. <br />
<br />
Your UBoot envs has rootfs-related setting that were not normal (read only) I think because of the failed &quot;kernel too old&quot;. But it should not prevent the Dockstar to boot the new UBoot, so you can use netconsole to stop it at the countdown. The worse case is: with the new UBoot, you can download Davy's rootfs and boot the Dockstar with it. <br />
<br />
My observation is based on the assumption that your UBoot installation was successful.  Your UBoot envs look good for booting until the point before loading the kernel. Do you keep the log of your installation? can you see it on the terminal now?]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 26 Nov 2012 16:57:30 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,10749#msg-10749</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,10749#msg-10749</link>
            <description><![CDATA[ Hello,<br />
<br />
is it possible and safe to enable netconsole directly after installing uboot BUT BEFORE doing a reboot? Problem is that (see thread under &quot;Debian&quot; but unfortunately unanswered, maybe my question was seen as too easy) the Debian Wheezy install script from Jeff failed with &quot;kernel too old&quot; error AFTER uboot was already installed by the script. I used a clean new Dockstar. Thus, as far as I can see fw_* commands are already there but netconsole is not set (and I did not reboot yet because the install failed).<br />
<br />
So to set the commands now is ok and then reboot and then netconsole is working immediately? ie.<br />
<br />
fw_setenv serverip 192.168.1.2<br />
fw_setenv ipaddr 192.168.1.100<br />
fw_setenv if_netconsole 'ping $serverip'<br />
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'<br />
fw_setenv preboot 'run if_netconsole start_netconsole'<br />
<br />
here the environment:<br />
<br />
-bash-3.2# fw_printenv <br />
ethact=egiga0<br />
bootdelay=3<br />
baudrate=115200<br />
mainlineLinux=yes<br />
console=ttyS0,115200<br />
led_init=green blinking<br />
led_exit=green off<br />
led_error=orange blinking<br />
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)<br />
mtdids=nand0=orion_nand<br />
partition=nand0,2<br />
stdin=serial<br />
stdout=serial<br />
stderr=serial<br />
rescue_installed=0<br />
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params<br />
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi<br />
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi<br />
force_rescue=0<br />
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi<br />
ubifs_mtd=3<br />
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params<br />
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data &amp;&amp; ubifsmount rootfs &amp;&amp; ubifsload 0x800000 /boot/uImage &amp;&amp; ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi<br />
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 &amp;&amp; ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo &quot;Found bootable drive on usb $usb&quot;; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done<br />
usb_scan_list=1 2 3 4<br />
usb_scan_1=usb=0:1 dev=sda1<br />
usb_scan_2=usb=1:1 dev=sdb1<br />
usb_scan_3=usb=2:1 dev=sdc1<br />
usb_scan_4=usb=3:1 dev=sdd1<br />
usb_init=run usb_scan<br />
usb_device=0:1<br />
usb_rootfstype=ext2<br />
usb_rootdelay=10<br />
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot<br />
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi<br />
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset<br />
ethaddr=00:10:75:1A:DD:43<br />
arcNumber=2097<br />
usb_root=/dev/sda1 ro<br />
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts init=/sbin/init-ro<br />
-bash-3.2# <br />
<br />
thanks,<br />
leo]]></description>
            <dc:creator>lcg</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 26 Nov 2012 09:33:34 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,9780#msg-9780</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,9780#msg-9780</link>
            <description><![CDATA[ try ncat instead. i had no problem using just ncat -lu 6666. ncat is part of the nmap suite <br />
<br />
i get connection, hit enter to interrupt and i am dropped into a marvel shell. can type commands and not get disconnect.<br />
<br />
get ncat here: <a href="http://nmap.org/ncat/"  rel="nofollow">http://nmap.org/ncat/</a>]]></description>
            <dc:creator>juan</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 02 Oct 2012 23:46:46 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,9748#msg-9748</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,9748#msg-9748</link>
            <description><![CDATA[ Hi Jeff,<br />
Sorry to bother, but I'm in a spot of same. (I'm a Linux noobie, &amp; old PC hack)<br />
Got a GoFlex Home running Arch Linux and had been happily running until a pacman upgrade a few days ago that went AWOL (glibc errors etc.)<br />
I've got back to a stage of solid green light, and can get nc to talk and see your U Boot but cannot get it to halt process.<br />
Tried running two sessions, as suggested, but think I'm missing something in trying this?<br />
<pre class="bbcode">
ubuntu@ubuntu:~$ nc -lu 6666 &amp;
[1] 8823
ubuntu@ubuntu:~$ nc -lu 10.10.10.5 6666

U-Boot 2010.09 (Feb 16 2011 - 18:44:23)
UBIT v0.6 by Jeff Doozan and Peter Carmichael
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:   2   1  0 
UBIFS error (pid 0): ubifs_get_sb: cannot open &quot;ubi:fast&quot;, error -19
Error reading superblock on volume 'ubi:fast'!
UBIFS not mounted, use ubifs mount to mount volume first!
** Block device usb 0 not supported
** Block device usb 0 not supported</pre>
Hope you can point me in the right direction.<br />
Thanks<br />
Brian]]></description>
            <dc:creator>Brian M</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 29 Sep 2012 13:03:10 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,9431#msg-9431</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,9431#msg-9431</link>
            <description><![CDATA[ How do you configure <b>bootargs</b> in Uboot environment to post kernel messages in the same Netconsole window after Uboot messages are finished posting? I've Dockstar with ArchLinux ARM 3.5.2 installed and running. Should anything be configured for this in ArchLinux too?]]></description>
            <dc:creator>sambul14</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 28 Aug 2012 15:13:58 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,9419#msg-9419</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,9419#msg-9419</link>
            <description><![CDATA[ maybe it can save some headache...<br />
i have to stop and unplug/plug my dockstar to make the netconsole work !<br />
(a reboot was not sufficient)]]></description>
            <dc:creator>tempest69</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 27 Aug 2012 12:17:48 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,9281#msg-9281</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,9281#msg-9281</link>
            <description><![CDATA[ I have the exact same problem. Had everything working perfectly off SATA, then a 'halt' later and everything appears fine from the uboot output (finds kernel image, and initramfs and says 'starting kernel') but then nothing!<br />
<br />
<br />
~~~~~~~~~<br />
<br />
Actually I don't have the same problem. Seems that your uInitrd file wasn't found during boot. My system finds that as well as uImage.]]></description>
            <dc:creator>floodo1</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 13 Aug 2012 19:54:33 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,8839#msg-8839</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,8839#msg-8839</link>
            <description><![CDATA[ I have installed u-boot and rescue system on a GFH for a friend.<br />
The GFH worked very well until a shutdown -h now. I can't get access via SSH when the disk is on its support. Rescue works. I've tried to reinstall the system, same behavior: it boots but after some halt / reboot, 2 or 3 times ;-) no more ssh access, no ip. <br />
<br />
Here is what gives me nc -lu -p 6666:<br />
<pre class="bbcode">
# nc -lu -p 6666

U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on &quot;nand0&quot;:
0x000002500000-0x000010000000 : &quot;mtd=3&quot;
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error 22
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST31000528AS Firm: CC46 Ser#: 5VP6VQAG
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
Loading file &quot;/boot/uImage&quot; from ide device 0:1 (hda1)
2857200 bytes read
Loading file &quot;/boot/uInitrd&quot; from ide device 0:1 (hda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.1.10-12-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2857136 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...</pre>
<br />
I am wondering why there are these lines:<br />
<pre class="bbcode">
Seagate GoFlexNet (should'nt it be GoFlexHome?)

<b>UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error 22</b></pre>
<br />
Your help wellcome.<br />
<br />
For info:<br />
<pre class="bbcode">
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data &amp;&amp; ubifsmount rootfs &amp;&amp; ubifsload 0x800000 /boot/uImage &amp;&amp; ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 &amp;&amp; ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo &quot;Found bootable drive on usb $usb&quot;; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
rescue_installed=1
arcNumber=3089
ipaddr=192.168.1.16
ethaddr=00:10:75:2a:17:fd
serverip=192.168.1.18
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
sata_device=0:1
sata_root=/dev/sda1
sata_rootfstype=ext3
sata_rootdelay=10
sata_set_bootargs=setenv bootargs console=$console root=$sata_root rootdelay=$sata_rootdelay rootfstype=$sata_rootfstype $mtdparts $sata_custom_params
sata_boot=ide reset; mw 0x800000 0 1; ext2load ide $sata_device 0x800000 /boot/uImage; if ext2load ide $sata_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_bootcmd=run sata_set_bootargs; run sata_boot
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset</pre>
<br />
<br />
EDIT: I have seen this post: <a href="http://forum.doozan.com/read.php?4,3192,3192#msg-3192"  rel="nofollow">http://forum.doozan.com/read.php?4,3192,3192#msg-3192</a><br />
Seems my UBI errors are not important. I am trying to understand why the GoFlex Home does not boot more than 2 or 3 times on a SATA drive. :(]]></description>
            <dc:creator>Sagittarius</dc:creator>
            <category>uBoot</category>
            <pubDate>Fri, 20 Jul 2012 16:38:01 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,8037#msg-8037</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,8037#msg-8037</link>
            <description><![CDATA[ Jeff,<br />
Woud you mind telling me what version of u-boot was used to configure netconsole and what files were modified to get it to work on the dockstar ? I ask simply because I am looking to use to troubleshoot a freescale processor (mpc5125) to be exact. I haven't had too much sucess using a different processor.]]></description>
            <dc:creator>rudici</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 21 May 2012 21:05:48 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,8007#msg-8007</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,8007#msg-8007</link>
            <description><![CDATA[ Hi davygravy<br />
I 'm not sure I understand what you mean by &quot;working well enough to send commands and receive output&quot;. I just have the target connected to the host. I can ping the host from the target but not the other way around since the target is still in the booting stage. So, I would say there's definite connectivity, doubly so when you consider that the =&gt; prompt from the target does get accross to the host. But that is the only character that I see on the host coming out the target. I do not see any other ouput nor am I able to interact with the boot.]]></description>
            <dc:creator>rudici</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 17 May 2012 21:21:13 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,8001#msg-8001</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,8001#msg-8001</link>
            <description><![CDATA[ Is it working well enough to send commands and receive output?]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 17 May 2012 07:54:33 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,8000#msg-8000</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,8000#msg-8000</link>
            <description><![CDATA[ It is a private network with only the target and the host machine attached to it. There are no other machines to worry about. So, by interrupting the u-boot process and waiting at the =&gt; prompt, it is safe to assume that the target is not trying to send any packets to the host. Therefore, I would say that the network is neither busy nor noisy.]]></description>
            <dc:creator>rudici</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 16 May 2012 20:59:23 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,7999#msg-7999</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,7999#msg-7999</link>
            <description><![CDATA[ Sounds like you have some sort of intermittent connectivity issue. If you can see the prompt even a little bit then it is connected. Is it a busy or noisy network?]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 16 May 2012 19:49:27 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,7996#msg-7996</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,7996#msg-7996</link>
            <description><![CDATA[ Hi DavyGravy, <br />
Thanks for your reply. <br />
I have also tried &quot;socat STDIO UDP-LISTEN:6666&quot; but with no success. Since I can ping successfully from the target to the host, I'm confident that my serverip and ipaddr are set correctly.<br />
However, it's worth noting that i have not been able to ping the other way around, that is from the host to the target. <br />
Also, I feel compelled to point out that at times the prompt =&gt; from the boot does make it to the console on the host.]]></description>
            <dc:creator>rudici</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 16 May 2012 10:41:53 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,7993#msg-7993</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,7993#msg-7993</link>
            <description><![CDATA[ try  <pre class="bbcode">
socat STDIO UDP-LISTEN:6666</pre>
<br />
... and... also, are your network and your desktop/laptop set on the proper ip addresses/ranges to make this work?  Make sure you've set your serverip and ipaddr correctly...]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 16 May 2012 04:41:16 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,7991#msg-7991</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,7991#msg-7991</link>
            <description><![CDATA[ When following the above procedure, the only character that appers to make it from the target to the host is the prompt character which is <br />
=&gt;<br />
Afterwards, if I try issuing the printenv command, I see absolutely nothing.<br />
<br />
Here's what I type on the host<br />
$ nc -l -u 6666 &amp;<br />
<br />
$ nc -u 192.168.10.12 6666<br />
<br />
Any ideas?<br />
<br />
Could this be related to the baud rate setting of my terminal?]]></description>
            <dc:creator>rudici</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 15 May 2012 23:45:28 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,7860#msg-7860</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,7860#msg-7860</link>
            <description><![CDATA[ It (nc) comes with most (all?) unix distros.<br />
<br />
<pre class="bbcode">
socat STDIO UDP-LISTEN:6666</pre>
<br />
<br />
using socat]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 06 May 2012 20:17:19 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,7856#msg-7856</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,7856#msg-7856</link>
            <description><![CDATA[ Can I use this uboot on ZyXEL NSA310? If not, where can I get the source to compile?<br />
<br />
<br />
cat /proc/cpuinfo<br />
Processor       : Feroceon 88FR131 rev 1 (v5l)<br />
BogoMIPS        : 1199.30<br />
Features        : swp half thumb fastmult edsp<br />
CPU implementer : 0x56<br />
CPU architecture: 5TE<br />
CPU variant     : 0x2<br />
CPU part        : 0x131<br />
CPU revision    : 1<br />
<br />
Hardware        : Feroceon-KW<br />
Revision        : 0000<br />
Serial          : 0000000000000000<br />
<br />
Many thanks,<br />
<br />
Tik]]></description>
            <dc:creator>tikblang</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 06 May 2012 17:52:28 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,7495#msg-7495</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,7495#msg-7495</link>
            <description><![CDATA[ Sorry about bring up an old thread but I wanted to confirm a few of restamp's findings on bidirectional netconsole communication with a dockstar / PogoPlug V2.  I was trying to get a reliable bidirectional netconsole setup before trying to reflash my dockstars and pogoplugs with davygravy's new uboot for the 3.2 kernel but couldn't get uboot to escape out of the count down to the Marvell prompt.  Well I found that rapidly hitting the enter key during the count down will eventually result in getting to the Marvell prompt. I am able to do this with both nc and stocat:<br />
<br />
<pre class="bbcode">
nc -lup 6666</pre>
or<br />
<pre class="bbcode">
socat STDIO UDP-LISTEN:6666</pre>
<br />
But like restamp I ran into the instability of both nc and socat exiting for no apparent reason.  This exiting was consistently repeatable while using printenv.  Unfortunately the version of nc that include with my Salix distro (slackware derivative) did not have the -k option. I eventually found and installed a package called nc.openbsd and by using this command <br />
 <pre class="bbcode">
nc.openbsd -klu 6666</pre>
I was able to communicate with uboot without the exiting problems.]]></description>
            <dc:creator>laprjns</dc:creator>
            <category>uBoot</category>
            <pubDate>Fri, 30 Mar 2012 22:41:04 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,14,6543#msg-6543</guid>
            <title>Re: Use netconsole to troubleshoot uBoot without a serial cable</title>
            <link>http://forum.doozan.com/read.php?3,14,6543#msg-6543</link>
            <description><![CDATA[ Hi,<br />
<br />
I'am french and also know EDF (D faut default :p).<br />
<br />
for your Linux problem, use a live CD (any ubuntu distribution is a live cd by default, just click on try/test and not install on boot), if you look for ready made VM, look for ubuntu or debian image for vmware, should work on windows virtual pc.<br />
<br />
You could also make the image yourself using this link  : <a href="http://haacked.com/archive/2007/05/06/installing-ubuntu-on-virtual-pc-for-windows-lovers.aspx"  rel="nofollow">http://haacked.com/archive/2007/05/06/installing-ubuntu-on-virtual-pc-for-windows-lovers.aspx</a><br />
<br />
<a href="http://virtualboximages.com/Ubuntu-9.10-amd64"  rel="nofollow">http://virtualboximages.com/Ubuntu-9.10-amd64</a> for vm image of ubuntu.<br />
<br />
regards<br />
<br />
iceman2k]]></description>
            <dc:creator>iceman2k</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 05 Jan 2012 09:45:58 -0500</pubDate>
        </item>
    </channel>
</rss>
