From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5178 invoked by alias); 19 Jun 2005 03:05:52 -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 5160 invoked by uid 22791); 19 Jun 2005 03:05:47 -0000 Received: from [211.136.91.134] (HELO fep2.bj1860.net) (211.136.91.134) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 19 Jun 2005 03:05:47 +0000 Received: from [10.1.36.75] ([211.68.12.87]) by fep2.bj1860.net (InterMail vM.5.01.05.08 201-253-122-126-108-20020526) with ESMTP id <20050619025948.JDG22651.fep2.bj1860.net@[10.1.36.75]>; Sun, 19 Jun 2005 10:59:48 +0800 Message-ID: <42B4E15A.5010905@bj1860.net> Date: Sun, 19 Jun 2005 03:05:00 -0000 From: twomol User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) MIME-Version: 1.0 To: Andrew Lunn CC: ecos-discuss@sources.redhat.com, gary@mlbassoc.com References: <20050618145824.CXP22651.fep2.bj1860.net@bit> <20050618152144.GC17597@lunn.ch> In-Reply-To: <20050618152144.GC17597@lunn.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] It's very strange about the TFTP load code! X-SW-Source: 2005-06/txt/msg00159.txt.bz2 My tftp server is CISCO tftp sever under Windows, I can access the server from othe PC runing Windows. Under linux ,I build a tftp server , the redboot's load function works. I don't know why.Ok, At least , I can load file under linux. gary: I recall that I download the redboot from i.Mx1's summary page: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX1&nodeId=018rH3ZrDR But yesterday I found that there is no links of redboot anymore. I can send it to you.But it's a litte big. There are 2 packages, totally 20 M. My emailserver's attachment limitation is about 2M. I can make the spilt archives, then post them to you. Is that OK? Andrew Lunn wrote: >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