Skip to contentSkip to conversation

TFTP times out?

U-Boot-Users Zhen Wang 5 participants 7 messages Nov 10, 2005

lore
Share & tools
lore

Zhen Wang

author
#0 lore raw

Hi wd,
Yeah, I've read relevant topics in DULG and then revised my
configuration header file as following:

#define CONFIG_ETHADDR 00:50:c2:1e:af:fb
#define CONFIG_NETMASK 255.255.255.0
#define CONFIG_IPADDR 192.168.123.100
#define CONFIG_SERVERIP 192.168.123.115
#define CONFIG_BOOTFILE "zImage"
#define CONFIG_BOOTCOMMAND "tftpboot\; go 0c480000"
#define CFG_LOAD_ADDR 0x0c480000

I'm running Fedora Core 4 on my PC. I've got the tftp-server rpm
installed, iptables turned off, tftp service enabled and xinetd restarted, zImage copied under the /tftpboot/ directory. But after 5 sec boot delay the TFTP seemed to time out like this:

TFTP from server 192.168.123.115; out IP is 192.168.123.100
Filename: 'zImage'
Load address: 0xc480000
Loading: T T # # T # T T (omitted)
Retry count exceeded; starting again

Then I interrupted the command and tried to ping my PC:

jx44b0>ping 192.168.123.115
host 192.168.123.115 is alive

I think the network condition is OK, but the TFTP always times out. I want to configure a longer timeout value for TFTP but don't know where. Waiting for your reply. Thanks a lot.

Best regards,
Zhen Wang

#1 lore raw
Quoted 2 lines · Zhen Wang

I think the network condition is OK, but the TFTP
always times out. I

Try to see if use a direct net line. Perhaps it' the busy load on local network made it.

Regards,

Sam

___________________________________________________________
????G???????????????????
http://cn.mail.yahoo.com

author
#2 lore raw
Quoted 6 lines · Sam Song
Quoted 2 lines · Zhen Wang

I think the network condition is OK, but the TFTP
always times out. I

Quoted 8 lines

Try to see if use a direct net line. Perhaps it' the busy load on local network made it.

Regards,

Sam

But the board is connected to my PC directly through a twisted cable.

#3 lore raw
Quoted 4 lines · Zhen Wang
Quoted 2 lines
Quoted 2 lines

I think the network condition is OK, but the TFTP always times out.

But the board is connected to my PC directly through a twisted cable.

1. Then TFTP is not properly configured OR not running.
2. Restart the xinetd and try (if it is GNU/Linux Env)
3. Try tftp from another PC, if that works, then try from the board.

Bye :)

Signature · 1 line
Bharathi S
author
#4 lore raw

Bharathi Subramanian Wrote:

Quoted 7 lines · Zhen Wang
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

I think the network condition is OK, but the TFTP always times out.

Quoted 8 lines
Quoted 1 line

But the board is connected to my PC directly through a twisted cable.

1. Then TFTP is not properly configured OR not running.
2. Restart the xinetd and try (if it is GNU/Linux Env)
3. Try tftp from another PC, if that works, then try from the board.

Bye :)

I did check out my tftp server configurations carefully after
read your reply.
1. I am running Fedora Core 4 on my PC and installed tftp-server-0.40-6.i386.rpm. I did check out it by typing 'rpm -q tftp-server'.
2. I turned on tftp service and turned off iptables service, and configured no firewall.
3. I restarted xinetd successfully by typing 'service xinted restart'.
4. After typing 'netstat -a|grep tftp' I could see the output 'udp 0 0 *:tftp *:*'.
5. The /tftpboot directory's permission was 'drwxr-xr-x'.
6. I could tftp zImage successfully from another PC running Win XP over the Ethernet but still timed out from my board.
In a word, I think I should revise the tftpboot relevant codes to
prolong the time before time out. But I don't the exact file(location).

Best regards,
Zhen Wang

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

In a word, I think I should revise the tftpboot relevant codes to
prolong the time before time out. But I don't the exact file(location).

No. This will NOT solve the problem.

Run a network sniffer to find out if U-Boot is actually sending packets, and the TFTP server fails to reply, or if U-Boot does not send any packets at all.

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
365 Days of drinking Lo-Cal beer.                       = 1 Lite-year
#6 lore raw
In reply to Zhen Wang

Hi,

Quoted 24 lines · Zhen Wang

Hi wd,
Yeah, I've read relevant topics in DULG and then revised my
configuration header file as following:

#define CONFIG_ETHADDR 00:50:c2:1e:af:fb
#define CONFIG_NETMASK 255.255.255.0
#define CONFIG_IPADDR 192.168.123.100
#define CONFIG_SERVERIP 192.168.123.115
#define CONFIG_BOOTFILE "zImage"
#define CONFIG_BOOTCOMMAND "tftpboot\; go 0c480000"
#define CFG_LOAD_ADDR 0x0c480000

I'm running Fedora Core 4 on my PC. I've got the tftp-server rpm
installed, iptables turned off, tftp service enabled and xinetd restarted, zImage copied under the /tftpboot/ directory. But after 5 sec boot delay the TFTP seemed to time out like this:

TFTP from server 192.168.123.115; out IP is 192.168.123.100
Filename: 'zImage'
Load address: 0xc480000
Loading: T T # # T # T T (omitted)
Retry count exceeded; starting again

Quoted 4 lines

Then I interrupted the command and tried to ping my PC:

jx44b0>ping 192.168.123.115
host 192.168.123.115 is alive

That looks rather like a server problem (possibly firewall). You should try to run tftp from either the server itself, or - better - from a separate computer. Actually I faced same problems on a RedHat machine till xinietd was set up properly.

regards

eckart

Quoted 7 lines

I think the network condition is OK, but the TFTP always times out. I want to configure a longer timeout value for TFTP but don't know where. Waiting for your reply. Thanks a lot.

Best regards,
Zhen Wang