From: Philippe Gerum <rpm@xenomai.org>
To: roderik.wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Some problems with shared memory
Date: Tue, 16 Jun 2009 15:45:53 +0200 [thread overview]
Message-ID: <1245159953.3949.10.camel@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A01A87AC3@domain.hid>
On Tue, 2009-06-16 at 15:20 +0200, roderik.wildenburg@domain.hid
wrote:
> Hi,
>
> I applied your ipipe-patch to our 2.4.25 ppc kernel, but unfortunatelly I now can´t compile the kernel any more.
> I get following error messages :
>
> ipipe.c:393: error: `__switch_to' undeclared here (not in a function)
> ipipe.c:393: error: initializer element is not constant
> ipipe.c:393: error: (near initialization for `__ksymtab___switch_to.value')
> ipipe.c:394: error: `show_stack' undeclared here (not in a function)
> ipipe.c:394: error: initializer element is not constant
> ipipe.c:394: error: (near initialization for `__ksymtab_show_stack.value')
> ipipe.c:393: error: __ksymtab___switch_to causes a section type conflict
> ipipe.c:394: error: __ksymtab_show_stack causes a section type conflict
> make[1]: *** [ipipe.o] Fehler 1
>
>
> The first error I could elimnate by deleting one '_'.
>
> "`show_stack' undeclared here" I eliminated by simply commenting out "EXPORT_SYMBOL_GPL(show_stack);" in ipipe.c
> (just to see what will happen).
> But even after commenting out the most of the tail of ipipe.c :
>
> EXPORT_SYMBOL_GPL(__switch_to);
> //EXPORT_SYMBOL_GPL(show_stack);
> EXPORT_SYMBOL_GPL(_switch);
> EXPORT_SYMBOL_GPL(tasklist_lock);
> //void atomic_set_mask(unsigned long mask, unsigned long *ptr);
> //void atomic_clear_mask(unsigned long mask, unsigned long *ptr);
> #ifdef FEW_CONTEXTS
> EXPORT_SYMBOL_GPL(nr_free_contexts);
> EXPORT_SYMBOL_GPL(context_mm);
> EXPORT_SYMBOL_GPL(steal_context);
> #endif /* !FEW_CONTEXTS */
> //EXPORT_SYMBOL_GPL(atomic_set_mask);
> //EXPORT_SYMBOL_GPL(atomic_clear_mask);
> EXPORT_SYMBOL_GPL(last_task_used_math);
>
> the linker complains about multiple definitions of symbols :
>
> ppc_6xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic arch/ppc/kernel/head.o arch/ppc/kernel/idle_6xx.o init/main.o init/version.o init/do_mounts.o \
> --start-group \
> arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
> drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/ide/idedriver.o drivers/mtd/mtdlink.o drivers/macintosh/macintosh.o drivers/video/video.o drivers/media/media.o drivers/i2c/i2c.o kernel/xenomai/nucleus/xeno_nucleus.o kernel/xenomai/skins/native/xeno_native.o kernel/xenomai/skins/posix/xeno_posix.o kernel/xenomai/skins/rtdm/xeno_rtdm.o arch/ppc/5xxx_io/5xxx_io.o arch/ppc/xenomai/built-in.o \
> net/network.o \
> /home/arowil/mc45/svn/kernel_withoutadeos/source/lib/lib.a \
> --end-group \
> -o vmlinux
> kernel/kernel.o(__ksymtab+0xfb0): In function `wait_for_completion':
> /home/arowil/mc45/svn/kernel_withoutadeos/source/kernel/sched.c:851: multiple definition of `__ksymtab_tasklist_lock'
> arch/ppc/kernel/kernel.o(__ksymtab+0x18):/home/arowil/mc45/svn/kernel_withoutadeos/source/arch/ppc/kernel/irq.c:575: first defined here
> kernel/kernel.o(.kstrtab+0x2064): In function `ipipe_reenter_root':
> /home/arowil/mc45/svn/kernel_withoutadeos/source/kernel/sched.c:536: multiple definition of `__kstrtab_tasklist_lock'
> arch/ppc/kernel/kernel.o(.kstrtab+0x30):/home/arowil/mc45/svn/kernel_withoutadeos/source/arch/ppc/kernel/irq.c:578: first defined here
> ppc_6xx-ld: Warning: size of symbol `__kstrtab_tasklist_lock' changed from 22 in arch/ppc/kernel/kernel.o to 14 in kernel/kernel.o
>
>
> So, I stuck here a little bit. Do you have an idea what went wrong, or can you give me a hint where I have to look (I couldn´t even find the symbol "tasklist_lock" in irq.c).
> (Next problem will be, that Stefano Babic´s LTT-Patch for Xenomai/Linux won´t work any more with your new adeos patch, but this is an other story).
>
> Our hardware is based on a freescale 5200B, so, as far as I understand your question about PICs, your patch should work for our hardware (I hope).
This patch is based on the current HEAD of
git://www.denx.de/git/linuxppc_2_4_devel.git
(commit 5bab6d641ff5ba139f9f41869502cb7c96d785bc)
The patched kernel builds and runs fine using lite5200b_defconfig.
--
Philippe.
next prev parent reply other threads:[~2009-06-16 13:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 9:31 [Xenomai-help] Some problems with shared memory roderik.wildenburg
2009-03-30 12:14 ` Gilles Chanteperdrix
2009-03-31 11:52 ` roderik.wildenburg
2009-04-06 8:47 ` roderik.wildenburg
2009-05-03 20:21 ` Gilles Chanteperdrix
2009-05-04 7:23 ` Wolfgang Denk
2009-05-04 8:49 ` Gilles Chanteperdrix
2009-05-04 15:24 ` Thomas Lockhart
2009-05-04 18:01 ` Wolfgang Denk
2009-05-04 18:33 ` Gilles Chanteperdrix
2009-05-05 12:16 ` roderik.wildenburg
2009-05-29 18:42 ` Gilles Chanteperdrix
2009-06-08 8:25 ` roderik.wildenburg
2009-06-08 20:36 ` Gilles Chanteperdrix
2009-06-09 6:30 ` roderik.wildenburg
2009-06-09 13:28 ` Philippe Gerum
2009-06-09 13:38 ` Philippe Gerum
2009-06-10 11:47 ` roderik.wildenburg
2009-06-12 14:06 ` Philippe Gerum
2009-06-16 13:20 ` roderik.wildenburg
2009-06-16 13:45 ` Philippe Gerum [this message]
2009-06-17 11:40 ` roderik.wildenburg
2009-06-17 14:19 ` Philippe Gerum
2009-06-18 8:37 ` roderik.wildenburg
2009-06-18 8:51 ` Philippe Gerum
2009-05-05 16:36 ` Thomas Lockhart
2009-05-05 19:03 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1245159953.3949.10.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=roderik.wildenburg@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.