Upgrade time, What do I need to know first?

More
23 Dec 2014 05:05 - 23 Dec 2014 05:07 #54237 by tjamscad
ArcEye,

Thanks again for all your help. Not many people would be this paiantant.

Right now:

Fresh install from the link provided on the left corner of the fourm.
Sim Configs Axis, Touchy, and Gscreen Indrustrial all preform as exspected.

What should be my next step? copy machnine configs?

I dont have a linuxcnc-dev folder, should I?

mpm@LINUXCNC:~$ ls
Desktop Downloads Music Public Videos
Documents linuxcnc Pictures Templates
mpm@LINUXCNC:~$
Last edit: 23 Dec 2014 05:07 by tjamscad.

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

More
23 Dec 2014 17:39 #54256 by ArcEye
Hi

You need to do whatever you did with your other computers you upgraded.

Install the distro and do sudo apt-get update && apt-get dist-upgrade to get it fully up to date

As far as I recall, you copied over your emc/linuxcnc folder with all your configs, gcode etc to your user linuxcnc folder
and then installed the modules that I compiled against that kernel, to provide the custom components that your machine configs use.

Either install the package mpm-custom-modules-0.3.deb or just extract the zip of the same files and copy the contents of each folder to the real folder on your system

I dont have a linuxcnc-dev folder, should I?


No, that existed on your old system to provide a newer version of Linuxcnc against which the components could be built.
You are using 2.6.x with the new distro anyway and I have pre-built the components for you

regards

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

More
27 Dec 2014 06:17 #54312 by tjamscad
This is running a fresh install.

mpm@LINUXCNC:~/linuxcnc/configs$ sudo dpkg -i mpm-custom-modules-0.3.deb
[sudo] password for mpm:
Selecting previously unselected package mpm-custom-modules.
(Reading database ... 126109 files and directories currently installed.)
Unpacking mpm-custom-modules (from mpm-custom-modules-0.3.deb) ...
dpkg: error processing mpm-custom-modules-0.3.deb (--install):
trying to overwrite '/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/estop_latch.ko', which is also in package linuxcnc 1:2.6.5
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
mpm-custom-modules-0.3.deb
mpm@LINUXCNC:~/linuxcnc/configs$

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

More
27 Dec 2014 23:42 #54315 by ArcEye
Hi

The problem is that whoever wrote the custom modules you use, did not change the name of some of them, so the the custom one clashes with the original.
I missed this one, I think I changed the names of the clashing gear change modules.

The solution is quite simple, just go to /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc and change the file name estop_latch.ko to estop_latch.ko.old

The re-run the install

regards

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

More
02 Jan 2015 23:21 - 02 Jan 2015 23:45 #54495 by tjamscad

Hi

The problem is that whoever wrote the custom modules you use, did not change the name of some of them, so the the custom one clashes with the original.
I missed this one, I think I changed the names of the clashing gear change modules.

The solution is quite simple, just go to /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc and change the file name estop_latch.ko to estop_latch.ko.old

The re-run the install

regards


mpm@LINUXCNC:~/Desktop$ sudo mv estop_latch.ko estop_latch.ko.old

mpm@LINUXCNC:/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc$ ls estop*
estop_latch2.ko estop_latch.ko.old

After reinstalling the deb that was provided.

mpm@LINUXCNC:~/Desktop$ sudo dpkg -i mpm-custom-modules-0.3.deb
(Reading database ... 126109 files and directories currently installed.)
Unpacking mpm-custom-modules (from mpm-custom-modules-0.3.deb) ...
dpkg: error processing mpm-custom-modules-0.3.deb (--install):
trying to overwrite '/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/estop_latch.ko', which is also in package linuxcnc 1:2.6.5
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
mpm-custom-modules-0.3.deb
mpm@LINUXCNC:~/Desktop$
mpm@LINUXCNC:~/Desktop$ sudo cp -r -f usr /

mpm@LINUXCNC:/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc$ ls -l estop*
-rw-r--r-- 1 root root 95659 Jan 2 09:20 estop_latch2.ko
-rw-r--r-- 1 root root 94859 Jan 2 09:20 estop_latch.ko
-rw-r--r-- 1 root root 94859 Jan 2 09:12 estop_latch.ko.old
mpm@LINUXCNC:/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc$

But when I try to run I get his:

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-3.4-9-rtai-686-pae/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.6.5
Machine configuration directory is '/home/mpm/linuxcnc/configs/Enshu'
Machine configuration file is 'enshu.ini'
INIFILE=/home/mpm/linuxcnc/configs/Enshu/enshu.ini
PARAMETER_FILE=enshu.var
TASK=milltask
HALUI=halui
DISPLAY=touchy
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=12273
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
.
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_ppmc.ko: Operation not permitted
enshu.hal:14: exit value: 1
enshu.hal:14: insmod failed, returned -1
See the output of 'dmesg' for more information.
12273
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Last edit: 02 Jan 2015 23:45 by tjamscad.

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

More
03 Jan 2015 01:36 #54501 by ArcEye

dpkg: error processing mpm-custom-modules-0.3.deb (--install):
trying to overwrite '/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/estop_latch.ko', which is also in package linuxcnc 1:2.6.5


OK so it is picking up the file from the package contents, not the physical directory listing.

The amended files are all in the zip a few posts back, you can just copy them over to the relevant directories instead of installing from the .deb package

If you want a permanent package solution, you will have to chose another name for the estop_latch module, change all the configs which use it to the new name and I can
remake the the package with the module renamed.
Obviously just copying over the files is easier

Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_ppmc.ko: Operation not permitted


That is not one of the custom modules, it is a pre-existing module which interfaces with your boards.

Can't assist with that

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

More
03 Jan 2015 03:00 #54505 by tjamscad
So the proper way would be to rename them? That should prevent future problems with my single drive for mutiple machines setup.

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

More
03 Jan 2015 18:08 - 03 Jan 2015 21:54 #54519 by ArcEye

So the proper way would be to rename them? That should prevent future problems with my single drive for mutiple machines setup.


Yes

The optimum method would be to fully install to a machine and then make an image which you copy to all the others.
But if you don't already know how to do that, I am not going to get into it.

The earlier debs worked because I had not realised that the estop_latch component had been altered, as the name was the same, so it was not included in them and did not clash.

There is no need to be fixed upon a package install, manually copying the files from the zip I made works perfectly and takes a couple of minutes, without any danger of name clashes.
Last edit: 03 Jan 2015 21:54 by ArcEye.

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

Time to create page: 0.099 seconds
Powered by Kunena Forum