kilauea compilation breaks with v3.3 kernel and ELDK 4.2

Josh Boyer jwboyer at
Thu Mar 22 00:29:41 EST 2012

On Wed, Mar 21, 2012 at 8:10 AM, Robert Berger
<robert.karl.berger at> wrote:
> Hi,
> Up to 3.2.x I was able to compile a mainline kernel for the kilauea
> board, but...
> shows, that mfdcrx was introduced in the v3.3 kernel.
> The problem is that for ppc-linux-gcc (GCC) 4.2.2 (which comes with the
> ELDK 4.2) this assembly instruction is not known and the build breaks.

Sigh.  GCC 4.2 is pretty old at this point.

> There are some obvious workarounds, like using a more recent toolchain
> (e.g ELDK 5.x) or use make -k to keep on compiling even when there is an
> error as much as possible;)

That would be the most expedient option, yes.

> What puzzles me is that also stuff for boards is being compiled which is
> not really needed like treeboot-currituck.c even when I configure the
> kernel for a kilauea board.
> Is this on purpose and if so why?

All of the stuff in arch/powerpc/boot/ is built regardless of the
configured board and stuffed into a wrapper.a archive.  Then the
individual board targets are built and the necessary pieces are pulled
from the wrapper.a file.

> Please advise.

If upgrading ELDK is an option for you, it will get you the quickest
solution.  Otherwise we'll need to figure out how to stub out the
instruction in boot/dcr.h and use the asm long trick.  Ew.  I can look
at that next week.


More information about the Linuxppc-dev mailing list