Hi Detlev/Ben,<br>
<br>
Thanks for the replies. I am attaching herewith, the patch which I suppose should fix the issue in NetLoop().<br>
<br>
Regards,<br>
Upakul Barkakaty<br>
Conexant Systems,Inc<br><br><div><span class="gmail_quote">On 11/14/07, <b class="gmail_sendername">Detlev Zundel</b> <<a href="mailto:dzu@denx.de">dzu@denx.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Upakul,<br><br>> Hi all, I observed that when the Ethernet initialization fails, it is not<br>> properly halting the operation and exiting. On walking through the Networking<br>> files, I saw that the eth_init() in
eth.c either returns a 0 or 1. Now, in the<br>> NetLoop() in net.c file, from where the eth_init() gets called, checks the<br>> condition if (eth_init(bd) < 0) { eth_halt(); return(-1); } which is thus never<br>> true. Thus the network operation, never exits gracefully, if Ethernet init
<br>> fails. Any of you, have any clues about this??<br><br>I think your analysis is right and thus the code in NetLoop should be<br>fixed. Feel free to send a patch and I am pretty sure Ben Warren will<br>pick it up into the u-boot-net repo.
<br><br>Cheers<br> Detlev<br><br>--<br>Two monks went fishing in an electron river. The first monk drew out his<br>network, and out flopped a hacker. The second monk cried, "The poor hacker!<br>How can it live outside of the network?" The first monk said, "When you
<br>have learned to live outside the network, then you will know."<br>--<br>DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel<br>HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
<br>Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: <a href="mailto:dzu@denx.de">dzu@denx.de</a><br></blockquote></div>