<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17110" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=852514418-27062012>Solved.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=852514418-27062012></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=852514418-27062012>Finally, the problem was in the debian package coming
from the PPA which was referencing 'standard' headers instead of patched
headers. I manually patched and built the kernel and everything works
fine.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=852514418-27062012></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=852514418-27062012>Philippe</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> etherlab-users-bounces@etherlab.org
[mailto:etherlab-users-bounces@etherlab.org] <B>De la part de</B>
hamelin.philippe@ireq.ca<BR><B>Envoyé :</B> 27 juin 2012
11:53<BR><B>À :</B> etherlab-users@etherlab.org<BR><B>Objet :</B>
[etherlab-users] Error loading generic module on kernel 3.2.0
withRT-Preempt<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=212514115-27062012>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=212514115-27062012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=212514115-27062012>I'm trying to use
the IgH EtherCAT Master on Ubuntu 12.04. I'm using the 3.2.0 kernel with
RT-Preempt patches from this PPA: <A
href="https://launchpad.net/~abogani/+archive/realtime"><FONT
face="Times New Roman"
size=3>https://launchpad.net/~abogani/+archive/realtime</FONT></A>. During
compilation of the kernel modules, I get the following
warnings:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=212514115-27062012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=212514115-27062012> Building
modules, stage 2.<BR> MODPOST 3 modules<BR>WARNING:
"ecrt_slave_config_state"
[/home/hamelinp/devroot/ethercat-1.5.1-rt/examples/mini/ec_mini.ko]
undefined!<BR>WARNING: "ecrt_slave_config_pdos"
[/home/hamelinp/devroot/ethercat-1.5.1-rt/examples/mini/ec_mini.ko]
undefined!<BR>WARNING: "_raw_read_lock"
[/home/hamelinp/devroot/ethercat-1.5.1-rt/devices/ec_generic.ko]
undefined!<BR>WARNING: "_raw_read_unlock"
[/home/hamelinp/devroot/ethercat-1.5.1-rt/devices/ec_generic.ko]
undefined!<BR> CC
/home/hamelinp/devroot/ethercat-1.5.1-rt/devices/ec_generic.mod.o<BR> LD
[M]
/home/hamelinp/devroot/ethercat-1.5.1-rt/devices/ec_generic.ko<BR>
CC
/home/hamelinp/devroot/ethercat-1.5.1-rt/examples/mini/ec_mini.mod.o<BR>
LD [M]
/home/hamelinp/devroot/ethercat-1.5.1-rt/examples/mini/ec_mini.ko<BR>
CC
/home/hamelinp/devroot/ethercat-1.5.1-rt/master/ec_master.mod.o<BR> LD
[M]
/home/hamelinp/devroot/ethercat-1.5.1-rt/master/ec_master.ko</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=212514115-27062012><FONT face=Arial size=2>Indeed, when trying
to load the module I get this error:</FONT></SPAN></DIV>
<DIV><SPAN class=212514115-27062012><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=212514115-27062012><FONT face=Arial size=2>FATAL: Error
inserting ec_generic
(/lib/modules/3.2.0-23-realtime-pae/ethercat/devices/ec_generic.ko): Unknown
symbol in module, or unknown parameter (see dmesg)</FONT></SPAN></DIV>
<DIV><SPAN class=212514115-27062012><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=212514115-27062012><FONT face=Arial size=2>and in
dmesg:</FONT></SPAN></DIV>
<DIV><SPAN class=212514115-27062012><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=212514115-27062012><FONT face=Arial size=2>[ 2487.244002]
EtherCAT: Master driver 1.5.1 0f7a243b03e4<BR>[ 2487.244013] EtherCAT: 0 masters
waiting for devices.<BR>[ 2487.244114] ec_generic: Unknown symbol
_raw_read_unlock (err 0)<BR>[ 2487.244122] ec_generic: Unknown symbol
_raw_read_lock (err 0)<BR></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN class=212514115-27062012>Using this
command:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=212514115-27062012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=212514115-27062012>cat /proc/kallsyms |
grep raw_read_unlock</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=212514115-27062012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=212514115-27062012>I can confirm that
these symbols are not available. However, I have a 'rt_read_unlock' available in
the symbols table.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=212514115-27062012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=212514115-27062012>Any
hint?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=212514115-27062012></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=212514115-27062012>Thank
you,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(210,105,0); FONT-FAMILY: Lucida Sans"><SPAN
style="COLOR: rgb(105,105,105)"><SPAN
style="FONT-WEIGHT: bold">------------------------------------</SPAN></SPAN></SPAN><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: rgb(210,105,0); FONT-FAMILY: Verdana"><BR><SPAN
style="FONT-SIZE: 12pt; COLOR: rgb(210,105,0); FONT-FAMILY: Lucida Sans">Philippe
Hamelin</SPAN></SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: rgb(103,103,103); FONT-FAMILY: Verdana"><SPAN
style="FONT-SIZE: 8pt">, ing., M. Ing</SPAN></SPAN><BR
style="COLOR: rgb(103,103,103)"><SPAN
style="FONT-SIZE: 8pt; COLOR: rgb(103,103,103)"><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Chercheur / Researcher</SPAN><BR
style="FONT-FAMILY: Arial"><BR style="FONT-FAMILY: Arial"><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><SPAN
style="COLOR: rgb(210,105,0)">T</SPAN>: 450-652-8499 x2198</SPAN><BR
style="FONT-FAMILY: Arial"><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><SPAN
style="COLOR: rgb(210,105,0)">F</SPAN>: 450-6<SPAN
style="FONT-SIZE: 8pt">52-1316</SPAN></SPAN><BR style="FONT-FAMILY: Arial"><BR
style="FONT-FAMILY: Arial"><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial">Expertise robotique et
civil<BR>Institut de recherche d'Hydro-Québec (IREQ)<BR>1740, boul.
Lionel-Boulet<BR>Varennes (QC) J3X 1S1, Canada</SPAN></SPAN><BR
style="COLOR: rgb(103,103,103)"></DIV><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(210,105,0); FONT-FAMILY: monospace"><SPAN
style="COLOR: rgb(105,105,105)"><SPAN
style="FONT-WEIGHT: bold"></SPAN></SPAN></SPAN>
<DIV> </DIV></BODY></HTML>