Welcome! Log In Create A New Profile

Advanced

Netconsole stopped working

Posted by codier 
Netconsole stopped working
April 26, 2016 10:30PM
Hi Bodhi,

It seems after I updated new u-boot 2015.10 the netconsole stopped working. It seems dockstar can not ping to my serverip. but I can use my another computer to ping the serverip.

I tried to use the old env and your new env for this. either one can ping serverip.
I remember I saw someone also has the similar issue but I can not find it anymore.
Re: Netconsole stopped working
April 27, 2016 01:05AM
codier Wrote:
-------------------------------------------------------
> Hi Bodhi,
>
> It seems after I updated new u-boot 2015.10 the
> netconsole stopped working. It seems dockstar can
> not ping to my serverip. but I can use my another
> computer to ping the serverip.
>
> I tried to use the old env and your new env for
> this. either one can ping serverip.
> I remember I saw someone also has the similar
> issue but I can not find it anymore.

Please post your u-boot envs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netconsole stopped working
April 27, 2016 07:29AM
Here.

bootcmd_exec=mw 0x800000 0 1; run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 0x1100000; fi; else if run load_dtb; then bootm 0x800000 - 0x1c00000; else bootm 0x800000; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x1c00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x800000 /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 0x800000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=2998
ethaddr=00:10:75:1A:3D:0C
ipaddr=192.168.2.108
dtb_file=/boot/dts/kirkwood-dockstar.dtb
serverip=192.168.2.129
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd_pogo=run bootcmd_rescue
rescue_installed=1
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_rescue
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

Re: Netconsole stopped working
April 27, 2016 07:32AM
I also tried replaced last 3 env with the following but still the same result. says ping failed; host 192.168.2.129 is not alive
only difference is 1 time and 5 times.

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'
Re: Netconsole stopped working
April 27, 2016 04:10PM
codier Wrote:
-------------------------------------------------------
> I also tried replaced last 3 env with the
> following but still the same result. says ping
> failed; host 192.168.2.129 is not alive
> only difference is 1 time and 5 times.
>
>
> 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'
>

Can you ping the serverip after booted into Debian on the Dockstar? If yes, then try reboot the router, and then power up the Dockstar.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netconsole stopped working
April 28, 2016 10:11AM
Errr.. It was my bad.
missed 1 env and I was on the wrong vm. so definitely can not ping it because the vm wasn't on. lol

Everything is working now. Thanks again for all your help bodhi
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: