From: Tom Rini Date: Fri, 8 Nov 2013 17:27:58 -0500 Subject: [U-Boot] [U-Boot, v1, 1/1] netconsole loses 2nd character of input In-Reply-To: <1381942464-7482-1-git-send-email-suriyan.r@gmail.com> References: <1381942464-7482-1-git-send-email-suriyan.r@gmail.com> Message-ID: <20131108222758.GR5925@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 16, 2013 at 09:54:24AM -0700, Suriyan Ramasami wrote: > Netconsole loses the second character when used as input by > either setenv stdin nc or setenv stdin serial,nc if using CONSOLE_CONSOLE_MUX > > Before a nc_send_packet() to echo the input, a check is done to see if > nc_ether is valid. If its not, it waits for an arp request and then sends > the packet (which contains the first character of line to be displayed as > output). As part of reaping the arp request, the second character is consumed. > We protect this by making the call to NetLoop(NETCONS) between > input_recursion. > > Signed-off-by: Suriyan Ramasami > Acked-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: