netconsole in u-boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

netconsole in u-boot

5,654 Views
bobsonhuang
Contributor I

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 ?

0 Kudos
Reply
2 Replies

3,140 Views
lunminliang
NXP Employee
NXP Employee

I found below sentence in doc\README.NetConsole:

Note that unlike the U-Boot implementation the Linux netconsole is unidirectional, i. e. you have console output only in Linux.


0 Kudos
Reply

3,140 Views
bobsonhuang
Contributor I

Yocto v1.3.2 can work when I enable stdin and stdout to netconsole but still have some bugs.

Yocto v1.3 only work in unidirectionl.

So the netconsole already improve in Yocto v1.3.2. Maybe it can work with no bugs in next version. :smileyhappy:

0 Kudos
Reply