Problems with PHY on STK5200
Jan-Hinnerk Dumjahn
jan-hinnerk.dumjahn at arcor.de
Tue Mar 6 03:12:28 EST 2007
On Thursday 01 March 2007 19:57, Wolfgang Denk wrote:
> In message <200703011216.57611.jan-hinnerk.dumjahn at arcor.de> you wrote:
> > I'm trying to compile a recent kernel from DENX "linuxppc_2_4_devel" for
> > my STK5200 using ELDK 3.1.1.
>
> It should compile and run fine.
It is compiling fine and it is basically working, but I get lot of receive
errors on the link, making it (almost) unusable for NFS root file system.
If I connect the STK5200 directly to my workstation using a crossover cable,
everything works fine.
> > It seems that the current kernel there is not configuring the PHY. It
> > looks like the link is configured for full-duplex (although it should be
> > configured half-duplex).
>
> What makes you think it should be half duplex only?
The old version (up to and including cc891b92c2540487be1eeba4b5d38c913570d339)
is negotiating half duplex. My linux workstation is also using half duplex if
plugged into the same hub (a D-Link DFE-905DX).
However, I'm not 100% sure that the PHY on STK5200 is operating with
full-duplex, because the link status is not reported by the kernel.
> > BTW: What is the normal way to reference a commit in a git-repository? I
> > haven't seen any revision numbers.
>
> You specify the git commit ID.
I hope the number above is a commit-ID...
> > Can anybody explain what the driver should to? Or even better has some
> > patch to make it work?
>
> The driver should work :-) And it certainly does for me.
It certainly doesn't work for me ;-(
All least newer versions of the kernel don't register "mdio_timer_callback()".
So, link up report isn't working.
This is caused by two occurences of the following code in mpc5xxx_fec_setup().
if(!reinit) {
...
if(reinit) {
...
}
...
}
Nevertheless, the MDIO-code is doing something useful. Without CONFIG_USE_MDIO
I don't get a single packet through the network interface (using either hub
or crossover-cable).
I'm willing to do further tests and provide more information. However, I need
some advice on the direction, because I don't understand enough of the code,
yet.
Best regards,
Jan-Hinnerk Dumjahn
More information about the Linuxppc-embedded
mailing list