Problem building kernel

4 messages, 3 authors, 2008-12-12 · open the first message on its own page

Problem building kernel

From: Ron Madrid <hidden>
Date: 2008-12-11 23:55:15

Hello all,

I got the latest kernel from git://git.denx.de/linux-2.6-denx.git and after
configuring with menuconfig I am seeing these errors.  I feel like this
could be something simple that I am just unaware of, but I'm not sure
and haven't been able to find anything useful when doing a web search.

Any ideas?  What other information would be helpful?

  BOOTCC  arch/powerpc/boot/redboot-83xx.o
  BOOTCC  arch/powerpc/boot/cuboot-sam440ep.o
  BOOTCC  arch/powerpc/boot/cuboot-acadia.o
{standard input}: Assembler messages:
{standard input}:278: Error: Unrecognized opcode: `mtdcr'
{standard input}:282: Error: Unrecognized opcode: `mfdcr'
{standard input}:289: Error: Unrecognized opcode: `mtdcr'
{standard input}:293: Error: Unrecognized opcode: `mfdcr'
{standard input}:312: Error: Unrecognized opcode: `mtdcr'
{standard input}:316: Error: Unrecognized opcode: `mfdcr'
make[2]: *** [arch/powerpc/boot/cuboot-acadia.o] Error 1
make[1]: *** [zImage] Error 2
make: *** [sub-make] Error 2

Ron

Re: Problem building kernel

From: Kumar Gala <hidden>
Date: 2008-12-12 00:19:29

On Dec 11, 2008, at 5:48 PM, Ron Madrid wrote:
Hello all,

I got the latest kernel from git://git.denx.de/linux-2.6-denx.git  
and after
configuring with menuconfig I am seeing these errors.  I feel like  
this
could be something simple that I am just unaware of, but I'm not sure
and haven't been able to find anything useful when doing a web search.

Any ideas?  What other information would be helpful?

 BOOTCC  arch/powerpc/boot/redboot-83xx.o
 BOOTCC  arch/powerpc/boot/cuboot-sam440ep.o
 BOOTCC  arch/powerpc/boot/cuboot-acadia.o
{standard input}: Assembler messages:
{standard input}:278: Error: Unrecognized opcode: `mtdcr'
{standard input}:282: Error: Unrecognized opcode: `mfdcr'
{standard input}:289: Error: Unrecognized opcode: `mtdcr'
{standard input}:293: Error: Unrecognized opcode: `mfdcr'
{standard input}:312: Error: Unrecognized opcode: `mtdcr'
{standard input}:316: Error: Unrecognized opcode: `mfdcr'
make[2]: *** [arch/powerpc/boot/cuboot-acadia.o] Error 1
make[1]: *** [zImage] Error 2
make: *** [sub-make] Error 2

Ron
I swear Josh or Grant fixed this.

- k

Re: Problem building kernel

From: Kumar Gala <hidden>
Date: 2008-12-12 00:21:31

On Dec 11, 2008, at 5:48 PM, Ron Madrid wrote:
Hello all,

I got the latest kernel from git://git.denx.de/linux-2.6-denx.git  
and after
configuring with menuconfig I am seeing these errors.  I feel like  
this
could be something simple that I am just unaware of, but I'm not sure
and haven't been able to find anything useful when doing a web search.

Any ideas?  What other information would be helpful?

 BOOTCC  arch/powerpc/boot/redboot-83xx.o
 BOOTCC  arch/powerpc/boot/cuboot-sam440ep.o
 BOOTCC  arch/powerpc/boot/cuboot-acadia.o
{standard input}: Assembler messages:
{standard input}:278: Error: Unrecognized opcode: `mtdcr'
{standard input}:282: Error: Unrecognized opcode: `mfdcr'
{standard input}:289: Error: Unrecognized opcode: `mtdcr'
{standard input}:293: Error: Unrecognized opcode: `mfdcr'
{standard input}:312: Error: Unrecognized opcode: `mtdcr'
{standard input}:316: Error: Unrecognized opcode: `mfdcr'
make[2]: *** [arch/powerpc/boot/cuboot-acadia.o] Error 1
make[1]: *** [zImage] Error 2
make: *** [sub-make] Error 2

Ron
Try the following patch:
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index 8fc6d72..483f78d 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -39,6 +39,7 @@ DTS_FLAGS     ?= -p 1024

  $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405
  $(obj)/ebony.o: BOOTCFLAGS += -mcpu=405
+$(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405
  $(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405
  $(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405
  $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405

Re: Problem building kernel

From: Josh Boyer <hidden>
Date: 2008-12-12 01:09:47

On Thu, Dec 11, 2008 at 06:19:20PM -0600, Kumar Gala wrote:
On Dec 11, 2008, at 5:48 PM, Ron Madrid wrote:
quoted
Hello all,

I got the latest kernel from git://git.denx.de/linux-2.6-denx.git and 
after
configuring with menuconfig I am seeing these errors.  I feel like  
this
could be something simple that I am just unaware of, but I'm not sure
and haven't been able to find anything useful when doing a web search.

Any ideas?  What other information would be helpful?

 BOOTCC  arch/powerpc/boot/redboot-83xx.o
 BOOTCC  arch/powerpc/boot/cuboot-sam440ep.o
 BOOTCC  arch/powerpc/boot/cuboot-acadia.o
{standard input}: Assembler messages:
{standard input}:278: Error: Unrecognized opcode: `mtdcr'
{standard input}:282: Error: Unrecognized opcode: `mfdcr'
{standard input}:289: Error: Unrecognized opcode: `mtdcr'
{standard input}:293: Error: Unrecognized opcode: `mfdcr'
{standard input}:312: Error: Unrecognized opcode: `mtdcr'
{standard input}:316: Error: Unrecognized opcode: `mfdcr'
make[2]: *** [arch/powerpc/boot/cuboot-acadia.o] Error 1
make[1]: *** [zImage] Error 2
make: *** [sub-make] Error 2

Ron
I swear Josh or Grant fixed this.
I did.  I sent a pull request to Paul today for this exact commit.

I had it sitting in the wrong branch of my tree.  Sorry about that.

josh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help