[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems building MIPS kernel



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
	These last few days, I've been quite happy, having got a small Gateway
Micro Server and a SGI Indy running Debian 3.0.  However, when building
a kernel on these two machines, I've stuck all sorts of problems.

	On the Indy, I've managed to download a copy of Linux 2.4.19 with
kernel modules from Debian using APT.  This allowed me to get the sound
going properly.  However, I still lack support for vino, which is one of
the prime motivators for getting the machine in the first place.  When I
couldn't find a copy of it anywhere, I decided I'd build my own.  This
is where the trouble began.

	The kernel image for 2.4.19 came with the config, so this is what I
used, just modified it using make menuconfig and tried compiling it.
The kernel image did not come with source code however, so I unpacked a
version of Linux 2.4.19 that I had downloaded from kernel.org.  It got
right to the end and coughed up an error.        (See kernel-error-2.4.19)

	Thinking it may have been a bug that has been corrected, I tried to
compile Linux 2.4.20.  I copied the .config from 2.4.19 and did a make
oldconfig.  Compiling here also failed, coughing an error part way
through.  (See kernel-error-2.4.20)

	I noticed that there was a version of the Linux kernel on the
linux-mips.org website.  Figuring that this may have a corrected version
of the kernel source, I downloaded it (via CVS) copied my .config and
re-ran make oldconfig again.  This also failed to compile, coughing up
an error fairly early in the piece.  (See kernel-error-2.5.47)

	I've had equal problems compiling on a Gateway Micro Server (aka Cobalt
Qube) which uses a little-endian MIPS (as opposed to the Indy's
big-endian MIPS R4600).  Is it just me, or is compiling Linux for MIPS a
black art?
- --
+-------------------------------------------------------------+
| Stuart Longland           stuartl at longlandclan.hopto.org |
| Brisbane Mesh Node: 719             http://stuartl.cjb.net/ |
| I haven't lost my mind - it's backed up on a tape somewhere |
| Griffith Student No:           Course: Bachelor/IT @ Nathan |
+-------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+fSeJIGJk7gLSDPcRAsIKAJ9SioLXCPh3kJ7cYp0YG4GfYUYuQACdFKWp
VEUeuq7wPj0cki/gnSjZ+us=
=ivuN
-----END PGP SIGNATURE-----
ld -G 0 -static  -T arch/mips/ld.script arch/mips/kernel/head.o arch/mips/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
        --start-group \
        arch/mips/kernel/kernel.o arch/mips/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o arch/mips/sgi-ip22/ip22-kern.o \         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/sgi/sgi.a drivers/video/video.o drivers/md/mddev.o \
        net/network.o \
        arch/mips/lib/lib.a /usr/src/linux-2.4.19/lib/lib.a arch/mips/arc/arclib.a \
        --end-group \
        -o vmlinux
arch/mips/sgi-ip22/ip22-kern.o: In function `ip22_setup':
arch/mips/sgi-ip22/ip22-kern.o(.text.init+0x94c): undefined reference to `console_setup'
arch/mips/sgi-ip22/ip22-kern.o(.text.init+0x960): undefined reference to `console_setup'
make: *** [vmlinux] Error 1
binfmt_elf.c:278: `EF_MIPS_ABI2' undeclared (first use in this function)
binfmt_elf.c:278: (Each undeclared identifier is reported only once
binfmt_elf.c:278: for each function it appears in.)
binfmt_elf.c:278: `EF_MIPS_ABI' undeclared (first use in this function)
binfmt_elf.c: In function `load_elf_binary':
binfmt_elf.c:458: `EF_MIPS_ABI2' undeclared (first use in this function)
binfmt_elf.c:458: `EF_MIPS_ABI' undeclared (first use in this function)
binfmt_elf.c: In function `load_elf_library':
binfmt_elf.c:825: `EF_MIPS_ABI2' undeclared (first use in this function)
binfmt_elf.c:825: `EF_MIPS_ABI' undeclared (first use in this function)
make[2]: *** [binfmt_elf.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20/fs'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20/fs'
make: *** [_dir_fs] Error 2
  gcc -Wp,-MD,arch/mips/kernel/.entry.o.d -D__ASSEMBLY__ -D__KERNEL__ -Iinclude -I /usr/src/linux-2.5.47/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -nostdinc -iwithprefix include  -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -I /usr/src/linux-2.5.47/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap  -c -o arch/mips/kernel/entry.o arch/mips/kernel/entry.S
In file included from include/asm/processor.h:15,
                 from include/asm/stackframe.h:15,
                 from arch/mips/kernel/entry.S:22:
include/linux/cache.h:7: warning: `ALIGN' redefined
include/linux/linkage.h:24: warning: this is the location of the previous definition
arch/mips/kernel/entry.S: Assembler messages:
arch/mips/kernel/entry.S:79: Error: unrecognized opcode `align'
arch/mips/kernel/entry.S:84: Error: illegal operands `beqz restore_all'
arch/mips/kernel/entry.S:93: Error: expression too complex
arch/mips/kernel/entry.S:94: Error: unrecognized opcode `addl $8,irq_stat+local_irq_count'
arch/mips/kernel/entry.S:102: Error: unrecognized opcode `movl $8,0($28)'
make[1]: *** [arch/mips/kernel/entry.o] Error 1
make: *** [arch/mips/kernel] Error 2

Reply to: