From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17155 invoked by alias); 10 Jan 2011 14:48:44 -0000 Received: (qmail 17128 invoked by uid 22791); 10 Jan 2011 14:48:42 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_QE X-Spam-Check-By: sourceware.org Received: from mail-ew0-f49.google.com (HELO mail-ew0-f49.google.com) (209.85.215.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Jan 2011 14:48:38 +0000 Received: by ewy20 with SMTP id 20so8185426ewy.36 for ; Mon, 10 Jan 2011 06:48:36 -0800 (PST) Received: by 10.213.108.201 with SMTP id g9mr1865096ebp.92.1294670916174; Mon, 10 Jan 2011 06:48:36 -0800 (PST) Received: from sg-desktop.belvok.com ([86.57.137.251]) by mx.google.com with ESMTPS id t5sm4820261eeh.20.2011.01.10.06.48.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 10 Jan 2011 06:48:35 -0800 (PST) Date: Mon, 10 Jan 2011 14:48:00 -0000 From: Sergei Gavrikov To: Gary Thomas cc: eCos Developers Subject: Re: RedBoot's TFTP client and dumb TFTP servers In-Reply-To: <4D2B182F.6030305@mlbassoc.com> Message-ID: References: <4D2B182F.6030305@mlbassoc.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-01/txt/msg00010.txt.bz2 On Mon, 10 Jan 2011, Gary Thomas wrote: > On 01/10/2011 07:13 AM, Sergei Gavrikov wrote: > > Hi > > > > I tried to get working the QEMU's embedded TFTP server with > > RedBoot's FTP client and the RedBoot's 'load' command always wept, > > -- "illegal TFTP operation". > > > > I did dig that QEMU's TFTP server has the very simple check for a > > transfer mode: > > > > slirp/tftp.c:314 > > > > if (memcmp(&tp->x.tp_buf[k], "octet\0", 6) != 0) { > > tftp_send_error(spt, 4, "Unsupported transfer mode", tp); > > return; > > } > > [snip] > I've never run across another TFTP server that can't handle OCTET in > upper case. > > By your reference, the QEMU server is what's broken - why not fix it > instead? Gary, thanks for your expertise, then I will disturb qemu-devel list. Sergei