Converting old config file

More
16 Feb 2024 16:15 #293517 by Anthony H
I have an old linuxcnc system with a config file from 2015, the conversion fails. I am using the standard 2.9.2 with preempt rt iso. The parallel port is using driver parport_pc.Attached is the diagnostic file

File Attachment:

File Name: linuxcnc_info.txt
File Size:4 KB
Attachments:

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

More
16 Feb 2024 16:27 #293518 by PCW
Replied by PCW on topic Converting old config file
Can you launch LinuxCNC from the command line
and post the result here?
 

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

More
16 Feb 2024 16:45 #293521 by tommylight
We need the Debug part of the error report.

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

More
16 Feb 2024 16:49 #293524 by rodw
Replied by rodw on topic Converting old config file
I have found it is easier to roughly build a new config with stepconf or pncconf to get a working base without worrying about correct stepper parameters etc then cut and paste the correct ini and hal data in as required.

Core features have not changed but there are many things that have. If you follow this approach it should become fairly obvious what has. Just leave it alone. You will sort it in an hour or so.

If its a gantry machine a lot has changed from 2.8 and on with joint axes and homing

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

More
17 Feb 2024 13:04 #293614 by Anthony H
@tommylight

Is that the LinuxCNC report? Copied into thread below
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.2
Machine configuration directory is '/home/dave/linuxcnc/configs/Routout_CNC'
Machine configuration file is '2015-07-2015_Routout_CNC.ini'
INIFILE=/home/dave/linuxcnc/configs/Routout_CNC/2015-07-2015_Routout_CNC.ini
VERSION=
halfiles =
halpaths =
COORDINATES = XYZ

PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
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
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./Routout_CNC.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Can not find -sec EMC -var VERSION -num 1
Note: Using POSIX realtime
probe_parport: dlopen: /usr/lib/linuxcnc/modules/probe_parport.so: cannot open shared object file: No such file or directory
./Routout_CNC.hal:7: waitpid failed /usr/bin/rtapi_app probe_parport
./Routout_CNC.hal:7: /usr/bin/rtapi_app exited without becoming ready
./Routout_CNC.hal:7: insmod for probe_parport failed, returned -1
2364
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: Sat 17 Feb 12:58:10 GMT 2024
UTC Date: Sat 17 Feb 12:58:10 UTC 2024
this program: /usr/bin/linuxcnc_info
uptime: 12:58:10 up 6 min, 1 user, load average: 0.53, 0.53, 0.27
lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
linuxcnc: /usr/bin/linuxcnc
pwd: /home/dave/linuxcnc/configs/Routout_CNC
USER: dave
LOGNAME: dave
HOME: /home/dave
EDITOR:
VISUAL:
LANGUAGE: en_GB:en
TERM: dumb
COLORTERM:
DISPLAY: :0.0
DESKTOP: lightdm-xsession
display size: 1280x1024 pixels (338x270 millimeters)
PATH: /usr/bin:/home/dave/linuxcnc/configs/Routout_CNC/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
nodename -n: debian
kernel-name -s: Linux
kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
machine -m: x86_64
processor -p: unknown
platform -i: unknown
oper system -o: GNU/Linux

/proc items:
cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=092d6be6-5ee6-4592-8fe2-8d40268dcc58 ro quiet
model name: Intel(R) Pentium(R) CPU G645 @ 2.90GHz
cores: 2
cpu MHz: 2859.161
parport: 0000-0000 : parport0
serial:

Versions:
gcc: gcc (Debian 12.2.0-14) 12.2.0
python: Python 3.11.2
git: not_in_PATH
git commit: NA
tcl: 8.6
tk: 8.6
glade: not_in_PATH

linuxcnc_var all:

LINUXCNCVERSION: 2.9.2
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-dev <none> <none> (no description available)
un linuxcnc-doc <none> <none> (no description available)
ii linuxcnc-doc-de 1:2.9.2 all motion controller for CNC machines and robots (German documentation)
ii linuxcnc-doc-en 1:2.9.2 all motion controller for CNC machines and robots (English documentation)
ii linuxcnc-doc-es 1:2.9.2 all motion controller for CNC machines and robots (Spanish documentation)
ii linuxcnc-doc-fr 1:2.9.2 all motion controller for CNC machines and robots (French documentation)
un linuxcnc-sim <none> <none> (no description available)
un linuxcnc-sim-dev <none> <none> (no description available)
ii linuxcnc-uspace 1:2.9.2 amd64 motion controller for CNC machines and robots
ii linuxcnc-uspace-dev 1:2.9.2 amd64 PC based motion controller for real-time Linux

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

More
17 Feb 2024 13:06 #293615 by Anthony H
@PCW

Command Line responses

LINUXCNC - 2.9.2
Machine configuration directory is '/home/dave/linuxcnc/configs/Routout_CNC'
Machine configuration file is '2015-07-2015_Routout_CNC.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./Routout_CNC.hal
probe_parport: dlopen: /usr/lib/linuxcnc/modules/probe_parport.so: cannot open shared object file: No such file or directory
./Routout_CNC.hal:7: waitpid failed /usr/bin/rtapi_app probe_parport
./Routout_CNC.hal:7: /usr/bin/rtapi_app exited without becoming ready
./Routout_CNC.hal:7: insmod for probe_parport failed, returned -1
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/dave/linuxcnc_debug.txt
and
/home/dave/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
17 Feb 2024 13:10 #293616 by Anthony H
@tommylight

Found the files
Attachments:

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

More
17 Feb 2024 13:18 #293618 by Aciera
Replied by Aciera on topic Converting old config file
Try and remove this line from 'Routout_CNC.hal' (if unsure post the file):

loadrt probe_parport

I think this component has been dropped.

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

More
17 Feb 2024 14:03 #293623 by tommylight

Try and remove this line from 'Routout_CNC.hal' (if unsure post the file):

loadrt probe_parport

I think this component has been dropped.

Exactly !

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

More
17 Feb 2024 14:33 #293628 by Anthony H
@Aciera @tommylight

Put a # next to the suggested line. Linuxcnc now fires up with asking for a file conversion.

Get a message on screen saying no parport registered at 0x378 This is not always an error continuing.

The next line in Routout_CNC.hal is:

loadrt hal_parport cfg="0x378 out "

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

Time to create page: 0.199 seconds
Powered by Kunena Forum