Skip to contentSkip to conversation

ppc platform for AMCC-440EPx - ELDK to the rescue

DISCUSSION Steve Heflin 5 participants 6 messages Mar 26, 2008 – Mar 27, 2008

lore
Share & tools
lore
#0 lore raw

I finally resolved my nightmare of getting linux-2.6.24/5... to work on my AMCC-440Epx - Sequoia spinoff board. Following a clue I derived from a reply from Wolfgang Denx, I went to the DENX Engineering site where I discoved and downloaded the ELDK for the ppc_4xxFP. the ELDK uses the ppc platform instead of the powerpc platform. FINALLY the early debugging console output worked, which doesn't work at all using the powerpc platform (and yes, I had the correct port address configured). After that, I was able to see that it was the "setup_hose" function called from /arch/ppc/platforms/4xx/sequoia.c that caused my board to hang. This Sequoia spinoff board has the PCI Host Bridge disabled which I didn't realize until that point.

Looking back at the powerpc platform, I don't see how to disable the Host Bridge initialization without disabling the entire PCI bus. This board does have 2 devices hooked on the PCI bus, just no need for a Host Bridge.

Also, I fail to see what the DTS virtualization layer of the hardware buys us. When debugging, it's so much harder to use than the ppc platform's straight forward and standard methodologies. I can't understand to goal to eliminate the ppc platform, especially given the fact that DENX's ELDK is still using it with Linux 2.6.24.2 !!

Best Regards to all,
Special Thanks to Wolfgang Denx,
Steve Heflin

#1 lore raw
Quoted 3 lines · Steve Heflin

After that, I was able to see that it was the "setup_hose" function called from /arch/ppc/platforms/4xx/sequoia.c that caused my board to hang. This Sequoia spinoff board has the PCI Host Bridge disabled which I didn't realize until that point.

Looking back at the powerpc platform, I don't see how to disable the Host Bridge initialization without disabling the entire PCI bus. This board does have 2 devices hooked on the PCI bus, just no need for a Host Bridge.

And how do you propose to talk to said PCI devices without configuring the host bridge?

Quoted 1 line

Also, I fail to see what the DTS virtualization layer of the hardware buys us.

Maintainability. Ease of porting to new hardware.

Quoted 1 line

When debugging, it's so much harder to use than the ppc platform's straight forward and standard methodologies. I can't understand to goal to eliminate the ppc platform,

Are you volunteering to maintain it, including the rest of us not having to care when we change something in common code that breaks it?

Quoted 1 line

especially given the fact that DENX's ELDK is still using it with Linux 2.6.24.2 !!

Take that up with Denx.

-Scott

#2 lore raw
In reply to Steve Heflin
Quoted 5 lines · In message <[email protected]> you wrote:

I finally resolved my nightmare of getting linux-2.6.24/5... to work on my AMCC-440Epx - Sequoia spinoff board. Following a clue I derived from a reply from Wolfgang Denx, I went to the DENX Engineering site where I discoved and downloaded the ELDK for the ppc_4xxFP. the ELDK uses the ppc platform instead of the powerpc platform. FINALLY the

This is not exactly correct. Actually it supports both.

Quoted 5 lines

Also, I fail to see what the DTS virtualization layer of the hardware buys us. When debugging, it's so much harder to use than the ppc platform's straight forward and standard methodologies. I can't understand to goal to eliminate the ppc platform, especially given the fact that DENX's ELDK is still using it with Linux 2.6.24.2 !!

You miss the fact that the ELDK has full support for arch/powerpc, and that some board configurations in our kernel (for example, all MPC5200 based ones) are available in arch/powerpc configurations only.

But then - what's the difference? All it takes is a redefinition of the ARCH envrionment variable in your shell...

Best regards,

Wolfgang Denk

Signature · 4 lines
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: [email protected]
I've got a bad feeling about this.
#3 lore raw

Wolfgang,

Could you provide an explanation between the two architectures in the ELDK?

I am also using a Sequoia "spin off" and am trying to determine why I would want to use the "powerpc" architecture vs. the "ppc" architecture.

Thanks,
Dave

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Wolfgang Denk
Sent: Wednesday, March 26, 2008 3:23 PM
To: Steve Heflin
Cc: [email protected]
Subject: Re: ppc platform for AMCC-440EPx - ELDK to the rescue

Quoted 5 lines · In message <[email protected]> you wrote:

I finally resolved my nightmare of getting linux-2.6.24/5... to work on my AMCC-440Epx - Sequoia spinoff board. Following a clue I derived from a reply from Wolfgang Denx, I went to the DENX Engineering site where I discoved and downloaded the ELDK for the ppc_4xxFP. the ELDK uses the ppc platform instead of the powerpc platform. FINALLY the

This is not exactly correct. Actually it supports both.

Quoted 5 lines

Also, I fail to see what the DTS virtualization layer of the hardware buys us. When debugging, it's so much harder to use than the ppc platform's straight forward and standard methodologies. I can't understand to goal to eliminate the ppc platform, especially given the fact that DENX's ELDK is still using it with Linux 2.6.24.2 !!

You miss the fact that the ELDK has full support for arch/powerpc, and that some board configurations in our kernel (for example, all MPC5200 based ones) are available in arch/powerpc configurations only.

But then - what's the difference? All it takes is a redefinition of the ARCH envrionment variable in your shell...

Best regards,

Wolfgang Denk

Signature · 8 lines
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: [email protected]
I've got a bad feeling about this.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
#4 lore raw
Quoted 7 lines · On Wed, 26 Mar 2008 15:56:23 -0700 "Dave Cogley" <[email protected]> wrote:

Wolfgang,

Could you provide an explanation between the two architectures in the ELDK?

I am also using a Sequoia "spin off" and am trying to determine why I would want to use the "powerpc" architecture vs. the "ppc" architecture.

arch/ppc is being removed entirely from the kernel.org kernels in June.

josh

#5 lore raw
In reply to Steve Heflin
Quoted 4 lines · On Wed, 26 Mar 2008 09:08:03 -0400 Steve Heflin <[email protected]> wrote:

FINALLY the
early debugging console output worked, which doesn't work at all using the powerpc platform (and yes, I had the correct port address configured).

It should work. It did when the board support was first brought in to arch/powerpc. If it doesn't now, I consider that a regression that needs fixing, at least for Sequoia itself.

Quoted 4 lines

Looking back at the powerpc platform, I don't see how to disable the Host Bridge initialization without disabling the entire PCI bus. This board does have 2 devices hooked on the PCI bus, just no need for a Host Bridge.

As Scott said, how would you talk to any PCI device without the host bridge being configured and enabled?

Quoted 3 lines

Also, I fail to see what the DTS virtualization layer of the hardware buys us. When debugging, it's so much harder to use than the ppc platform's straight forward and standard methodologies. I can't

There are tradeoffs, yes.

Quoted 2 lines

understand to goal to eliminate the ppc platform, especially given the fact that DENX's ELDK is still using it with Linux 2.6.24.2 !!

The ELDK uses both arch/ppc and arch/powerpc. I consider them quite reasonable people, and foresee them eventually switching to arch/powerpc over time. In fact, their efforts are a large part of the continued progress of 4xx on arch/powerpc.

josh