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

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. Hongda Zhao
----- Original Message ----- From: "Zhao Hongda" zhaohongda@tsinghua.org.cn To: u-boot-users@lists.sourceforge.net Sent: Tuesday, April 08, 2003 3:46 PM Subject: help about u-boot on lubbock
I have just checkouted the u-boot source code from CVS, and: (use arm-linux-gcc 2.95.3) make lubbock_config make then I use JFlash(windows) to install u-boot.bin in my lubbock(pxa250) board, and I use the HyperTerminal as the console tools for inter-action. after power on, I can get the prompt, but if I try to copy RAM data to
Flash
like: cp 0xa0008000 0x04000000 1024 u-boot complain that flash not erased, but even I use erase bank 2 to erase the whole bank flash, when I use md 0x04000000 to see the value in flash bank 2, I found that the value is same as old, How can I solve this problem, please help me. Thanks. Hongda Zhao

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

It's OK now, Thanks very much. Hongda Zhao ----- Original Message ----- From: "Wolfgang Denk" wd@denx.de To: "Zhao Hongda" zhaohongda@tsinghua.org.cn Cc: u-boot-users@lists.sourceforge.net Sent: Tuesday, April 08, 2003 1:35 AM Subject: Re: [U-Boot-Users] Re: help about u-boot on lubbock(another question)
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@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
participants (2)
-
Wolfgang Denk
-
Zhao Hongda