Solved. 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. Philippe
________________________________ De : [email protected] [mailto:[email protected]] De la part de [email protected] Envoyé : 27 juin 2012 11:53 À : [email protected] Objet : [etherlab-users] Error loading generic module on kernel 3.2.0 withRT-Preempt Hello, 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: https://launchpad.net/~abogani/+archive/realtime <https://launchpad.net/~abogani/+archive/realtime> . During compilation of the kernel modules, I get the following warnings: Building modules, stage 2. MODPOST 3 modules WARNING: "ecrt_slave_config_state" [/home/hamelinp/devroot/ethercat-1.5.1-rt/examples/mini/ec_mini.ko] undefined! WARNING: "ecrt_slave_config_pdos" [/home/hamelinp/devroot/ethercat-1.5.1-rt/examples/mini/ec_mini.ko] undefined! WARNING: "_raw_read_lock" [/home/hamelinp/devroot/ethercat-1.5.1-rt/devices/ec_generic.ko] undefined! WARNING: "_raw_read_unlock" [/home/hamelinp/devroot/ethercat-1.5.1-rt/devices/ec_generic.ko] undefined! CC /home/hamelinp/devroot/ethercat-1.5.1-rt/devices/ec_generic.mod.o LD [M] /home/hamelinp/devroot/ethercat-1.5.1-rt/devices/ec_generic.ko CC /home/hamelinp/devroot/ethercat-1.5.1-rt/examples/mini/ec_mini.mod.o LD [M] /home/hamelinp/devroot/ethercat-1.5.1-rt/examples/mini/ec_mini.ko CC /home/hamelinp/devroot/ethercat-1.5.1-rt/master/ec_master.mod.o LD [M] /home/hamelinp/devroot/ethercat-1.5.1-rt/master/ec_master.ko Indeed, when trying to load the module I get this error: 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) and in dmesg: [ 2487.244002] EtherCAT: Master driver 1.5.1 0f7a243b03e4 [ 2487.244013] EtherCAT: 0 masters waiting for devices. [ 2487.244114] ec_generic: Unknown symbol _raw_read_unlock (err 0) [ 2487.244122] ec_generic: Unknown symbol _raw_read_lock (err 0) Using this command: cat /proc/kallsyms | grep raw_read_unlock I can confirm that these symbols are not available. However, I have a 'rt_read_unlock' available in the symbols table. Any hint? Thank you, ------------------------------------ Philippe Hamelin, ing., M. Ing Chercheur / Researcher T: 450-652-8499 x2198 F: 450-652-1316 Expertise robotique et civil Institut de recherche d'Hydro-Québec (IREQ) 1740, boul. Lionel-Boulet Varennes (QC) J3X 1S1, Canada
_______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
