Installing LinuxCNC 2.9 or Master on Linux Mint 21

More
02 Nov 2022 14:28 - 02 Nov 2022 22:15 #255789 by tommylight
Sorry Marco, there seems to be another issue with the latest LinuxCNC build for Debian, it requires Python under 3.10 for some reason.
Use the previous version for now:
http.us.debian.org/debian/pool/main/l/li...744cdef6-1_amd64.deb
development version:
http.us.debian.org/debian/pool/main/l/li...744cdef6-1_amd64.deb
Last edit: 02 Nov 2022 22:15 by tommylight. Reason: added link

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

More
02 Nov 2022 21:44 #255803 by MarcoGaspar
Hello,

That dind't worked... attached photos
Attachments:

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

More
02 Nov 2022 22:13 #255804 by tommylight
ooops ?
Sorry, wrong link, it is for the dev part of LinuxCNC, so might come in handy.
Leme try again:
Try this:
http.us.debian.org/debian/pool/main/l/li...744cdef6-1_amd64.deb
Keeping fingers crossed ...

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

More
07 Nov 2022 20:01 #256160 by MarcoGaspar
Install worked...

But when trying to run linuxcnc it give error:

(I have the same config files running on other computer with linux mint 20.1 with 4.9.0-13-rt kernel)

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.6
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/alex/linuxcnc/configs/MJG_CNC'
Machine configuration file is 'MJG_CNC.ini'
INIFILE=/home/alex/linuxcnc/configs/MJG_CNC/MJG_CNC.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=XYZ
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
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./MJG_CNC.hal
Found file(REL): ./custom.hal
Found file(REL): ./xhc-whb04b-6.hal
Starting TASK program: milltask
Starting DISPLAY program: axis

emc/task/emctaskmain.cc 3085: can't initialize interpreter
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...
Running HAL shutdown script
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:10:42:5d
hm2_eth: discovered 7I76E-16
hm2/hm2_7i76e.0: Low Level init 0.15
hm2/hm2_7i76e.0: Smart Serial Firmware Version 43
Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
hm2/hm2_7i76e.0: 51 I/O Pins used:
hm2/hm2_7i76e.0:     IO Pin 000 (P1-01): StepGen #0, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 001 (P1-14): StepGen #0, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 002 (P1-02): StepGen #1, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 003 (P1-15): StepGen #1, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 004 (P1-03): StepGen #2, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 005 (P1-16): StepGen #2, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 006 (P1-04): IOPort
hm2/hm2_7i76e.0:     IO Pin 007 (P1-17): IOPort
hm2/hm2_7i76e.0:     IO Pin 008 (P1-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 009 (P1-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 010 (P1-07): Smart Serial Interface #0, pin tx0 (Output)
hm2/hm2_7i76e.0:     IO Pin 011 (P1-08): Smart Serial Interface #0, pin rx0 (Input)
hm2/hm2_7i76e.0:     IO Pin 012 (P1-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 013 (P1-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 014 (P1-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 015 (P1-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 016 (P1-13): IOPort
hm2/hm2_7i76e.0:     IO Pin 017 (P2-01): IOPort
hm2/hm2_7i76e.0:     IO Pin 018 (P2-14): IOPort
hm2/hm2_7i76e.0:     IO Pin 019 (P2-02): IOPort
hm2/hm2_7i76e.0:     IO Pin 020 (P2-15): IOPort
hm2/hm2_7i76e.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_7i76e.0:     IO Pin 022 (P2-16): IOPort
hm2/hm2_7i76e.0:     IO Pin 023 (P2-04): IOPort
hm2/hm2_7i76e.0:     IO Pin 024 (P2-17): IOPort
hm2/hm2_7i76e.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 027 (P2-07): IOPort
hm2/hm2_7i76e.0:     IO Pin 028 (P2-08): IOPort
hm2/hm2_7i76e.0:     IO Pin 029 (P2-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 030 (P2-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 031 (P2-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 032 (P2-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 033 (P2-13): IOPort
hm2/hm2_7i76e.0:     IO Pin 034 (P3-01): IOPort
hm2/hm2_7i76e.0:     IO Pin 035 (P3-14): IOPort
hm2/hm2_7i76e.0:     IO Pin 036 (P3-02): IOPort
hm2/hm2_7i76e.0:     IO Pin 037 (P3-15): IOPort
hm2/hm2_7i76e.0:     IO Pin 038 (P3-03): IOPort
hm2/hm2_7i76e.0:     IO Pin 039 (P3-16): IOPort
hm2/hm2_7i76e.0:     IO Pin 040 (P3-04): IOPort
hm2/hm2_7i76e.0:     IO Pin 041 (P3-17): IOPort
hm2/hm2_7i76e.0:     IO Pin 042 (P3-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 043 (P3-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 044 (P3-07): IOPort
hm2/hm2_7i76e.0:     IO Pin 045 (P3-08): IOPort
hm2/hm2_7i76e.0:     IO Pin 046 (P3-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 047 (P3-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 048 (P3-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 049 (P3-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 050 (P3-13): IOPort
hm2/hm2_7i76e.0: registered
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
initialize: module '/home/alex/linuxcnc/configs/MJG_CNC/python/toplevel.py' init failed:
Traceback (most recent call last):

  File "/home/alex/linuxcnc/configs/MJG_CNC/python/toplevel.py", line 1, in <module>
    import remap

  File "/home/alex/linuxcnc/configs/MJG_CNC/./python/remap.py", line 1, in <module>
    from stdglue import *

ImportError: bad magic number in 'stdglue': b'\x03\xf3\r\n'

Interp ctor: can't instantiate Python plugin
initialize: module '/home/alex/linuxcnc/configs/MJG_CNC/python/toplevel.py' init failed:
Traceback (most recent call last):

  File "/home/alex/linuxcnc/configs/MJG_CNC/python/toplevel.py", line 1, in <module>
    import remap

  File "/home/alex/linuxcnc/configs/MJG_CNC/./python/remap.py", line 1, in <module>
    from stdglue import *

ImportError: bad magic number in 'stdglue': b'\x03\xf3\r\n'

Python plugin configure() failed, status = -11
Python plugin required for prolog=, but not available: 108:REMAP = M6   modalgroup=6  prolog=change_prolog   ngc=rack_change  epilog=change_epilog
Python plugin required for epilog=, but not available: 108:REMAP = M6   modalgroup=6  prolog=change_prolog   ngc=rack_change  epilog=change_epilog
hm2/hm2_7i76e.0: error finishing read! iter=970
note: MAXV     max: 80.000 units/sec 4800.000 units/min
note: LJOG     max: 80.000 units/sec 4800.000 units/min
note: LJOG default: 16.667 units/sec 1000.000 units/min
A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
4768
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Mon Nov 7 07:52:45 PM WET 2022
            UTC Date: Mon Nov 7 07:52:45 PM UTC 2022
        this program: /usr/bin/linuxcnc_info
              uptime: 19:52:45 up 15 min, 1 user, load average: 1,04, 1,25, 0,87
     lsb_release -sa: Linuxmint Linux Mint 21 21 vanessa
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/alex/linuxcnc/configs/MJG_CNC
                USER: alex
             LOGNAME: alex
                HOME: /home/alex
              EDITOR:
              VISUAL:
            LANGUAGE: en_US
                TERM: dumb
           COLORTERM:
             DISPLAY: :0
             DESKTOP: mate
        display size: 1366x768 pixels (361x203 millimeters)
                PATH: /usr/bin:/home/alex/linuxcnc/configs/MJG_CNC/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

uname items:
         nodename -n: alex-X553MA
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.0.5-1 (2022-10-28)
          machine -m: x86_64
        processor -p: x86_64
         platform -i: x86_64
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.0.0-2-rt-amd64 root=UUID=8651c386-4151-431b-934c-28fa2218a419 ro quiet splash
          model name: Intel(R) Celeron(R) CPU N2840 @ 2.16GHz
               cores: 2
             cpu MHz: 2583.353
             parport:
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
              python: Python 3.10.6
                 git: git version 2.34.1
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:

     LINUXCNCVERSION: 2.9.0~pre0
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
            REALTIME: /usr/lib/linuxcnc/realtime
                 RTS: uspace
          HALLIB_DIR: /usr/share/linuxcnc/hallib
              PYTHON: /usr/bin/python3

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
+++-===============-===================================-============-=============================================
un  linuxcnc        <none>                              <none>       (no description available)
un  linuxcnc-doc    <none>                              <none>       (no description available)
un  linuxcnc-doc-en <none>                              <none>       (no description available)
un  linuxcnc-doc-es <none>                              <none>       (no description available)
un  linuxcnc-doc-fr <none>                              <none>       (no description available)
un  linuxcnc-sim    <none>                              <none>       (no description available)
ii  linuxcnc-uspace 2.9.0~pre0+git20220906.02744cdef6-1 amd64        motion controller for CNC machines and robots




 

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

More
07 Nov 2022 22:27 #256168 by tommylight

initialize: module '/home/alex/linuxcnc/configs/MJG_CNC/python/toplevel.py' init failed:
Traceback (most recent call last):

  File "/home/alex/linuxcnc/configs/MJG_CNC/python/toplevel.py", line 1, in <module>
    import remap

  File "/home/alex/linuxcnc/configs/MJG_CNC/./python/remap.py", line 1, in <module>
    from stdglue import *

ImportError: bad magic number in 'stdglue': b'\x03\xf3\r\n'

Interp ctor: can't instantiate Python plugin
initialize: module '/home/alex/linuxcnc/configs/MJG_CNC/python/toplevel.py' init failed:
Traceback (most recent call last):

  File "/home/alex/linuxcnc/configs/MJG_CNC/python/toplevel.py", line 1, in <module>
    import remap

  File "/home/alex/linuxcnc/configs/MJG_CNC/./python/remap.py", line 1, in <module>
    from stdglue import *

ImportError: bad magic number in 'stdglue': b'\x03\xf3\r\n'

Python plugin configure() failed, status = -11
Python plugin required for prolog=, but not available: 108:REMAP = M6   modalgroup=6  prolog=change_prolog   ngc=rack_change  epilog=change_epilog
Python plugin required for epilog=, but not available: 108:REMAP = M6   modalgroup=6  prolog=change_prolog   ngc=rack_change  epilog=change_epilog


 

All those are errors related to remap/toolchange you have in one of your hal files, so not for this topic, much better to start a new topic if you intend to fix it, but, before you try that:

hm2/hm2_7i76e.0: error finishing read! iter=970

 

This is the issue we are having with new RT kernels not playing nicely with the network cards and dropping connection to Mesa board.
This means that even if you manage to fix the remap issue, this will not work for controlling a machine.
There is a whole topic regarding the kernel issue here, if you do not mind giving us some info about the PC used and what type of network card it uses, also some tips to try and see if it improves things:
forum.linuxcnc.org/27-driver-boards/4691...error-finishing-read
Thank you.
The following user(s) said Thank You: MarcoGaspar

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

More
07 Nov 2022 22:41 #256169 by tommylight
Added a warning to the original post about not using this tutorial for the time being due to some PC's having issues with network cards when using the new kernels.
Also "unsticky"-ed the topic.
Thank you.
The following user(s) said Thank You: rodw, zack, my1987toyota

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

More
18 Nov 2022 19:44 #257057 by tommylight
Updated links, latest build of LinuxCNC from 05/11/2022, and made it sticky again.
The following user(s) said Thank You: bkt, MarcoGaspar

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

More
18 Nov 2022 21:58 #257072 by MarcoGaspar
And the kernel insue ?

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

More
19 Nov 2022 03:05 #257091 by tommylight

And the kernel insue ?

If you have an Intel NIC, it works properly, at least on 5 PC's i tested in last 3 days.
Realtek does not.

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

More
21 Nov 2022 13:04 #257215 by andypugh
The following user(s) said Thank You: tommylight, bkt, my1987toyota

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

Time to create page: 0.129 seconds
Powered by Kunena Forum