Re: Use netconsole to troubleshoot uBoot without a serial cable October 11, 2014 08:53PM |
Registered: 13 years ago Posts: 264 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 11, 2014 09:07PM |
Registered: 10 years ago Posts: 70 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 12, 2014 05:22PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 16, 2014 05:01PM |
Registered: 10 years ago Posts: 70 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 16, 2014 05:29PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 16, 2014 05:58PM |
Registered: 10 years ago Posts: 70 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 16, 2014 06:51PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 16, 2014 07:07PM |
Registered: 10 years ago Posts: 70 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 16, 2014 10:00PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 20, 2014 02:52AM |
Admin Registered: 13 years ago Posts: 18,898 |
setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi'and then
run preboot_ncSee if 5 pings in 5 seconds will be enough (if not, adjust it to a longer period). If this works well, set the real preboot env:
setenv preboot 'run preboot_nc'
Re: Use netconsole to troubleshoot uBoot without a serial cable October 20, 2014 09:08AM |
Registered: 10 years ago Posts: 70 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 20, 2014 04:40PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 20, 2014 05:05PM |
Registered: 10 years ago Posts: 70 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 21, 2014 12:20AM |
Admin Registered: 13 years ago Posts: 18,898 |
setenv preboot
TEN
Use netconsole to troubleshoot even beyond uBoot without a serial cable? March 22, 2015 07:25AM |
Not sure if I understand this correctly, but does it mean a second instance of "nc -up 6666 192.168.2.94 6666" (at which different port?) could let me see via netconsole also e.g. the kernel's own boot messages (as in https://www.kernel.org/doc/Documentation/networking/netconsole.txt) beyond uBoot...Quote
bodhi
It does not really matter whether the netconsole listener is running or not. If the serverip of the listener is the IP of a running box that responded to the 5 pings (might be the one running serial console), then you won't see the count down in serial console (because it is alive). You need to run the listener on a 2nd terminal. When you do that, you will see the output alternately going to one console, then the other, then back again.
## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.18.5-kirkwood-tld-1 Created: 2015-03-22 10:32:59 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2865600 Bytes = 2.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.18.5-kirkwood-tld-1 Created: 2015-03-22 10:33:11 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6535220 Bytes = 6.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ......or for chainload:
g o 0 x 8 0 0 2 0 0 ## Starting application at 0x00800200 ...Or will a Kirkwood kernel itself only talk to serial, if anything at all?
umount /dev/sdl1 mkfs.ext3 /dev/sdl1 -L rootfs mount /dev/sdl1 /media/sdl1 cd /media/sdl1 tar -xjvf /home/user/Downloads/Debian-3.16.0-kirkwood-tld-2-rootfs-bodhi.tar.bz2 cd boot tar -xjvf /home/user/Downloads/linux-3.16.0-kirkwood-tld-3-bodhi.tar.bz2 sync cd umount sdl1 syncDebian@3.16 will probably be alright for my purposes as well: Accessible for testing by "ssh -o UserKnownHostsFile=/dev/null root@192.168.2.94", it recognizes my mceusb remote setup out of the box, and detects infrared keypresses as kernel events after a simple apt-get install ir-keytable (much unlike the hassle that is http://archlinuxarm.org/forum/viewtopic.php?f=6&t=8652).
Re: Use netconsole to troubleshoot even beyond uBoot without a serial cable? March 22, 2015 03:42PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot even beyond uBoot without a serial cable? March 22, 2015 04:32PM |
Registered: 9 years ago Posts: 63 |
Quite likely, but it looks like whatever happens is before post-uBoot NIC re-init, so kernel netconsole would show nothing anyway and I haven't pried the thing open & hooked up serial yet.Quote
bodhi
the box that is serial console server is also the netconsole server. So when netconsole is activated, nothing will come out of serial console. If you connect a 2nd SSH on the same box and start netconsole in that shell, it will be the console. When netconsole is done (kernel starts booting) then output will switch back to the serial console.
> > kernel's own boot messages
See here: http://forum.doozan.com/read.php?2,9522
serial console output will show what's wrong. It is likely that either the some of the envs is wrong, or the rootfs could not be mounted (FDT vs. non-FDT issue is likely the problem). If you dont have serial console, then recreate the rootfs (youQuote
TEN
asking since Linux-3.18.5-kirkwood-tld-1 on various USB sticks (of similar type that does let me boot Arch@3.19 and Debian up to Linux-3.16.0-kirkwood-tld-2-bodhi at least) will not open ssh (or even respond to ping) on my Pogoplug E02 with either method 4a or 4b per http://forum.doozan.com/read.php?2,12096,12096 but gets stuck with LAN amber LED only or both blinking after ... bodhi uBoot; ethaddr set in the fw_env; not attempting DHCP either
might have missed something).
Re: Use netconsole to troubleshoot even beyond uBoot without a serial cable? March 22, 2015 05:06PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable September 15, 2015 07:33AM |
Registered: 13 years ago Posts: 37 |
Re: Use netconsole to troubleshoot uBoot without a serial cable September 15, 2015 11:38PM |
Admin Registered: 13 years ago Posts: 18,898 |
nc -lup 6666 xx.xx.xx.xx 6666
nc -kup 6666 xx.xx.xx.xx 6666
Thang
Re: Use netconsole to troubleshoot uBoot without a serial cable December 17, 2015 01:41PM |
Re: Use netconsole to troubleshoot uBoot without a serial cable December 17, 2015 07:08PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable April 04, 2016 11:08AM |
Registered: 13 years ago Posts: 89 |
fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi' fw_setenv preboot 'run preboot_nc'
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 April 04, 2016 12:51PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: Use netconsole to troubleshoot uBoot without a serial cable April 04, 2016 01:40PM |
Registered: 13 years ago Posts: 89 |
set uboot variables temporary (for trial) and boot July 26, 2016 02:58AM |
Registered: 11 years ago Posts: 25 |
Re: set uboot variables temporary (for trial) and boot July 26, 2016 03:35AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: set uboot variables temporary (for trial) and boot July 27, 2016 02:31PM |
Registered: 11 years ago Posts: 25 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 27, 2016 07:53PM |
Registered: 13 years ago Posts: 9 |
Re: Use netconsole to troubleshoot uBoot without a serial cable October 27, 2016 11:49PM |
Admin Registered: 13 years ago Posts: 18,898 |