MESA board selection to replace ESS

More
19 Nov 2020 17:57 #189799 by kb8wmc
I am helping a friend set up his new maching, using a Mesa 7i76e...Machine is constructed and we are now having problems with communicating with the 7i76e...We are using Debian 9 (stretch) 64bit and LinuxCNC 2.8.0...

As is with several other people we get the following error:

hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)
-- .hal:8: waitpid failed /usr/bin/rtapi_app hm2_eth
-- .hal:8: /usr/bin/rtapi_app exited without becoming ready
-- .hal:8: insmod for hm2_eth failed, returned -1

I moved the jumper W8 to setup mode then connected a dedicated 5v power to the board...I was able to ping the 7i76e at 192.168.1.121...Using PNCConf I setup a machine and then attempted to start Linuxcnc and received the error above...I was able to read the pin data from the board using mesaflash and --readhmid...

I then moved W3 jumper to 10.10.10.10 setting and reflashed using mesaflash and the 7i76e_7i76x1D.bit firmware (I made the assumption that this was the firmware that was installed from factory), I edited all the network configuration following JT's "Debian 9 Ethernet" instructions, and the man page for hm2_eth (as best as I could understand it) to reflect this change as well as editing the "interfaces" file in /etc/network, setting the PC address to 10.10.10.11...I power cycled the board...I got the same error as before...I even rebooted the computer...Although I was able to ping the board at the new IP address there was still no communication with the hm2_eth driver...Using the command "ip a" does produce a response that appears to be valid...

I then reset all the IP information and W3 back to the 192.168.1.121 address, power cycled and was able to ping the board but received the same error...I did another --readhmid and was able to see the pins...Also used --verbose and noticed that the board IP actually listed 10.10.10.10 as the address...

A couple of times I received the error "No 7I76E board found" when attempting to use either --verbose or --readhmid...

I am at a loss to get the hm2_eth driver to communicate...I believe it is something that I am not doing or something I have done incorrectly...The machine is at my friend's house so I am not able to test anything until I visit him...

Any guidance would be greatly appreciated...

Mike

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

More
19 Nov 2020 18:52 - 19 Nov 2020 18:56 #189802 by PCW
1. I would use 10.10.10.10
2. What is the result from from "ip a" (after you set the host static IP to say 10.10.10.11)
3. What is the result of "ping 10.10.10.10" (times and any errors)
4. What is the result of "dmesg | grep -i eth"
Last edit: 19 Nov 2020 18:56 by PCW.

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

More
19 Nov 2020 20:27 #189816 by kb8wmc
PCW, thanks for responding so quickly...
I will get back to you as soon as I am able to get to my friends machine which may be tomorrow sometime...

I was able to ping 10.10.10.10 numerous times, although a limited the pings to a count of 5 "ping -c5 10.10.10.10"

Again, I will get back as soon as possible...
thanks again

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

More
22 Nov 2020 04:20 #190022 by kb8wmc
PCW,
Something goes haywire when I set 10.10.10.10 as ip address as I am not able to obtain any data from board when I --readhmid or --verbose...At present I am using the board and network in the 192.168.1.xxx address range...I am able to view the card data as if it were working properly...When I pinged the 10.10.10.10 address, ( -c50 ) I had no failures, 100 percent packet return...Likewise pinging the 192 address brought same results...All times were excellent, max approx. .2xx ms and majority within .1xx range...Although I forgot to write it down so that I can report the "ip a" results, when I view it, all seemed to be proper...I will run it again and report back...

The following is from dmesg:
[ 0.859814] r8169 0000:05:00.0 eth0: RTL8168h/8111h at 0xffff9f99428b1000, 18:c0:4d:18:f5:13, XID 14100800 IRQ 126
[ 0.859815] r8169 0000:05:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 0.859817] r8169 0000:05:00.0 enp5s0: renamed from eth0

I am still getting the same error as listed above, apparently not able to initiate or keep active the hm2_eth driver...

Mike

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

More
22 Nov 2020 13:59 #190044 by PCW
Can you
1. Setup the host address to 10.10.10.100
2. Set the 7I76E to 10.10.10.10 (W2 down W3 up) and cycle its power
3. Post the results of the command "ip a"
4. Post the results of "ping 10.10.10.10"

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

More
23 Nov 2020 22:05 - 23 Nov 2020 22:06 #190153 by kb8wmc
PCW,
I went to my friend's shop today and got the information that you suggested I report, we live about 15 mile apart so it takes me a while to put this together...It is a text file as follows:
RESULTS - 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: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 18:c0:4d:18:f5:13 brd ff:ff:ff:ff:ff:ff
inet 10.10.10.100/8 brd 10.255.255.255 scope global enp5s0
valid_lft forever preferred_lft forever
inet6 fe80::ffb7:f5d1:ab3b:87db/64 scope link
valid_lft forever preferred_lft forever


RESULTS - pinging
--- 10.10.10.10 ping statistics ---
50 packets transmitted, 50 received, 0% packet loss, time 49895ms
rtt min/avg/max/mdev = 0.108/0.133/0.253/0.027 ms


RESULTS WHEN STARTING LINUXCNC USING JT's 7i76e Wizard
emc@shop:~$ linuxcnc
LINUXCNC - 2.8.0
Machine configuration directory is '/home/emc/linuxcnc/configs/4x8_avid'
Machine configuration file is '4x8_avid.ini'
Starting LinuxCNC...
Found file(REL): ./4x8_avid.hal
Note: Using POSIX realtime
Unexpected realtime delay on task 0 with period 1000000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
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: Hardware address: 00:60:1b:10:46:e9
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
Waiting for component 'hm2_eth' to become ready..Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
.........................................board fails HM2 registration
hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)
./4x8_avid.hal:17: waitpid failed /usr/bin/rtapi_app hm2_eth

./4x8_avid.hal:17: /usr/bin/rtapi_app exited without becoming ready
./4x8_avid.hal:17: insmod for hm2_eth failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/emc/linuxcnc_debug.txt
and
/home/emc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
emc@shop:~$


RESULTS WHEN STARTING LINUXCNC USING PNCconf
emc@shop:~$ linuxcnc
LINUXCNC - 2.8.0
Machine configuration directory is '/home/emc/linuxcnc/configs/Avid-4x8-Router'
Machine configuration file is 'Avid-4x8-Router.ini'
Starting LinuxCNC...
Found file(REL): ./Avid-4x8-Router.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
Unexpected realtime delay on task 0 with period 1000000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: Hardware address: 00:60:1b:10:46:e9
hm2_eth: discovered 7I76E-16
hm2/hm2_7i76e.0: Smart Serial Firmware Version 43
Waiting for component 'hm2_eth' to become ready...........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
................................board fails HM2 registration
hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)
./Avid-4x8-Router.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth

./Avid-4x8-Router.hal:9: /usr/bin/rtapi_app exited without becoming ready
./Avid-4x8-Router.hal:9: insmod for hm2_eth failed, returned -1
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/emc/linuxcnc_debug.txt
and
/home/emc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal


AFTER CHANGING IP ADDRESS TO 10.10.10.10 I GET THE FOLLOWING:
emc@shop:~$ mesaflash --device 7i76e --verbose
No 7I76E board found
emc@shop:~$ mesaflash --device 7i76e --readhmid
No 7I76E board found
emc@shop:~$ mesaflash --device 7i76e --reset
No 7I76E board found

I don't understand what is or is not taking place...Reading through the attempts to start LCNC, to me, it points at a failure of the hm2_eth driver (component)...
Hope you have an answer, I have searched these forums and find that others have had the same problem, but I don't find where anyone has posted a solution...

thanks in advance for your help...
MIke
Last edit: 23 Nov 2020 22:06 by kb8wmc.

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

More
23 Nov 2020 22:20 #190155 by PCW
What it looks like to me is real time issues with the host
or a problem with the host Ethernet interface or a hardware
problem with the 7I76E (is it resetting?)

Have you run a latency test?

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

More
23 Nov 2020 23:27 #190162 by kb8wmc
PCW,
I have not run a latency test but will do so as soon as possible...I called my friend and asked him to do a latency test and he should be able to do that this evening...

As far as your question about resetting, I am not sure I understand what you mean...I did do a --reset and it returned an error "no 7i76e board found"...that was with the address at 10.10.10.10...When I ran the --reset command with the 192.xxx address it appeared to do something and did not return any errors, just brought up the next command line as it should have, had it completed properly...

As soon as I have an answer from my friend on latency test I will post the results...I know that he had a purpose built computer put together for him, and I am sure that it has all the latest bells and whistles...The BIOS did not have anything obvious that I might believe would cause a problem, but it is a newer bios than I am familiar with...

thanks
Mike

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

More
23 Nov 2020 23:37 #190163 by PCW

emc@shop:~$ mesaflash --device 7i76e --verbose
No 7I76E board found
emc@shop:~$ mesaflash --device 7i76e --readhmid
No 7I76E board found
emc@shop:~$ mesaflash --device 7i76e --reset
No 7I76E board found


You need to add the ip address if not using the default 192.168.1.121 address
mesaflash --device 7i76e --addr 10.10.10.10 --readhmid

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

More
23 Nov 2020 23:48 #190165 by kb8wmc
PCW,
Latency = 5,198,081....

Oh boy!

Mike

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

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