From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Date: Fri, 22 Jun 2007 15:05:56 +0200 Subject: [U-Boot-Users] command loads broken since a while Message-ID: <467BC934.4090601@grandegger.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, recently, I realized that the U-Boot command "loads" is broken and the attached preliminary patch fixes it: diff --git a/common/cmd_load.c b/common/cmd_load.c index f63b8e8..2d9e0f0 100644 --- a/common/cmd_load.c +++ b/common/cmd_load.c @@ -240,12 +240,14 @@ read_record (char *buf, ulong len) *p = c; } +#if 0 /* Check for the console hangup (if any different from serial) */ if (gd->jt[XF_getc] != getc) { if (ctrlc()) { return (-1); } } +#endif } /* line too long - truncate */ The error sneaked in, when serial_getc was replaced with getc some time in the past. Can somebody tell me what the above code snippet is good for? I cannot see how to run the transfer over a line not being the console but maybe I have missed something. Wolfgang.