AW: Re: Updating plb_temac to version 3.00.a on XILINX ml403 board

Michael Galassi mgalassi at c-cor.com
Wed Dec 6 04:24:44 EST 2006


>Thank you Michael and also Ming for your help!

>I modified my design according Michael's files and compiled
>everything. But with my 2.4.20 MontaVista-Kernel and the XILINX
>BSP-software 'No PHY detected. Assuming a PHY at address 0.'
>errormessage is printed out and because of that a wrong speed (10Mbits)
>is set.
>I have to find out now why the PHY is not detected. I assume that only
>the GMII interface is used for that. Am I right?

I'm using MontaVista's 2.6.10 variant so I have no experience with
2.4.20, however the the Xilinx provided 2.6 code did not correctly talk
to the phy on the ml403 so at boot time it would try to negotiate the
speed and drop it to 100, then 10Mbit as you noted.  Fortunately the
Marvell phy on the ml403 negotiates fine on its own so I was able to
comment that code out.  Since in our real design we have a Broadcom
switch hooked up to the temacs' we don't actually care about dealing
with the phy.

This applies to the 2.6 Xilinx code, there may be some similarity in the
2.4 code.  The file .../drivers/net/xilinx_temac/adapter.c contains a
routine called set_mac_speed() which does much of its work #ifdefed to
XILINX_PLB_TEMAC_3_00A_ML403_PHY_SUPPORT.  I moved the whole routine out
of the way and replaced it with hard-coded "lp->cur_speed = 1000;".
Your milage will obviously differ since you're running with 2.4 but this
may give you a hint as to where to start looking.

-michael



More information about the Linuxppc-embedded mailing list