<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title></title>
</head>
<body>
<p style="margin: 0px;">Hello,<br />
<br />
I try to build a kernel module with Etherlab and Matlab/Simulink, but I have some problems with it.<br />
I can build a module, but I get an error trying insmod it.<br />
<br />
I checked the compiler versions, but they seem to match.<br />
<br />
While the build is running I get different errors and warnings.<br />
<br />
The first error looks like that....<br />
<br />
gmake[1]: Betrete Verzeichnis '/usr/src/linux-2.6.28.7'<br />
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \<br />
echo; \<br />
echo " ERROR: Kernel configuration is invalid."; \<br />
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \<br />
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \<br />
echo; \<br />
/bin/false)<br />
<br />
I have no idea why the KERNEL configuration should be invalid, the rtai-kernel is running fine,<br />
ethercat is running and I can also load the ethercat-rtai-example-module.<br />
autoconf.h and auto.conf are both in the expectet directories.<br />
<br />
then I get a lot of warnings....<br />
<br />
WARNING: "ecrt_master_receive" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_create_domain" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_version_magic" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_send" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_domain_queue" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_slave_config_sdo16" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_sync_slave_clocks" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_slave_config_sdo32" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_send_ext" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_application_time" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_slave_config_reg_pdo_entry" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_domain_process" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_domain_state" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_callbacks" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_state" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_slave_config" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_slave_config_dc" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_slave_config_idn" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_slave_config_pdos" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_sync_reference_clock" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_domain_external_memory" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_domain_size" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_master_activate" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_release_master" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_request_master" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: "ecrt_slave_config_sdo8" [/opt/etherlab/rtw/etherlab/etherlab_test_etl_rtw/etherlab_test_kmod.ko] undefined!<br />
WARNING: modpost: Found 6 section mismatch(es).<br />
<br />
But as I read in the mail archive that should be no Problem at all.<br />
<br />
When I try to insmod the new kernel module I get...<br />
<br />
>insmod etherlab_test_kmod.ko<br />
insmod: error inserting 'etherlab_test_kmod.ko': -1 Unknown symbol in module<br />
<br />
dmesg says...<br />
<br />
[ 3778.154227] etherlab_test_kmod: Unknown symbol stop_rt_app<br />
[ 3778.155568] etherlab_test_kmod: Unknown symbol rt_var_exit<br />
[ 3778.167379] etherlab_test_kmod: Unknown symbol start_rt_app<br />
<br />
I have no idea what I could do and would be very thankful for all kinds of help.<br />
<br />
Thomas<span></span></p>
</body>
</html>