Re: Can't build kernel - mipsel-linux-ld: Command not found
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexander Topolanek wrote:
> Hi,
>
> I'm using a fresh installed sarge on a cobalt RAQ2. I would like to
> integrate cryptoloop into the kernel using the debian patched kernel.
>
> However, when I try 'make bzImage' it tells me 'make: *** No rule to
> make target `bzImage'. Stop.'
Yeah, on MIPS we don't use bzImage. We `make vmlinux`, and use the raw ELF
file. (Or gzip it, in some cases, such as Cobalts)
> And when I try to use 'make' it compiles a while and tells me then
>
> make[2]: Entering directory `/mnt/hda3/src/kernel-source-2.4.27/kernel'
> rm -f kernel.o mipsel-linux-ld -m elf32ltsmip -r -o kernel.o sched.o dma.o
> fork.o exec_domain.o panic.o printk.o module.o exit.o itimer.o info.o time.o
> softirq.o resource.o sysctl.o acct.o capability.o ptrace.o timer.o user.o
> signal.o sys.o kmod.o context.o ksyms.o make[2]: mipsel-linux-ld: Command not
> found make[2]: *** [kernel.o] Error 127
Are you compiling directly on the RaQ2 or on another (non-mipsel) machine?
If you're compiling on the RaQ2 -- run `make menuconfig`, go down to Kernel
Hacking, and turn off "Are You Using A Cross Compiler".
If you're cross-compiling (e.g. on an i386 box), you'll need to install a
cross-compiler (usually named mipsel-linux-* or mipsel-unknown-linux-*). The
Linux/MIPS website has details on how to do this[1].
Then, you compile using:
$ make vmlinux modules CROSS_COMPILE=mipsel-unknown-linux-gnu-
(where mipsel-unknown-linux-gnu- is the prefix to be prepended to commands
like gcc, as, ld -- etc. Can also specify a path, e.g. /opt/crosstool/blah)
- --
` ____ _ Stuart Longland (a.k.a Redhatter)
/ _ \ ___ ___ __| |__ __ __ Gentoo Linux/MIPS Cobalt and Docs
- (_) \ / \ ; \(__ __)/ \ / \ Developer
\ // O _| / /\ \ | | | /\ | /\ |
/ / \ /__| / \ \ | | | \/ | \/ |
(___/ \____/|_; |_| \_/ \__/ \__/ http://dev.gentoo.org/~redhatter
1. http://www.linux-mips.org/wiki/Toolchains -- Don't bother with MIPS SDE.
crosstool or µClibc's tools would be your best bet IMHO if you don't want to
do it by hand.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDQeCuuarJ1mMmSrkRAop6AJ9cuXlgH/I+VP/RQ2xDuEQi+k9tFgCcDqtL
LmmIvw7QOdvb3U9djFhFa6k=
=emsP
-----END PGP SIGNATURE-----
Reply to: