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

Compiling kernel 2.4.20 on m68k



Hello,

I'm attempting to compile kernel 2.4.20 for my 68k Amiga 2000 (030).
I'm using GCC 2.95.4.  I have done the following:

1. downloaded the files from ftp.debian.org:
kernel-source-2.4.20_2.4.20.orig.tar.gz
kernel-patch-2.4.20-m68k_2.4.20-7.tar.gz
kernel-headers-2.4.20-m68k_2.4.20-1.tar.gz
(I did not used the *.deb files as I did not want apt/dpkg to manage
kernel files). 

2. I uncompressed and extracted the kernel source to directory
/usr/src/kernel-source-2.4.20 and extraced the kernel patch to
/usr/src/kernel-patches

following the README.Debian in the kernel-patches, I applied the
patches (note that the a2065 patch application failed).

3. I used the Config.amiga in the kernel patches directory and copied it
to the sources directory as .config (the idea is that I'd like to
duplicate the assumed working config, before I start modifying it for my
specific situation).

4. time make clean; time make dep; time make
(time, to get some idea of how long this takes, as a baseline).
[about 12 hours later]

I noticed that the build stopped due to unresolved symbol errors:

ld -m m68kelf -T /mnt/dh0/kernel-source-2.4.20/arch/m68k/vmlinux.lds
arch/m68k/kernel/head.o init/main.o init/version.o init/do_mounts.o \
        --start-group \
        arch/m68k/kernel/kernel.o arch/m68k/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o arch/m68k/amiga/amiga.o
arch/m68k/fpsp040/fpsp.o arch/m68k/ifpsp060/ifpsp.o
arch/m68k/math-emu/mathemu.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/ide/idedriver.o
drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/zorro/driver.o
drivers/video/video.o \
        net/network.o \
        /mnt/dh0/kernel-source-2.4.20/lib/lib.a arch/m68k/lib/lib.a \
        --end-group \
        -o vmlinux
kernel/kernel.o: In function `access_process_vm':
kernel/kernel.o(.text+0x833c): undefined reference to `is_dumpable'
drivers/block/block.o: In function `floppy_hardint':
drivers/block/block.o(.text+0x268a): undefined reference to `inb'
drivers/block/block.o(.text+0x26ae): undefined reference to `outb_p'
drivers/block/block.o(.text+0x26c6): undefined reference to `inb_p'
make: *** [vmlinux] Error 1

Those are the steps I took.  I would appreciate some hints as to what
step I'm missing or what I did wrong.  There has not been any new info
on compiling kernels for m68k published for quite some time.

Also, what is the kernel-headers archive for?  I noticed that it was
mostly empty, except for a rules file, which was different from the one
in the patch archive.  The rules in the patch archive were the same as
those in the source archive.  When using the rules in the kernel-headers
archive, I get a bunch of errors on the make.

These archives are google searchable, and a google search didn't turn to
anyting recent for compiling the kernel on m68k.

--Lance LanceTag at Luminet dot net




Reply to: