Upgrade time, What do I need to know first?

More
30 Jul 2014 20:29 - 31 Jul 2014 03:22 #49288 by tjamscad
I am getting this error from the new computer. I manually copied cincikins.c and cincikins.o to the /usr/realtime-2.6.32-122-rtai/modules/linuxcnc directory

Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Unrecognized line skipped: POC FMS TLO DIAMETER COMMENT
cinci.hal:4: Can't find module 'cincikins' in /usr/realtime-2.6.32-122-rtai/modules/linuxcnc
2682
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Last edit: 31 Jul 2014 03:22 by tjamscad.

Please Log in or Create an account to join the conversation.

More
31 Jul 2014 05:45 - 31 Jul 2014 19:41 #49311 by tjamscad
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
insmod: can't read '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/rtapi.ko': No such file or directory
7502
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
/usr/bin/linuxcnc_module_helper: Invalid usage with args: remove hal_lib

Usage: /usr/bin/linuxcnc_module_helper insert /path/to/module.ext [param1=value1 ...]
Last edit: 31 Jul 2014 19:41 by tjamscad.

Please Log in or Create an account to join the conversation.

More
31 Jul 2014 13:04 #49323 by ArcEye
Hi

For the info of others reading, I have answered what forms post 49288 and a subsequent enquiry re another missing custom component off forum.

You are going to have to zip your config folder in its entirety and attach, ensuring it contains the code to any components.

It is impossible to guess the source of errors within a custom install, with no idea what the files contain

regards

Please Log in or Create an account to join the conversation.

More
31 Jul 2014 19:40 #49342 by tjamscad

Hi

For the info of others reading, I have answered what forms post 49288 and a subsequent enquiry re another missing custom component off forum.

You are going to have to zip your config folder in its entirety and attach, ensuring it contains the code to any components.

It is impossible to guess the source of errors within a custom install, with no idea what the files contain

regards


ArcEye,

Thank you for the help. I should have been more clear and included the config folder as soon as I had issues.
Attachments:

Please Log in or Create an account to join the conversation.

More
01 Aug 2014 00:16 - 01 Aug 2014 00:19 #49356 by ArcEye
Hi

The config is very involved, I presume you have lost the person who originally set it up?

The contents of the zip are puzzling me.

Why is rtapi.ko there? That is the file the error message says it cannot find and it should be in /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/
(Also the version that is in there must be the version from the install, not the old one.)

Also there is no source for spdrerror and the kernel module is there. Is that the one compiled under 10.04 and was it installed?

Your previous error message was from reading the hal file, it had already found and loaded the realtime modules, so something has changed since then and the error is now right at the beginning.

The error at the moment is very basic. It is saying it could not load rtapi.ko
Sometimes things can get screwed up after one failure and the next load fails because modules were never unloaded properly, so try to reboot after a failure if possible

To recap:

You need cincikins.ko and spdrerror.ko built as discussed previously and installed in /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/

rtapi.ko must also be in /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/ - it should never have been anywhere else

After you have ensured that they are there, try booting again

If you get a failure, please post the full details plus a copy of dmesg (do dmesg > dmesg.txt in a terminal and attach the resultant dmesg.txt file)
Please also do ls -l /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/ and post the output so we can see what is in there

Hopefully you have kept your old computer running so are not losing any workshop hours

regards
Last edit: 01 Aug 2014 00:19 by ArcEye.

Please Log in or Create an account to join the conversation.

More
01 Aug 2014 01:09 - 01 Aug 2014 01:15 #49358 by tjamscad
I am trying to learn this and the person who did the original config doesn't know because someone else has updated the system. That person I do not know.

Cincikins and spderror were built as described.

mpm@gandl:~$ ls -l /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/
ls: cannot access /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/: No such file or directory
mpm@gandl:~$ ls -l /usr/realtime-2.6.32-122-rtai/modules/
total 708
-rw-r--r-- 1 root root 8294 2010-07-27 20:03 latency_rt.ko
-rw-r--r-- 1 root root 51537 2010-07-27 20:03 Module.symvers
-rw-r--r-- 1 root root 4840 2010-07-27 20:03 preempt_rt.ko
-rw-r--r-- 1 root root 14260 2010-07-27 20:03 rtai_bits.ko
-rw-r--r-- 1 root root 7000 2010-07-27 20:03 rtai_calibrate.ko
-rw-r--r-- 1 root root 30399 2010-07-27 20:03 rtai_fifos.ko
-rw-r--r-- 1 root root 36579 2010-07-27 20:03 rtai_hal.ko
lrwxrwxrwx 1 root root 13 2012-11-24 18:19 rtai_ksched.ko -> rtai_sched.ko
-rw-r--r-- 1 root root 131348 2010-07-27 20:03 rtai_lxrt.ko
-rw-r--r-- 1 root root 30030 2010-07-27 20:03 rtai_math.ko
-rw-r--r-- 1 root root 15178 2010-07-27 20:03 rtai_mbx.ko
-rw-r--r-- 1 root root 18825 2010-07-27 20:03 rtai_mq.ko
-rw-r--r-- 1 root root 31342 2010-07-27 20:03 rtai_msg.ko
lrwxrwxrwx 1 root root 13 2012-11-24 18:19 rtai_mup.ko -> rtai_sched.ko
-rw-r--r-- 1 root root 56831 2010-07-27 20:03 rtai_rtdm.ko
-rw-r--r-- 1 root root 134394 2010-07-27 20:03 rtai_sched.ko
-rw-r--r-- 1 root root 30915 2010-07-27 20:03 rtai_sem.ko
-rw-r--r-- 1 root root 19168 2010-07-27 20:03 rtai_serial.ko
-rw-r--r-- 1 root root 4513 2010-07-27 20:03 rtai_smi.ko
lrwxrwxrwx 1 root root 13 2012-11-24 18:19 rtai_smp.ko -> rtai_sched.ko
-rw-r--r-- 1 root root 19814 2010-07-27 20:03 rtai_tasklets.ko
-rw-r--r-- 1 root root 11798 2010-07-27 20:03 rtai_tbx.ko
lrwxrwxrwx 1 root root 13 2012-11-24 18:19 rtai_up.ko -> rtai_sched.ko
-rw-r--r-- 1 root root 2301 2010-07-27 20:03 rtai_usi.ko
-rw-r--r-- 1 root root 18405 2010-07-27 20:03 rtai_wd.ko
-rw-r--r-- 1 root root 8072 2010-07-27 20:03 switches_rt.ko
Last edit: 01 Aug 2014 01:15 by tjamscad.

Please Log in or Create an account to join the conversation.

More
01 Aug 2014 01:25 #49359 by ArcEye

ls: cannot access /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/: No such file or directory


Something very basic is wrong, why don't you have this directory?

Where are all the files in it plus the ones you compiled?

Are you running a RIP but haven't set the environment variables ( or mentioned it )?

Please Log in or Create an account to join the conversation.

More
01 Aug 2014 01:31 #49360 by tjamscad

ls: cannot access /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/: No such file or directory


Something very basic is wrong, why don't you have this directory?

Where are all the files in it plus the ones you compiled?

Are you running a RIP but haven't set the environment variables ( or mentioned it )?


Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.4
Machine configuration directory is '/home/mpm/linuxcnc/configs/cinci'
Machine configuration file is 'cinci.ini'
INIFILE=/home/mpm/linuxcnc/configs/cinci/cinci.ini
PARAMETER_FILE=cinci.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1639
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
insmod: can't read '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/rtapi.ko': No such file or directory
1639
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
/usr/bin/linuxcnc_module_helper: Invalid usage with args: remove hal_lib

Usage: /usr/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 /usr/realtime-2.6.32-122-rtai/modules/linuxcnc

OR

/usr/bin/linuxcnc_module_helper remove module

where module is one of the modules listed above.

/usr/bin/linuxcnc_module_helper: Invalid usage with args: remove rtapi

Usage: /usr/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 /usr/realtime-2.6.32-122-rtai/modules/linuxcnc

OR

/usr/bin/linuxcnc_module_helper remove module

where module is one of the modules listed above.


Kernel message information:
[ 573.827325] I-pipe: Domain RTAI registered.
[ 573.827333] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 573.827336] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 573.827397] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 573.827400] PIPELINE layers:
[ 573.827404] f8eb0e20 9ac15d93 RTAI 200
[ 573.827407] c085cb20 0 Linux 100
[ 573.850867] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 573.851054] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 573.851065] RTAI[sched]: hard timer type/freq = APIC/12469090(Hz); default timing: periodic; linear timed lists.
[ 573.851072] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3391646000 hz.
[ 573.851077] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 573.851167] RTAI[usi]: enabled.
[ 573.929333] RTAI[math]: loaded.
[ 574.313761] RTAI[math]: unloaded.
[ 574.373344] SCHED releases registered named ALIEN RTGLBH
[ 574.405385] RTAI[malloc]: unloaded.
[ 574.504024] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 574.507413] I-pipe: Domain RTAI unregistered.
[ 574.507489] RTAI[hal]: unmounted.

Please Log in or Create an account to join the conversation.

More
01 Aug 2014 01:38 #49361 by tjamscad
mpm@gandl:~/linuxcnc/configs/cinci$ sudo comp --install cincikins.c
[sudo] password for mpm:
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /tmp/tmparS7gY/cincikins.o
/tmp/tmparS7gY/cincikins.c:304:1: warning: multi-line comment
Building modules, stage 2.
MODPOST 1 modules
WARNING: "hal_init" [/tmp/tmparS7gY/cincikins.ko] undefined!
WARNING: "hal_exit" [/tmp/tmparS7gY/cincikins.ko] undefined!
WARNING: "hal_malloc" [/tmp/tmparS7gY/cincikins.ko] undefined!
WARNING: "hal_param_float_new" [/tmp/tmparS7gY/cincikins.ko] undefined!
WARNING: "hal_ready" [/tmp/tmparS7gY/cincikins.ko] undefined!
CC /tmp/tmparS7gY/cincikins.mod.o
LD [M] /tmp/tmparS7gY/cincikins.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
cp cincikins.ko /usr/realtime-2.6.32-122-rtai/modules/linuxcnc/
cp: cannot create regular file `/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/': Is a directory
make: *** [install] Error 1
mpm@gandl:~/linuxcnc/configs/cinci$

mpm@gandl:~/linuxcnc/configs/cinci$ sudo comp --install spdrerror.mod.c
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /tmp/tmpIKQsRy/spdrerror.mod.o
/tmp/tmpIKQsRy/spdrerror.mod.c:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__attribute_used__’
make[2]: *** [/tmp/tmpIKQsRy/spdrerror.mod.o] Error 1
make[1]: *** [_module_/tmp/tmpIKQsRy] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
make: *** [modules] Error 2

Please Log in or Create an account to join the conversation.

More
01 Aug 2014 13:02 - 01 Aug 2014 13:03 #49377 by ArcEye
Hi,

Quite honestly I am mystified as to how things can be in such a mess on a recently installed system.

The cincikins module did not build properly, it was unable to link against the rtai libs and it was not installed.

The spderror.mod.c is not the source for spderror and its presence makes me suspect it had previously been built within the source tree in your RIP.
You need to find spderror.c

The module_loader and ls are telling you that the directory that should hold all the modules, does not exist.

I think you need to do a fresh install. This time use the Wheezy DVD iso pointed to on the post at the top of the forum by JT, entitled 'Released 2.6'

It will future proof you for a few years, Ubuntu 10.04 is dead in the water.

Then when installed, start lcnc from the menu and run one of the sims from the sample configs.
That at least will show it is working.

Then build and install cincikins.c from the config dir as before.
comp is probably now called halcompile, but rest is same
Looking for cincikins.ko installed in /usr/realtime-3.4.9-xxxxx/modules/linuxcnc/ and no warning about undefined functions or errors that it could not be copied.

If you can't find spderror.c, you may need to zip your entire RIP from your old machine and host it somewhere on your site so it can be downloaded and examined.

Is this where you found cincikins.c?

regards
Last edit: 01 Aug 2014 13:03 by ArcEye.

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum