MIPS64 kernel cross-compiling
Hi,
we're trying to compile a kernel for an embedded system with a MIPS64-processor on it.
We tried first with your CVS-sources, but there we get this error:
-----
Generating include/linux/version.h (unchanged)
make[1]: Nothing to be done for `__build'.
SPLIT include/linux/autoconf.h -> include/config/*
make -f scripts/Makefile.build obj=arch/mips64/kernel arch/mips64/kernel/offset.s
make[1]: `arch/mips64/kernel/offset.s' is up to date./bin/sh: arch/mips64/kernel/offset.s: Datei oder Verzeichnis nicht gefunden
-----
Afterwards we changed to the 2.4.20 stock kernel, there we have managed to get the kernel compiling the first steps. We're using the algor SDE-Toolchain and on make vmlinux, we get masses of parse-errors.
Our point of view is, that the compiler tries to link to include/asm instead of include/asm-mips64, but doing a dirty simlink from asm to asm-mips64 didn't really improve our situation.
Here are some of the errors we get:
----
sde-gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-mips64 -I /usr/src/linux-2.4.20/include/asm-mips64/gcc -mabi=64 -G 0
-mno-abicalls -fno-pic -Wa,--trap -pipe -DKBUILD_BASENAME=main -c -oinit/main.o init/main.c
In file included from /usr/src/linux-2.4.20/include/asm/system.h:14,
from /usr/src/linux-2.4.20/include/asm/processor.h:36,
from /usr/src/linux-2.4.20/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.20/include/linux/list.h:6,
from /usr/src/linux-2.4.20/include/linux/wait.h:14,
from /usr/src/linux-2.4.20/include/linux/fs.h:12,
from /usr/src/linux-2.4.20/include/linux/capability.h:17,
from /usr/src/linux-2.4.20/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.20/include/linux/sched.h:9,
from /usr/src/linux-2.4.20/include/linux/mm.h:4,
from /usr/src/linux-2.4.20/include/linux/slab.h:14,
from /usr/src/linux-2.4.20/include/linux/proc_fs.h:5,
from init/main.c:15:/usr/src/linux-2.4.20/include/asm/sgidefs.h:18:39: #error Use a Linux compiler or give up.
[...]
In file included from /usr/src/linux-2.4.20/include/linux/pagemap.h:16,
from /usr/src/linux-2.4.20/include/linux/locks.h:8,
from /usr/src/linux-2.4.20/include/linux/blk.h:5,
from init/main.c:25:/usr/src/linux-2.4.20/include/linux/highmem.h: In function `kmap':/usr/src/linux-2.4.20/include/linux/highmem.h:68: `PAGE_OFFSET' undeclared (first use in this function) /usr/src/linux-2.4.20/include/linux/highmem.h:68: warning: control reaches end of non-void functioninit/main.c: In function `start_kernel':init/main.c:383: `PAGE_OFFSET' undeclared (first use in this function)
make: *** [init/main.o] Error 1
----
hoping for a bit of help (c:
Signature · 2 lines
Grüße, Julian, Paco
Quoted 13 lines · Julian Scheel
From: Julian Scheel <[email protected]>
To: [email protected]
Subject: MIPS64 kernel cross-compiling
Date: Tue, 17 Dec 2002 21:00:27 +0100
Content-Type: text/plain;
charset="iso-8859-15"Hi,
we're trying to compile a kernel for an embedded system with a MIPS64-processor on it.
We tried first with your CVS-sources, but there we get this error:
Quoted 9 lines
-----
Generatinginclude/linux/version.h(unchanged)
make[1]: Nothing to be done for `__build'.
SPLITinclude/linux/autoconf.h->include/config/*
make -fscripts/Makefile.buildobj=arch/mips64/kernelarch/mips64/kernel/offset.s
make[1]: `arch/mips64/kernel/offset.s' is up to date./bin/sh:arch/mips64/kernel/offset.s: Datei oder Verzeichnis nicht gefunden
-----
2.5. Don't dream about using it current. Use the linux_2_4 branch.
Ralf
As you read, we changed to stock 2.4.20 after the first error. Any ideas how to fix the second problem?
Am Mittwoch, 18. Dezember 2002 01:11 schrieb Ralf Baechle:
Quoted 3 lines
2.5. Don't dream about using it current. Use the
linux_2_4branch.Ralf
Signature · 2 lines
Grüße, Julian