* [ECOS] redboot load file broken in cvs
@ 2002-07-17 19:19 Tim Drury
2002-07-18 5:58 ` Gary Thomas
2002-07-18 13:05 ` Gary Thomas
0 siblings, 2 replies; 4+ messages in thread
From: Tim Drury @ 2002-07-17 19:19 UTC (permalink / raw)
To: ecos-discuss
I just updated my cvs a couple days ago in preparation to create
the eb40a patch and it would appear redboot can no longer load
files via ymodem. The file appears to load until the very end when
minicom reports:
Retry 0: NAK on sector
Retry 0: Got 20 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 41 for sector ACK
I then have to wait for several minutes. Sometimes the file completes
but often a timeout occurs and the transfer aborts.
This did not happen in my previous cvs image from about a month
ago. I noticed that xyzModem.c changed a little and load.c changed
a great deal. Before I dig in and plant debug statements here and
there, does anyone have any idea of where exactly to look?
-tim
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] redboot load file broken in cvs
2002-07-17 19:19 [ECOS] redboot load file broken in cvs Tim Drury
@ 2002-07-18 5:58 ` Gary Thomas
2002-07-18 13:05 ` Gary Thomas
1 sibling, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2002-07-18 5:58 UTC (permalink / raw)
To: Tim Drury; +Cc: eCos Discussion
On Wed, 2002-07-17 at 20:17, Tim Drury wrote:
>
> I just updated my cvs a couple days ago in preparation to create
> the eb40a patch and it would appear redboot can no longer load
> files via ymodem. The file appears to load until the very end when
> minicom reports:
>
> Retry 0: NAK on sector
> Retry 0: Got 20 for sector ACK
> Retry 0: NAK on sector
> Retry 0: Got 41 for sector ACK
>
> I then have to wait for several minutes. Sometimes the file completes
> but often a timeout occurs and the transfer aborts.
>
> This did not happen in my previous cvs image from about a month
> ago. I noticed that xyzModem.c changed a little and load.c changed
> a great deal. Before I dig in and plant debug statements here and
> there, does anyone have any idea of where exactly to look?
Can you see if this helps?
Index: redboot/current/src/load.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/src/load.c,v
retrieving revision 1.25
diff -u -5 -p -r1.25 load.c
--- redboot/current/src/load.c 1 Jul 2002 20:55:28 -0000 1.25
+++ redboot/current/src/load.c 18 Jul 2002 12:57:36 -0000
@@ -739,13 +739,15 @@ do_load(int argc, char *argv[])
end = load_elf_image(redboot_getc, base);
} else if ((type[0] == 'S') &&
((type[1] >= '0') && (type[1] <= '9'))) {
end = load_srec_image(redboot_getc, base);
} else {
+ redboot_getc_terminate(true);
diag_printf("Unrecognized image type: 0x%lx\n", *(unsigned long *)type);
}
}
}
+ redboot_getc_terminate(false);
redboot_getc_close(); // Clean up
return;
}
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] redboot load file broken in cvs
2002-07-17 19:19 [ECOS] redboot load file broken in cvs Tim Drury
2002-07-18 5:58 ` Gary Thomas
@ 2002-07-18 13:05 ` Gary Thomas
2002-07-18 20:34 ` Tim Drury
1 sibling, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2002-07-18 13:05 UTC (permalink / raw)
To: Tim Drury; +Cc: eCos Discussion
On Wed, 2002-07-17 at 20:17, Tim Drury wrote:
>
> I just updated my cvs a couple days ago in preparation to create
> the eb40a patch and it would appear redboot can no longer load
> files via ymodem. The file appears to load until the very end when
> minicom reports:
>
> Retry 0: NAK on sector
> Retry 0: Got 20 for sector ACK
> Retry 0: NAK on sector
> Retry 0: Got 41 for sector ACK
>
> I then have to wait for several minutes. Sometimes the file completes
> but often a timeout occurs and the transfer aborts.
>
> This did not happen in my previous cvs image from about a month
> ago. I noticed that xyzModem.c changed a little and load.c changed
> a great deal. Before I dig in and plant debug statements here and
> there, does anyone have any idea of where exactly to look?
I broke the load code when I introduced generic I/O methods. This
has been fixed today.
Sorry for the problems.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] redboot load file broken in cvs
2002-07-18 13:05 ` Gary Thomas
@ 2002-07-18 20:34 ` Tim Drury
0 siblings, 0 replies; 4+ messages in thread
From: Tim Drury @ 2002-07-18 20:34 UTC (permalink / raw)
To: eCos Discussion
That worked - all fixed now. Thanks.
-tim
On Thursday 18 July 2002 04:05 pm, Gary Thomas wrote:
> On Wed, 2002-07-17 at 20:17, Tim Drury wrote:
> > I just updated my cvs a couple days ago in preparation to create
> > the eb40a patch and it would appear redboot can no longer load
> > files via ymodem. The file appears to load until the very end when
> > minicom reports:
> >
> > Retry 0: NAK on sector
> > Retry 0: Got 20 for sector ACK
> > Retry 0: NAK on sector
> > Retry 0: Got 41 for sector ACK
> >
> > I then have to wait for several minutes. Sometimes the file completes
> > but often a timeout occurs and the transfer aborts.
> >
> > This did not happen in my previous cvs image from about a month
> > ago. I noticed that xyzModem.c changed a little and load.c changed
> > a great deal. Before I dig in and plant debug statements here and
> > there, does anyone have any idea of where exactly to look?
>
> I broke the load code when I introduced generic I/O methods. This
> has been fixed today.
>
> Sorry for the problems.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-07-19 3:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-17 19:19 [ECOS] redboot load file broken in cvs Tim Drury
2002-07-18 5:58 ` Gary Thomas
2002-07-18 13:05 ` Gary Thomas
2002-07-18 20:34 ` Tim Drury
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).