[Solved] Trying to install RTAI, got errors

More
19 Jun 2024 18:39 - 24 Sep 2024 12:08 #303374 by jtupulis
I have fresh install of latest Debian 12 (on quite old Intel Atom MB). I was following the docs, linuxcnc.org/docs/2.9/html/getting-start...#cha:Installing-RTAI in particular, but got errors, LinuxCNC install failed.

First, got this warning during execution of the install script:

W: Skipping acquire of configured file '2.9-rt/source/Sources' as repository 'www.linuxcnc.org bookworm InRelease' does not seem to provide it (sources.list entry misspelt?)

It got me worried, but I still performed the next step (sudo apt-get install linuxcnc). Got the following output.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgpiod2 libwpe-1.0-1 libwpebackend-fdo-1.0-1
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  mesaflash onboard
The following packages will be REMOVED:
  linuxcnc-uspace
The following NEW packages will be installed:
  linuxcnc
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 25.5 MB of archives.
After this operation, 676 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 www.linuxcnc.org bookworm/2.9-rt amd64 linuxcnc amd64 1:2.9.2 [25.5 MB]
Fetched 25.5 MB in 5s (4,640 kB/s)   
(Reading database ... 281951 files and directories currently installed.)
Removing linuxcnc-uspace (1:2.9.2) ...
Selecting previously unselected package linuxcnc.
(Reading database ... 276444 files and directories currently installed.)
Preparing to unpack .../linuxcnc_1%3a2.9.2_amd64.deb ...
Unpacking linuxcnc (1:2.9.2) ...
dpkg: error processing archive /var/cache/apt/archives/linuxcnc_1%3a2.9.2_amd64.deb (--unpack):
 trying to overwrite '/usr/share/applications/linuxcnc-documentation.desktop', which is also in package linuxcnc-doc-en 1:2.9.2
Errors were encountered while processing:
 /var/cache/apt/archives/linuxcnc_1%3a2.9.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I understand that I've got two problems: linuxcnc not installed and RTAI kernel is not too (uname -v gives 1 SMP PREEMPT_RT Debian 6.1.90-1 (2024-05-03)).


Please, help me figure it out.
Last edit: 24 Sep 2024 12:08 by jtupulis.

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

More
19 Jun 2024 23:56 #303391 by cornholio
First of all I’d sort out the message from apt.
Second removing the doc package prior to installing linuxcnc with fix up the desktop message.
Thirdly the repo for the rtai kernel needs to be added.
When I get a chance, I’ll find my notes and see how I did it. Tho I think I installed the kernel and modules manually after downloading them.

This post has a link to the packages.
forum.linuxcnc.org/38-general-linuxcnc-q...ters?start=20#303239

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

More
20 Jun 2024 04:20 #303394 by cornholio
Ok This was a mess..

First things first.
I did a manual install it's not that scarey, but just easier, on a clean install.

I did edit /etc/apt/sources.list.d/linuxcnc-uspace.list
deb [arch=amd64,arm64 signed-by=/etc/apt/trusted.gpg.d/linuxcnc.gpg.key.binary.gpg] http://www.linuxcnc.org/ bookworm base 2.9-rt
deb-src [arch=amd64,arm64 signed-by=/etc/apt/trusted.gpg.d/linuxcnc.gpg.key.binary.gpg] http://www.linuxcnc.org/ bookworm base 2.9-rt

Changed https to http & changed the end of the line to 2.9-rt

Ok lets get what we need.
In a terminal
cd ~/Downloads
wget http://www.linuxcnc.org/dists/bookworm/2.9-rt/binary-amd64/linuxcnc_2.9.2_amd64.deb
wget http://www.linuxcnc.org/dists/bookworm/base/binary-amd64/linux-image-5.4.258-rtai-amd64_5.4.258-rtai-amd64-2_amd64.deb
wget http://www.linuxcnc.org/dists/bookworm/base/binary-amd64/rtai-modules-5.4.258_5.3.3-linuxcnc-delta_amd64.deb

We have the packages we need
sudo apt update
sudo apt upgarde

We have the latest
sudo apt-get purge linuxcnc-uspace
sudo apt-get purge linuxcnc-doc*

If we don't remove the doc packages we get errors on installing linuxcnc.
sudo dpkg -i  ./linux-image-5.4.258-rtai-amd64_5.4.258-rtai-amd64-2_amd64.deb

Reboot on the grub screen you may have to go to the advanced options and select the rtai kernel
cd ~/Downloads
sudo dpkg -i ./rtai-modules-5.4.258_5.3.3-linuxcnc-delta_amd64.deb
sudo dpkg -i ./linuxcnc_2.9.2_amd64.deb

Long and convulted, installing the docs may throw an issue.
The following user(s) said Thank You: MomoFab

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

More
20 Jun 2024 04:28 #303395 by cornholio
grub-customizer can be used to set the default to the rtai kernel.
Should be under the system heading in the applications menu.

With regard to the Atom......I have a notebook with an Atom N455 1.66GHz and it's basically like wading through molasses. Hopefully yours is to better spec and the parallel offers you some fun.

If you have any more issues just yell/send smoke signals/bang on a drum/or whatever form of communication you prefer, I prefer crayons and a wall. And after being a graffiti cleaner crayon is one of the hardest to remove from most surfaces.
The following user(s) said Thank You: MomoFab

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

More
20 Aug 2024 11:26 #308210 by jtupulis
Thanks for the advice! I managed to install RTAI using it :)

My latency numbers improved, but not as much as I hoped for. I need to look into new motherboard.

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

More
28 Oct 2024 21:22 - 28 Oct 2024 21:37 #313386 by Dougal9887
I've just moved from the Premt-rt to the rtai kernel, using the above method and uname does show the rtai kernel is loaded, so all well there I think.

LinuxCNC program opens, is there a way to check I do have Linuxcnc for RTAI kernel?

Stepconf wizard opens.

Latency Test does not open.

None of the docs open, I did get this message
"An error occurred. The following details are provided: E: /tmp/apt-dpkg-install-u3Rr2j/00-linuxcnc_1%3a2.9.3_amd64.deb: trying to overwrite /usr/share/applications/linuxcnc-documentation.desktop which is also in package linuxcnc-doc-en 1:2.9.3"

In case it's relevant,  I didn't manage to load linux.image using the dpkg command, so used 'Linuxcnc' in synaptic package manager.

Not sure how to resolve these issues?
Last edit: 28 Oct 2024 21:37 by Dougal9887.

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

More
29 Oct 2024 20:25 #313456 by Dougal9887
Resolved issues by installing via dpkg from the Linuxcnc Downloads page rather than the Synaptic packages, ie followed the instructions above!

Max jitter on Dell Optiplex 980 i3 550 3.2GHz, 16GB ram, 512GB SSD, has dropped from c.60,000 using preemt rt to c.9800 using rtai with everything recommended disabled in BIOS.

So a good result.
The following user(s) said Thank You: tommylight, NTULINUX

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

More
24 Nov 2024 22:59 #315197 by NTULINUX
Oh wow, nice! Glad you got it going!

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

Time to create page: 0.242 seconds
Powered by Kunena Forum