Problems compiling Linux for MPC8272ADS

2007-09-24 Thread Manil Gaouar
Hi there,

I am trying to compile the latest Linux from the git repos: git clone
git://www.denx.de/git/linux-2.6-denx.git linux-2.6-denx, I checked out
the code a few weeks ago and was able to build my uImage no problems. I
did a git pull this morning and I can not compile anymore, here is the
error message I have:

  BOOTCC  arch/powerpc/boot/ps3.o
  BOOTCC  arch/powerpc/boot/treeboot-bamboo.o
  BOOTCC  arch/powerpc/boot/cuboot-sequoia.o
  BOOTCC  arch/powerpc/boot/treeboot-walnut.o
{standard input}: Assembler messages:
{standard input}:184: Error: Unrecognized opcode: `mfdcr'
{standard input}:185: Error: Unrecognized opcode: `mfdcr'
{standard input}:186: Error: Unrecognized opcode: `mfdcr'
{standard input}:217: Error: Unrecognized opcode: `mtdcr'
make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 1
make: *** [uImage] Error 2

here are the commands I am using:

make mrproper
make ARCH=powerpc CROSS_COMPILE=ppc_6xx- mpc8272_ads_defconfig
make ARCH=powerpc CROSS_COMPILE=ppc_6xx- uImage

Do you have any ideas, or I should check out the 2.6.22 stable release
instead and try again???

Thx
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: Problems compiling Linux for MPC8272ADS

2007-09-24 Thread Josh Boyer
On Mon, 24 Sep 2007 12:26:24 -0400
Manil Gaouar [EMAIL PROTECTED] wrote:

 Hi there,
 
 I am trying to compile the latest Linux from the git repos: git clone
 git://www.denx.de/git/linux-2.6-denx.git linux-2.6-denx, I checked out
 the code a few weeks ago and was able to build my uImage no problems. I
 did a git pull this morning and I can not compile anymore, here is the
 error message I have:
 
   BOOTCC  arch/powerpc/boot/ps3.o
   BOOTCC  arch/powerpc/boot/treeboot-bamboo.o
   BOOTCC  arch/powerpc/boot/cuboot-sequoia.o
   BOOTCC  arch/powerpc/boot/treeboot-walnut.o
 {standard input}: Assembler messages:
 {standard input}:184: Error: Unrecognized opcode: `mfdcr'
 {standard input}:185: Error: Unrecognized opcode: `mfdcr'
 {standard input}:186: Error: Unrecognized opcode: `mfdcr'
 {standard input}:217: Error: Unrecognized opcode: `mtdcr'
 make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 1
 make: *** [uImage] Error 2
 
 here are the commands I am using:
 
 make mrproper
 make ARCH=powerpc CROSS_COMPILE=ppc_6xx- mpc8272_ads_defconfig
 make ARCH=powerpc CROSS_COMPILE=ppc_6xx- uImage
 
 Do you have any ideas, or I should check out the 2.6.22 stable release
 instead and try again???

Apply this:


[POWERPC] 4xx: Fix Walnut wrapper compile errors

Pass the appropriate -mcpu flag to the treeboot-walnut.o object to prevent
some toolchains from erroring out with unknown opcodes

Signed-off-by: Josh Boyer [EMAIL PROTECTED]

diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index c1582b6..ac516a1 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -33,6 +33,7 @@ BOOTCFLAGS+= -I$(obj) -I$(srctree)/$(obj)
 
 $(obj)/4xx.o: BOOTCFLAGS += -mcpu=440
 $(obj)/ebony.o: BOOTCFLAGS += -mcpu=440
+$(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
 
 zlib   := inffast.c inflate.c inftrees.c
 zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: Problems compiling Linux for MPC8272ADS

2007-09-24 Thread Alan Bennett
I added this to my boot/Makefile near the other mcpu=440 lines.  I
believe there may be a fix coming?

$(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=440
$(obj)/4xx.o: BOOTCFLAGS += -mcpu=440
$(obj)/ebony.o: BOOTCFLAGS += -mcpu=440


On 9/24/07, Manil Gaouar [EMAIL PROTECTED] wrote:
 Hi there,

 I am trying to compile the latest Linux from the git repos: git clone
 git://www.denx.de/git/linux-2.6-denx.git linux-2.6-denx, I checked out
 the code a few weeks ago and was able to build my uImage no problems. I
 did a git pull this morning and I can not compile anymore, here is the
 error message I have:

   BOOTCC  arch/powerpc/boot/ps3.o
   BOOTCC  arch/powerpc/boot/treeboot-bamboo.o
   BOOTCC  arch/powerpc/boot/cuboot-sequoia.o
   BOOTCC  arch/powerpc/boot/treeboot-walnut.o
 {standard input}: Assembler messages:
 {standard input}:184: Error: Unrecognized opcode: `mfdcr'
 {standard input}:185: Error: Unrecognized opcode: `mfdcr'
 {standard input}:186: Error: Unrecognized opcode: `mfdcr'
 {standard input}:217: Error: Unrecognized opcode: `mtdcr'
 make[1]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 1
 make: *** [uImage] Error 2

 here are the commands I am using:

 make mrproper
 make ARCH=powerpc CROSS_COMPILE=ppc_6xx- mpc8272_ads_defconfig
 make ARCH=powerpc CROSS_COMPILE=ppc_6xx- uImage

 Do you have any ideas, or I should check out the 2.6.22 stable release
 instead and try again???

 Thx
 ___
 Linuxppc-dev mailing list
 Linuxppc-dev@ozlabs.org
 https://ozlabs.org/mailman/listinfo/linuxppc-dev

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: Problems compiling Linux for MPC8272ADS

2007-09-24 Thread David Gibson
On Mon, Sep 24, 2007 at 10:46:41AM -0600, Alan Bennett wrote:
 I added this to my boot/Makefile near the other mcpu=440 lines.  I
 believe there may be a fix coming?

I believe there is.

 $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=440

It should be -mcpu=405 for Walnut, though.

 $(obj)/4xx.o: BOOTCFLAGS += -mcpu=440
 $(obj)/ebony.o: BOOTCFLAGS += -mcpu=440

-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev