New Robot Configuration Compile Error [Solved]
13 Aug 2015 22:24 #61383
by andypugh
Replied by andypugh on topic New Robot Configuration Compile Error
Does irb.ko exist anywhere?
Did you add it to the makefile in both places?
Did you add it to the makefile in both places?
Please Log in or Create an account to join the conversation.
13 Aug 2015 23:45 - 13 Aug 2015 23:52 #61385
by ArcEye
Your module is called irb.ko, so why is it trying to remove something called irb6?
Answer, because you have called your module one thing and your component another
Either change the file names to irb6 and change the Makefile enties too, or more simply change the component name so it is the same as the module name.
When you tell halcmd to loadrt irb, it expects that the module name will be irb and all sorts of problems then ensue when it isn't.
There is now a check in halcompile (comp) which rejects comps which have a different file and component name, for that reason.
If that was all that was wrong, hopefully will sort it
regards
Replied by ArcEye on topic New Robot Configuration Compile Error
/home/asea/Documents/Files/Source/build/bin/linuxcnc_module_helper: Invalid usage with args: remove irb6
Your module is called irb.ko, so why is it trying to remove something called irb6?
Answer, because you have called your module one thing and your component another
int rtapi_app_main(void) {
int res=0;
comp_id = hal_init("irb6");
if (comp_id < 0) return comp_id;
Either change the file names to irb6 and change the Makefile enties too, or more simply change the component name so it is the same as the module name.
When you tell halcmd to loadrt irb, it expects that the module name will be irb and all sorts of problems then ensue when it isn't.
There is now a check in halcompile (comp) which rejects comps which have a different file and component name, for that reason.
If that was all that was wrong, hopefully will sort it
regards
Last edit: 13 Aug 2015 23:52 by ArcEye.
The following user(s) said Thank You: jstoquica
Please Log in or Create an account to join the conversation.
13 Aug 2015 23:45 #61386
by jstoquica
Replied by jstoquica on topic New Robot Configuration Compile Error
Hi,
Initially not, but I edit Makefile and then generates next error:
Now, any configuration has the same error, I think when forget add *.ko initially the kernel was deconfigured, I will try with a new copy of linuxcnc. Or what other solution do you consider?
Initially not, but I edit Makefile and then generates next error:
Machine configuration directory is '/home/asea/Documents/Files/Source/build/configs/irb'
Machine configuration file is 'puma560.ini'
Starting LinuxCNC...
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1 File exists
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
/home/asea/Documents/Files/Source/build/bin/linuxcnc_module_helper: Invalid usage with args: remove irb6
Usage: /home/asea/Documents/Files/Source/build/bin/linuxcnc_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-2.6.32-122-rtai
and the extension is one of:
.ko
or the module is in the directory /home/asea/Documents/Files/Source/build/rtlib
OR
/home/asea/Documents/Files/Source/build/bin/linuxcnc_module_helper remove module
where module is one of the modules listed above.
<commandline>:0: exit value: 1
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
ERROR: Module hal_lib is in use by irb
ERROR: Module rtapi is in use by hal_lib
ERROR: Module rtai_math is in use by irb,rtapi
ERROR: Module rtai_sem is in use by rtapi
ERROR: Module rtai_fifos is in use by rtapi
ERROR: Module rtai_sched is in use by rtapi,rtai_sem,rtai_fifos
ERROR: Module rtai_hal is in use by rtapi,rtai_sem,rtai_fifos,rtai_sched
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/root/linuxcnc_debug.txt
and
/root/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Now, any configuration has the same error, I think when forget add *.ko initially the kernel was deconfigured, I will try with a new copy of linuxcnc. Or what other solution do you consider?
Please Log in or Create an account to join the conversation.
13 Aug 2015 23:55 #61387
by ArcEye
Re-boot and start again, don't forget to go into a terminal, cd to your RIP and run . ./scripts/rip-environment first
If rt modules get orphaned and stuck in memory, you can't remove them like userland processes, sometimes only a reboot will do it
Replied by ArcEye on topic New Robot Configuration Compile Error
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1 File exists
Re-boot and start again, don't forget to go into a terminal, cd to your RIP and run . ./scripts/rip-environment first
If rt modules get orphaned and stuck in memory, you can't remove them like userland processes, sometimes only a reboot will do it
The following user(s) said Thank You: jstoquica
Please Log in or Create an account to join the conversation.
14 Aug 2015 02:10 #61390
by jstoquica
Replied by jstoquica on topic New Robot Configuration Compile Error
Please Log in or Create an account to join the conversation.
14 Aug 2015 05:13 #61392
by andypugh
Yes, filename and comp name not matching is such a hard bug to spot (the errors messages are no help) that I think there is now a warning about it in comp / halcompile.
Replied by andypugh on topic New Robot Configuration Compile Error
One mistake and everything is wrong.
Yes, filename and comp name not matching is such a hard bug to spot (the errors messages are no help) that I think there is now a warning about it in comp / halcompile.
Please Log in or Create an account to join the conversation.
Time to create page: 0.106 seconds