linux-mips
[Top] [All Lists]

RE: Cross compile kernel w/ buildroot toolchain

To: "Ralf Baechle" <ralf@linux-mips.org>
Subject: RE: Cross compile kernel w/ buildroot toolchain
From: "Kurt Schwemmer" <kurts@vitesse.com>
Date: Mon, 13 Mar 2006 13:39:53 -0700
Cc: <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Thread-index: AcZG3W4scpogvdgGT82HegZ9qgvaXwAAF9vg
Thread-topic: Cross compile kernel w/ buildroot toolchain
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... 

Thanks,
Kurt

> -----Original Message-----
> From: Ralf Baechle [mailto:ralf@linux-mips.org] 
> Sent: Monday, March 13, 2006 1:33 PM
> To: Kurt Schwemmer
> Cc: linux-mips@linux-mips.org
> Subject: Re: Cross compile kernel w/ buildroot toolchain
> 
> On Mon, Mar 13, 2006 at 01:17:09PM -0700, Kurt Schwemmer wrote:
> 
> > I'm trying to figure out a toolchain to use for my system. I can 
> > compile the kernel just fine using the MIPS SDE based distribution, 
> > but you can't cross compile apps with that. I downloaded and built 
> > buildroot and I'm trying to (cross) compile the kernel with it too 
> > (I'd like to just use one compiler for everything). I had 
> it use gcc 
> > 3.4.5. When I try to compile the kernel with:
> > 
> > make
> > CROSS_COMPILE=~/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-
> > 
> > I eventually get an error while assembling entry.o:
> >   AS      arch/mips/kernel/entry.o
> > 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
> > 
> > I guess this is a "hazard barrier" instruction. Why doesn't 
> gcc 3.4.5 
> > know about it? What do I need to do to get this to work?
> 
> I'm looking at the latest kernel sources and can't see how 
> this could be happening.  Which version of the kernel are you 
> trying to build?
> 
>   Ralf
> 

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