[U-Boot] [PATCH v2 17/18] net: Make sure NetLoop is initialized when using NetConsole

Joe Hershberger joe.hershberger at ni.com
Wed Mar 28 01:43:07 CEST 2012


Fix NetConsole bug that causes first packet header to claim a
source IP address of 0.0.0.0

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
Cc: Joe Hershberger <joe.hershberger at gmail.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Mike Frysinger <vapier at gentoo.org>
---
 drivers/net/netconsole.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index 744f4d1..6db8a26 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -169,6 +169,10 @@ static int nc_start(void)
 	else
 		memset(nc_ether, 0, sizeof(nc_ether));	/* force arp request */
 
+	/* Initialize the static IP settings and buffer pointers
+	   incase we call NetSendUDPPacket before NetLoop */
+	net_init();
+
 	return 0;
 }
 
-- 
1.6.0.2



More information about the U-Boot mailing list