linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Sequoia EMAC only works if u-boot initializes it?
@ 2007-11-26 15:59 Steven A. Falco
  2007-11-26 16:08 ` Josh Boyer
  2007-11-26 16:20 ` Stefan Roese
  0 siblings, 2 replies; 7+ messages in thread
From: Steven A. Falco @ 2007-11-26 15:59 UTC (permalink / raw)
  To: linuxppc-dev

I have noticed odd behavior on a Sequoia board.  Kernel is built from 
DENX git, ARCH=powerpc, 2.6.23.1.

Sequence that works:
1) In u-boot, do "dhcp" (this initializes the PHY)
2) Boot linux from flash
3) ifconfig eth0 192.168.0.101 netmask 255.255.255.0 up
Ethernet is now functional, and I can ping the Sequoia (and it can ping 
my host)

Sequence that does not work:
1) Boot linux from flash without letting u-boot touch eth0
2) ifconfig eth0 192.168.0.101 netmask 255.255.255.0 up
Ethernet appears to come up, but it is not functional.  I.e. I get 
"eth0: link is up, 100 FDX, pause enabled" but I cannot ping the board, 
and the board cannot ping my host.

So, the kernel appears to be missing some initialization that u-boot 
provides.

However, eth1 is more strange.  U-boot can use it (via "setenv ethact 
ppc_4xx_eth1;dhcp"), however, the kernel cannot use it, whether or not 
u-boot first initializes it.

If anyone has suggestions on where to look, I'd appreciate it.  I'm 
going to look at the PHY register settings and see if there are any 
clues there...

    Steve

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-11-26 22:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-26 15:59 Sequoia EMAC only works if u-boot initializes it? Steven A. Falco
2007-11-26 16:08 ` Josh Boyer
2007-11-26 16:20 ` Stefan Roese
2007-11-26 19:10   ` Steven A. Falco
2007-11-26 20:08     ` Benjamin Herrenschmidt
2007-11-26 22:46       ` Steven A. Falco
2007-11-26 22:49         ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).