Error at startup

More
2 years 2 months ago #306696 by M.adams9093
Error at startup was created by M.adams9093
Hello There, 

I am building my config file, but I'm having trouble when launching my Linuxcnc file. what I am trying to do is sync joints 1 &2 as a single Y-Axis I have configured limit switches on inputs 1 and 2 for each motor joint can someone point me in the right direction I'm not sure what wrong I'm doing here. I will post my INI and HAL files here as well. 

I appreciate any help you can provide. 


Here's my error message at startup  

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.3
Machine configuration directory is '/home/cnc/linuxcnc/configs/mesa7i95t-testp1_'
Machine configuration file is 'mesa7i95t-testp1_.ini'
INIFILE=/home/cnc/linuxcnc/configs/mesa7i95t-testp1_/mesa7i95t-testp1_.ini
VERSION=1.1
PARAMETER_FILE=parameters.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=YY
KINEMATICS=trivkins coordinates=YY kinstype=BOTH
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: iov2
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./main.hal

identityKinematicsSetup: coordinates:YY
   Joint 0 ==> Axis Y
   Joint 1 ==> Axis Y

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:15:80:6c
hm2_eth: discovered 7I95T
hm2/hm2_7i95.0: Low Level init 0.15
hm2/hm2_7i95.0: Smart Serial Firmware Version 43
hm2/hm2_7i95.0: 58 I/O Pins used:
hm2/hm2_7i95.0:     IO Pin 000 (TB3-02/TB3-03): StepGen #0, pin Step (Output)
hm2/hm2_7i95.0:     IO Pin 001 (TB3-04/TB3-05): StepGen #0, pin Direction (Output)
hm2/hm2_7i95.0:     IO Pin 002 (TB3-08/TB3-09): StepGen #1, pin Step (Output)
hm2/hm2_7i95.0:     IO Pin 003 (TB3-10/TB3-11): StepGen #1, pin Direction (Output)
hm2/hm2_7i95.0:     IO Pin 004 (TB3-14/TB3-15): StepGen #2, pin Step (Output)
hm2/hm2_7i95.0:     IO Pin 005 (TB3-16/TB3-17): StepGen #2, pin Direction (Output)
hm2/hm2_7i95.0:     IO Pin 006 (TB3-20/TB3-21): StepGen #3, pin Step (Output)
hm2/hm2_7i95.0:     IO Pin 007 (TB3-22/TB3-23): StepGen #3, pin Direction (Output)
hm2/hm2_7i95.0:     IO Pin 008 (TB4-02/TB4-03): StepGen #4, pin Step (Output)
hm2/hm2_7i95.0:     IO Pin 009 (TB4-04/TB4-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i95.0:     IO Pin 010 (TB4-08/TB4-09): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i95.0:     IO Pin 011 (TB4-10/TB4-11): PWMGen #0, pin Out1 (Dir or Down) (Output)
hm2/hm2_7i95.0:     IO Pin 012 (TB4-14/TB4-15): IOPort
hm2/hm2_7i95.0:     IO Pin 013 (TB4-16/TB4-17): IOPort
hm2/hm2_7i95.0:     IO Pin 014 (TB3-16/TB3-17): IOPort
hm2/hm2_7i95.0:     IO Pin 015 (TB4-20/TB4-21): IOPort
hm2/hm2_7i95.0:     IO Pin 016 (TB4-22/TB4-23): IOPort
hm2/hm2_7i95.0:     IO Pin 017 (TB4-22/TB4-23): IOPort
hm2/hm2_7i95.0:     IO Pin 018 (TB1-01/TB1-09): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i95.0:     IO Pin 019 (TB1-04/TB1-12): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i95.0:     IO Pin 020 (TB1-07/TB1-15): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i95.0:     IO Pin 021 (TB1-17/TB2-01): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i95.0:     IO Pin 022 (TB1-20/TB2-04): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i95.0:     IO Pin 023 (TB1-23/TB2-07): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i95.0:     IO Pin 024 (TB2-09/TB2-17): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i95.0:     IO Pin 025 (TB2-12/TB2-20): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i95.0:     IO Pin 026 (TB2-15/TB2-23): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i95.0:     IO Pin 027 (Internal EncMux): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i95.0:     IO Pin 028 (Internal InMux0): InMux Input Mux #0, pin addr0 (Output)
hm2/hm2_7i95.0:     IO Pin 029 (Internal InMux1): InMux Input Mux #0, pin addr1 (Output)
hm2/hm2_7i95.0:     IO Pin 030 (Internal InMux2): InMux Input Mux #0, pin addr2 (Output)
hm2/hm2_7i95.0:     IO Pin 031 (Internal InMux3): InMux Input Mux #0, pin addr3 (Output)
hm2/hm2_7i95.0:     IO Pin 032 (Internal InMux4): InMux Input Mux #0, pin addr4 (Output)
hm2/hm2_7i95.0:     IO Pin 033 (Internal InMuxData): InMux Input Mux #0, pin muxdata (Input)
hm2/hm2_7i95.0:     IO Pin 034 (TB5-13/TB5-14): SSR #0, pin Out-00 (Output)
hm2/hm2_7i95.0:     IO Pin 035 (TB5-15/TB5-16): SSR #0, pin Out-01 (Output)
hm2/hm2_7i95.0:     IO Pin 036 (TB5-17/TB5-18): SSR #0, pin Out-02 (Output)
hm2/hm2_7i95.0:     IO Pin 037 (TB5-19/TB5-20): SSR #0, pin Out-03 (Output)
hm2/hm2_7i95.0:     IO Pin 038 (TB5-21/TB5-22): SSR #0, pin Out-04 (Output)
hm2/hm2_7i95.0:     IO Pin 039 (TB5-23/TB5-24): SSR #0, pin Out-05 (Output)
hm2/hm2_7i95.0:     IO Pin 040 (internal): SSR #0, pin AC Ref (internal) (Output)
hm2/hm2_7i95.0:     IO Pin 041 (P1-01/DB25-01): IOPort
hm2/hm2_7i95.0:     IO Pin 042 (P1-02/DB25-14): IOPort
hm2/hm2_7i95.0:     IO Pin 043 (P1-03/DB25-02): IOPort
hm2/hm2_7i95.0:     IO Pin 044 (P1-04/DB25-15): IOPort
hm2/hm2_7i95.0:     IO Pin 045 (P1-05/DB25-03): IOPort
hm2/hm2_7i95.0:     IO Pin 046 (P1-06/DB25-16): IOPort
hm2/hm2_7i95.0:     IO Pin 047 (P1-07/DB25-04): IOPort
hm2/hm2_7i95.0:     Found file(REL): ./io.hal
Shutting down and cleaning up LinuxCNC...
iov2: exiting
IO Pin 048 (P1-08/DB25-17): IOPort
hm2/hm2_7i95.0:     IO Pin 049 (P1-09/DB25-05): IOPort
hm2/hm2_7i95.0:     IO Pin 050 (P1-11/DB25-06): IOPort
hm2/hm2_7i95.0:     IO Pin 051 (P1-13/DB25-07): IOPort
hm2/hm2_7i95.0:     IO Pin 052 (P1-15/DB25-08): IOPort
hm2/hm2_7i95.0:     IO Pin 053 (P1-17/DB25-09): IOPort
hm2/hm2_7i95.0:     IO Pin 054 (P1-19/DB25-10): IOPort
hm2/hm2_7i95.0:     IO Pin 055 (P1-21/DB25-11): IOPort
hm2/hm2_7i95.0:     IO Pin 056 (P1-23/DB25-12): IOPort
hm2/hm2_7i95.0:     IO Pin 057 (P1-25/DB25-13): IOPort
hm2/hm2_7i95.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:
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
./io.hal:6: Pin 'joint.2.home-sw-in' does not exist
8923
Stopping realtime threads
Unloading hal components
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime









 

File Attachment:

File Name: main.hal
File Size:5 KB

File Attachment:

File Name: mesa7i95t-testp1_.ini
File Size:3 KB

File Attachment:

File Name: io.hal
File Size:0 KB

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

More
2 years 2 months ago #306698 by Aciera
Replied by Aciera on topic Error at startup

./io.hal:6: Pin 'joint.2.home-sw-in' does not exist


joint numbers start from 0. Change these two lines in 'io.hal'
Code:
net joint-1-home joint.1.home-sw-in <= hm2_7i95.0.inmux.00.input-00 net joint-2-home joint.2.home-sw-in <= hm2_7i95.0.inmux.00.input-01

to this:
Code:
net joint-1-home joint.0.home-sw-in <= hm2_7i95.0.inmux.00.input-00 net joint-2-home joint.1.home-sw-in <= hm2_7i95.0.inmux.00.input-01
The following user(s) said Thank You: M.adams9093

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

More
2 years 2 months ago #306699 by M.adams9093
Replied by M.adams9093 on topic Error at startup
I will give it a try and see how that will go

thank you

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

More
2 years 2 months ago #306716 by tommylight
Replied by tommylight on topic Error at startup
Code:
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Why is there stuff for parallel port?
If not, start over, make a new config, do not fill info at random.

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

More
2 years 2 months ago #306747 by PCW
Replied by PCW on topic Error at startup
There does not seem to be any parallel port reference in the hal files.

Maybe the generic "cannot gain I/O privileges" message includes
the parallel port warning.

This "cannot gain I/O privileges" message does suggest a build
problem with the LinuxCNC version he is using.

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

More
2 years 2 months ago #306758 by tommylight
Replied by tommylight on topic Error at startup

There does not seem to be any parallel port reference in the hal files.

Maybe the generic "cannot gain I/O privileges" message includes
the parallel port warning.
Maybe the wrong hal file uploaded?
I am sure i saw this same issue before here, it did have mesa and parallel port stuff for a Mesa only config, usually ends up like this due to just clicking on stuff in the wizards.

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

Time to create page: 0.294 seconds
Powered by Kunena Forum