[U-Boot-Users] Re: help about u-boot on lubbock(another question)

Wolfgang Denk wd at denx.de
Tue Apr 8 10:35:44 CEST 2003


In message <006a01c2fe23$6edf17a0$fe02a8c0 at 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




More information about the U-Boot mailing list