From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2845 invoked by alias); 18 May 2006 16:59:57 -0000 Received: (qmail 2776 invoked by uid 22791); 18 May 2006 16:59:44 -0000 X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,TW_WP X-Spam-Check-By: sourceware.org Received: from dns2-chi.paetec.net (HELO dns2-chi.paetec.net) (64.80.249.72) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 May 2006 16:59:34 +0000 Received: from dtcsrvr09.dtccom.com ([66.153.88.146]) by dns2-chi.paetec.net (8.13.6/8.13.6) with ESMTP id k4IGOV8M017052; Thu, 18 May 2006 12:24:36 -0400 (EDT) Received: by dtcsrvr09.dtccom.com with Internet Mail Service (5.5.2658.3) id ; Thu, 18 May 2006 12:23:58 -0400 Message-ID: From: "Doyle, Patrick" To: "'David Vrabel'" , Andrew Lunn Cc: "Doyle, Patrick" , "'ecos-devel@sources.redhat.com'" , "'Andrew Dyer'" Subject: RE: RedBoot patches regarding redboot_getc_terminate Date: Thu, 18 May 2006 16:59:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2658.3) Content-Type: text/plain Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2006-05/txt/msg00022.txt.bz2 > -----Original Message----- > From: David Vrabel [mailto:dvrabel@arcom.com] > Sent: Thursday, May 18, 2006 11:55 AM > To: Andrew Lunn > Cc: Doyle, Patrick; 'ecos-devel@sources.redhat.com'; 'Andrew Dyer' > Subject: Re: RedBoot patches regarding redboot_getc_terminate > > > Andrew Lunn wrote: > >> I'm not entirely happy with the fix. It terminates the > download when all > >> the relevant bits of the ELF have been transferred. The causes the > >> sender to think that the file transfer has failed which causes some > >> customer confusion. > > > > It is possible to include a text string in the error message. > > > > http://www.faqs.org/rfcs/rfc1350.html, figure 5-4. > > > > So maybe a message like "Remaining file contents not required" would > > prevent confusion. This assumes the lame tftp servers actually display > > the message to the user. > > This would take care of the TFTP transfers. But what about > the Y-modem transfers? Well, 'retboot_getc_terminate(false)' has always worked for me in the past, and continues to work for me now that I've put it back in. Perhaps the 'tftp_stream_terminate()' function should be modified to issue the "Remaining file contents not required" message in the case of a normal termination. > > >> I think a better solution would be for the downloader to continue to > >> transfer the remaining portions of the ELF image and just throw them away." > > > > This can be a lot of data, eg the complete debug symbol table if the > > image has been compiled -g. I would not really be in favor of that. > > Agreed. Although I think this is what RedBoot used to do for Y-modem > transfers. Actually, as confusing as this is to me, this is what it _still_ does! I'm pretty sure I remember the behavior you describe, but I'm darn'd if I can see it in the code (nor in practice). So if I submit a modified patch that restores the call to 'redboot_getc_terminate()' to its original (pre Andrew Dyer) state and modify 'tftp_stream_terminate()' to issue different strings based on normal vs. abnormal termination conditions, is there anybody who can test the TFTP changes? --wpd