Solution fo "hm2 error finishing read" with no good PC

More
2 years 4 days ago #313380 by greg23_78
I need help because I don't know what to do with my PC.
At the moment linuxcnc displays ‘hm2 error finishing read’ every time I change the tool on my turret on my cnc lathe.
several weeks ago I had this message sometime.

below the latency of my pc and the ping for the ethernet.
 

I have disabled all the options that slow down latency in the bios/uefi.
I have followed the procedure to isolate a core for linuxcnc. and other procedure to reduce latency (IRQ affinity scripts / rt_setup).

but i have the problem ‘hm2 error finishing read’, is there any solution to remove this problem or the only solution is to replace the pc because nothing can be done?
 

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

More
2 years 4 days ago #313381 by PCW
The issue is the 5.835 ms maximum ping time (about 10X the usable maximum)

My guess is that you have a RealTek Ethernet interface on you PC which requires
and alternate driver (DKMS) be installed since the driver supplied with the 6.1 kernel has
real-time issues.

Instructions for this are in this thread:

forum.linuxcnc.org/27-driver-boards/5366...xcnc?start=20#310794

Before you do that is probably best to determine the actual Ethernet hardware with say:

lspci | grep -i ether



 
The following user(s) said Thank You: rodw

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

More
2 years 3 days ago #313423 by greg23_78
i did, but still the same.
i have done ping 10.10.10.10 during the nigh and i have lost some packet.

my hardware is Realtek RTL8111/RTL8168

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

More
2 years 3 days ago - 2 years 3 days ago #313438 by PCW
Have you added

pcie.aspm=0 r8168.eee_enable=0 pcie_aspm=off idle=poll

to the kernel command line? (via grub)
Sometimes that is needed also.

To make sure you are running the dkms driver, try running this script: 

 

File Attachment:

File Name: edriver.txt
File Size:136 B


To run this, first

chmod +x edriver.txt

and then

./edriver.txt

(from the Downloads directory)

and paste the results here.

(not my script but nicely lists network drivers) 
Last edit: 2 years 3 days ago by PCW.

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

More
2 years 3 days ago #313442 by greg23_78
i added the same as the google doc "r8168.aspm=0 r8168.eee_enable=0 pcie_aspm=off loglevel=3"
i changed and add " pcie.aspm=0 r8168.eee_enable=0 pcie_aspm=off idle=poll" but still the same "hm2 error finishing read" (I restarted the PC)

 

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

More
2 years 3 days ago - 2 years 3 days ago #313446 by PCW
That looks like the standard realtek 8168 driver rather than the DKMS driver
so it sounds like the DKMS driver install did not work for some reason
Last edit: 2 years 3 days ago by PCW.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum