On Thu, Jan 21, 1999 at 02:12:55PM -0800, Ryan Sweet wrote:

> I have a custome mips board that currently runs CE.  I would like to make
> it stop doing that and have it boot a linux kernel.  It has pretty much of
> the shelf components: r4300, 8MB flash, S3trio64 video, AMD PCNET enet
> controller, and something called a SuperIO controler for
> ISA/serial/parallel,floppy,uaart,pcmcia....  

Aside of the S3 this all are already supported components.

> I have the physical address mappings for these components, but I'm having
> trouble even getting that far.  
> 
> just as a test I wanted to try and build a kernel to see how far it got.
> The NVRAM on this device uses tftp or nfs to download a boot image, so I'm
> hoping that if I feed it a kernel I can at least get an idea of how much
> work will have to be done.  
> 
> I downloaded 2.1.131 src and went through make config, make dep;make
> clean; and when I do a make, I get the following error:
> 
> mipsel-linux-gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic
> -g -mcpu=r4300 -mips2 -pipe  -c -o init/main.o init/main.c
> cc1: bad value (r4300) for -mcpu= switch
> In file included from /usr/src/linux/include/linux/net.h:21,
>  
> which of course produces a lot of other errors and the compile eventually
> fails.  

You have an older gcc version which doesn't know this switch.  I can't
remember when I modified the kernel to use this switch but whatever, egcs
1.0.2 plus mips-linux patches is what you should use and produces a
working compiler.

> Can anyone give pointers on what might be wrong, and/or advice on how to
> begin a porting project like this?  thanks

Just ask.

  Ralf

Reply via email to