Re: error compiling kernel for mips

From: Justin Carlson (justincarlson@cmu.edu)
Date: Wed Apr 03 2002 - 14:24:05 EST


On Wed, 2002-04-03 at 14:05, Abdij Bhat wrote:
> Hi,
> When i try compiling the Kernel for mips i get errors. The kernel is 2.4.17
> downloaded from www.kernel.org. I have the mips developments environment
> set. I have (hopefully) the right headers and have modified the makefile to
> get the headers from those include directories.
> My main problem is changing the architecture from arch686 ( mine ) to mips.
> How to i do this? What do i need to do inorder for the make to get the right
> architecture? Or is there some other problem too?
>

Check out this line in the base level makefile:

ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e
s/arm.*/arm/ -e s/sa110/arm/)

This actually looks broken for cross-compile, but I haven't been
following the changes particularly closely...try using this instead:

ARCH := mips

Really, though if you're compiling for mips you should probably grab the
mips-linux CVS sources here:

 cvs -d :pserver:cvs@oss.sgi.com:/cvs login
   (Only needed the first time you use anonymous CVS, the password is
"cvs")
   cvs -d :pserver:cvs@oss.sgi.com:/cvs co <repository>

There's a 2.4 tagged branch that's probably closer to what you want. You
can ask for mips-specific on linux-mips@oss.sgi.com, and you'll be much
more likely to get a prompt and useful answer.

-Justin



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 22:00:11 EST