* mpc8540 SK board FEC not work!
@ 2005-07-25 11:16 KylongMu
2005-07-25 13:58 ` Alex Zeffertt
2005-07-25 20:40 ` Andy Fleming
0 siblings, 2 replies; 3+ messages in thread
From: KylongMu @ 2005-07-25 11:16 UTC (permalink / raw)
To: Linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]
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
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.
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)
If the PHY config is correct it will recognize my PHY ID, but here
is a
wrong ID number ffffffff .
Please help me solve this problem!
Thanks a lot!
KylongMu
[-- Attachment #2: Type: text/html, Size: 2025 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: mpc8540 SK board FEC not work!
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
1 sibling, 0 replies; 3+ messages in thread
From: Alex Zeffertt @ 2005-07-25 13:58 UTC (permalink / raw)
To: KylongMu; +Cc: Linuxppc-embedded
I think there are two possibilities:
i) You are probing the wrong phy address. Since the MDIO line is pulled high you get a phyID of
0xffffffff. Try changing the phy address probed. From the source it looks like this is done in the
BIOS. If this fails scope the MDIO/MDC bus.
ii) The phy id has changed between the 88E1101 and the 88E1111. If this is the case you may get
away with just modifying phy_info_marvell.name and phy_info_marvell.phy_id_mask. But you may have
to add a new phy_info struct to deal with the new phy if there are any incompatibilities between
the new and old phys, or if the phy_ids differ in more than just their lower bits.
Or maybe both....
Alex
On Mon, 25 Jul 2005 19:16:50 +0800
"KylongMu" <mqy@263.net.cn> 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
>
> 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.
> 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)
>
> If the PHY config is correct it will recognize my PHY ID, but here
> is a
> wrong ID number ffffffff .
>
> Please help me solve this problem!
>
> Thanks a lot!
>
> KylongMu
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mpc8540 SK board FEC not work!
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
1 sibling, 0 replies; 3+ messages in thread
From: Andy Fleming @ 2005-07-25 20:40 UTC (permalink / raw)
To: KylongMu; +Cc: Linuxppc-embedded
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-25 20:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox