LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Fleming <afleming@freescale.com>
To: KylongMu <mqy@263.net.cn>
Cc: Linuxppc-embedded@ozlabs.org
Subject: Re: mpc8540 SK board FEC not work!
Date: Mon, 25 Jul 2005 15:40:24 -0500	[thread overview]
Message-ID: <EE9E399A-D3DF-4875-AB59-A3D4633184CC@freescale.com> (raw)
In-Reply-To: <20050725111654.6A5A1C34A8@smtp.263.net>


On Jul 25, 2005, at 06:16, KylongMu wrote:

> Hello, team
>         I'm testing the 2.6.13-rc3 kernel on my board, all is work  
> well except
> the FEC.
> Board type:  PQ3SK REVB
> Kernel       :  2.6.13-rc3
> toolchain    : ELDK 3.1.1
> PHY type  : Marvell 88E1111S

I'm not familiar with the PQ3SK.  Who makes this board?

>
>         Compile with "make mpc8540ads_defconfig", change with nothing.
> download uImage file into my board and boot with it, all is ok !  
> But when
> I config the eth0 , it can't work , same with eth1, both of them  
> are Giga-eth,
> but eth2 is work well, and eth2 is a 10/100-eth.

Now I'm a little confused.  You are building the 8540 ADS config for  
your different board?  That sounds dangerous.  Also, I'm confused  
because your first paragraph implies that everything works except  
FEC, while this paragraph implies that nothing works except for the  
FEC (FEC is eth2).


>         I checked the 8540ADS's hardware message , it's use 88E1011  
> PHY
> not 88E1111 PHY . And I checked the kernel code " driver/net/ 
> gianfar_phy.c"
> it takes 88E1011 and 88E1111 as same PHY , so I think this is not a  
> hardware
> problem, and my board work well with a 2.4.18 DEMO kernel.
>         Here is the output message of  2.6.13-rc3 kernel:
>
> PuffLinux:root$ifconfig eth0 192.168.1.77
> eth0: PHY is Generic MII (ffffffff)

This message means that there was an error reading the PHY identifier  
from the PHY.  Either (as Alex said) you have the wrong PHY address  
(this is specified in board files), or there is a problem with your  
PHY bus.  The ADS boards required a jumper hat to be on the PHY  
configuration pins to configure the address of the Marvell PHYs.   
Perhaps your board is similar.  However, I suspect two things:

1) Your board sets the Marvell PHYs to different PHY addresses than  
the 8540 ADS board.  Check with your hardware engineers.

2) The Marvell 88E1111 probably requires the same workaround as the  
88E1011 after a reset, and a reset occurs.  This means that the PHY  
code needs to detect the 88E1111 as a Marvell PHY, so fixing #1  
should solve this problem.




Andy Fleming
Open Source Team
Freescale Semiconductor, Inc

      parent reply	other threads:[~2005-07-25 20:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-25 11:16 mpc8540 SK board FEC not work! KylongMu
2005-07-25 13:58 ` Alex Zeffertt
2005-07-25 20:40 ` Andy Fleming [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EE9E399A-D3DF-4875-AB59-A3D4633184CC@freescale.com \
    --to=afleming@freescale.com \
    --cc=Linuxppc-embedded@ozlabs.org \
    --cc=mqy@263.net.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox