Trying to install RTAI, got errors

More
19 Jun 2024 18:39 - 19 Jun 2024 18:55 #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: 19 Jun 2024 18:55 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.

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.

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.

Time to create page: 0.077 seconds
Powered by Kunena Forum