linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* mpc8270 & Intel 82551ER on 2.6.17.14
@ 2007-06-28 22:53 Nicholas Hickman
  2007-06-29  8:12 ` Pradyumna Sampath
  0 siblings, 1 reply; 5+ messages in thread
From: Nicholas Hickman @ 2007-06-28 22:53 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 3417 bytes --]

I am having trouble getting two 82551ER Ethernet controllers running in
Linux.  I am able to scan the PCI bus and see the devices and I was even
able to program the EEPROM from U-boot.  
 
In the kernel I mapped the IRQ's through /arch/ppc/m82xx_pci.c.  I've
been using the e100 drive that comes with the 2.6.17.14 kernel and have
also tried the driver directly from Intel.  Both give the same results.
The PCI scan shows the correct output for how the device should be
configured.
 
The situation is when I use the ethtool with the driver loaded and eth0
not configured with ifconfig I get this:
SCB Status Word (Lower Word)             0x0000
      RU Status:               Idle
      CU Status:               Idle
      ---- Interrupts Pending ----
      Flow Control Pause:                no
      Early Receive:                     no
      Software Generated Interrupt:      no
      MDI Done:                          no
      RU Not In Ready State:             no
      CU Not in Active State:            no
      RU Received Frame:                 no
      CU Completed Command:              no
SCB Command Word (Upper Word)            0x0100
      RU Command:              No Command
      CU Command:              No Command
      Software Generated Interrupt:      no
      ---- Interrupts Masked ----
      ALL Interrupts:                    yes
      Flow Control Pause:                no
      Early Receive:                     no
      RU Not In Ready State:             no
      CU Not in Active State:            no
      RU Received Frame:                 no
      CU Completed Command:              no
MDI/MDI-X Status:                        MDI
 

With eth0 configured using the command "ifconfig eth0 192.168.1.7
netmask 255.255.255.0 up" I get this:
SCB Status Word (Lower Word)             0x6450
      RU Status:               Ready
      CU Status:               Suspended
      ---- Interrupts Pending ----
      Flow Control Pause:                no
      Early Receive:                     no
      Software Generated Interrupt:      yes
      MDI Done:                          no
      RU Not In Ready State:             no
      CU Not in Active State:            yes
      RU Received Frame:                 yes
      CU Completed Command:              no
SCB Command Word (Upper Word)            0x0000
      RU Command:              No Command
      CU Command:              No Command
      Software Generated Interrupt:      no
      ---- Interrupts Masked ----
      ALL Interrupts:                    no
      Flow Control Pause:                no
      Early Receive:                     no
      RU Not In Ready State:             no
      CU Not in Active State:            no
      RU Received Frame:                 no
      CU Completed Command:              no
MDI/MDI-X Status:                        MDI
 
 
 
If I issue a PING out of the port and sniff the traffic on the
destination PC I see the ARP requests and I send the reply, but the
embedded machine sees nothing.  If I use ethtool or even ifconfig to
view the statistics on the port they both show that there are no packets
in or out.
 
I have no idea where to go with this.  It seems like the PCI bus is
working, but possibly not the Interrupt handler.
 
 
 

Nicholas Hickman
Applications Engineer
DTech Labs, Inc.


 

[-- Attachment #2: Type: text/html, Size: 9048 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: mpc8270 & Intel 82551ER on 2.6.17.14
@ 2007-06-29 16:48 Muruga Ganapathy
  2007-06-29 16:54 ` Nicholas Hickman
  0 siblings, 1 reply; 5+ messages in thread
From: Muruga Ganapathy @ 2007-06-29 16:48 UTC (permalink / raw)
  To: Pradyumna Sampath, Nicholas Hickman, linuxppc-embedded



1. You may want to check whether the device is configured properly by
   enabling the debug statements or using the lspci command. I mean the 
   BAR registers.

2. Also check whether correct the interrupt is assigned to the 
   device using cat /proc/interrupts command under linux. 

3. As far as the EEPROM is concerned, you need to enable debug to check 
   whether there is any check sum error. If there is a check sum error 
   in EEPROM, the device may not come up too. As you are using it in 
   powerpc platform, you need to take care of the endianess while 
   writing to the EEPROM.

Hope this helps!

Thanks
G.Muruganandam



> Hi Nicholas,
> 
> On 6/29/07, Nicholas Hickman <nhickman@dtechlabs.com> wrote:
> >
> >
> > I am having trouble getting two 82551ER Ethernet controllers 
running in
> > Linux.  I am able to scan the PCI bus and see the devices and I was 
even
> > able to program the EEPROM from U-boot.
> >
> > In the kernel I mapped the IRQ's through /arch/ppc/m82xx_pci.c.  
I've been
> > using the e100 drive that comes with the 2.6.17.14 kernel and have 
also
> > tried the driver directly from Intel.  Both give the same results.  
The PCI
> > scan shows the correct output for how the device should be 
configured.
> <snip..>
> 
> I have the same, exact same problem. But there are some of the
> differences with the setup though. I have an MPC5200B and the other
> difference is that I have a 2.6.21-rt3. However its the same ethernet
> controller.
> 
> I am trying out a few things here, some of them being complete
> guesses. But if I hit something, I will let this list know. Anyone
> else had similar issues ? Request you to please holler.
> 
> regards
> prady
> -- 
> htp://prady.livejournal.com
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 

*************************************************************
GDA Technologies, Inc.		
1010 Rincon Circle 
San Jose CA, 95131
Phone	(408) 432-3090
Fax	(408) 432-3091

Accelerate Your Innovation	
**************************************************************


=====
This message contains information from GDA Technologies Inc and 
affiliates, and is intended for the sole use of the individual and 
entity to whom it is addressed. It may contain information, including 
any attachments, that is privileged, confidential and exempt from 
disclosure under applicable law. If you are not the intended addressee, 
nor authorized to receive for the intended addressee, you are hereby 
notified that you may not use, copy, disclose or distribute to anyone 
the message or any information contained in the message. If you have 
received this electronic transmission in error, please notify the 
sender immediately by a "reply to sender only" message and destroy all 
electronic and hard copies of the communication, including attachments.
====

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

end of thread, other threads:[~2007-07-02 18:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-28 22:53 mpc8270 & Intel 82551ER on 2.6.17.14 Nicholas Hickman
2007-06-29  8:12 ` Pradyumna Sampath
2007-07-02 18:41   ` Nicholas Hickman
  -- strict thread matches above, loose matches on Subject: below --
2007-06-29 16:48 Muruga Ganapathy
2007-06-29 16:54 ` Nicholas Hickman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).