Strange 7i76e problem when starting linuxcnc

More
01 Feb 2020 18:17 - 01 Feb 2020 18:21 #156310 by timfaber
Hi guys,

I'm building my own gantry cnc and want to use linuxcnc, i've ordered a mesa 7i76e card and wired it up. Used the pnfconfig to make a linuxcnc configuration for my machine. changed the ip in the hal file to 10.10.10.10 (jumper 3 up). Now when i want to start linuxcnc i get the error see attachment. i've also included some other information.
Now the strange thing is that i can ping to the mesa card and even managed to start linuxcnc but got another error (attachment). it seems that powering/dispowering my drives influences the starting of linuxcnc in some weird way.
And also, mesaflash doesn't recognize my card??

Anyone knows what im doing wrong? btw im not realy familiar in this "IT" stuff, more of a nuts and bolts guy ;) but willing to learn ofcourse!
Last edit: 01 Feb 2020 18:21 by timfaber.

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

More
01 Feb 2020 18:21 #156311 by PCW
What does

mesaflash --device 7i76e --addr 10.10.10.10 --readhmid

report?

Also what does

ip a

report

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

More
01 Feb 2020 18:23 #156312 by timfaber
wow quick reply, mesaflash --device 7i76e says: No 7i76e board found. Also just added some more attachments

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

More
01 Feb 2020 18:42 #156313 by PCW
mesaflash --device 7i76e says: No 7i76e board found

That's expected unless you use the entire command I showed

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

More
01 Feb 2020 19:34 #156316 by tommylight
And your
Ip -a does not look right, there is no host ip or you have set the host ip to 10.10.10.1
There is a sticky topic in the boards section about properly configuring the network for use with Mesa boards.
Editing network files is not adviseable on new distros as they use multiple files for that and usually editing one of them makes a mess.

forum.linuxcnc.org/27-driver-boards/3559...ethernet-mesa-boards

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

More
01 Feb 2020 19:56 - 01 Feb 2020 20:37 #156318 by PCW
Your ping times are pretty terrible, It may be that you need to turn off IRQ
coalescing in the driver as mentioned in the hm2_eth man page

You could try the by hand first with:

sudo ethtool -C eth0 rx-usecs 0

and then retry pinging the card
Last edit: 01 Feb 2020 20:37 by PCW.

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

More
01 Feb 2020 20:13 #156319 by timfaber
I've tried to set it up as described in the sticky topic. But that didn't seem to fix it, is it right that that way should change the address of eth0 if I type ip a. Because it doesn't on my pc.

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

More
01 Feb 2020 20:18 #156320 by timfaber
I've just changed 10.10.10.1 to 10.10.10.11 for eth0 which now is shown in ip a. That should be right?
Tomorrow I'll try to turn off IRQ.

Any thoughts on why sometimes linux does start and sometimes doesn't. More often than not. And is there some particular order of powering the pc, mesa card and the drivers?

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

More
01 Feb 2020 20:40 - 01 Feb 2020 20:56 #156322 by PCW
The 7I76E needs to be powered before LinuxCNC starts, thats about it.
The error could be due to loss of packets because of some network setup error
(note the > 1 ms ping time, that's completely unusable)

Edit: here's the result of pinging a 7I76E here:

peter@pcw-HP-EliteDesk-800-G1-USDT:~/bitfiles$ ping 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.116 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.119 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=64 time=0.117 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=64 time=0.118 ms
64 bytes from 10.10.10.10: icmp_seq=5 ttl=64 time=0.120 ms
64 bytes from 10.10.10.10: icmp_seq=6 ttl=64 time=0.118 ms
64 bytes from 10.10.10.10: icmp_seq=7 ttl=64 time=0.117 ms
64 bytes from 10.10.10.10: icmp_seq=8 ttl=64 time=0.120 ms
64 bytes from 10.10.10.10: icmp_seq=9 ttl=64 time=0.118 ms
64 bytes from 10.10.10.10: icmp_seq=10 ttl=64 time=0.119 ms
64 bytes from 10.10.10.10: icmp_seq=11 ttl=64 time=0.118 ms
64 bytes from 10.10.10.10: icmp_seq=12 ttl=64 time=0.119 ms
^C
--- 10.10.10.10 ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11247ms
rtt min/avg/max/mdev = 0.116/0.118/0.120/0.007 ms
Last edit: 01 Feb 2020 20:56 by PCW.

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

More
01 Feb 2020 23:49 #156331 by tommylight
In your attached picture, the debug info says:
iptables no chain/target/match by that name
That means you have edited one of the networking files manually and they ended up not working. Now you have two different host names for your PC, they must be the same.
Linux keeps two files with the hostname:
/etc/hostname
and
/etc/hosts
Again just so other users can see this: it is never advisable to edit networking files manually

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

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