Skip to contentSkip to conversation

uboot can't download files through tftp

U-Boot-Users cpjzjut 6 participants 6 messages May 19, 2006 – May 25, 2006

lore
Share & tools
lore

cpjzjut

author
#0 lore raw

Hi,
When i was downloading a file through tftp,there was a problem.It likes these:
" TFTP from server 10.0.0.155; our IP address is 10.0.0.110<BR> Filename '0A00006E.img'.<BR> Load address: 0x30000000<BR> Loading: T T T"

The board can ping the pc.

I don't know why?
Best regards,
Ben

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060520/7a2a4b2d/attachment.htm

#1 lore raw
Quoted 8 lines · cpjzjut

Hi,
When i was downloading a file through tftp,there was a problem.It
likes these:
" TFTP from server 10.0.0.155; our IP address is 10.0.0.110
Filename '0A00006E.img'.
Load address: 0x30000000
Loading: T T T"

Quoted 6 lines

The board can ping the pc.

I don't know why?
Best regards,
Ben

1) Run ethereal and sniff the ethernet, see what the TFTP packets are being transmitted. Quite likely you will find you don't have a TFTP server on 10.0.0.155.

2) Run TFTP on a different machine and see if you can get the file. This will show if the TFTP server is operational.

gvb

#3 lore raw

Problem is in source code net\tftp.c.

MAC address is set to zero.
Set MAC address to broadcast. (all 0xf)

Old
memset(NetServerEther, 0, 6); - zero MAC

New
memset(NetServerEther, 0xff, 6); broadcast MAC

Michal Simek
Czech Technical University

#4 lore raw
In reply to cpjzjut
Quoted 10 lines · cpjzjut

Hi,
When i was downloading a file through tftp,there was a problem.It
likes these:

    " TFTP from server 10.0.0.155; our IP address is 10.0.0.110
     Filename '0A00006E.img'.
     Load address: 0x30000000
     Loading: T T T"
 
     The board can ping the pc.

You are trying to download the file 0A00006E.img from the server. Is this file present on the server?

This file name is made from your MAC address apparently. I think you forgot to specify file name in your tftp command line unless you really want to download the made up filename according to your MAC address.

Please provide the command you have typed if you are looking for more specific help next time.

Best regards,
Tolunay

#5 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

You are trying to download the file 0A00006E.img from the server. Is this file present on the server?

This file name is made from your MAC address apparently. I think you

No, not from the MAC address, but from the IP address.

Quoted 2 lines

forgot to specify file name in your tftp command line unless you really want to download the made up filename according to your MAC address.

s/MAC/IP/

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I often quote myself; it adds spice to my conversation.  - G. B. Shaw