[Top] [All Lists]

RE: Cross compile kernel w/ buildroot toolchain

To: "Ralf Baechle" <>
Subject: RE: Cross compile kernel w/ buildroot toolchain
From: "Kurt Schwemmer" <>
Date: Mon, 13 Mar 2006 14:07:34 -0700
Cc: <>
Original-recipient: rfc822;
Thread-index: AcZG4KOhV3wKmLqjTzKXVtkFbXC5TQAAEU1g
Thread-topic: Cross compile kernel w/ buildroot toolchain
I didn't touch any of the source yet. 

I'm downloading the 1/10/05 2.6.15 tarball (
)now to see if that fixes things.

In response to Thiemo's message the error with (V=1) is:

make -f scripts/ obj=arch/mips/kernel
-Wp,-MD,arch/mips/kernel/.entry.o.d  -nostdinc -isystem
linux-uclibc/3.4.5/include -D__KERNEL__ -Iinclude  -D__ASSEMBLY__  -I
/usr/local/src/linux-2.6/include/asm/gcc -G 0 -mno-abicalls -fno-pic
-pipe  -finline-limit=100000 -mabi=32 -march=mips32r2 -Wa,-32
-Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap
-Iinclude/asm-mips/mach-mips -Iinclude/asm-mips/mach-generic -Wall
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-ffreestanding -O2     -fomit-frame-pointer  -I
/usr/local/src/linux-2.6/include/asm/gcc -G 0 -mno-abicalls -fno-pic
-pipe  -finline-limit=100000 -mabi=32 -march=mips32r2 -Wa,-32
-Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap
-Iinclude/asm-mips/mach-mips -Iinclude/asm-mips/mach-generic    -c -o
arch/mips/kernel/entry.o arch/mips/kernel/entry.S
arch/mips/kernel/entry.S: Assembler messages:
arch/mips/kernel/entry.S:157: Error: opcode not supported on this
processor: mips32 (mips32) `jr.hb $31'
make[1]: *** [arch/mips/kernel/entry.o] Error 1
make: *** [arch/mips/kernel] Error 2

Also, assembler -v output:
GNU assembler version 2.16.1 (mipsel-linux-uclibc) using BFD version

Kurt Schwemmer

> -----Original Message-----
> From: Ralf Baechle [] 
> Sent: Monday, March 13, 2006 1:57 PM
> To: Kurt Schwemmer
> Cc:
> Subject: Re: Cross compile kernel w/ buildroot toolchain
> On Mon, Mar 13, 2006 at 01:39:53PM -0700, Kurt Schwemmer wrote:
> > I got 2.6.15 "a while back" (>1 month). 
> > 
> > I'll try getting the most recent source. Sorry, I avoided 
> this due to 
> > my company blocking rsync and thus making it a pain to get 
> the sources...
> The reason your case is odd is that the kernel only uses a 
> single jr.hb instruction which is in the instruction_hazard() 
> macro in include/asm-mips/hazards.h.  This macro first of all 
> is a gcc inline assembler macro and also wraps the jr.hb 
> instruction between .set mips64r2 ... .set mips0, so you 
> should never ever get an error message.  And you're getting 
> an error message for entry.S, an assembler file.  Seems you 
> must have done some not so kosher changes to that tree?
>   Ralf

<Prev in Thread] Current Thread [Next in Thread>