mpc8270 & Intel 82551ER on 2.6.17.14
Nicholas Hickman
nhickman at dtechlabs.com
Fri Jun 29 08:53:57 EST 2007
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070628/d2733a3d/attachment.htm
More information about the Linuxppc-embedded
mailing list