* [U-Boot-Users] Re: help about u-boot on lubbock(another question)
@ 2003-04-08 23:06 Zhao Hongda
2003-04-08 8:35 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Zhao Hongda @ 2003-04-08 23:06 UTC (permalink / raw)
To: u-boot
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot-Users] Re: help about u-boot on lubbock(another question)
2003-04-08 23:06 [U-Boot-Users] Re: help about u-boot on lubbock(another question) Zhao Hongda
@ 2003-04-08 8:35 ` Wolfgang Denk
2003-04-09 0:12 ` Zhao Hongda
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2003-04-08 8:35 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot-Users] Re: help about u-boot on lubbock(another question)
2003-04-08 8:35 ` Wolfgang Denk
@ 2003-04-09 0:12 ` Zhao Hongda
0 siblings, 0 replies; 3+ messages in thread
From: Zhao Hongda @ 2003-04-09 0:12 UTC (permalink / raw)
To: u-boot
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 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-09 0:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-08 23:06 [U-Boot-Users] Re: help about u-boot on lubbock(another question) Zhao Hongda
2003-04-08 8:35 ` Wolfgang Denk
2003-04-09 0:12 ` Zhao Hongda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox