Error at startup

More
02 Aug 2024 06:47 #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
Attachments:

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

More
02 Aug 2024 07:06 #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'
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:
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
02 Aug 2024 07:15 #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
02 Aug 2024 10:42 #306716 by tommylight
Replied by tommylight on topic Error at startup
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
02 Aug 2024 15:05 #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
02 Aug 2024 16:01 #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.

More
02 Aug 2024 17:55 - 02 Aug 2024 19:47 #306769 by Aciera
Replied by Aciera on topic Error at startup
Seems to be an error message that pops up when secure boot is enabled.

See:
forum.linuxcnc.org/9-installing-linuxcnc...i-o-privileges-error

Here is a post by dewey (confirming the issue of secure boot and parallel port):
www.forum.linuxcnc.org/9-installing-linu...o-make-setuid#244223


According to this the issue was supposedly fixed a while ago.

github.com/LinuxCNC/linuxcnc/issues/1272
Last edit: 02 Aug 2024 19:47 by Aciera. Reason: add link to the issue
The following user(s) said Thank You: tommylight

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

More
02 Aug 2024 19:36 #306789 by tommylight
Replied by tommylight on topic Error at startup
Thank you Aciera, so that begs the question, why error on parallel port if it is not used in any way shape or form?
Then again, secure boot and all it's f#ck ups!
-
I tried, i really did, back when there where evidence of developing UEFI, i screamed my lungs out in the HardOCP and 2CPU forums to stop that.
I failed. It was (and still is, even worse now) a testament to humans not standing up when they should.
Sorry for the rant.

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

More
02 Aug 2024 19:56 #306795 by Aciera
Replied by Aciera on topic Error at startup

so that begs the question, why error on parallel port if it is not used in any way shape or form?

That is a good question. I guess the 'fix' was to not abort the startup and add the hint about secure boot to the message.

I tried, i really did, back when there where evidence of developing UEFI, i screamed my lungs out in the HardOCP and 2CPU forums to stop that.

Not even you can protect us from these kins of perils, but thanks for trying anyway :)
The following user(s) said Thank You: tommylight

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

More
03 Aug 2024 03:56 #306827 by M.adams9093
Replied by M.adams9093 on topic Error at startup
Thank you all for the quick response.

The issue was that I assigned the wrong limit switch pin to the wrong joint number. I am using mesa CT to build my configuration I have version 2.1.4 I believe its the latest version. Now I have the motor synced successfully, when I click home, both motors shaft turn simultaneously but my limit switches are not responding when I click them. MESA 7i95T seems like a good card, but unfortunately, it doesn't have wiring schematics that I can refer to. Can someone guide me on how to connect limit switches the right way on Mesa 7i95T?

thank you   

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

Time to create page: 0.108 seconds
Powered by Kunena Forum