From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 08 Apr 2003 10:35:44 +0200 Subject: [U-Boot-Users] Re: help about u-boot on lubbock(another question) In-Reply-To: Your message of "Tue, 08 Apr 2003 16:06:02 PDT." <006a01c2fe23$6edf17a0$fe02a8c0@esd11> Message-ID: <20030408083549.0CE1BC5877@atlas.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 In message <006a01c2fe23$6edf17a0$fe02a8c0@esd11> you wrote: > when I try to use "loadb 0xa0008000" command to transfer kernel file to RAM > in lubbock, > then use Kermit protocol supported by HyperTerminal in Windows 2000 to send > the uImage file, > always timeout, why? > I can success transfer file using the same procedure with Armboot-1.1.0. That's probably because of a bug I introduced recently. Please try applying this patch: Index: common/cmd_boot.c =================================================================== RCS file: /cvsroot/u-boot/common/cmd_boot.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- common/cmd_boot.c 31 Mar 2003 17:13:13 -0000 1.5 +++ common/cmd_boot.c 7 Apr 2003 08:40:10 -0000 1.6 @@ -1000,14 +1000,14 @@ for (;;) { switch (serial_getc ()) { case START_CHAR: /* start packet */ - break; + goto START; case ETX_CHAR: /* ^C waiting for packet */ return (0); default: ; } } - +START: /* get length of packet */ sum = 0; new_char = serial_getc (); Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de "The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts." - Bertrand Russell