[etherlab-users] insmod error - unknown symbol
Thomas Specker
thomas.specker at knestec.de
Fri Feb 11 10:29:01 CET 2011
Hello,
I try to build a kernel module with Etherlab and Matlab/Simulink, but I have
some problems with it.
I can build a module, but I get an error trying insmod it.
I checked the compiler versions, but they seem to match.
While the build is running I get different errors and warnings.
The first error looks like that....
gmake[1]: Betrete Verzeichnis '/usr/src/linux-2.6.28.7'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are
missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix
it."; \
echo; \
/bin/false)
I have no idea why the KERNEL configuration should be invalid, the rtai-kernel
is running fine,
ethercat is running and I can also load the ethercat-rtai-example-module.
autoconf.h and auto.conf are both in the expectet directories.
then I get a lot of warnings....
WARNING: "ecrt_master_receive"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_create_domain"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_version_magic"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_send"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_domain_queue"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_slave_config_sdo16"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_sync_slave_clocks"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_slave_config_sdo32"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_send_ext"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_application_time"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_slave_config_reg_pdo_entry"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_domain_process"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_domain_state"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_callbacks"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_state"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_slave_config"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_slave_config_dc"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_slave_config_idn"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_slave_config_pdos"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_sync_reference_clock"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_domain_external_memory"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_domain_size"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_master_activate"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_release_master"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_request_master"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: "ecrt_slave_config_sdo8"
[/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko]
undefined!
WARNING: modpost: Found 6 section mismatch(es).
But as I read in the mail archive that should be no Problem at all.
When I try to insmod the new kernel module I get...
>insmod etherlab_test_kmod.ko
insmod: error inserting 'etherlab_test_kmod.ko': -1 Unknown symbol in module
dmesg says...
[ 3778.154227] etherlab_test_kmod: Unknown symbol stop_rt_app
[ 3778.155568] etherlab_test_kmod: Unknown symbol rt_var_exit
[ 3778.167379] etherlab_test_kmod: Unknown symbol start_rt_app
I have no idea what I could do and would be very thankful for all kinds of help.
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20110211/31644e62/attachment-0002.htm>
More information about the Etherlab-users
mailing list