public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] TFTP timeout
@ 2006-08-02 15:06 Olivier Vernet
  2006-08-02 15:29 ` Stefan Roese
  0 siblings, 1 reply; 19+ messages in thread
From: Olivier Vernet @ 2006-08-02 15:06 UTC (permalink / raw)
  To: u-boot

>Stefan Roese already recommended to enable the debug  output  in  the
>4xx ethernet driver - did you do this? What did it say?

Yes, Philippe had enabled debug output (#define INFO_4XX_ENET).

I've re-enable them with top-of-git u-boot version, trace looks
like previous one.


Best regards

Olivier

Here is the trace:

[BASE6000]> tftpboot 4000000 pMulti6000
tftpboot 4000000 pMulti6000
About preceeding transfer (eth0):
- Sent packet number 2890
- Received packet number 2898
- Handled packet number 2898
ENET Speed is 100 Mbps - FULL duplex connection Using ppc_4xx_eth0
device TFTP from server 10.33.17.251; our IP address is 10.33.17.162
Filename 'pMulti6000'.
Load address: 0x4000000
Loading: send option "timeout 5"
Got OACK: timeout 5
#################################################################
...
 
#################################################################
 
#################################################################
 
#################################################################
         ###########################################
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000
MAL_ERR= e0000000 About preceeding transfer (eth0):
- Sent packet number 30974
- Received packet number 31059
- Handled packet number 31059

MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000
MAL_ERR= e0000000 About preceeding transfer (eth0):
- Sent packet number 0
- Received packet number 0
- Handled packet number 0
T T
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000
MAL_ERR= e0000000 About preceeding transfer (eth0):
- Sent packet number 2
- Received packet number 0
- Handled packet number 0

MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000
MAL_ERR= e0000000 About preceeding transfer (eth0):
- Sent packet number 0
- Received packet number 0
- Handled packet number 0
T
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000
MAL_ERR= e0000000 About preceeding transfer (eth0):
- Sent packet number 1
- Received packet number 0
- Handled packet number 0
T
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000
MAL_ERR= e0000000 About preceeding transfer (eth0):
- Sent packet number 1
- Received packet number 0
- Handled packet number 0
T

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [U-Boot-Users] TFTP timeout
@ 2006-08-10 10:04 Olivier Vernet
  0 siblings, 0 replies; 19+ messages in thread
From: Olivier Vernet @ 2006-08-10 10:04 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

First of all, thanks to continue to investigate on this problem.

I've tried to increase the number of rx-packets and fixed it to 256.

The timeout still occurred but without the previous message
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000 MAL_ERR= e0000000 About preceeding transfer (eth0)


It's true that there is quite a lot of broadcoasts on the network, and I have the feeling that timeouts are less frequent this week as there is a lot
of people on vacation (and so a lot of computer shutdown). 

Perhaps it's a way to investigate.

Best regards

Olivier







-----Message d'origine-----
De?: Stefan Roese [mailto:sr at denx.de] 
Envoy??: lundi 7 ao?t 2006 15:03
??: u-boot-users at lists.sourceforge.net
Cc?: Olivier Vernet; Philippe Villet; wd at denx.de
Objet?: Re: [U-Boot-Users] TFTP timeout

Hi Olivier,

On Wednesday 02 August 2006 18:11, Olivier Vernet wrote:
> Yes, the behaviour changes with the network topology. On some
> switch, timeout occurs more often, but in the manufacturing center,
> we have an "island network", and it seems that the problem have not be
> reproduced.

Do you have lot's of broadcasts on your "main" network connection? Please try 
to increase the number of rx-packets again. For example:

#define CFG_RX_ETH_BUFFER	256

And please let me know if this helped. Thanks.

Best regards,
Stefan

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [U-Boot-Users] TFTP timeout
@ 2006-08-02 16:11 Olivier Vernet
  2006-08-02 19:04 ` Rune Torgersen
  2006-08-07 13:03 ` Stefan Roese
  0 siblings, 2 replies; 19+ messages in thread
From: Olivier Vernet @ 2006-08-02 16:11 UTC (permalink / raw)
  To: u-boot

>Did you try to use an "island network" setup, with you target and the
>server 
>in a separated network? Or even a point-to-point connection? Does this
>change 
>the behavior? (This is not the solution, just another test).
>
>Best regards,
>Stefan

Yes, the behaviour changes with the network topology. On some
switch, timeout occurs more often, but in the manufacturing center,
we have an "island network", and it seems that the problem have not be
reproduced.

Best regards,

Olivier

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [U-Boot-Users] TFTP timeout
@ 2006-08-02 13:18 Olivier Vernet
  2006-08-02 13:29 ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Olivier Vernet @ 2006-08-02 13:18 UTC (permalink / raw)
  To: u-boot

>
>Then the next thing you should do is updating to top of tree.
>
>You should always use *current* code for new projects.

Hi everyone,

I'm working with Philippe on the same board, we've just 
download top-of-git uboot and we have the same problem with TFTP.

No more idea?

Best regards

Olivier

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [U-Boot-Users] TFTP timeout
@ 2006-07-31 12:58 Philippe Villet
  2006-07-31 14:04 ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Philippe Villet @ 2006-07-31 12:58 UTC (permalink / raw)
  To: u-boot

Stefan,


>What did you define "CFG_RX_ETH_BUFFER" in your board config file to? Did 
you
>try to enable the debug output in the 4xx ethernet driver 
"INFO_4XX_ENET"?
<Are you using top-of-git UBoot version?

No i'am using the plain 1.1.4 UBoot version (customized for our board).
I try several values for "CFG_RX_ETH_BUFFER" : 32,31,16 and 8. It does not 
change 
anything. Here is a trace with debug output. I've also added a trace in 
the eneInt
routine to trace interrupts (UIC0MSR and UIC1MSR contents. When it works, 
i've got
UIC0MSR : 0x100000, UIC1MSR : 0x0 (=> MRE interrupt)
and just before the MAL error
UIC0MSR : 0x2, UIC1MSR : 0xa0000000 (=> MS + MRDE innterrupts).
Any idea?

Philippe.


[BASE6000]> tftpboot 4000000 pMulti6000
tftpboot 4000000 pMulti6000
About preceeding transfer (eth0):
- Sent packet number 2890
- Received packet number 2898
- Handled packet number 2898
ENET Speed is 100 Mbps - FULL duplex connection
Using ppc_4xx_eth0 device
TFTP from server 10.33.17.251; our IP address is 10.33.17.162
Filename 'pMulti6000'.
Load address: 0x4000000
Loading: send option "timeout 5"
Got OACK: timeout 5
#################################################################
...
         #################################################################
         #################################################################
         #################################################################
         ###########################################
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000 
MAL_ERR= e0000000
About preceeding transfer (eth0):
- Sent packet number 30974
- Received packet number 31059
- Handled packet number 31059

MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000 
MAL_ERR= e0000000
About preceeding transfer (eth0):
- Sent packet number 0
- Received packet number 0
- Handled packet number 0
T T
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000 
MAL_ERR= e0000000
About preceeding transfer (eth0):
- Sent packet number 2
- Received packet number 0
- Handled packet number 0

MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000 
MAL_ERR= e0000000
About preceeding transfer (eth0):
- Sent packet number 0
- Received packet number 0
- Handled packet number 0
T
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000 
MAL_ERR= e0000000
About preceeding transfer (eth0):
- Sent packet number 1
- Received packet number 0
- Handled packet number 0
T
MAL error occured.... ISR = c0100010 UIC = = 2  MAL_DEF = e0100000 
MAL_ERR= e0000000
About preceeding transfer (eth0):
- Sent packet number 1
- Received packet number 0
- Handled packet number 0
T

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [U-Boot-Users] TFTP timeout
@ 2006-07-28 15:13 Philippe Villet
  2006-07-29  7:01 ` Stefan Roese
  2006-07-29 12:34 ` Wolfgang Denk
  0 siblings, 2 replies; 19+ messages in thread
From: Philippe Villet @ 2006-07-28 15:13 UTC (permalink / raw)
  To: u-boot

Browsing the mailing list i saw that some people met my problem but i can' find the answer. Here is my problem :

TFTP transfer with u-boot (1.1.4) sometimes ended with timeout (TTT) and then a MAL error.

I'am using a 440EP, with 2 PHY from Micrel (KSZ8001) in SMII mode. Under linux (ELDK 4.0, kernel 2.6.16) we have no problem (nfs, ftp, tftp work well). 

We used a Etheral to sniff and found out that u-boot ack one datapackage but when the next datapackage arrives u-boot doesn't seem to hear it. Instead u-boot timesout listening and sends another ack on the previous datapackage. The tftp server then retransmits the last datapackage again witch u-boot doesn't hear, u-boot times out and send another ack on the previous datapackage, and we are stuck in this loop.

A previous discussion "[U-Boot-Users] TFTP times out?" ended with a bad timer implementation.

Could someone help me ?

Thanks - Philippe.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060728/5c973218/attachment.htm 

^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <mailman.231957.1154078484.12895.u-boot-users@lists.sourceforge.net>]
* [U-Boot-Users] tftp timeout
@ 2006-04-12  7:54 Andre Puschmann
  2006-04-12 11:53 ` Jerry Van Baren
  0 siblings, 1 reply; 19+ messages in thread
From: Andre Puschmann @ 2006-04-12  7:54 UTC (permalink / raw)
  To: u-boot

hallo,
i know this newsgroup already talked about this subject and of course i
read this stuff but there are still some questions ..

i am currently trying to download a kernel image via tftp from a
tftp-server on my hostpc which is connected through a ethernet-switch.
but i always get timeouts .. look at this:

<log>
Load address: 0x20800000
Loading: *\0x08#######T ##################################T
###################T ####T ##T #
\0x09 ###T #T #########T ########T #############T ##T #############T
########T #############T
\0x09 #####T ###T ######T #######T #######T #############T ##T
##############T ###########
\0x09 ###########
done
</log>

i mean .. the transfer is ok .. but it takes ages :-)


it looks like this if i connect my board directly to my hostpc.

<log>
Load address: 0x20800000
Loading: *\0x08T
#################################################################
\0x09 #################################################################
\0x09 #################################################################
\0x09 ###########
done
</log>


does anybody got the same issues?
i mean there is no huge traffic on the net and my local tftp client 
loads the 1MB kernel-image in seconds.
i am using u-boot-1.1.1 and i also tried u-boot-1.1.4!

regards
andre

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2006-08-10 10:04 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-02 15:06 [U-Boot-Users] TFTP timeout Olivier Vernet
2006-08-02 15:29 ` Stefan Roese
  -- strict thread matches above, loose matches on Subject: below --
2006-08-10 10:04 Olivier Vernet
2006-08-02 16:11 Olivier Vernet
2006-08-02 19:04 ` Rune Torgersen
2006-08-07 13:03 ` Stefan Roese
2006-08-07 20:11   ` Tolunay Orkun
2006-08-02 13:18 Olivier Vernet
2006-08-02 13:29 ` Wolfgang Denk
2006-07-31 12:58 Philippe Villet
2006-07-31 14:04 ` Wolfgang Denk
2006-07-28 15:13 Philippe Villet
2006-07-29  7:01 ` Stefan Roese
2006-07-29 12:34 ` Wolfgang Denk
     [not found] <mailman.231957.1154078484.12895.u-boot-users@lists.sourceforge.net>
2006-07-28 14:19 ` Philippe Villet
2006-07-31 16:05   ` Stefan Strobl
2006-04-12  7:54 [U-Boot-Users] tftp timeout Andre Puschmann
2006-04-12 11:53 ` Jerry Van Baren
2006-04-12 13:40   ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox