minor progress with plb_temac v3.00a, EDK 8.2, & 2.6.18.1

robert corley rdcorle at yahoo.com
Sat Nov 11 06:53:34 EST 2006


Rimas;

Good call on the PHY address.  I thought that I was on to something when
I saw that a week or so ago; however, after I checked the datasheet on the
MARVELL 88E1111 PHY chip and its connection on the ML403 board, I
found that it is addressed to 0b00000.

It does appear that access to the mgmt registers is working, albeit not completely
as expected (see boot dump, below) with regards to the PHY ID.

The initialization process is pretty simple:

1.   Query the PHY [using  XTemac_PhyRead(...)] and see what speed it's set to:

    [    5.358347] XTemac(set_mac_speed): PHY Speed from XTemac_PhyRead() = 0M, where 2=1000M, 1=100M, and 0=10M


2.    Set the MAC to the same speed (in a switch statement):
            XTemac_SetOperatingSpeed(&lp->Emac, 10);

I suspect that the problem is with the first step as it is reporting a different speed than what the LED's on the board show.

Any thoughts?
 
Robert Corley (rdcorle at yahoo.com)




============================

partial boot dump follows...


[    2.706547] XTemac (xtenet_probe): Device initialized to:
[    2.712064]     Device ID    0
[    2.714595]     Base Addr    0x60000000
[    2.717918]     Rx FIFO    131072
[    2.720723]     Tx FIFO    131072
[    2.723508]     MAC FIFO    64
[    2.726052]     DMA mode    3
[    2.728514]     TX Dre    2
[    2.730782]     Rx Dre    2
[    2.733067]     Tx CSUM    0
[    2.735421]     Rx CSUM    0
[    2.737792]     Phy Type    1
[    2.740268] XTemac (xtenet_probe): MAC initialized to: 00:0A:35:00:22:00
[    2.746964] XTemac: using sgDMA mode.
[    2.750637] XTemac: using TxDRE mode
[    2.754221] XTemac: using RxDRE mode
[    2.757815] XTemac: buffer descriptor size: 32768 (0x8000)
[    2.763779] XTemac: (buffer_descriptor_init) phy: 0x978000, virt: 0xff100000, size: 0x8000
[    2.777432] eth0: Dropping NETIF_F_SG since no checksum feature.
[    2.784323] eth0: Xilinx TEMAC #0 at 0x60000000 mapped to 0xC5050000, irq=0
[    2.791327] eth0: XTemac id 1.0f, block id 5, type 8
[    2.796886] mice: PS/2 mouse device common for all mice
[    2.802782] TCP bic registered
[    3.308299] eth0: XTemac: Options: 0xb8f2
[    5.306282] XTemac(marvell_reset): Marvell 88E1111 reset.
[    5.311715] XTemac: (set_mac_speed) Marvell 88E1111 basic-mode status register(#1) = 0x0148
[    5.320083] XTemac: (set_mac_speed) Marvell 88E1111 PHY ID 1 = 0x0000
[    5.326547] XTemac: (set_mac_speed) Marvell 88E1111 PHY ID 2 = 0x0400
[    5.333009] XTemac: (set_mac_speed) Marvell 88E1111 1000BASE-T status register(#10) = 0x0000
[    5.341466] XTemac: (set_mac_speed) Marvell 88E1111 extended status register(#15) = 0x0000
[    5.349752] XTemac: (set_mac_speed) Marvell 88E1111 PHY specific status register(#17) = 0x0000
[    5.358347] XTemac(set_mac_speed): PHY Speed from XTemac_PhyRead() = 0M, where 2=1000M, 1=100M, and 0=10M
[    5.367887] eth0: XTemac: EMAC speed set to 10Mb/s
[    5.372666] XTemac (set_mac_speed): verifying speed settings.  Expect 10M
[    5.379480] XTemac: (set_mac_speed) Marvell 88E1111 PHY specific status register(#17) = 0x0900
[    5.388074] eth0: XTemac: PHY Speed from XTemac_PhyRead() = 0M, where 2=1000M, 1=100M, and 0=10M
[    5.396839] eth0: XTemac: EMAC Speed from XTemac_GetOperatingSpeed() = 10M
[    5.405544] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2
[    5.411917] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1
[    6.420309] IP-Config: Complete:
[    6.423375]       device=eth0, addr=192.168.1.100, mask=255.255.255.0, gw=192.168.1.1,
[    6.431272]      host=nab, domain=, nis-domain=(none),
[    6.436422]      bootserver=192.168.1.144, rootserver=192.168.1.144, rootpath=









More information about the Linuxppc-embedded mailing list