Error message during operation with a 7i96s
- CADdy
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 6
30 Jan 2023 21:57 - 30 Jan 2023 22:00 #263272
by CADdy
Replied by CADdy on topic Error message during operation with a 7i96s
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
Peter
Last edit: 30 Jan 2023 22:00 by CADdy.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18543
- Thank you received: 5091
30 Jan 2023 23:38 - 30 Jan 2023 23:41 #263278
by PCW
Replied by PCW on topic Error message during operation with a 7i96s
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
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.
- CADdy
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 6
01 Feb 2023 14:01 #263442
by CADdy
Replied by CADdy on topic Error message during operation with a 7i96s
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:
Up to this point everything works without errors. When compiling the modules it is then over:
Now I don't know what to do.
Peter
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.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18543
- Thank you received: 5091
01 Feb 2023 14:36 #263445
by PCW
Replied by PCW on topic Error message during operation with a 7i96s
stackoverflow.com/questions/61276877/att...der-makefile-error-2
I needed to do this (comment out the CONFIG_SYSTEM_TRUSTED_KEYS line in config)
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.
- CADdy
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 6
01 Feb 2023 17:51 #263453
by CADdy
Replied by CADdy on topic Error message during operation with a 7i96s
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
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.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20197
- Thank you received: 6874
01 Feb 2023 19:05 #263458
by tommylight
Replied by tommylight on topic Error message during operation with a 7i96s
Yes, compile again.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11230
- Thank you received: 3754
01 Feb 2023 19:58 #263460
by rodw
Replied by rodw on topic Error message during operation with a 7i96s
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.
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.
- CADdy
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 6
02 Feb 2023 17:29 #263536
by CADdy
Replied by CADdy on topic Error message during operation with a 7i96s
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
Peter
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11230
- Thank you received: 3754
02 Feb 2023 23:21 #263554
by rodw
Replied by rodw on topic Error message during operation with a 7i96s
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 buildRod, 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
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18543
- Thank you received: 5091
03 Feb 2023 00:08 #263560
by PCW
Replied by PCW on topic Error message during operation with a 7i96s
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)
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: PCW, jmelson
Time to create page: 0.187 seconds