From: DENX Support System Date: Sat, 1 Apr 2006 00:20:15 +0200 Subject: [DNX#2006040142000321] [U-Boot-Users] PATCH cmd_net.c check ethernet avai [...] Message-ID: <1143843615.765522.039370493@castor.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142000321] was created: > We have a board where the ethernet is on a plugin module and may or > may not be present at boot time. If eth_initialize() doesn't detect the > network > and a net command is run the system crashes. This patch adds a function > to cmd_net.c to check the availability of the ethernet device before > trying to > access it. If the net device is not found it will print a message > and return -1. > > * Add check to cmd_net functions to make sure ethernet device is valid > before calling Net_Loop() > Patch by Andrew Dyer, 24 Oct 2005 > > Signed-off-by: Andrew Dyer > > -- > Hardware, n.: > The parts of a computer system that can be kicked. Your U-Boot support team