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

Simon Glass sjg at chromium.org
Sat Apr 21 04:35:47 CEST 2012


Hi Joe,

On Tue, Mar 27, 2012 at 4:43 PM, Joe Hershberger <joe.hershberger at ni.com> wrote:
> 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 */

Comment style

/*
 * Initialize...
 */

> +       net_init();
> +
>        return 0;
>  }
>
> --
> 1.6.0.2
>

Regards,
Simon


More information about the U-Boot mailing list