public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: twomol <twomol@bj1860.net>
Cc: ecos-discuss <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] It's very strange about the TFTP load code!
Date: Sat, 18 Jun 2005 15:22:00 -0000	[thread overview]
Message-ID: <20050618152144.GC17597@lunn.ch> (raw)
In-Reply-To: <20050618145824.CXP22651.fep2.bj1860.net@bit>

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

  reply	other threads:[~2005-06-18 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-18 15:04 twomol
2005-06-18 15:22 ` Andrew Lunn [this message]
2005-06-19  3:05   ` twomol
2005-06-18 16:55 ` Gary Thomas

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=20050618152144.GC17597@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=twomol@bj1860.net \
    /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).