6i25 +2x5i20 mixed operation possible ?

More
04 May 2019 10:29 - 04 May 2019 11:34 #132716 by Weiler810T
Hello

I have 2 5i20 + 5 x 7i37COM + 7i48 Mesacards in my Mill and works fine.
i want to add a 6i25 +7i74 for SSERIAL Encoders, but this ends in a crash :unsure:
Verbose mode on
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.8.0-pre1-4700-gedd61b82a
Machine configuration directory is '/home/chiron/linuxcnc/configs/chironFZ16'
Machine configuration file is 'chiron.ini'
INIFILE=/home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
VERSION=1.1
PARAMETER_FILE=hm2-servo.var
TASK=milltask
HALUI=halui
DISPLAY=gmoccapy
COORDINATES=X Y Z
KINEMATICS=trivkins
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
Found file(REL): ./hm2-servo.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:04:00.0
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
hm2/hm2_5i25.0: 34 I/O Pins used:
hm2/hm2_5i25.0:     IO Pin 000 (P3-01): IOPort
hm2/hm2_5i25.0:     IO Pin 001 (P3-14): IOPort
hm2/hm2_5i25.0:     IO Pin 002 (P3-02): IOPort
hm2/hm2_5i25.0:     IO Pin 003 (P3-15): IOPort
hm2/hm2_5i25.0:     IO Pin 004 (P3-03): IOPort
hm2/hm2_5i25.0:     IO Pin 005 (P3-16): IOPort
hm2/hm2_5i25.0:     IO Pin 006 (P3-04): IOPort
hm2/hm2_5i25.0:     IO Pin 007 (P3-17): IOPort
hm2/hm2_5i25.0:     IO Pin 008 (P3-05): IOPort
hm2/hm2_5i25.0:     IO Pin 009 (P3-06): IOPort
hm2/hm2_5i25.0:     IO Pin 010 (P3-07): IOPort
hm2/hm2_5i25.0:     IO Pin 011 (P3-08): IOPort
hm2/hm2_5i25.0:     IO Pin 012 (P3-09): IOPort
hm2/hm2_5i25.0:     IO Pin 013 (P3-10): IOPort
hm2/hm2_5i25.0:     IO Pin 014 (P3-11): Encoder #0, pin Index (Input)
hm2/hm2_5i25.0:     IO Pin 015 (P3-12): Encoder #0, pin B (Input)
hm2/hm2_5i25.0:     IO Pin 016 (P3-13): Encoder #0, pin A (Input)
hm2/hm2_5i25.0:     IO Pin 017 (P2-01): IOPort
hm2/hm2_5i25.0:     IO Pin 018 (P2-14): IOPort
hm2/hm2_5i25.0:     IO Pin 019 (P2-02): IOPort
hm2/hm2_5i25.0:     IO Pin 020 (P2-15): IOPort
hm2/hm2_5i25.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_5i25.0:     IO Pin 022 (P2-16): IOPort
hm2/hm2_5i25.0:     IO Pin 023 (P2-04): IOPort
hm2/hm2_5i25.0:     IO Pin 024 (P2-17): IOPort
hm2/hm2_5i25.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_5i25.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_5i25.0:     IO Pin 027 (P2-07): IOPort
hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
hm2/hm2_5i25.0:     IO Pin 029 (P2-09): IOPort
hm2/hm2_5i25.0:     IO Pin 030 (P2-10): IOPort
hm2/hm2_5i25.0:     IO Pin 031 (P2-11): Encoder #1, pin Index (Input)
hm2/hm2_5i25.0:     IO Pin 032 (P2-12): Encoder #1, pin B (Input)
hm2/hm2_5i25.0:     IO Pin 033 (P2-13): Encoder #1, pin A (Input)
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:04:00.0
hm2_pci: discovered 5i20 at 0000:06:00.0
hm2/hm2_5i20.0: 72 I/O Pins used:
hm2/hm2_5i20.0:     IO Pin 000 (P2-01): IOPort
hm2/hm2_5i20.0:     IO Pin 001 (P2-03): IOPort
hm2/hm2_5i20.0:     IO Pin 002 (P2-05): IOPort
hm2/hm2_5i20.0:     IO Pin 003 (P2-07): IOPort
hm2/hm2_5i20.0:     IO Pin 004 (P2-09): IOPort
hm2/hm2_5i20.0:     IO Pin 005 (P2-11): IOPort
hm2/hm2_5i20.0:     IO Pin 006 (P2-13): IOPort
hm2/hm2_5i20.0:     IO Pin 007 (P2-15): IOPort
hm2/hm2_5i20.0:     IO Pin 008 (P2-17): IOPort
hm2/hm2_5i20.0:     IO Pin 009 (P2-19): IOPort
hm2/hm2_5i20.0:     IO Pin 010 (P2-21): IOPort
hm2/hm2_5i20.0:     IO Pin 011 (P2-23): IOPort
hm2/hm2_5i20.0:     IO Pin 012 (P2-25): IOPort
hm2/hm2_5i20.0:     IO Pin 013 (P2-27): IOPort
hm2/hm2_5i20.0:     IO Pin 014 (P2-29): IOPort
hm2/hm2_5i20.0:     IO Pin 015 (P2-31): IOPort
hm2/hm2_5i20.0:     IO Pin 016 (P2-33): IOPort
hm2/hm2_5i20.0:     IO Pin 017 (P2-35): IOPort
hm2/hm2_5i20.0:     IO Pin 018 (P2-37): IOPort
hm2/hm2_5i20.0:     IO Pin 019 (P2-39): IOPort
hm2/hm2_5i20.0:     IO Pin 020 (P2-41): IOPort
hm2/hm2_5i20.0:     IO Pin 021 (P2-43): IOPort
hm2/hm2_5i20.0:     IO Pin 022 (P2-45): IOPort
hm2/hm2_5i20.0:     IO Pin 023 (P2-47): IOPort
hm2/hm2_5i20.0:     IO Pin 024 (P3-01): IOPort
hm2/hm2_5i20.0:     IO Pin 025 (P3-03): IOPort
hm2/hm2_5i20.0:     IO Pin 026 (P3-05): IOPort
hm2/hm2_5i20.0:     IO Pin 027 (P3-07): IOPort
hm2/hm2_5i20.0:     IO Pin 028 (P3-09): IOPort
hm2/hm2_5i20.0:     IO Pin 029 (P3-11): IOPort
hm2/hm2_5i20.0:     IO Pin 030 (P3-13): IOPort
hm2/hm2_5i20.0:     IO Pin 031 (P3-15): IOPort
hm2/hm2_5i20.0:     IO Pin 032 (P3-17): IOPort
hm2/hm2_5i20.0:     IO Pin 033 (P3-19): IOPort
hm2/hm2_5i20.0:     IO Pin 034 (P3-21): IOPort
hm2/hm2_5i20.0:     IO Pin 035 (P3-23): IOPort
hm2/hm2_5i20.0:     IO Pin 036 (P3-25): IOPort
hm2/hm2_5i20.0:     IO Pin 037 (P3-27): IOPort
hm2/hm2_5i20.0:     IO Pin 038 (P3-29): IOPort
hm2/hm2_5i20.0:     IO Pin 039 (P3-31): IOPort
hm2/hm2_5i20.0:     IO Pin 040 (P3-33): IOPort
hm2/hm2_5i20.0:     IO Pin 041 (P3-35): IOPort
hm2/hm2_5i20.0:     IO Pin 042 (P3-37): IOPort
hm2/hm2_5i20.0:     IO Pin 043 (P3-39): IOPort
hm2/hm2_5i20.0:     IO Pin 044 (P3-41): IOPort
hm2/hm2_5i20.0:     IO Pin 045 (P3-43): IOPort
hm2/hm2_5i20.0:     IO Pin 046 (P3-45): IOPort
hm2/hm2_5i20.0:     IO Pin 047 (P3-47): IOPort
hm2/hm2_5i20.0:     IO Pin 048 (P4-01): IOPort
hm2/hm2_5i20.0:     IO Pin 049 (P4-03): IOPort
hm2/hm2_5i20.0:     IO Pin 050 (P4-05): IOPort
hm2/hm2_5i20.0:     IO Pin 051 (P4-07): IOPort
hm2/hm2_5i20.0:     IO Pin 052 (P4-09): IOPort
hm2/hm2_5i20.0:     IO Pin 053 (P4-11): IOPort
hm2/hm2_5i20.0:     IO Pin 054 (P4-13): IOPort
hm2/hm2_5i20.0:     IO Pin 055 (P4-15): IOPort
hm2/hm2_5i20.0:     IO Pin 056 (P4-17): IOPort
hm2/hm2_5i20.0:     IO Pin 057 (P4-19): IOPort
hm2/hm2_5i20.0:     IO Pin 058 (P4-21): IOPort
hm2/hm2_5i20.0:     IO Pin 059 (P4-23): IOPort
hm2/hm2_5i20.0:     IO Pin 060 (P4-25): IOPort
hm2/hm2_5i20.0:     IO Pin 061 (P4-27): IOPort
hm2/hm2_5i20.0:     IO Pin 062 (P4-29): IOPort
hm2/hm2_5i20.0:     IO Pin 063 (P4-31): IOPort
hm2/hm2_5i20.0:     IO Pin 064 (P4-33): IOPort
hm2/hm2_5i20.0:     IO Pin 065 (P4-35): IOPort
hm2/hm2_5i20.0:     IO Pin 066 (P4-37): IOPort
hm2/hm2_5i20.0:     IO Pin 067 (P4-39): IOPort
hm2/hm2_5i20.0:     IO Pin 068 (P4-41): IOPort
hm2/hm2_5i20.0:     IO Pin 069 (P4-43): IOPort
hm2/hm2_5i20.0:     IO Pin 070 (P4-45): IOPort
hm2/hm2_5i20.0:     IO Pin 071 (P4-47): IOPort
hm2/hm2_5i20.0: registered
hm2_5i20.0: initialized AnyIO board at 0000:06:00.0
hm2_pci: discovered 5i20 at 0000:06:01.0
hm2: no firmware specified in config modparam!  the board had better have firmware configured already, or this won't work
hm2/hm2_5i20.1: invalid cookie, got 0x00000100, expected 0x55AACAFE
hm2/hm2_5i20.1: FPGA failed to initialize, or unexpected firmware?
hm2_5i20.1: board fails HM2 registration
RTAPI_PCI: Unmapped 65536 bytes at 0x7f95a60b6000
Driver probe function failed!
hm2_5i25.0: dropping AnyIO board at 0000:04:00.0
hm2/hm2_5i25.0: unregistered
RTAPI_PCI: Unmapped 65536 bytes at 0x7f95a625c000
hm2_5i20.0: dropping AnyIO board at 0000:06:00.0
hm2/hm2_5i20.0: unregistered
RTAPI_PCI: Unmapped 65536 bytes at 0x7f95a60c6000
hm2_pci: error registering PCI driver
hm2_pci: rtapi_app_main: Operation not permitted (-1)
./hm2-servo.hal:40: waitpid failed /usr/bin/rtapi_app hm2_pci
./hm2-servo.hal:40: /usr/bin/rtapi_app exited without becoming ready
./hm2-servo.hal:40: insmod for hm2_pci failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Note: Using POSIX realtime
Removing NML shared memory segments
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/chiron/linuxcnc_debug.txt
and

Debug Mode
Debug mode on
+ getopts dvlhkr opt
+ shift 1
+ case "" in
+ '[' -z ']'
+ tty -s
+ trap ErrorCheck EXIT
+ '[' '!' -z chiron.ini ']'
+ case "$1" in
++ pwd
+ INIFILE=/home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+ shift
+ EXTRA_ARGS=
+ RUN_IN_PLACE=no
+ echo RUN_IN_PLACE=no
+ LINUXCNCVERSION=2.8.0-pre1-4700-gedd61b82a
+ export LINUXCNCVERSION
+ INIVAR=inivar
+ HALCMD='halcmd '
+ PICKCONFIG='/usr/bin/wish8.6 /usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl'
+ LINUXCNC_EMCSH=/usr/bin/wish8.6
+ echo LINUXCNC_DIR=
+ echo LINUXCNC_BIN_DIR=/usr/bin
+ echo LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
+ echo LINUXCNC_SCRIPT_DIR=
+ echo LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
+ echo LINUXCNC_CONFIG_DIR=
+ echo LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
+ echo INIVAR=inivar
+ echo HALCMD=halcmd
+ echo LINUXCNC_EMCSH=/usr/bin/wish8.6
+ export LINUXCNC_TCL_DIR
+ export LINUXCNC_EMCSH
+ export LINUXCNC_HELP_DIR
+ export LINUXCNC_LANG_DIR
+ export REALTIME
+ export HALCMD
+ export LINUXCNC_NCFILES_DIR
+ '[' -z ']'
+ echo 'LINUXCNC - 2.8.0-pre1-4700-gedd61b82a'
LINUXCNC - 2.8.0-pre1-4700-gedd61b82a
+ '[' '!' -z '' ']'
+ '[' '!' -n /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini ']'
+ '[' '!' -n /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini ']'
++ handle_includes /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
++ hdr='# handle_includes():'
++ inifile=/home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+++ dirname /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
++ cd /home/chiron/linuxcnc/configs/chironFZ16
++ /bin/grep '^#INCLUDE' /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
++ status=1
++ '[' 1 -ne 0 ']'
++ echo /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
++ return 0
+ INIFILE=/home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+ INI_NAME=chiron.ini
+ INI_DIR=/home/chiron/linuxcnc/configs/chironFZ16
+ CONFIG_DIR=/home/chiron/linuxcnc/configs/chironFZ16
+ export CONFIG_DIR
+ export PATH=/home/chiron/linuxcnc/configs/chironFZ16/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/home/chiron/linuxcnc/configs/chironFZ16/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ '[' -z ']'
+ echo 'Machine configuration directory is '\''/home/chiron/linuxcnc/configs/chironFZ16'\'''
Machine configuration directory is '/home/chiron/linuxcnc/configs/chironFZ16'
+ echo 'Machine configuration file is '\''chiron.ini'\'''
Machine configuration file is 'chiron.ini'
+ '[' '!' -f /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini ']'
+ echo INIFILE=/home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+ retval=
+ GetFromIni VERSION EMC
+ name=VERSION
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var VERSION -sec EMC
+ retval=1.1
+ '[' '!' -n VERSION ']'
+ echo VERSION=1.1
+ '[' 1.1 '!=' 1.1 ']'
+ /usr/bin/tclsh8.6 /usr/share/linuxcnc/hallib/check_config.tcl /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+ exitval=0
+ case "$exitval" in
+ GetFromIni PARAMETER_FILE RS274NGC
+ name=PARAMETER_FILE
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var PARAMETER_FILE -sec RS274NGC
+ retval=hm2-servo.var
+ '[' '!' -n PARAMETER_FILE ']'
+ echo PARAMETER_FILE=hm2-servo.var
+ RS274NGC_PARAMFILE=hm2-servo.var
+ GetFromIniEx MOT MOT EMCMOT EMCMOT motmod
+ original_var='[MOT]MOT'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var MOT -sec MOT
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var EMCMOT -sec EMCMOT
+ retval=motmod
+ return
+ EMCMOT=motmod.so
+ GetFromIniEx IO IO EMCIO EMCIO io
+ original_var='[IO]IO'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var IO -sec IO
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var EMCIO -sec EMCIO
+ retval=io
+ return
+ EMCIO=io
+ GetFromIni TASK TASK
+ name=TASK
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var TASK -sec TASK
+ retval=milltask
+ '[' '!' -n TASK ']'
+ echo TASK=milltask
+ EMCTASK=milltask
+ '[' milltask = emctask ']'
+ EMCSERVER=linuxcncsvr
+ GetFromIniQuiet HALUI HAL
+ name=HALUI
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var HALUI -sec HAL
+ retval=halui
+ '[' '!' -n HALUI ']'
+ echo HALUI=halui
+ HALUI=halui
+ GetFromIni DISPLAY DISPLAY
+ name=DISPLAY
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var DISPLAY -sec DISPLAY
+ retval=gmoccapy
+ '[' '!' -n DISPLAY ']'
+ echo DISPLAY=gmoccapy
++ set -- gmoccapy
++ echo gmoccapy
+ EMCDISPLAY=gmoccapy
++ set -- gmoccapy
++ shift
++ echo
+ EMCDISPLAYARGS=
+ case $EMCDISPLAY in
+ GetFromIniEx NML_FILE LINUXCNC NML_FILE EMC /usr/share/linuxcnc/linuxcnc.nml
+ original_var='[LINUXCNC]NML_FILE'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var NML_FILE -sec LINUXCNC
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var NML_FILE -sec EMC
+ retval=
+ shift 2
+ '[' 1 -ge 2 ']'
+ '[' 1 -eq 0 ']'
+ retval=/usr/share/linuxcnc/linuxcnc.nml
+ NMLFILE=/usr/share/linuxcnc/linuxcnc.nml
+ export NMLFILE
+ GetFromIni COORDINATES TRAJ
+ name=COORDINATES
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var COORDINATES -sec TRAJ
+ retval='X Y Z'
+ '[' '!' -n COORDINATES ']'
+ echo 'COORDINATES=X Y Z'
+ TRAJ_COORDINATES='X Y Z'
+ export TRAJ_COORDINATES
+ GetFromIni KINEMATICS KINS
+ name=KINEMATICS
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var KINEMATICS -sec KINS
+ retval=trivkins
+ '[' '!' -n KINEMATICS ']'
+ echo KINEMATICS=trivkins
+ KINS_KINEMATICS=trivkins
+ export KINS_KINEMATICS
+ KILL_TASK=
+ KILL_TIMEOUT=20
+ LOCKFILE=/tmp/linuxcnc.lock
+ '[' -f /tmp/linuxcnc.lock ']'
+ echo Starting LinuxCNC...
Starting LinuxCNC...
+ trap 'Cleanup ; exit 0' SIGINT SIGTERM
+ cd /home/chiron/linuxcnc/configs/chironFZ16
+ touch /tmp/linuxcnc.lock
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var INTRO_GRAPHIC -sec DISPLAY
+ img=linuxcnc.gif
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var INTRO_TIME -sec DISPLAY
+ imgtime=2
+ '[' 2 = '' ']'
+ '[' linuxcnc.gif '!=' '' ']'
+ '[' -e linuxcnc.gif ']'
+ '[' -e /home/chiron/linuxcnc/configs/chironFZ16/linuxcnc.gif ']'
+ '[' -e /usr/share/linuxcnc/linuxcnc.gif ']'
+ img=/usr/share/linuxcnc/linuxcnc.gif
+ '[' /usr/share/linuxcnc/linuxcnc.gif '!=' '' ']'
+ '[' -x /usr/lib/tcltk/linuxcnc/bin/popimage ']'
+ echo 'Starting LinuxCNC server program: linuxcncsvr'
+ /usr/lib/tcltk/linuxcnc/bin/popimage /usr/share/linuxcnc/linuxcnc.gif 2
+ program_available linuxcncsvr
+ type -path linuxcncsvr
+ export INI_FILE_NAME=/home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+ INI_FILE_NAME=/home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+ linuxcncsvr -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+ echo 'Loading Real Time OS, RTAPI, and HAL_LIB modules'
+ /etc/init.d/realtime start
+ export HAL_RTMOD_DIR=/usr/lib/linuxcnc/modules
+ HAL_RTMOD_DIR=/usr/lib/linuxcnc/modules
+ '[' io '!=' '' ']'
+ echo 'Starting LinuxCNC IO program: io'
+ program_available io
+ type -path io
+ halcmd loadusr -Wn iocontrol io -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
+ '[' -n halui ']'
+ echo 'Starting HAL User Interface program: halui'
+ program_available halui
+ type -path halui
+ halcmd loadusr -Wn halui halui -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var TWOPASS -sec HAL -num 1
+ TWOPASS=
+ '[' -n '' ']'
+ NUM=1
++ inivar -tildeexpand -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var HALFILE -sec HAL -num 1
+ CFGFILE=hm2-servo.hal
+ '[' -n hm2-servo.hal ']'
+ IFS='\ '
+ read CFGFILE CFGFILE_ARGS
+ foundmsg=
+ saveIFS=' 	
'
+ IFS=:
+ explicit_file_in_hallib=hm2-servo.hal
+ '[' -z hm2-servo.hal ']'
+ '[' hm2-servo.hal '!=' hm2-servo.hal ']'
+ '[' h = / ']'
+ for pathdir in $HALLIB_PATH
+ foundfile=./hm2-servo.hal
+ '[' -r ./hm2-servo.hal ']'
+ '[' . = . ']'
+ foundmsg='Found file(REL): ./hm2-servo.hal'
+ break
+ '[' -d ./hm2-servo.hal ']'
+ IFS=' 	
'
+ '[' -z 'Found file(REL): ./hm2-servo.hal' ']'
+ echo 'Found file(REL): ./hm2-servo.hal'
Found file(REL): ./hm2-servo.hal
+ CFGFILE=./hm2-servo.hal
+ case $CFGFILE in
+ halcmd -i /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -f ./hm2-servo.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:04:00.0
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
hm2/hm2_5i25.0: 34 I/O Pins used:
hm2/hm2_5i25.0:     IO Pin 000 (P3-01): IOPort
hm2/hm2_5i25.0:     IO Pin 001 (P3-14): IOPort
hm2/hm2_5i25.0:     IO Pin 002 (P3-02): IOPort
hm2/hm2_5i25.0:     IO Pin 003 (P3-15): IOPort
hm2/hm2_5i25.0:     IO Pin 004 (P3-03): IOPort
hm2/hm2_5i25.0:     IO Pin 005 (P3-16): IOPort
hm2/hm2_5i25.0:     IO Pin 006 (P3-04): IOPort
hm2/hm2_5i25.0:     IO Pin 007 (P3-17): IOPort
hm2/hm2_5i25.0:     IO Pin 008 (P3-05): IOPort
hm2/hm2_5i25.0:     IO Pin 009 (P3-06): IOPort
hm2/hm2_5i25.0:     IO Pin 010 (P3-07): IOPort
hm2/hm2_5i25.0:     IO Pin 011 (P3-08): IOPort
hm2/hm2_5i25.0:     IO Pin 012 (P3-09): IOPort
hm2/hm2_5i25.0:     IO Pin 013 (P3-10): IOPort
hm2/hm2_5i25.0:     IO Pin 014 (P3-11): Encoder #0, pin Index (Input)
hm2/hm2_5i25.0:     IO Pin 015 (P3-12): Encoder #0, pin B (Input)
hm2/hm2_5i25.0:     IO Pin 016 (P3-13): Encoder #0, pin A (Input)
hm2/hm2_5i25.0:     IO Pin 017 (P2-01): IOPort
hm2/hm2_5i25.0:     IO Pin 018 (P2-14): IOPort
hm2/hm2_5i25.0:     IO Pin 019 (P2-02): IOPort
hm2/hm2_5i25.0:     IO Pin 020 (P2-15): IOPort
hm2/hm2_5i25.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_5i25.0:     IO Pin 022 (P2-16): IOPort
hm2/hm2_5i25.0:     IO Pin 023 (P2-04): IOPort
hm2/hm2_5i25.0:     IO Pin 024 (P2-17): IOPort
hm2/hm2_5i25.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_5i25.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_5i25.0:     IO Pin 027 (P2-07): IOPort
hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
hm2/hm2_5i25.0:     IO Pin 029 (P2-09): IOPort
hm2/hm2_5i25.0:     IO Pin 030 (P2-10): IOPort
hm2/hm2_5i25.0:     IO Pin 031 (P2-11): Encoder #1, pin Index (Input)
hm2/hm2_5i25.0:     IO Pin 032 (P2-12): Encoder #1, pin B (Input)
hm2/hm2_5i25.0:     IO Pin 033 (P2-13): Encoder #1, pin A (Input)
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:04:00.0
hm2_pci: discovered 5i20 at 0000:06:00.0
hm2/hm2_5i20.0: 72 I/O Pins used:
hm2/hm2_5i20.0:     IO Pin 000 (P2-01): IOPort
hm2/hm2_5i20.0:     IO Pin 001 (P2-03): IOPort
hm2/hm2_5i20.0:     IO Pin 002 (P2-05): IOPort
hm2/hm2_5i20.0:     IO Pin 003 (P2-07): IOPort
hm2/hm2_5i20.0:     IO Pin 004 (P2-09): IOPort
hm2/hm2_5i20.0:     IO Pin 005 (P2-11): IOPort
hm2/hm2_5i20.0:     IO Pin 006 (P2-13): IOPort
hm2/hm2_5i20.0:     IO Pin 007 (P2-15): IOPort
hm2/hm2_5i20.0:     IO Pin 008 (P2-17): IOPort
hm2/hm2_5i20.0:     IO Pin 009 (P2-19): IOPort
hm2/hm2_5i20.0:     IO Pin 010 (P2-21): IOPort
hm2/hm2_5i20.0:     IO Pin 011 (P2-23): IOPort
hm2/hm2_5i20.0:     IO Pin 012 (P2-25): IOPort
hm2/hm2_5i20.0:     IO Pin 013 (P2-27): IOPort
hm2/hm2_5i20.0:     IO Pin 014 (P2-29): IOPort
hm2/hm2_5i20.0:     IO Pin 015 (P2-31): IOPort
hm2/hm2_5i20.0:     IO Pin 016 (P2-33): IOPort
hm2/hm2_5i20.0:     IO Pin 017 (P2-35): IOPort
hm2/hm2_5i20.0:     IO Pin 018 (P2-37): IOPort
hm2/hm2_5i20.0:     IO Pin 019 (P2-39): IOPort
hm2/hm2_5i20.0:     IO Pin 020 (P2-41): IOPort
hm2/hm2_5i20.0:     IO Pin 021 (P2-43): IOPort
hm2/hm2_5i20.0:     IO Pin 022 (P2-45): IOPort
hm2/hm2_5i20.0:     IO Pin 023 (P2-47): IOPort
hm2/hm2_5i20.0:     IO Pin 024 (P3-01): IOPort
hm2/hm2_5i20.0:     IO Pin 025 (P3-03): IOPort
hm2/hm2_5i20.0:     IO Pin 026 (P3-05): IOPort
hm2/hm2_5i20.0:     IO Pin 027 (P3-07): IOPort
hm2/hm2_5i20.0:     IO Pin 028 (P3-09): IOPort
hm2/hm2_5i20.0:     IO Pin 029 (P3-11): IOPort
hm2/hm2_5i20.0:     IO Pin 030 (P3-13): IOPort
hm2/hm2_5i20.0:     IO Pin 031 (P3-15): IOPort
hm2/hm2_5i20.0:     IO Pin 032 (P3-17): IOPort
hm2/hm2_5i20.0:     IO Pin 033 (P3-19): IOPort
hm2/hm2_5i20.0:     IO Pin 034 (P3-21): IOPort
hm2/hm2_5i20.0:     IO Pin 035 (P3-23): IOPort
hm2/hm2_5i20.0:     IO Pin 036 (P3-25): IOPort
hm2/hm2_5i20.0:     IO Pin 037 (P3-27): IOPort
hm2/hm2_5i20.0:     IO Pin 038 (P3-29): IOPort
hm2/hm2_5i20.0:     IO Pin 039 (P3-31): IOPort
hm2/hm2_5i20.0:     IO Pin 040 (P3-33): IOPort
hm2/hm2_5i20.0:     IO Pin 041 (P3-35): IOPort
hm2/hm2_5i20.0:     IO Pin 042 (P3-37): IOPort
hm2/hm2_5i20.0:     IO Pin 043 (P3-39): IOPort
hm2/hm2_5i20.0:     IO Pin 044 (P3-41): IOPort
hm2/hm2_5i20.0:     IO Pin 045 (P3-43): IOPort
hm2/hm2_5i20.0:     IO Pin 046 (P3-45): IOPort
hm2/hm2_5i20.0:     IO Pin 047 (P3-47): IOPort
hm2/hm2_5i20.0:     IO Pin 048 (P4-01): IOPort
hm2/hm2_5i20.0:     IO Pin 049 (P4-03): IOPort
hm2/hm2_5i20.0:     IO Pin 050 (P4-05): IOPort
hm2/hm2_5i20.0:     IO Pin 051 (P4-07): IOPort
hm2/hm2_5i20.0:     IO Pin 052 (P4-09): IOPort
hm2/hm2_5i20.0:     IO Pin 053 (P4-11): IOPort
hm2/hm2_5i20.0:     IO Pin 054 (P4-13): IOPort
hm2/hm2_5i20.0:     IO Pin 055 (P4-15): IOPort
hm2/hm2_5i20.0:     IO Pin 056 (P4-17): IOPort
hm2/hm2_5i20.0:     IO Pin 057 (P4-19): IOPort
hm2/hm2_5i20.0:     IO Pin 058 (P4-21): IOPort
hm2/hm2_5i20.0:     IO Pin 059 (P4-23): IOPort
hm2/hm2_5i20.0:     IO Pin 060 (P4-25): IOPort
hm2/hm2_5i20.0:     IO Pin 061 (P4-27): IOPort
hm2/hm2_5i20.0:     IO Pin 062 (P4-29): IOPort
hm2/hm2_5i20.0:     IO Pin 063 (P4-31): IOPort
hm2/hm2_5i20.0:     IO Pin 064 (P4-33): IOPort
hm2/hm2_5i20.0:     IO Pin 065 (P4-35): IOPort
hm2/hm2_5i20.0:     IO Pin 066 (P4-37): IOPort
hm2/hm2_5i20.0:     IO Pin 067 (P4-39): IOPort
hm2/hm2_5i20.0:     IO Pin 068 (P4-41): IOPort
hm2/hm2_5i20.0:     IO Pin 069 (P4-43): IOPort
hm2/hm2_5i20.0:     IO Pin 070 (P4-45): IOPort
hm2/hm2_5i20.0:     IO Pin 071 (P4-47): IOPort
hm2/hm2_5i20.0: registered
hm2_5i20.0: initialized AnyIO board at 0000:06:00.0
hm2_pci: discovered 5i20 at 0000:06:01.0
hm2: no firmware specified in config modparam!  the board had better have firmware configured already, or this won't work
hm2/hm2_5i20.1: invalid cookie, got 0x00000100, expected 0x55AACAFE
hm2/hm2_5i20.1: FPGA failed to initialize, or unexpected firmware?
hm2_5i20.1: board fails HM2 registration
RTAPI_PCI: Unmapped 65536 bytes at 0x7f0e9edf7000
Driver probe function failed!
hm2_5i25.0: dropping AnyIO board at 0000:04:00.0
hm2/hm2_5i25.0: unregistered
RTAPI_PCI: Unmapped 65536 bytes at 0x7f0e9ef9d000
hm2_5i20.0: dropping AnyIO board at 0000:06:00.0
hm2/hm2_5i20.0: unregistered
RTAPI_PCI: Unmapped 65536 bytes at 0x7f0e9ee07000
hm2_pci: error registering PCI driver
hm2_pci: rtapi_app_main: Operation not permitted (-1)
./hm2-servo.hal:40: waitpid failed /usr/bin/rtapi_app hm2_pci
./hm2-servo.hal:40: /usr/bin/rtapi_app exited without becoming ready
./hm2-servo.hal:40: insmod for hm2_pci failed, returned -1
+ '[' '' = '' ']'
+ Cleanup
+ echo 'Shutting down and cleaning up LinuxCNC...'
Shutting down and cleaning up LinuxCNC...
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x linuxcncpanel
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x iosh
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x linuxcncsh
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x linuxcncrsh
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x linuxcnctop
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x mdi
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x debuglevel
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x gmoccapy
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x gscreen
+ program_available axis-remote
+ type -path axis-remote
+ '[' '!' -z :0.0 ']'
+ axis-remote --ping
+ '[' '' = other ']'
++ inivar -ini /home/chiron/linuxcnc/configs/chironFZ16/chiron.ini -var SHUTDOWN -sec HAL
+ SHUTDOWN=
+ '[' -n '' ']'
+ for KILL_TASK in linuxcncsvr milltask
+ /bin/pidof -x linuxcncsvr
3837
+ KillTaskWithTimeout
+ '[' '!' -n '' ']'
++ /bin/pidof -x linuxcncsvr
+ KILL_PIDS=3837
+ '[' '!' -n 3837 ']'
+ local NPROCS
+ for KILL_PID in $KILL_PIDS
+ /bin/ps -o comm= 3837
+ /bin/grep -q '<defunct>'
+ /bin/kill 3837
+ WAIT=20
+ '[' 20 -gt 1 ']'
++ /bin/ps -o comm= 3837
++ /bin/grep -v '<defunct>'
++ wc -l
+ NPROCS=0
+ '[' 0 -gt 0 ']'
+ WAIT=0
+ '[' 0 -gt 1 ']'
+ '[' 0 -gt 0 ']'
+ '[' 0 -gt 0 ']'
+ KILL_PIDS=
+ KILL_TASK=
+ for KILL_TASK in linuxcncsvr milltask
+ /bin/pidof -x milltask
+ echo 'Stopping realtime threads'
Stopping realtime threads
+ halcmd stop
+ echo 'Unloading hal components'
Unloading hal components
+ halcmd unload all
hm2: unloading
++ seq 10
+ for i in `seq 10`
++ halcmd list comp
++ wc -w
+ '[' 2 = 1 ']'
+ sleep .2
+ for i in `seq 10`
++ halcmd list comp
++ wc -w
+ '[' 2 = 1 ']'
+ sleep .2
+ for i in `seq 10`
++ halcmd list comp
++ wc -w
+ '[' 1 = 1 ']'
+ break
+ echo 'Removing HAL_LIB, RTAPI, and Real Time OS modules'
+ /etc/init.d/realtime stop
Note: Using POSIX realtime
+ echo 'Removing NML shared memory segments'
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1001
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1002
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1003
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1004
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1005
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ '[' -f /tmp/linuxcnc.lock ']'
+ rm /tmp/linuxcnc.lock
+ exit -1
+ ErrorCheck
+ result=255
+ '[' '!' -z :0.0 ']'
+ echo 'catch {send -async popimage destroy .}; destroy .'
+ /usr/bin/wish8.6
+ '[' 255 -ne 0 ']'
+ tty -s
+ '[' -f /dev/fd/2 ']'
+ echo '(debug information was sent to stderr)'
+ '[' -f /tmp/linuxcnc.print.6ubxST ']'
+ cp /tmp/linuxcnc.print.6ubxST /home/chiron/linuxcnc_print.txt
+ echo 'LinuxCNC terminated with an error.  You can find more information in the log:
    /home/chiron/linuxcnc_debug.txt
and
    /home/chiron/linuxcnc_print.txt
as well as in the output of the shell command '\''dmesg'\'' and in the terminal'
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/chiron/linuxcnc_debug.txt
and
    /home/chiron/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
+ rm -f /dev/fd/2 /tmp/linuxcnc.print.6ubxST
+ exit 255
chiron@chiron:~/linuxcnc/configs/chironFZ16$ 
Last edit: 04 May 2019 11:34 by Weiler810T. Reason: debug mode added

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

More
04 May 2019 10:46 #132722 by PCW
What error do you get?

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

More
04 May 2019 15:39 #132743 by Weiler810T
I think the dog's buried here :woohoo:

hm2/hm2_5i20.0: registered
hm2_5i20.0: initialized AnyIO board at 0000:06:00.0
hm2_pci: discovered 5i20 at 0000:06:01.0
hm2: no firmware specified in config modparam!  the board had better have firmware configured already, or this won't work
hm2/hm2_5i20.1: invalid cookie, got 0x00000100, expected 0x55AACAFE
hm2/hm2_5i20.1: FPGA failed to initialize, or unexpected firmware?
hm2_5i20.1: board fails HM2 registration
RTAPI_PCI: Unmapped 65536 bytes at 0x7f95a60b6000
Driver probe function failed!
hm2_5i25.0: dropping AnyIO board at 0000:04:00.0
hm2/hm2_5i25.0: unregistered
RTAPI_PCI: Unmapped 65536 bytes at 0x7f95a625c000
hm2_5i20.0: dropping AnyIO board at 0000:06:00.0
hm2/hm2_5i20.0: unregistered

Config.ini
[HOSTMOT2]
DRIVER=hm2_pci
BOARD=5i20
CONFIG="firmware=hm2/5i20/svst6_6_7i48.bit num_encoders=6 num_pwmgens=6 num_stepgens=0num_leds=0,firmware=hm2/5i20/svst6_6_7i48.bit num_encoders=0 num_pwmgens=0 num_stepgens=0num_leds=0"


Anyone has any idea ?
Thank you in advance

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

More
04 May 2019 15:51 #132745 by PCW
There may be bugs here because this is a uncommon configuration, but I think you need 3 config sections (1 for each card) and you have only 2.

Heres what I think is happening:

The 6I25 is discovered first and assigned the first config section intended for 5I20.0
Then 5I20.0 is assigned the config section intended for 5I20.1. Since there is no next config section, 5I20.1 has no firmware assigned and fails registration...

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

More
04 May 2019 17:40 #132757 by Weiler810T
I think Linuxcnc does not support more than 2 mesa cards.
I can't find an example for more than 2 mesa cards anywhere. :dry:

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

More
04 May 2019 18:04 - 04 May 2019 18:35 #132759 by PCW
hm2_pci supports 8 cards
As I said in the previous post, you did not provide 3 config stanzas (1 per card)

That is, you need:

CONFIG="config_for_6i25, config_for_5I20.0, config_for_5I20.1"
Last edit: 04 May 2019 18:35 by PCW.
The following user(s) said Thank You: Weiler810T

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

More
06 May 2019 17:58 #132979 by andypugh
Is this working now?

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

More
07 May 2019 09:58 #133042 by Weiler810T
Yes, works,:) :) :) :) :) :) :) :) thanks for support

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

Moderators: PCWjmelson
Time to create page: 0.144 seconds
Powered by Kunena Forum