Good day everyone,
I have been working with my old laptop to try and avoid having to go
back to Ubuntu 8. Last thing I did was to compile a new kernel (v3.1, talk
about bleeding edge) and the EMC for the new preempt stock kernel options here:
<https://www.gitorious.org/~wangaixi/emc-rt-preempt/wangaixis-emc-rt-preempt/commits/2.4.4-rt-shm>
The kernel runs nicely and fast. EMC, on the other hand, compiles well
but after the splash screen it quits. I have pasted the output on the console
below.
I had thought this version of EMC had been patched to allow it to run
on a non-rtai kernel, did I get that wrong? I see it tries to fetch a module
for a different kernel version, any idea on how can I dig that out? That
version is not mentioned in scripts/emc nor in scripts/emc-environment.
Secondly, has anyone been succesful in compiling and running EMC on
kernel 3.x?
Finally, I have an error in dmesg about the APIC on this box. Tells me
to try to run the kernel with lapic to force enable it, but it won't do it. I
seem to remember vaguely something about removing the support in the kernel for
old APICs but can't find mention of it now googling around. Does this sound
familiar?
Any other ideas appreciated. Here is the console output. Previuos to
this, I have sourced emc-environment:
alfredo@EMC:~/emc-rt-preempt-wangaixis-emc-rt-preempt/scripts$ ./emc
EMC2 - 2.4.4
Machine configuration directory is '/home/alfredo/emc2/configs/UsovoMF70'
Machine configuration file is 'UsovoMF70.ini'
Starting EMC2...
REALTIME SCRIPT CALLED AS USER : alfredo
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1
Invalid module format
Realtime system did not load
Shutting down and cleaning up EMC2...
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
RTAPI: ERROR: could not open shared memory (errno=2)
HAL: ERROR: rtapi init failed
halcmd: hal_init() failed: -22
NOTE: 'rtapi' kernel module must be loaded
REALTIME SCRIPT CALLED AS USER : alfredo
/home/alfredo/emc-rt-preempt-wangaixis-emc-rt-preempt/bin/emc_module_helper:
Invalid usage with args: remove hal_lib
Usage:
/home/alfredo/emc-rt-preempt-wangaixis-emc-rt-preempt/bin/emc_module_helper
insert /path/to/module.ext [param1=value1 ...]
where module is one of:
rtai_math
rtai_sem
rtai_shm
rtai_fifos
rtai_up
rtai_lxrt
rtai_hal
rtai_sched
rtai_smi
rtai
rt_mem_mgr
adeos
rtl_time
rtl_sched
rtl_posixio
rtl_fifo
rtl
mbuff
the path starts with one of:
/lib/modules
/usr/realtime
and the extension is one of:
.ko
or the module is in the directory
/home/alfredo/emc-rt-preempt-wangaixis-emc-rt-preempt/rtlib
OR
/home/alfredo/emc-rt-preempt-wangaixis-emc-rt-preempt/bin/emc_module_helper
remove module
where module is one of the modules listed above.
/home/alfredo/emc-rt-preempt-wangaixis-emc-rt-preempt/bin/emc_module_helper:
Invalid usage with args: remove rtapi
Usage:
/home/alfredo/emc-rt-preempt-wangaixis-emc-rt-preempt/bin/emc_module_helper
insert /path/to/module.ext [param1=value1 ...]
where module is one of:
rtai_math
rtai_sem
rtai_shm
rtai_fifos
rtai_up
rtai_lxrt
rtai_hal
rtai_sched
rtai_smi
rtai
rt_mem_mgr
adeos
rtl_time
rtl_sched
rtl_posixio
rtl_fifo
rtl
mbuff
the path starts with one of:
/lib/modules
/usr/realtime
and the extension is one of:
.ko
or the module is in the directory
/home/alfredo/emc-rt-preempt-wangaixis-emc-rt-preempt/rtlib
OR
/home/alfredo/emc-rt-preempt-wangaixis-emc-rt-preempt/bin/emc_module_helper
remove module
where module is one of the modules listed above.
ERROR: Module rtai_math does not exist in /proc/modules
ERROR: Module rtai_sem does not exist in /proc/modules
ERROR: Module rtai_fifos does not exist in /proc/modules
ERROR: Module rtai_sched does not exist in /proc/modules
ERROR: Module rtai_hal does not exist in /proc/modules
Cleanup done
EMC terminated with an error. You can find more information in the log:
/home/alfredo/emc_debug.txt
and
/home/alfredo/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
--
Alfredo Sola
http://alfredo.sola.es/
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users