hm2_eth Connection refused

More
19 May 2026 00:20 #346487 by robert0423
hm2_eth Connection refused was created by robert0423
I get a 'Connection refused' error shown below when I try to start linuxcnc using a Raspberry Pi 4B and a new MESA 7i96S card.
I can successfully ping the MESA card from the RPi
  • I can get card information using mesaflash --readhmid
  • iptables is configured to accept all packets and not drop any.
  • The yellow and green LEDs are on for both the RPi and the MESA.
I've tried multiple RPis, MESA cards (both are new), power supplies, network cables, Linuxcnc versions, RPi imagers, ip configurations, disabling WIFI and setting the IP address on the MESA to both 10.10.10.10 and 192.168.1.121.  
The results are the same; Connection refused.

Any thoughts or information on how to resolve this issue is greatly appreciated.

Found file(REL): ./cncmill.hal
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: Could not retrieve hardware address (MAC) of 10.10.10.1: Connection refused
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
hm2_eth: rtapi_app_main: Connection refused (-111)
./cncmill.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth
./cncmill.hal:9: /usr/bin/rtapi_app exited without becoming ready
./cncmill.hal:9: insmod for hm2_eth failed, returned -1
1509
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

 


 

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

More
19 May 2026 05:01 #346492 by PCW
Replied by PCW on topic hm2_eth Connection refused
It looks like you  have set the card IP address in the hal file to the host address
rather than the FPGA card address:

hm2_eth: ERROR: Could not retrieve hardware address (MAC) of 10.10.10.1: Connection refused
 

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

More
19 May 2026 18:03 #346494 by robert0423
Replied by robert0423 on topic hm2_eth Connection refused
That solved the issue.
  1. Configured the jumpers on the MESA 7i96S (FPGA card) to Down/Up which set the IP address to 10.10.10.10. This placed it on a separate subnet isolated from my 192.168.1.x main network.
  2. Set the IP address of the RPi wired ethernet (ETH0) (Settings/Advanced networking) to the static manual address 10.10.10.1. This placed the RPi ethernet on the same subnet as the MESA.
  3. Set the IP address for the WIFI on the RPi to use DHCP. This received an IP address for the main network (192.168.1.110).
  4. In Pncconf, set the IP address for the Card (i.e. the MESA FPGA 7i96S) to match the IP address set by the jumper configuration, 10.10.10.10.
Everything now works as expected.

Thanks
Bob

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

Time to create page: 0.204 seconds
Powered by Kunena Forum