U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Scott McNutt <ScottM@Orbacom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Problem with LAN91C113
Date: Tue, 21 Oct 2003 12:34:07 -0400	[thread overview]
Message-ID: <1B1B671D73FED2119B1000A0C9B8A9600108ECAF@ORBNET> (raw)

Rick,

I had the exact same problem when using LAN91C111 on the Nios
DK-1C20 board (same status & incorrect length). You may need to
define CONFIG_SMC_USE_32_BIT. If your bus interface to the chip
is 32-bits, a full 32-bit read might be occuring when the data register
is read.

This throws away the second 16-bit word of the packet buffer (which
is the packet length) -- so you end up skipping every other set of
2-bytes after reading the incorrect length.

Regards,
--Scott

> -----Original Message-----
> From:	Rick.Lee [SMTP:cisc at tom.com]
> Sent:	Tuesday, October 21, 2003 9:51 AM
> To:	U-Boot-Users at lists.sourceforge.net
> Subject:	[U-Boot-Users] Problem with LAN91C113
> 
>  The Ethernet Chip on my board is SMSC LAN91C113,the driver I used is
> smc91111.c.
> I've defined CONFIG_DRIVER_SMC91111,undefined xxx_USE_32_BIT undefined
> xxxx_EXT_PHY.
>  When u-boot runs up, I try to ping my host from u-boot,but the sniffer on
> my host cannot catch any hardware packet,but my host sends ARP REPLY
> packet to my board. and the sended packet is captured by
> sniffer.Unfortunitly,board does'nt seem to have received right packet.I've
> enabled ET_DEBUG,It prints:
> RCV: STATUS 42 LENGTH 8.
>  
> AND LEDA & LEDB both lights!
>  
> What is the reason?
> Can you give me some ideas?
> Thanks a lot!
>  
> Ricky
>  

             reply	other threads:[~2003-10-21 16:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-21 16:34 Scott McNutt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-21 13:50 [U-Boot-Users] Problem with LAN91C113 Rick.Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1B1B671D73FED2119B1000A0C9B8A9600108ECAF@ORBNET \
    --to=scottm@orbacom.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox