<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>mpc5200: "len bad" messages from tftp (u-boot 1.1.1)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hello,<BR>
<BR>
We are seeing repeated errors during downloads using the tftp client built into u-boot version 1.1.1.<BR>
The error message we see is:<BR>
<BR>
"len bad 494 < 544"<BR>
<BR>
I believe the messages must be generated by the following snippet of code from u-boot-1.1.1/net/net.c:<BR>
<BR>
case PROT_IP:<BR>
#ifdef ET_DEBUG<BR>
puts ("Got IP\n");<BR>
#endif<BR>
if (len < IP_HDR_SIZE) {<BR>
debug ("len bad %d < %d\n", len, IP_HDR_SIZE);<BR>
return;<BR>
}<BR>
if (len < ntohs(ip->ip_len)) {<BR>
printf("len bad %d < %d\n", len, ntohs(ip->ip_len));<BR>
return;<BR>
}<BR>
<BR>
<BR>
The error is recoverable and occurs erratically - sometimes we see long strings of "#"'s between errors, and other times errors occur every couple of "#"'s. We always seem to end up with a good download.<BR>
<BR>
<BR>
We don't see this problem using the freescale Lite5200 boards, but we do see it on our custom mpc5200 boards.<BR>
<BR>
<BR>
Can anyone suggest where we should look to diagnose this problem? Perhaps it's hardware related, although I suppose it could be a configuration problem in the way u-boot is setting up the ethernet device - once we boot into linux we don't see many errors -- according to ifconfig, anyway.<BR>
<BR>
Pinging the board from another machine also shows no errors.<BR>
<BR>
thanks and best regards<BR>
Nick Caruso<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>