Unknown symbol xnshadow_send_sig
Hi,
When using the xenomai-v2.1.x branch (tested with r1058, and a snapshot from a couple of days ago, using the "Champagne" version of the nucleus IIRC), I get the above error while trying to load the xeno_native kernel module. Relevant data is below:
[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
lsmod | grep xeno_nucleusxeno_nucleus 222112 0
[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
sudo modprobe xeno_native
FATAL: Error inserting xeno_native
(/lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/skins/native/xeno_native.ko):
Unknown symbol in module, or unknown parameter (see dmesg)
[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
dmesg | tail -n 5
Xenomai: hal/x86 started.
I-pipe: Domain IShield registered.
Xenomai: real-time nucleus v2.1.1 (Trundrumbalind) loaded.xeno_native: Unknown symbol xnshadow_send_sigxeno_native: Unknown symbol xnshadow_send_sig
[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
nm --defined-only /lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/nucleus/xeno_nucleus.ko | grep xnshadow_send_sig0000e050 T xnshadow_send_sig
[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
nm /lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/skins/native/xeno_native.ko | grep xnshadow_send_sig
U xnshadow_send_sig
The signatures of the function seem to match to and I don't get the error when using xenomai-trunk with 2.6.16adeos-ipipe-1.3-01.
Any clues? Am I missing something obvious?
regards,
Klaas
Quoted 34 lines · Klaas Gadeyne
Hi,
When using the xenomai-v2.1.x branch (tested with r1058, and a snapshot from a couple of days ago, using the "Champagne" version of the nucleus IIRC), I get the above error while trying to load the
xeno_nativekernel module. Relevant data is below:[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
lsmod | grepxeno_nucleusxeno_nucleus222112 0
[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
sudo modprobexeno_native
FATAL: Error insertingxeno_native
(/lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/skins/native/xeno_native.ko):Unknown symbol in module, or unknown parameter (see dmesg)
[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
dmesg | tail -n 5
Xenomai: hal/x86 started.
I-pipe: Domain IShield registered.
Xenomai: real-time nucleus v2.1.1 (Trundrumbalind) loaded.xeno_native: Unknown symbolxnshadow_send_sigxeno_native: Unknown symbolxnshadow_send_sig[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
nm --defined-only/lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/nucleus/xeno_nucleus.ko| grep
xnshadow_send_sig0000e050Txnshadow_send_sig
[[email protected] /lib/modules/2.6.16adeos-ipipe-1.2-05]$
nm/lib/modules/2.6.16adeos-ipipe-1.2-05/kernel/kernel/xenomai/skins/native/xeno_native.ko
Quoted 7 lines
| grep
xnshadow_send_sig
Uxnshadow_send_sigThe signatures of the function seem to match to and I don't get the error when using xenomai-trunk with 2.6.16adeos-ipipe-1.3-01.
Missing export inthe v2.1 branch which has been fixed in the v2.2 one, the patch below fixes it. A work-around is to build the native interface statically into the kernel, and not as a module.
nucleus/shadow.c +1 -0
@@ -1898,4 +1898,5 @@EXPORT_SYMBOL (xnshadow_unregister_interface);EXPORT_SYMBOL (xnshadow_wait_barrier);EXPORT_SYMBOL (xnshadow_suspend); +EXPORT_SYMBOL (xnshadow_send_sig);EXPORT_SYMBOL (nkgkptd);
Signature · 1 line
Philippe.