linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ppc405ep emac driver loading problem
@ 2008-04-10 10:37 M B
  2008-04-10 11:29 ` Stefan Roese
  2008-04-10 11:52 ` Josh Boyer
  0 siblings, 2 replies; 4+ messages in thread
From: M B @ 2008-04-10 10:37 UTC (permalink / raw)
  To: ppc-dev

Hi,
I'm porting vanilla 2.6.25-rc8 (arch=powerpc) to a new board. UART is
already working in the kernel and Uboot with UART and ethernet is also
working.
But I can't get the emac driver (ibm_newemac) working under Linux.
On boot emac_init get's called and exits normally, but no probe or
open will get called and no network devices (except lo) are known to
the kernel.

Do I have to do something more, than adding the mals and emacs to the
device tree? I haven't seen any 40x or 44x board in the platforms
folder doing something special for the emac.

Any hints?

Regards

Markus

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

* Re: ppc405ep emac driver loading problem
  2008-04-10 10:37 ppc405ep emac driver loading problem M B
@ 2008-04-10 11:29 ` Stefan Roese
  2008-04-10 11:52 ` Josh Boyer
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2008-04-10 11:29 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: M B

On Thursday 10 April 2008, M B wrote:
> I'm porting vanilla 2.6.25-rc8 (arch=powerpc) to a new board. UART is
> already working in the kernel and Uboot with UART and ethernet is also
> working.
> But I can't get the emac driver (ibm_newemac) working under Linux.
> On boot emac_init get's called and exits normally, but no probe or
> open will get called and no network devices (except lo) are known to
> the kernel.
>
> Do I have to do something more, than adding the mals and emacs to the
> device tree? I haven't seen any 40x or 44x board in the platforms
> folder doing something special for the emac.
>
> Any hints?

How does your .config look? Please send the EMAC defines only. And send the 
emac/mal related dts nodes. And the current kernel boot log.

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@denx.de
=====================================================================

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

* Re: ppc405ep emac driver loading problem
  2008-04-10 10:37 ppc405ep emac driver loading problem M B
  2008-04-10 11:29 ` Stefan Roese
@ 2008-04-10 11:52 ` Josh Boyer
  2008-04-10 13:03   ` M B
  1 sibling, 1 reply; 4+ messages in thread
From: Josh Boyer @ 2008-04-10 11:52 UTC (permalink / raw)
  To: M B; +Cc: ppc-dev

On Thu, 10 Apr 2008 12:37:45 +0200
"M B" <super.firetwister@googlemail.com> wrote:

> Hi,
> I'm porting vanilla 2.6.25-rc8 (arch=powerpc) to a new board. UART is
> already working in the kernel and Uboot with UART and ethernet is also
> working.
> But I can't get the emac driver (ibm_newemac) working under Linux.
> On boot emac_init get's called and exits normally, but no probe or
> open will get called and no network devices (except lo) are known to
> the kernel.
> 
> Do I have to do something more, than adding the mals and emacs to the
> device tree? I haven't seen any 40x or 44x board in the platforms
> folder doing something special for the emac.
> 
> Any hints?

You have to call of_platform_bus_probe with the various bus types for
your board.  See the top few functions of:

arch/powerpc/platforms/40x/walnut.c

for an example.

josh

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

* Re: ppc405ep emac driver loading problem
  2008-04-10 11:52 ` Josh Boyer
@ 2008-04-10 13:03   ` M B
  0 siblings, 0 replies; 4+ messages in thread
From: M B @ 2008-04-10 13:03 UTC (permalink / raw)
  To: Josh Boyer; +Cc: ppc-dev, Stefan Roese

On Thu, Apr 10, 2008 at 1:52 PM, Josh Boyer <jwboyer@linux.vnet.ibm.com> wrote:

>  You have to call of_platform_bus_probe with the various bus types for
>  your board.  See the top few functions of:
>
>  arch/powerpc/platforms/40x/walnut.c

Well I did this, but I made a typo (plb4 instead of plb3).
So thanks a lot for making me recheck this section. I don't know how
long I would have searched for this else.

Regards

Markus

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

end of thread, other threads:[~2008-04-10 13:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-10 10:37 ppc405ep emac driver loading problem M B
2008-04-10 11:29 ` Stefan Roese
2008-04-10 11:52 ` Josh Boyer
2008-04-10 13:03   ` M B

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).