* [U-Boot] PPC460EX with 2 Ethernet Tranceivers
@ 2009-08-11 14:44 Judd Gilbert
2009-08-11 19:20 ` Wolfgang Denk
2009-08-12 9:08 ` Stefan Roese
0 siblings, 2 replies; 3+ messages in thread
From: Judd Gilbert @ 2009-08-11 14:44 UTC (permalink / raw)
To: u-boot
Hi,
I am currently running linux 2.6.28.4 on a PPC460EX with 2 Marvell
Alaska 88EIIII Ethernet transceivers connected to it. I've added the
flags I believe to configure u-boot properly:
#define CONFIG_IBM_EMAC4_V4 1
#define CONFIG_HAS_ETH0
#define CONFIG_HAS_ETH1
/* Based on the marvell phy datasheet for obscure details */
#define CONFIG_PHY_ADDR 1 /* PHY address, See schematics
*/
#define CONFIG_PHY1_ADDR 2 /* 2nd PHY address. See
schematics */
#define CONFIG_PHY_RESET 1 /* reset phy upon startup
*/
#define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex
detection */
#define CONFIG_PHY_DYNAMIC_ANEG 1
If I hold one the 2nd transceiver (address 2) in reset on power up,
(just for a second or so) the linux kernel boots, detects both PHYs, and
eth0 and eth1 both work fine. I'm holding the chip in reset manually
with a switch I added to the board. The linux kernel spits the following
information out on success:
eth0: EMAC-0 /plb/opb/ethernet at ef600e00, MAC 00:13:a8:00:0d:c6
eth0: found Generic MII PHY (0x00)
/plb/opb/emac-rgmii at ef601500: input 1 in RGMII mode
eth1: EMAC-1 /plb/opb/ethernet at ef600f00, MAC 00:13:a8:00:0d:c7
eth1: found Generic MII PHY (0x02)
If I don't hold the 2nd transceiver in reset I get the following message
when linux boots:
eth0: EMAC-0 /plb/opb/ethernet at ef600e00, MAC 00:13:a8:00:0d:c6
eth0: found Generic MII PHY (0x00)
/plb/opb/emac-rgmii at ef601500: input 1 in RGMII mode
/plb/opb/ethernet at ef600f00: can't find PHY!
I've played around removing the "CONFIG_PHY_RESET" and also andding the
"CONFIG_PHY_RESET_DELAY" flag (with different uSec values) with no luck.
It seems that unless the 2nd transceiver is held in reset on power up it
won't work.
Has anyone seen any issues similar to this?
Thanks for your time,
Judd Gilbert
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] PPC460EX with 2 Ethernet Tranceivers
2009-08-11 14:44 [U-Boot] PPC460EX with 2 Ethernet Tranceivers Judd Gilbert
@ 2009-08-11 19:20 ` Wolfgang Denk
2009-08-12 9:08 ` Stefan Roese
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2009-08-11 19:20 UTC (permalink / raw)
To: u-boot
Dear "Judd Gilbert",
In message <16691A8B34B5D9458EA3A1C37A11555A01351D87@tanisys-ex2.Tanisys.Local> you wrote:
>
> I am currently running linux 2.6.28.4 on a PPC460EX with 2 Marvell
> Alaska 88EIIII Ethernet transceivers connected to it. I've added the
> flags I believe to configure u-boot properly:
...
> eth0: EMAC-0 /plb/opb/ethernet at ef600e00, MAC 00:13:a8:00:0d:c6
> eth0: found Generic MII PHY (0x00)
> /plb/opb/emac-rgmii at ef601500: input 1 in RGMII mode
> eth1: EMAC-1 /plb/opb/ethernet at ef600f00, MAC 00:13:a8:00:0d:c7
> eth1: found Generic MII PHY (0x02)
>
> If I don't hold the 2nd transceiver in reset I get the following message
> when linux boots:
>
> eth0: EMAC-0 /plb/opb/ethernet at ef600e00, MAC 00:13:a8:00:0d:c6
> eth0: found Generic MII PHY (0x00)
> /plb/opb/emac-rgmii at ef601500: input 1 in RGMII mode
> /plb/opb/ethernet at ef600f00: can't find PHY!
Well, this is a Linux issue. Linux should make no assumptions about a
specific state of a network device. No matter what U-Boot does, the
Linux kernel should always initialize the hardware so that it works.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A girl with a future avoids the man with a past.
-- Evan Esar, "The Humor of Humor"
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] PPC460EX with 2 Ethernet Tranceivers
2009-08-11 14:44 [U-Boot] PPC460EX with 2 Ethernet Tranceivers Judd Gilbert
2009-08-11 19:20 ` Wolfgang Denk
@ 2009-08-12 9:08 ` Stefan Roese
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2009-08-12 9:08 UTC (permalink / raw)
To: u-boot
On Tuesday 11 August 2009 16:44:52 Judd Gilbert wrote:
> I am currently running linux 2.6.28.4 on a PPC460EX with 2 Marvell
> Alaska 88EIIII Ethernet transceivers connected to it. I've added the
> flags I believe to configure u-boot properly:
>
> #define CONFIG_IBM_EMAC4_V4 1
> #define CONFIG_HAS_ETH0
> #define CONFIG_HAS_ETH1
> /* Based on the marvell phy datasheet for obscure details */
> #define CONFIG_PHY_ADDR 1 /* PHY address, See schematics
> */
> #define CONFIG_PHY1_ADDR 2 /* 2nd PHY address. See
> schematics */
> #define CONFIG_PHY_RESET 1 /* reset phy upon startup
> */
> #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex
> detection */
> #define CONFIG_PHY_DYNAMIC_ANEG 1
>
> If I hold one the 2nd transceiver (address 2) in reset on power up,
> (just for a second or so) the linux kernel boots, detects both PHYs, and
> eth0 and eth1 both work fine. I'm holding the chip in reset manually
> with a switch I added to the board. The linux kernel spits the following
> information out on success:
>
> eth0: EMAC-0 /plb/opb/ethernet at ef600e00, MAC 00:13:a8:00:0d:c6
> eth0: found Generic MII PHY (0x00)
Is this really PHY address 0? Above you configured the PHY for EMAC0 to
address 1.
What does "mii info" show?
Best regards,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-12 9:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 14:44 [U-Boot] PPC460EX with 2 Ethernet Tranceivers Judd Gilbert
2009-08-11 19:20 ` Wolfgang Denk
2009-08-12 9:08 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox