Use netconsole to troubleshoot uBoot without a serial cable August 09, 2010 11:06AM |
Admin Registered: 14 years ago Posts: 304 |
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'
nc -l -u -p 6666
nc -l -u -p 6666 & nc -u 192.168.1.100 6666 # run killall nc after you've finished to kill the background nc process
BobD
Re: Use netconsole to interact with uBoot without needing an USB cable August 09, 2010 12:24PM |
Re: Use netconsole to interact with uBoot without needing an USB cable August 09, 2010 12:44PM |
Admin Registered: 14 years ago Posts: 304 |
Re: Use netconsole to interact with uBoot without needing a USB cable August 21, 2010 09:24AM |
Registered: 14 years ago Posts: 24 |
Re: Use netconsole to interact with uBoot without needing a USB cable August 28, 2010 11:44AM |
Registered: 14 years ago Posts: 6 |
Re: Use netconsole to interact with uBoot without needing a USB cable August 28, 2010 10:12PM |
Registered: 14 years ago Posts: 19 |
NOTE: the interrupt signal (normally ^C) has been remapped to ^T ncb: not found usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port] [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]] [hostname] [port[s]]
Re: Use netconsole to interact with uBoot without needing a USB cable August 29, 2010 08:17AM |
Admin Registered: 14 years ago Posts: 304 |
Re: Use netconsole to interact with uBoot without needing a USB cable August 29, 2010 02:39PM |
Registered: 14 years ago Posts: 19 |
bash: Syntaxerror unknown word `;'
Re: Use netconsole to interact with uBoot without needing a USB cable August 31, 2010 07:29PM |
Registered: 14 years ago Posts: 6 |
Re: Use netconsole to interact with uBoot without needing a USB cable September 04, 2010 04:18PM |
Registered: 14 years ago Posts: 2 |
baudrate=115200 loads_echo=0 rootpath=/mnt/ARM_FS/ netmask=255.255.0.0 run_diag=yes console=console=ttyS0,115200 CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_root=root=/dev/mtdblock2 ro ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no bootargs=console=ttyS0,115200 root=/dev/mtdblock2 ro ethaddr=00:11:22:33:44:55 cesvcid= here a long str I have removed in this post... ceboardver=PPV2 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; bootcmd_original=nand read.e 0x800000 0x100000 0x200000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000 bootcmd=run bootcmd_original ipaddr=192.168.0.100 serverip=192.168.0.43 preboot=run if_netconsole start_netconsole
No. Time Source Destination Protocol Info 9 36.872546 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0x45628f47 10 36.874192 0.0.0.0 255.255.255.255 DHCP DHCP Request - Transaction ID 0x45628f47 11 36.875324 00:11:22:33:44:55 Broadcast ARP Who has 192.168.0.100? Tell 0.0.0.0 12 37.075613 00:11:22:33:44:55 Broadcast ARP Who has 192.168.0.100? Tell 0.0.0.0 13 37.275837 00:11:22:33:44:55 Broadcast ARP Who has 192.168.0.100? Tell 0.0.0.0 14 37.476150 00:11:22:33:44:55 Broadcast ARP Gratuitous ARP for 192.168.0.100 (Request) 15 37.676393 00:11:22:33:44:55 Broadcast ARP Gratuitous ARP for 192.168.0.100 (Request) 16 38.168179 :: ff02::16 ICMPv6 Multicast Listener Report Message v2 17 38.178094 00:11:22:33:44:55 Broadcast ARP Who has 192.168.0.1? Tell 192.168.0.100 18 39.018177 :: ff02::1:ff00:6938 ICMPv6 Neighbor solicitation 19 39.108106 :: ff02::16 ICMPv6 Multicast Listener Report Message v2 20 40.018220 fe80::211:22ff:fe33:4455 ff02::2 ICMPv6 Router solicitation 21 44.018318 fe80::211:22ff:fe33:4455 ff02::2 ICMPv6 Router solicitation 22 48.018433 fe80::211:22ff:fe33:4455 ff02::2 ICMPv6 Router solicitationNo UDP/6666 to my serverip
Re: Use netconsole to interact with uBoot without needing a USB cable September 04, 2010 04:43PM |
Admin Registered: 14 years ago Posts: 304 |
Re: Use netconsole to interact with uBoot without needing a USB cable September 09, 2010 10:44AM |
Registered: 14 years ago Posts: 2 |
hb
Re: Use netconsole to interact with uBoot without needing a USB cable September 13, 2010 01:16AM |
% nc -lu 6666 & % nc -u 192.168.0.100 6666
fw_setenv serverip 192.168.0.157 fw_setenv ipaddr 192.168.0.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'
ping 192.168.0.157 failed, host not alive
Re: Use netconsole to troubleshoot uBoot without a serial cable October 26, 2010 04:31PM |
Registered: 13 years ago Posts: 24 |
Pogoplug:~$ /usr/sbin/fw_setenv ipaddr Pogoplug:~$ /usr/sbin/fw_setenv preboot 'dhcp; run if_netconsole start_netconsole'but now it is bricked, doesn't get respond to a SSH login. Doesn't get past a flashing green light.
Re: Use netconsole to troubleshoot uBoot without a serial cable October 26, 2010 05:53PM |
Admin Registered: 14 years ago Posts: 304 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 26, 2010 09:11PM |
Registered: 13 years ago Posts: 24 |
shawn
Re: Use netconsole to troubleshoot uBoot without a serial cable October 28, 2010 12:51AM |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 28, 2010 09:46AM |
Admin Registered: 14 years ago Posts: 304 |
Shawn
Re: Use netconsole to troubleshoot uBoot without a serial cable October 28, 2010 10:39AM |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 28, 2010 03:04PM |
Registered: 13 years ago Posts: 24 |
cat /etc/network/interfaces auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.1.64 netmask 255.255.255.0 gateway 192.168.1.60 dns-nameservers 192.168.1.60Change the network settings to match your network, then sync, umount the USB stick, connect to Dockstar and powercycle, it will then explicitly get the static address and get you over the initial hump. You can use the same IP address in the fw_setenv instructions above. My Dockstar is now running ok, on static. :)
Re: Use netconsole to troubleshoot uBoot without a serial cable October 29, 2010 11:11PM |
Registered: 13 years ago Posts: 6 |
Re: Use netconsole to troubleshoot uBoot without a serial cable November 06, 2010 07:16PM |
Registered: 13 years ago Posts: 1 |
Lallo
Re: Use netconsole to troubleshoot uBoot without a serial cable November 07, 2010 11:56AM |
Re: Use netconsole to troubleshoot uBoot without a serial cable November 18, 2010 04:03PM |
Registered: 13 years ago Posts: 264 |
Quote
U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan
Quote
fw_setenv serverip 192.168.254.169
fw_setenv ipaddr 192.168.254.171
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'
Re: Use netconsole to troubleshoot uBoot without a serial cable November 18, 2010 08:03PM |
Registered: 14 years ago Posts: 406 |
Re: Use netconsole to troubleshoot uBoot without a serial cable November 18, 2010 08:27PM |
Registered: 13 years ago Posts: 264 |
Re: Use netconsole to troubleshoot uBoot without a serial cable November 18, 2010 11:59PM |
Registered: 14 years ago Posts: 406 |
eval-
Re: Use netconsole to troubleshoot uBoot without a serial cable November 19, 2010 02:27PM |
Re: Use netconsole to troubleshoot uBoot without a serial cable November 19, 2010 05:02PM |
Registered: 13 years ago Posts: 264 |
This invocation of 'nc' seems to consistently relay the uBoot's progress from its inception to the point where it hands off control to the kernel. When the uBoot gets to its countdown phase, if I want to interrupt it, I can send it a bunch of ctrl-Js (hold the ctrl key down and pound on the 'J' key). This drops me into the 'Marvell>>' prompt, where I am able to enter uBoot commands. (If you are unfamiliar with uBoot, 'help' is a good one to type first, but be careful what you do here, especially when changing and saving the uBoot's environment, lest you leave the system unbootable.) When done, you can continue with either the 'boot' command, a 'run' command, or a 'reset' to force the uBoot to reset the CPU and restart itself.Quote
nc -klu 6666
where '192.168.xxx.yyy' is the IP address you previously assigned to the Dockstar uBoot using the 'fw_setenv ipaddr' command. Note that this version of the command is susceptible to the 'printenv' glitch, at least on my system. Of course, you can also simply power cycle your Dockstar to restart the uBoot.Quote
nc -up 6666 192.168.xxx.yyy 6666
Re: Use netconsole to troubleshoot uBoot without a serial cable November 19, 2010 05:32PM |
Registered: 13 years ago Posts: 264 |