Error message during operation with a 7i96s

More
30 Jan 2023 21:57 - 30 Jan 2023 22:00 #263272 by CADdy
Thank you for pointing out the additional parameters for the eth interface. LinuxCNC is now running stable for almost two hours without any aborts. However, in no case should you search something e.g. in your own network on the server. This is possible via wlan, but it has an enormous influence on the stability. I now let LCNC run overnight and am curious about tomorrow.

Peter
Last edit: 30 Jan 2023 22:00 by CADdy.

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

More
30 Jan 2023 23:38 - 30 Jan 2023 23:41 #263278 by PCW
The 5.x kernel distributed with LinuxCNC currently tends to have bad
Ethernet latency. Updating to the latest (6.1 or 6.2) RT  kernel improves
this quite a bit.

You should always be able to access the network with LinuxCNC running.
Running a browser is possible in some hardware but there are RT issues with video
on some systems

To get an idea of whats going on, use halshow's watch tab and monitor
these parameters:

hm2_7i96s.0.read.tmax
hm2_7i96s.0.write.tmax

(These numbers are in CPU clocks so you need to divide by the
CPU clock speed in MHz to get microseconds)

and this pin

hm2_7i96s.0.packet-error-total
 
Last edit: 30 Jan 2023 23:41 by PCW.

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

More
01 Feb 2023 14:01 #263442 by CADdy
My next attempt would have been to use a 6.1 PREEMPT kernel. I followed the gnipsel.com "Build Linux RT Kernel" guide and adapted the command lines to the 6.1 kernel:
wget https://www.kernel.org/pub/linux/kernel/v6.x/linux-6.1.8.tar.xz
wget https://www.kernel.org/pub/linux/kernel/projects/rt/6.1/patch-6.1-rc7-rt5.patch.gz
tar -xpf linux-6.1.8.tar.xz 
gunzip patch-6.1-rc7-rt5.patch.gz
cp patch-6.1-rc7-rt5.patch linux-6.1.8
cd linux-6.1.8
cat patch-6.1-rc7-rt5.patch | patch -p1
make xconfig
make -j $(nproc)

Up to this point everything works without errors. When compiling the modules it is then over:
sudo make INSTALL_MOD_STRIP=1 modules_install

sed: modules.order kann nicht gelesen werden: Datei oder Verzeichnis nicht gefunden
make: *** [Makefile:1556: __modinst_pre] Fehler 2

Now I don't know what to do.

Peter
 

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

More
01 Feb 2023 14:36 #263445 by PCW
stackoverflow.com/questions/61276877/att...der-makefile-error-2

I needed to do this (comment out the CONFIG_SYSTEM_TRUSTED_KEYS line in config)

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

More
01 Feb 2023 17:51 #263453 by CADdy
I've commented out the line CONFIG_SYSTEM_TRUSTED_KEYS in ~/rtlinux/linux-6.1.8/.config
But nothing changed - the error is the same or should I do compiling the kernel again?
(I'll test it)

Peter

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

More
01 Feb 2023 19:05 #263458 by tommylight
Yes, compile again.

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

More
01 Feb 2023 19:58 #263460 by rodw
There are some precompiled 6.1 kernel deb files for the kernel and its headers here
drive.google.com/drive/folders/10uwGg5Rv...gODk16na?usp=sharing
They might need redoing to keep pace with Debian. That would just need changingthe wget commmands below
Here is how to do it
note where we say make xconfig, be sure to enable the fully preemptible kernel while you are in there
I'm sure selection of PREEMPT_RT could be skripted as the other values are.
sudo apt update
sudo apt install build-essential bin86 libncurses5-dev pkg-config libssl-dev 
sudo apt install dwarves bison flex gnupg libelf-dev libssl-dev wget qt5-devel

wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.tar.xz
unxz -c linux-6.1.tar.xz | gpg --verify linux-6.1.tar.sign -
tar xvf linux-6.1.tar.xz
wget https://www.kernel.org/pub/linux/kernel/projects/rt/6.1/patch-6.1-rc7-rt5.patch
wget https://www.kernel.org/pub/linux/kernel/projects/rt/6.1/patch-6.1-rc7-rt5.patch.sign
unxz -c linux-6.1.tar.xz | gpg --verify linux-6.1.tar.sign -
gunzip patch-6.1-rc7-rt5.patch.gz
cp patch-6.1-rc7-rt5.patch linux-6.1
cat patch-6.1-rc7-rt5.patch | patch -p1
make xconfig
scripts/config --disable SYSTEM_REVOCATION_KEYS
scripts/config --disable DEBUG_INFO
scripts/config --enable DEBUG_INFO_NONE
scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
 
make -j4 deb-pkg LOCALVERSION=-linuxcnc
cd ..
sudo dpkg -i linux-image-6.1.0-rt5-linuxcnc-rt_6.1.0-rt5-linuxcnc-rt-4_amd64.deb
sudo dpkg -i linux-headers-6.1.0-rt5-linuxcnc-rt_6.1.0-rt5-linuxcnc-rt-4_amd64.deb

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

More
02 Feb 2023 17:29 #263536 by CADdy
Rod, thank you so much. I've now installed the 6.1 PREEMPT Kernel. LCCNC is running about 3 1/2 hours without errors. Let's see what happens overnight.

Peter
 

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

More
02 Feb 2023 23:21 #263554 by rodw

Rod, thank you so much. I've now installed the 6.1 PREEMPT Kernel. LCCNC is running about 3 1/2 hours without errors. Let's see what happens overnight.

Peter
 

Here is hoping. I helped a mate last night with similar issues and despite having hands down the best latency ever, still failed with an error finishing read with my kernel build 
 
 
Attachments:

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

More
03 Feb 2023 00:08 #263560 by PCW
What hardware?

What are the ping times?

(These give a clue if the basic networking options are setup correctly
or if management functions in the BIOS like AMT are interfering)

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

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