How to proper compile, built, and install linuxCNC

More
4 years 9 months ago - 4 years 9 months ago #231945 by Matt Hat
Its a .iso file debian installation named 2.7.14 wheeyz PREEMPT-RT from linuxcnc.org.
Code:
uname -a Linux PCname 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 GNU/Linux
Last edit: 4 years 9 months ago by Matt Hat.

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

More
4 years 9 months ago - 4 years 9 months ago #231947 by Matt Hat
It is curious. I have installed PREEMT-RT versions twice. Only simulated axis are running. My existing config or a newly made by stepconf will throw errors:
Code:
Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl: 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/lib/linuxcnc/modules LINUXCNC_CONFIG_DIR= LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs INIVAR=inivar HALCMD=halcmd LINUXCNC_EMCSH=/usr/bin/wish8.5 LINUXCNC - 2.8.2-72-gbcb0b7c Machine configuration directory is '/home/mattu/linuxcnc/configs/my-mill' Machine configuration file is 'my-mill.ini' INIFILE=/home/mattu/linuxcnc/configs/my-mill/my-mill.ini VERSION=1.1 PARAMETER_FILE=linuxcnc.var TASK=milltask HALUI= DISPLAY=axis COORDINATES=X Y Z KINEMATICS=trivkins coordinates=XYZ Starting LinuxCNC... Starting LinuxCNC server program: linuxcncsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Starting LinuxCNC IO program: io Found file(REL): ./my-mill.hal Found file(REL): ./custom.hal Starting TASK program: milltask Starting DISPLAY program: axis USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed USRMOT: ERROR: command timeout emcMotionInit: emcTrajInit failed waiting for s.joints<0>, s.kinematics_type<0> waiting for s.joints<0>, s.kinematics_type<0> waiting for s.joints<0>, s.kinematics_type<0> waiting for s.joints<0>, s.kinematics_type<0> waiting for s.joints<0>, s.kinematics_type<0> waiting for s.joints<0>, s.kinematics_type<0> waiting for s.joints<0>, s.kinematics_type<0> waiting for s.joints<0>, s.kinematics_type<0> waiting for s.joints<0>, s.kinematics_type<0> Shutting down and cleaning up LinuxCNC... USRMOT: ERROR: command timeout Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments Debug file information: Note: Using POSIX non-realtime note: MAXV max: 1.000 units/sec 60.000 units/min note: LJOG max: 1.000 units/sec 60.000 units/min note: LJOG default: 0.100 units/sec 6.000 units/min Waiting for component 'inihal' to become ready...................................A configuration error is preventing LinuxCNC from starting. More information may be available when running from a terminal. .13592 .13644 ..........HAL: ERROR: exit called before init Stopping realtime threads Unloading hal components <commandline>:0: waitpid failed milltask inihal <commandline>:0: milltask exited without becoming ready Waited 3 seconds for master. giving up. Note: Using POSIX non-realtime pwmgen: not loaded <commandline>:0: exit value: 255 <commandline>:0: rmmod failed, returned -1 Note: Using POSIX non-realtime stepgen: not loaded <commandline>:0: exit value: 255 <commandline>:0: rmmod failed, returned -1 Note: Using POSIX non-realtime hal_parport: not loaded <commandline>:0: exit value: 255 <commandline>:0: rmmod failed, returned -1 Note: Using POSIX non-realtime motmod: not loaded <commandline>:0: exit value: 255 <commandline>:0: rmmod failed, returned -1 Note: Using POSIX non-realtime trivkins: not loaded <commandline>:0: exit value: 255 <commandline>:0: rmmod failed, returned -1 <commandline>:0: unloadrt failed Note: Using POSIX non-realtime ----------------------------------------------------------------------- Info report created by linuxcnc_info: The file: /tmp/linuxcnc_info.txt can be posted to a forum or a web site like: http://pastebin.com in order to provide information about the linuxcnc system and configuration. Date: Sun Jan 16 00:31:05 CET 2022 UTC Date: Sat Jan 15 23:31:05 UTC 2022 this program: /usr/bin/linuxcnc_info uptime: 00:31:05 up 6:40, 2 users, load average: 0.18, 0.29, 0.30 lsb_release -sa: Debian Debian GNU/Linux 7.11 (wheezy) 7.11 wheezy which linuxcnc: /usr/bin/linuxcnc pwd: /home/mattu/linuxcnc/configs/my-mill USER: mattu LOGNAME: mattu HOME: /home/mattu EDITOR: VISUAL: LANGUAGE: TERM: dumb COLORTERM: DISPLAY: :0.0 DESKTOP: lightdm-xsession display size: 1920x1080 pixels (507x285 millimeters) PATH: /usr/bin:/home/mattu/linuxcnc/configs/my-mill/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games uname items: nodename -n: duco kernel-name -s: Linux kernel-vers -v: #1 SMP PREEMPT Debian 3.4.55-4linuxcnc machine -m: i686 processor -p: unknown platform -i: unknown oper system -o: GNU/Linux /proc items: cmdline: BOOT_IMAGE=/vmlinuz-3.4-9-rtai-686-pae root=UUID=a8f2ffdf-03e5-42b8-9ef2-4dfa2dbd4c6a ro initrd=/install/gtk/initrd.gz lapic quiet rootdelay=5 model name: Pentium(R) Dual-Core CPU E5200 @ 2.50GHz cores: 2 cpu MHz: 2499.949 parport: 0378-037a : parport0 serial: 03f8-03ff : serial Versions: gcc: gcc (Debian 4.7.2-5) 4.7.2 python: Python 2.7.3 git: git version 1.7.10.4 git commit: NA tcl: 8.5 tk: 8.5 glade: not_in_PATH glade-gtk2: glade3 3.8.0 linuxcnc_var all: LINUXCNCVERSION: 2.8.2-72-gbcb0b7c LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples REALTIME: /etc/init.d/realtime RTS: uspace HALLIB_DIR: /usr/share/linuxcnc/hallib dpkg -l '*linuxcnc*': Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=======================================-==================================-============-============================================================================== rc linuxcnc 1:2.8.2.72.gbcb0b7c i386 motion controller for CNC machines and robots un linuxcnc-dev <none> (no description available) un linuxcnc-doc <none> (no description available) ii linuxcnc-doc-en 1:2.8.2.72.gbcb0b7c all motion controller for CNC machines and robots (English documentation) un linuxcnc-sim <none> (no description available) un linuxcnc-sim-dev <none> (no description available) ii linuxcnc-uspace 1:2.8.2.72.gbcb0b7c i386 motion controller for CNC machines and robots ii linuxcnc-uspace-dev 1:2.8.2.72.gbcb0b7c i386 PC based motion controller for real-time Linux
On the other hand, the RT=RTAI runs fine with my maschine config file. And yes, I have the HW on the parport. I think I never had a PREEMPT kernel running, but I am unsure what came with the initial iso installation containing linuxcnc 2.7.15-28gd7ded6e.
Last edit: 4 years 9 months ago by Matt Hat.

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

  • ALittleOffTheRails
  • New Member
  • New Member
More
4 years 9 months ago #231955 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic How to proper compile, built, and install linuxCNC
Standard Wheezy ISO is RTAI not RT_PREEMPT there is a technical difference beteen the 2.

To Quote from the Linuxcnc Download page

[qoute]
LinuxCNC 2.7 Downloads

The Debian 7 Wheezy ISO uses RTAI which LinuxCNC has used as the Realtime layer since the very beginning. This gives the best real-time performance and is generally a better choice for software stepping using a parallel port. However making a stable version of a 4.x Kernel for Stretch (and eventually Buster) has proven difficult, which is partly why we still distribute the EOL Wheezy. This is compatible with Mesa PCI and PCIe and Pico interface boards but is not compatible with Mesa Ethernet interface boards.
[/quote]

If you have a standard install from the Wheezy ISO, you will have to install the RT (rtai) version NOT the uspace (rt_preempt) version.

This includes the linuxcnc development package. Do not mix uspace & rt packages. Use the version that matches your kernel.

So either backup your home directory and configs and reinstall from the Wheezy ISO. Or completely remove ALL instances of Linuxcnc and install the rt (rtai) version not the uspace (rt_preempt) version. They are 2 different animals.

Note you may need to use apt purge rather than apt remove. purge will remove ALL config files, so be sure to back up any files you want to save in your home folder.

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

More
4 years 9 months ago #231960 by Matt Hat
Thanks. Yes it is RTAI. I haven't done a purge, though, remove all from Syn Pckg Manager seemed to work fine. I have tested all versions, master 2.9, 2.8, 2.7 they are all running as long I use the trivkins.c No success though with installation of the rot4thaxiskins.
Code:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/rot4thaxiskins.ko: Unknown symbol in module ./rot4thaxiskins.hal:4: exit value: 1 ./rot4thaxiskins.hal:4: insmod for rot4thaxiskins failed, returned -1 See the output of 'dmesg' for more information. 1959 Stopping realtime threads Unloading hal components

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

  • ALittleOffTheRails
  • New Member
  • New Member
More
4 years 9 months ago #231962 by ALittleOffTheRails
Replied by ALittleOffTheRails on topic How to proper compile, built, and install linuxCNC
Once you installed the correct version of linuxcnc are you recompiling the comp ?

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

More
4 years 9 months ago - 4 years 9 months ago #231963 by Matt Hat
yes, after install of lncnc I call
Code:
sudo halcompile --install rot4thaxiskins.c
The error when loading:
Code:
dmesg -k will e.g. include [25614.782021] rot4thaxiskins: Unknown parameter `coordinates'
Last edit: 4 years 9 months ago by Matt Hat.

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

Time to create page: 0.127 seconds
Powered by Kunena Forum