UpdatingTo2.5 - rmu75/linuxcnc-wiki GitHub Wiki


date: '2013-01-28T19:37:22' title: UpdatingTo2.5

Overview

This page describes how to upgrade from LinuxCNC 2.4.x to LinuxCNC 2.5.x. There is no one-step upgrade from EMC 2.3 to LinuxCNC 2.5. to perform such an upgrade, follow the instructions to upgrade from 2.3 to 2.4 first. (http://wiki.linuxcnc.org/cgi-bin/wiki.pl?UpdatingTo2.4) and then follow the steps on this page.

Getting LinuxCNC 2.5

As of version 2.5.0, the name of the project has changed from EMC2 to LinuxCNC. All programs with "emc" in the name have been changed to "linuxcnc" instead. All documentation has been updated.

Additionally, the name of the debian package containing the software has changed. Unfortunately this breaks automatic upgrades. To upgrade from emc2 2.4.X to linuxcnc 2.5.X, do the following:

On Ubuntu Lucid 10.04

upload:lucid-add-apt-line.png

First you need to tell your computer where to find the new LinuxCNC software:

  • Click on the System menu in the top panel and select Administration->Software Sources.

  • Select the Other Software tab.

  • Disable or delete all the old linuxcnc.org entries.

  • Add a new Apt line that looks like this: deb http://linuxcnc.org/ lucid base linuxcnc2.5

  • It will pop up a window informing you that the information about available software is out-of-date. Click the Reload button.

Now your computer knows about the new software, next we need to tell it to install it:

  • Click on the System menu in the top panel and select Administration->Synaptic Package Manager
  • In the Quick Search bar at the top, type linuxcnc.
  • Click the check box to mark the new linuxcnc package for installation.
  • Click the Apply button, and let your computer install the new package. The old emc 2.4 package will be automatically removed to make room for the new LinuxCNC 2.5 package.

On Ubuntu Hardy 8.04

upload:hardy-add-apt-line.png

First you need to tell your computer where to find the new LinuxCNC software:

  • Click on the System menu in the top panel and select Administration->Software Sources

  • Select the "Third-Party Software" tab.

  • Disable or delete all the old linuxcnc.org entries.

  • Add a new Apt line that looks like this: deb http://linuxcnc.org/ hardy base linuxcnc2.5

  • Close the Software Sources window. It will pop up a window saying the information about available software is out of date. Click the Reload button.

Now your computer knows about the new software, next we need to tell it to install it:

  • Click on the System menu in the top panel and select Administration->Synaptic Package Manager
  • In the Synaptic Package Manager, click the Search button.
  • In the Find dialog window that pops up, type linuxcnc and click the Search button.
  • Click the check-box to mark the linuxcnc package for installation.
  • Back in the Synaptic Package Manager, click the Apply button.
  • Click acceptance until it downloads and installs all the new packages. The old emc2.4 package will be automatically removed to make room for the new linuxcnc2.5 package.

Changes to your configuration

The user configs moved from $HOME/emc2 to $HOME/linuxcnc, so you will need to rename your directory, or move your files to the new place. In your user configs, check your ini file for references to the old path, such as [DISPLAY]PROGRAM_PREFIX. Update these by changing emc2 to linuxcnc.

The hostmot2 watchdog in LinuxCNC 2.5 does not start running until the HAL threads start running. This means it now tolerates a timeout on the order of the servo thread period, instead of requiring a timeout that's on the order of the time between loading the driver and starting the HAL threads. This typically means a few milliseconds (a few times the servo thread period) instead of many hundreds of milliseconds. The default has been lowered from 1 second to 5 milliseconds. You generally don't need to set the hm2 watchdog timeout any more, unless you've changed your servo thread period.

The old driver for the Mesa 5i20, hal_m5i20, has been removed after being deprecated in favor of hostmot2 since early 2009 (version 2.3.) If you are still using this driver, you will need to build a new configuration using the hostmot2 driver. Pncconf may help you do this, and we have some sample configs (hm2-servo and hm2-stepper) that act as examples.

If you are using a usb joypad you may need to rename the pin input.0.btn-trigger to input.0.btn-joystick .

If you are using NGCGUI you will need to edit your configuration file to remove the line USER_COMMAND_FILE = ./tkapp.py as the 2.5 version does not use it.

⚠️ **GitHub.com Fallback** ⚠️