AnsweredAssumed Answered

netconsole in u-boot

Question asked by bobsonhuang on May 16, 2013
Latest reply on May 22, 2013 by bobsonhuang

I used the Yocto v1.3 to build P1022DS platform and enable netconsole in u-boot.

When I type below commands, the netconsole can output "version" and then I can not input any information.

It's mean the netconsole can not work.

u-boot> setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'

u-boot> run start_netconsole

 

But when I type below commands, it's works very well.

I can input command through serial port and u-boot can output information through netconsole.

u-boot> setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout serial; setenv stderr nc; version;'

u-boot> run start_netconsole

 

The another test, when I type below commands, it's also works very well.

I can input command through netconsole and u-boot can output information through serial port.

u-boot> setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin serial; setenv stdout nc; setenv stderr nc; version;'

u-boot> run start_netconsole

 

It's mean that the stdin and stdout can not set to netconsole at the same time. But the LTIB can do this.

I don't know what's wrong in Yocto's u-boot. Is anyone know ?

 

 

Outcomes