public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@chez-thomas.org>
To: Tim Drury <tdrury@siliconmotorsports.com>
Cc: eCos Discussion <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] redboot load file broken in cvs
Date: Thu, 18 Jul 2002 05:58:00 -0000	[thread overview]
Message-ID: <1026997133.27397.171.camel@hermes.chez-thomas.org> (raw)
In-Reply-To: <200207172217.39381.tdrury@siliconmotorsports.com>

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

  reply	other threads:[~2002-07-18 12:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-17 19:19 Tim Drury
2002-07-18  5:58 ` Gary Thomas [this message]
2002-07-18 13:05 ` Gary Thomas
2002-07-18 20:34   ` Tim Drury

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1026997133.27397.171.camel@hermes.chez-thomas.org \
    --to=gary@chez-thomas.org \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=tdrury@siliconmotorsports.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).