Error Starting Linuxcnc

More
22 Apr 2018 23:28 #109467 by javelin
I went through the configuration wizard and upon completing the configuration I changed the IP address for the for the 7i76e to read as follows: loadrt hm2_eth board_ip="10.10.10.10" . I am running on the latest version of linux mint mate on a brix machine and mint has the 4.8.11-rt7 kernel. This is the first time I have tried to fire up linuxcnc after running the mesa configuration using the Pncconf wizard.

Any ideas as to what would be causing the below error with the iptables and how to solve it?

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/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.7.12
Machine configuration directory is '/home/jeff/linuxcnc/configs/machine1'
Machine configuration file is 'machine1.ini'
INIFILE=/home/jeff/linuxcnc/configs/machine1/machine1.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
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): ./machine1.hal
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: Failed to create iptables chain hm2-eth-rules-outputhm2_eth: ERROR: can't connect: Network is unreachable
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=8937
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
iptables v1.6.0: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
hm2_eth: rtapi_app_main: Network is unreachable (-101)
./machine1.hal:8: waitpid failed /usr/bin/rtapi_app hm2_eth
./machine1.hal:8: /usr/bin/rtapi_app exited without becoming ready
./machine1.hal:8: insmod for hm2_eth failed, returned -1
8937
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

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

More
23 Apr 2018 02:56 #109477 by PCW
Replied by PCW on topic Error Starting Linuxcnc

hm2_eth: rtapi_app_main: Network is unreachable (-101)


Are you sure you have your Ethernet MAC setup properly to access the card at 10.10.10.10?
(what does 'ip a" report?)

I dont recall the exact details but there some issue with Ubuntu 16.04 derived
OS's (Mint 18 for example) and LinuxCNC's iptables handling. The error is not fatal
and is fixed in LinuxCNC master

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

More
24 Apr 2018 00:25 #109516 by javelin
Replied by javelin on topic Error Starting Linuxcnc
Im lost with this part lol, I hope you can help.

Here is the report from ip a

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e0:d5:5e:5a:c1:3e brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 40:9f:38:f9:43:27 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.148/24 brd 192.168.43.255 scope global dynamic wlp2s0
valid_lft 7074sec preferred_lft 7074sec
inet6 fe80::30c1:b31a:9098:382b/64 scope link
valid_lft forever preferred_lft forever


I tossed in an ip show

$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e0:d5:5e:5a:c1:3e brd ff:ff:ff:ff:ff:ff
inet6 fe80::6c1b:59b1:322:7123/64 scope link
valid_lft forever preferred_lft forever
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 40:9f:38:f9:43:27 brd ff:ff:ff:ff:ff:ff


So obviously Ive not done something. How does one go about correcting this?

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

More
24 Apr 2018 00:38 #109518 by PCW
Replied by PCW on topic Error Starting Linuxcnc
OK if you have the FPGA card set for 10.10.10.10 you need to setup enp3s0 with a static IPV4 address
I normally set the host to 10.10.10.1 with a 255.255.255.0 netmask

You can do this either with the netmanager tool or by editing the config files as described in the hm2_eth manual page

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

More
24 Apr 2018 01:26 - 24 Apr 2018 01:40 #109520 by javelin
Replied by javelin on topic Error Starting Linuxcnc
Okay figured out how to own my computer so back to linuxcnc LOL!

Thanks for the quick reply.

Ignore this comment .... I have a new issue with not having permissions to create a file within the /ect/network/interfaces.d location. Its always something. Praying the fix doesnt require anything drastic
Last edit: 24 Apr 2018 01:40 by javelin.

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

More
24 Apr 2018 02:07 #109522 by javelin
Replied by javelin on topic Error Starting Linuxcnc
Followed the guide and have a new error message. Will include all previous requested info. Also will try again tomorrow night to see what else I have messed up or what is hindering the process. Nevertheless as you will see the IP is now showing in the ip a but still something is not firing off. Maybe you can spot what it is. I may try doing this another way via the network.

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e0:d5:5e:5a:c1:3e brd ff:ff:ff:ff:ff:ff
inet 10.10.10.1/24 brd 10.10.10.255 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 fe80::e2d5:5eff:fe5a:c13e/64 scope link
valid_lft forever preferred_lft forever
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 40:9f:38:f9:43:27 brd ff:ff:ff:ff:ff:ff


Error Message:

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/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.7.12
Machine configuration directory is '/home/jeff/linuxcnc/configs/machine1'
Machine configuration file is 'machine1.ini'
INIFILE=/home/jeff/linuxcnc/configs/machine1/machine1.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
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): ./machine1.hal
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: Failed to create iptables chain hm2-eth-rules-outputhm2_eth: WARNING: Unable to restrict other access to the hm2-eth device.
This means that other software using the same network interface can violate
realtime guarantees. See hm2_eth(9) for more information.
hm2_eth: 10.10.10.10: Hardware address: 00:60:1b:10:41:ba
hm2_eth: discovered 7I76E-16
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): StepGen #3, pin Direction (Output)
hm2/hm2_7i76e.0: IO Pin 007 (P1-17): StepGen #3, pin Step (Output)
hm2/hm2_7i76e.0: IO Pin 008 (P1-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i76e.0: IO Pin 009 (P1-06): StepGen #4, pin Step (Output)
hm2/hm2_7i76e.0: IO Pin 010 (P1-07): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_7i76e.0: IO Pin 011 (P1-08): Smart Serial Interface #0, pin RxData0 (Input)


I cut off the error message as it was seeing parts of the board apparently but no need to put the whole 22 page list up here. Nevertheless you can get the idea of what it was seeing.

Thanks for all the help brother.

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

More
24 Apr 2018 02:08 #109523 by PCW
Replied by PCW on topic Error Starting Linuxcnc
You need to be root (via sudo) to edit the interfaces file, but if you don't want to do this
you can use the network manager GUI

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

More
24 Apr 2018 02:12 #109524 by PCW
Replied by PCW on topic Error Starting Linuxcnc
Yes that iptables error is the error you get with Mint 18 or Ubuntu 16.04 and LinucCNC 2.7.X
I dont think its a serious issue but is fixed in LinuxCNC master

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

More
24 Apr 2018 16:23 #109555 by javelin
Replied by javelin on topic Error Starting Linuxcnc
Any suggestions as to which version would be best for Mint? I believe the master is an iso if I remember correctly. I will give things a shot when I get home tonight.

By the way, a serious thank you for your help. I would be in the woods without it. Brand new to all this but enjoying the challenge.

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

More
24 Apr 2018 17:28 #109558 by PCW
Replied by PCW on topic Error Starting Linuxcnc
if you are using Mint 18, master (2.8) does not have the iptables issue (though 2.7 will work even with that issue)
If you use Mint17 both LinuxCNC 2.7 and master work
The following user(s) said Thank You: javelin

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

Time to create page: 0.093 seconds
Powered by Kunena Forum