Installing LinuxCNC 2.9 on Raspberry Pi 4B with Preempt-RT kernel

More
08 Jan 2023 12:41 #261258 by RMS
Alan,
Thanks.
The instability I was experiencing was particularly related to network connection.
The CM4 has heatsink with a fan attached, so there must be some other type of issue.
BR,
RMS

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

More
08 Jan 2023 18:39 #261293 by andypugh

1. I've added a note about needing an very large heat sink.


I have had decent results with the passive heatsink cases:
www.amazon.co.uk/dp/B082Y2RGMP
I haven't tried this style, but it looks like it might be at least as good, and it's more of a case.
www.amazon.co.uk/dp/B08L8M6GJ7

(Not promoting any particular supplier, just indicative of the style of case I am talking about)
The following user(s) said Thank You: RMS

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

More
09 Jan 2023 01:35 #261319 by RMS
looks cool - ha ha
thanks
RMS

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

More
09 Jan 2023 23:22 #261389 by RMS
After closer look at overclocking instabilities, I am leaning to conclusion that culprit might be in the wall transformer current deficiency.

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

More
11 Jan 2023 16:43 #261587 by RMS
@Alan
Few days ago, I have stumbled by calling “halcompile”, while trying making changes in userkin.comp

The $ sudo apt-get install linux-cnc will not work with our new kernel: Linux linuxcnc29 5.15.84-rt54-v8+ #1 SMP PREEMPT_RT Fri Dec 23 20:39:48 CET 2022 aarch64 GNU/Linux,
thus, we need to bring latest source from GitHub

With lovely receipt of installation brought by Alan, and already dependencies in our system in place the recipe for building linuxcnc-dev is below.

####################
Here are the steps:
Ideally like before git the branch in your /home/pi directory

$ git clone github.com/LinuxCNC/linuxcnc.git linuxcnc-dev

#after you git go to src

$ cd linuxcnc-dev/src
$ ./configure --help
$ ./autogen.sh

# To check what options are available invoke configure with –help
$ ./configure –help

#I have decided to use only additional three parameters

$ ./configure --with-realtime=uspace --with-boost=yes --with-libusb-1.0
$ make -j4
$ sudo make setuid
$ source ../scripts/rip-environment
$ runtests
$ linuxcnc

Above last cmd will invoke build “in place” a new version of linuxcnc.
LINUXCNC - 2.10.0~pre0

Note:
Linuxcnc-dev 2.10.0~pre0 is confined in own directory and is not interfering with previous deb install

Worth to mention to novice members that selection between versions is easy.
A fresh terminal window without setting rip-environment
$ linuxcnc
Brings LINUXCNC - 2.9.0~pre1

However, after dwelling into subfolder scripts of linuxcnc-dev and setting source like below
$ source rip-environment
Linuxcnc-dev 2.10.0~pre0 will be chosen instead.

I must admit when I started working with linuxcnc it was confusing at the beginning.

Alan perhaps you can complement your instructions with my notes, so everything will be more compact.

Thanks
RMS
The following user(s) said Thank You: Donno

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

More
06 Feb 2023 13:10 #263819 by JT

1. On Linux desktop computer

Everything in this section should be run on your Linux desktop computer. These commands were tested on Linux Mint 21, but any reasonably recent Debian distro should work.

1.1 Install Raspberry Pi Imager

sudo apt install rpi-imager


 

I just thought I'd mention that rpi-imager is not in Debian 13 for sure and I've not checked older Debian OS's.

Thanks for reminding folks about the Mesa Configuration Tool.

JT

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

More
06 Feb 2023 13:21 #263822 by JT
I didn't get very far until I had an error...
john@cave:~$ cd rpi-rt-64
john@cave:~/rpi-rt-64$ git clone --depth 1 https://github.com/remusmp/rpi-rt-kernel
Cloning into 'rpi-rt-kernel'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 9 (delta 0), reused 6 (delta 0), pack-reused 0
Receiving objects: 100% (9/9), 6.17 KiB | 6.17 MiB/s, done.
john@cave:~/rpi-rt-64$ ls
notes.txt  rpi-rt-kernel
john@cave:~/rpi-rt-64$ cd rpi-rt-kernel
john@cave:~/rpi-rt-64/rpi-rt-kernel$ make RASPIOS_IMAGE_NAME=raspios_full_arm64
rm -fr build
make build raspios_image_name=raspios_full_arm64
make[1]: Entering directory '/home/john/rpi-rt-64/rpi-rt-kernel'
mkdir -p build
docker build --build-arg PLATFORM32= --build-arg RASPIOS_IMAGE_NAME=raspios_full_arm64 -t rpi-rt-linux .
make[1]: docker: No such file or directory
make[1]: *** [Makefile:16: build] Error 127
make[1]: Leaving directory '/home/john/rpi-rt-64/rpi-rt-kernel'
make: *** [Makefile:6: all] Error 2
john@cave:~/rpi-rt-64/rpi-rt-kernel$ 

JT

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

More
06 Feb 2023 13:41 #263825 by tommylight
make[1]: docker: No such file or directory
It is looking for Docker, although i wonder why, but
sudo apt install docker
should do just fine.
The following user(s) said Thank You: JT

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

More
21 Feb 2023 08:31 #264936 by alangibson
To anyone looking for a low latency board computer that you can actually get your hands on, check out this thread.

forum.linuxcnc.org/18-computer/48113-odr...ent-for-raspberry-pi

We've managed to get sub-20 microsecond latency under realistic test conditions.

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

More
21 Feb 2023 08:33 #264937 by alangibson
> It is looking for Docker, although i wonder why

It uses docker as a stable build environment. That controls a lot of variables for you.

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

Time to create page: 0.165 seconds
Powered by Kunena Forum