[etherlab-users] insmod error - unknown symbol

Richard Hacker ha at igh-essen.com
Fri Feb 11 13:36:10 CET 2011


Hi,

On Friday 11 February 2011 10:29:01 Thomas Specker wrote:
> 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 think that you do not have a clean installation. Please configure your 
system as documented.

> 
> 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: modpost: Found 6 section mismatch(es).
Please ignore these warnings

> 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
Maybe ther etherlab subsystem is not started:
rcethercat start
rcetherlab start

- Richard

-- 
------------------------------------------------------------------------

Richard Hacker                               Amtsgericht Essen HRB 11500  
Ingenieurgemeinschaft IgH                    USt-Id.-Nr.: DE 174 626 722 
Ges. für Ingenieurleistungen mbH             Geschäftsführung:           
Heinz-Baecker-Str. 34                        Dr.-Ing. S. Rotthäuser      
D-45356 Essen                                Dr.-Ing. T. Finke           
Tel.: +49 201 / 36014-16                     Dr.-Ing. W. Hagemeister     
Fax.: +49 201 / 36014-14                     Tel.: +49 201 / 360-14-0    
richard.hacker at igh-essen.com                 http://www.igh-essen.com    

------------------------------------------------------------------------



More information about the Etherlab-users mailing list