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

Re: Compiling kernel 2.4.20 on m68k



Hello,

I have done a bit more digging.  The symbol is_dumpable gets referenced
in kernel/ptrace.c.  The ptrace.c was changed as part of the 2.4.20
kernel patches to add this symbol.  The difference between
kernel/ptrace.c and kernel/ptrace.c.orig is:

139,140d138
< 	if (!is_dumpable(tsk) || (&init_mm == mm))
< 		mm = NULL;
169c167
< 			flush_icache_user_page(vma, page, addr, len);
---
> 			flush_icache_user_range(vma, page, addr, len);

which was included in the kernel-patch-2.4.20-m68k_2.4.20-7.tar.gz
in the patch group kernel-source-2.4.20-m68k-cvs-20030621.diff.gz.

According to the changelog in the kernel-patch archive, this change was
specifically added.

A complete grep of the kernel-source-2.4.20 does not turn up any
definition of is_dumpable().

Now the big question is what happens if I go back to the original
ptrace.c?  Is this a bug against the patch file?

--Lance

On Mon, Jan 05, 2004 at 09:01:17PM -0600, Lance Tagliapietra wrote:
> Well,
> 
> That almost worked. I did the make oldconfig and the rest of the
> procedure as it was described I still get the missing reference to
> is_dumpable as described in the quoted text below (in
> access_process_vm).  The floppy_hardint errors are corrected.  I've
> compared the .config file to the 2.4.20 config in my /boot, and the only
> difference is CONFIG_NLS_DEFAULT has a value of "iso8859-1" vs "cp437"
> for the one in my /boot.  I'm not sure if that is significant.
> 
> Any suggestions on how to correct the is_dumpable missing symbol?
> 
> --Lance
> 
> On Mon, Jan 05, 2004 at 11:30:32AM +0100, Geert Uytterhoeven wrote:
> > On Sun, 4 Jan 2004, Lance Tagliapietra wrote:
> > > 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).
> > 
> > Please run `make oldconfig' after modifying the config (e.g. by copying it from
> > Config.amiga).
> > 
> > > 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
> > 
> > floppy_hardint() is a routine from the PC-style floppy driver. Probably it was
> > enabled before you copied Config.amiga.
> > 
> > Hence try this:
> >     make oldconfig
> >     make dep
> >     make clean
> >     make zImage modules
> > 
> > Gr{oetje,eeting}s,
> > 
> > 						Geert
> > 
> > --
> > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> > 
> > In personal conversations with technical people, I call myself a hacker. But
> > when I'm talking to journalists I just say "programmer" or something like that.
> > 							    -- Linus Torvalds
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-68k-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: