From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from irobot.com (smtp1.irobot.com [66.238.211.203]) by ozlabs.org (Postfix) with ESMTP id 2753667ABA for ; Thu, 24 Feb 2005 01:12:10 +1100 (EST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C519B1.A80468F6" Date: Wed, 23 Feb 2005 09:12:06 -0500 Message-ID: <712A2DEC228C7448978CBD7A7AD5B090592D27@fever.wardrobe.irobot.com> From: "Caruso, Nick" To: "ppcembed" Subject: mpc5200: "len bad" messages from tftp (u-boot 1.1.1) List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C519B1.A80468F6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, We are seeing repeated errors during downloads using the tftp client = built into u-boot version 1.1.1. The error message we see is: "len bad 494 < 544" I believe the messages must be generated by the following snippet of = code from u-boot-1.1.1/net/net.c: case PROT_IP: #ifdef ET_DEBUG puts ("Got IP\n"); #endif if (len < IP_HDR_SIZE) { debug ("len bad %d < %d\n", len, IP_HDR_SIZE); return; } if (len < ntohs(ip->ip_len)) { printf("len bad %d < %d\n", len, = ntohs(ip->ip_len)); return; } 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. We don't see this problem using the freescale Lite5200 boards, but we do = see it on our custom mpc5200 boards. 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. Pinging the board from another machine also shows no errors. thanks and best regards Nick Caruso ------_=_NextPart_001_01C519B1.A80468F6 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable mpc5200: "len bad" messages from tftp (u-boot = 1.1.1)

Hello,

We are seeing repeated errors during downloads using the tftp client = built into u-boot version 1.1.1.
The error message we see is:

"len bad 494 < 544"

I believe the messages must be generated by the following snippet of = code from u-boot-1.1.1/net/net.c:

 case PROT_IP:
#ifdef ET_DEBUG
            &= nbsp;   puts ("Got IP\n");
#endif
            &= nbsp;   if (len < IP_HDR_SIZE) {
            &= nbsp;           debug = ("len bad %d < %d\n", len, IP_HDR_SIZE);
            &= nbsp;           = return;
            &= nbsp;   }
            &= nbsp;   if (len < ntohs(ip->ip_len)) {
            &= nbsp;           = printf("len bad %d < %d\n", len, ntohs(ip->ip_len));
            &= nbsp;           = return;
            &= nbsp;   }


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.


We don't see this problem using the freescale Lite5200 boards, but we do = see it on our custom mpc5200 boards.


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.

Pinging the board from another machine also shows no errors.

  thanks and best regards
    Nick Caruso


------_=_NextPart_001_01C519B1.A80468F6--