From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27161 invoked by alias); 18 Jun 2005 15:22:12 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 27141 invoked by uid 22791); 18 Jun 2005 15:22:08 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 18 Jun 2005 15:22:08 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1Djf8i-0005bW-00; Sat, 18 Jun 2005 17:21:44 +0200 Date: Sat, 18 Jun 2005 15:22:00 -0000 To: twomol Cc: ecos-discuss Message-ID: <20050618152144.GC17597@lunn.ch> Mail-Followup-To: twomol , ecos-discuss References: <20050618145824.CXP22651.fep2.bj1860.net@bit> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050618145824.CXP22651.fep2.bj1860.net@bit> User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] It's very strange about the TFTP load code! X-SW-Source: 2005-06/txt/msg00157.txt.bz2 On Sat, Jun 18, 2005 at 11:05:41PM +0800, twomol wrote: > All??hello?? > I'm using mx1ads with redboot downloaded from freescale.com. May be I am supposed to consult freescale not here. But it's about the common tftp code.So if > any one could help ,I'll be very appreciate! > I can't use tftp to load file from host: > ----------------------------------------------------- > RedBoot> load -r -b 0x50000 redboot.bin > Using default protocol (TFTP) > Can't load 'redboot.bin': illegal TFTP operation > ----------------------------------------------------------- > I checked the source , "There is no function set" equal to "TFTP_EBADOP" defined in tftp_surppot.h. but I didn't find any function have code to set the feild 'err' of 'getc_info' with this value. > I found that the error messge is printed by the following code (in redboot_gec_init): > > res = (funcs->open)(info, &getc_info.err); > if (res < 0) { > diag_printf("Can't load '%s': %s\n", info->filename, (funcs->error)(getc_info.err)); > return res; > } Check you have the permissions of the file correctly set on the server. You can test this by using tftp locally on the server and make sure it works. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss