Skip to contentSkip to conversation

Linux for MIPS Atlas 4Kc board -problems :(

DISCUSSION Michael Anburaj 1 participant 1 message May 2, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

Hi Keith,

Thanks a lot.

Now its showing some ray of hope....

drivers/char/nvram.c | /sbin/genksyms -k 2.5.47 > include/linux/modules/drivers/char/nvram.ver.tmp drivers/char/nvram.c:45: warning: `PC' redefined
include/asm/ptrace.h:18: warning: this is the location of the previous definition drivers/char/nvram.c:61: #error Cannot build nvram driver for this machine configuration. make[3]: *** [include/linux/modules/drivers/char/nvram.ver] Error 1
make[2]: *** [drivers/char] Error 2
make[1]: *** [_modver_drivers] Error 2
make: *** [.hdepend] Error 2

Is this (NVRAM) not a mandatory device? If so is it possible to remove it using the menuconfig? I chose Atlas 4Kc. Let me know where it is located or the issue with this issue.

Thanks again,
-Mike.

Quoted 27 lines

From: Keith Owens <[email protected]>
To: "Michael Anburaj" <[email protected]>
CC: [email protected]
Subject: Re: Linux for MIPS Atlas 4Kc board -problems :( Date: Fri, 02 May 2003 15:22:13 +1000

Quoted 10 lines · Michael Anburaj

I did try that too...

[root@localhost linux]# make ARCH=mips
make -f scripts/Makefile.build obj=arch/mips/kernel arch/mips/kernel/offset.s
gcc -Wp,-MD,arch/mips/kernel/.offset.s.d -D__KERNEL__ -Iinclude -Wall

(quoted diff) +0 -4
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -I /usr/src/linux/include/asm/gcc -G 0
-mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -nostdinc
-iwithprefix include    -DKBUILD_BASENAME=offset   -S -o
Quoted 4 lines

arch/mips/kernel/offset.s arch/mips/kernel/offset.c
gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [arch/mips/kernel/offset.s] Error 1
make: *** [arch/mips/kernel/offset.s] Error 2

Because you mentioned Redhat 9, I have to assume that you are cross compiling from i386 to mips, is that correct? If so, you need make ARCH=mips and you have to specify the cross compile tools as well, something like this :-

Quoted 6 lines

make ARCH=mips CROSS_COMPILE=/usr/bin/mips-linux- ...

If you are doing a native mips compile then the problem is that your version of gcc does not like one or more of the command options, the unknown option is being treated as a filename.

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail