This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problems receiving packets on i82559


On Fri, 2003-03-07 at 05:14, Nikhil R. wrote:
> Hi Andrew,
> 
> As u had asked earlier, we added print statements in eth_isr and eth_dsr and
> see them but only when we r sending packets.
> 
> But when we dont send any packet the eth_isr and eth_dsr statements are not
> printed.
> 
> Wht cud be the reason tht the interrupts are not being generated?
> 

It looks like your Ethernet Station Address (or MAC) may not be
set up properly.  The fact [you mentioned] that you get broadcast
packets means that the chip, interrupts, etc, are working.  The
ethernet controller is designed to only accept packets, and hence
generate interrupts to the system, when the ESA of a packet on
the wire matches certain criteria.  These are normally broadcast
and the ESA for the controller itself.  If the system thinks that
the device is using a particular ESA, but the device is configured
differently, then no packets will seem to arrive.

This [ESA] setup is done during initialization and there should
be some debug prints that you can turn on to see what's happening.

> Thanx,
> Nikhil
> 
> -----Original Message-----
> From: Andrew Lunn [mailto:andrew dot lunn at ascom dot ch]
> Sent: Friday, March 07, 2003 2:01 PM
> To: Nikhil R.
> Cc: ecos-discuss at sources dot redhat dot com
> Subject: Re: [ECOS] Problems receiving packets on i82559
> 
> 
> Hi
> 
> Sounds like your interrupt are not happening. Try printing a
> diag_printf in the isr and dsr functions. Make sure they are being
> called.
> 
> You are receiving while sending because the send code polls the
> receiver. Without this poll you rely on interrupts.
> 
>           Andrew
> 
> On Fri, Mar 07, 2003 at 12:11:11PM +0530, Nikhil R. wrote:
> > Hi All,
> > 
> > We used the i82559 driver in our TCP/IP stack. We have been able to
> > initialize and send packets successfully but r not receving any packets
> > consistently.
> > 
> > When the send is happening, we are receiving ARP and IP packets with
> > destination Eth address of ff:ff:ff:ff:ff:ff.
> > 
> > But we r not receiving any other packet with a different destination Eth
> > address.
> > 
> > Once the send stops we are not able to receive even these packets anymore.
> > 
> > Can anyone throw light on wht the problem could be?
> > 
> > Thanx in advance,
> > Nikhil
> > 
> > 
> > 
> > 
> > DISCLAIMER:
> > This message (including attachment if any) is confidential and may be
> privileged. Before opening attachments please check them for viruses and
> defects. MindTree Consulting Private Limited (MindTree) will not be
> responsible for any viruses or defects or any forwarded attachments emanating
> either from within MindTree or outside. If you have received this message by
> mistake please notify the sender by return  e-mail and delete this message
> from your system. Any unauthorized use or dissemination of this message in
> whole or in part is strictly prohibited.  Please note that e-mails are
> susceptible to change and MindTree shall not be liable for any improper,
> untimely or incomplete transmission.
> > 
> > --
> > Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> > and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> > 
> 
> 
> DISCLAIMER:
> This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss

-- 
.--------------------------------------------------------.
|       Mind: Embedded Linux and eCos Development        |
|--------------------------------------------------------|
| Gary Thomas              email:  gary dot thomas at mind dot be   |
| Mind ( http://mind.be )  tel:    +1 (970) 229-1963     |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc       |
'--------------------------------------------------------'


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]