Skip to contentSkip to conversation

stuck after redirecting stdout to nc

U-Boot ran shalit 3 participants 6 messages Jan 2, 2012 – Jan 6, 2012

lore
Share & tools
lore

ran shalit

author
#0 lore raw

Hello,

On uboot loading, I checking a specific environement (called consoleddev), to decide to rediect console to nc or staying in serial.
I then see some strange behaviour:
if the environment tell uboot to redirect to net console, everything works well, but only if the ethernet cable is connected. if it is not connected then I see that the kernel is not loading.

*relevant environemets:
ncip 192.168.3.10
ipaddr 192.168.3.33

I would appreciate your advice,

Regards,

Ran

Signature · 2 lines
View this message in context: http://old.nabble.com/stuck-after-redirecting-stdout-to-nc-tp33066296p33066296.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 6 lines · On Monday 02 January 2012 09:50:42 ran shalit wrote:

On uboot loading, I checking a specific environement (called consoleddev), to decide to rediect console to nc or staying in serial.
I then see some strange behaviour:
if the environment tell uboot to redirect to net console, everything works well, but only if the ethernet cable is connected. if it is not connected then I see that the kernel is not loading.

there could easily be a bug where netconsole does not work if the network is not available. patches welcome to add timeouts.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120105/ee665066/attachment.pgp>

author
#2 lore raw
Quoted 6 lines · Mike Frysinger
Quoted 1 line · On Monday 02 January 2012 09:50:42 ran shalit wrote:

On uboot loading, I checking a specific environement (called

consoleddev),

Quoted 3 lines

to decide to rediect console to nc or staying in serial. I then see some strange behaviour:
if the environment tell uboot to redirect to net console, everything

Quoted 9 lines

works

Quoted 2 lines

well, but only if the ethernet cable is connected. if it is not connected then I see that the kernel is not loading.

there could easily be a bug where netconsole does not work if the network is
not available. patches welcome to add timeouts.
-mike

Do you think such bug is independent of architecture type ?

#3 lore raw

Dear Ran Shalit,

Quoted 2 lines · In message <CAJ2oMhKLcdT_NFjbfcJ4O7kGz+B-TK93MWynb4=F02iLnBB=sQ@mail.gmail.com>…

Do you think such bug is independent of architecture type ?

This is impossible to say without knowing where and what the bug is.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Cogito cogito ergo cogito sum - "I think that I  think,  therefore  I
think that I am."          - Ambrose Bierce, "The Devil's Dictionary"
author
#4 lore raw
Quoted 7 lines · Wolfgang Denk

Dear Ran Shalit,

In message <CAJ2oMhKLcdT_NFjbfcJ4O7kGz+B-TK93MWynb4=F02iLnBB=

Quoted 2 lines · sQ at mail.gmail.com> you wrote:

Do you think such bug is independent of architecture type ?

Quoted 8 lines

This is impossible to say without knowing where and what the bug is.

Best regards,

Wolfgang Denk

You're right.

What I did see in my tests is as follows:
1. only if there is connection to PC and the PC's interface ip is the same as the ncip environement, then and only then, I see that the u-boot finish its job and starts the bootcmd, and loading the kernel. I also see the u-boot prints in the ethernet if I start netconsole, but event without starting netconsole, the kernel starts (as expected)
2. Otherwise, if the network interface ip is not the same as ncip, or cable is disconnected the u-boot does not start bootcmd, and I actually do not know where it stoped and why.

Please tell me if you have any advice where to look, and what should be checked,

Best Regards,
Ran

#5 lore raw

Dear Ran Shalit,

Quoted 7 lines · In message <CAJ2oMh+D0MKGXYiAvjy-uGA3DCssJPCn=N0Fm5vC7j4h34XQ3g@mail.gmail.com>…

2. Otherwise, if the network interface ip is not the same as ncip, or cable is disconnected the u-boot does not start bootcmd, and I actually do not know where it stoped and why.

Please tell me if you have any advice where to look, and what should be checked,

Attach a JTAG debugger and fire up GDB.

Quoted 2 lines

Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

And please STOP posting HTML!!

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
God made machine language; all the rest is the work of man.