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

More
3 years 7 months ago #267278 by rodw
This might muddy the waters.....
There is not really any need to be building software on the pi when a  version of Debian Bookworm exists for several versions of the pi.
Here is some instructions I put together in April/May 2022.
docs.google.com/document/d/1S0K-UBlXnsYC...b_0/edit?usp=sharing

Note the Debian images do not install a graphical environment but we can install them using tasksel
Some of the tips came from a video showing Debian Bullseye I found over 12 months ago.
I don't think there is a solution to install  qtpyvcp and probe-basic yet.

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

More
3 years 7 months ago #267281 by mor
I'll look into that. I tried the standard official install instructions but after the auto-updates the pi wouldn't boot anymore so I gave up. This thread's instructions worked for me so far.

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

More
3 years 6 months ago - 3 years 6 months ago #268838 by theAndreas
Thanks for the great tutorial. I wanted to have a kernel debian package of the realtime kernel. Unfortunately, there is no official deb package. So I decided to do it on my own. It was much more complex than expected. So I created a  GitHub repository . But be careful its work in progress.
Last edit: 3 years 6 months ago by theAndreas.
The following user(s) said Thank You: rodw

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

More
2 years 10 months ago - 2 years 10 months ago #287737 by jay.perez1

I don't think there is a solution to install  qtpyvcp and probe-basic yet.
Hi Rod,

I've been looking around to see if someone's been able to install probe_basic on a rpi4 setup but haven't found anything. Do you know if this has been accomplished yet ?

Thanks !

Jay

P.S. I should mention we're trying to use the BTT SKR v1.4 Turbo.
 
Last edit: 2 years 10 months ago by jay.perez1. Reason: Added information

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

More
2 years 4 days ago #313358 by behai
Hi,

Thank you Alan for the original instructions, I have learned a lot from this post in the three days.

-- I got stuck: my kernel is SMP PREEMPT rather than SMP PREEMPT_RT.

I am Be Hai from Melbourne, Australia. I would like to learn LinuxCNC. Presently I know nothing about CNC or LinuxCNC.

I am a computer programmer. I am familar with Linux, and a tiny bit familar with Raspberry Pi 4 Model B: I have been learning basic physical computing with it, using the Python language.

I have spent more than a week learning about LinuxCNC, particularly how to install it onto a Raspberry Pi 4 Model B.

I spent the last three days exercising the instructions kindly posted by Alan.

⓵ I am using a clean and fresh Ubuntu 24.04.1 LTS (Noble Numbat) machine to do the build.

( I first started with Ubuntu 22.10 (Kinetic Kudu) and I went nowhere with this EOL version. )

⓶ The command

```
make RASPIOS_IMAGE_NAME=raspios_full_arm64
```

produces raspios_lite_arm64-Pi5.zip. I burnt this image into my Pi 4 anyway. And I have managed to get as far as to section 2.6 Install Mesaflash. There are error in between but I managed to find solutions for them.

LinuxCNC was installed, but I could not run it since there was no desktop.

⓷ Based on the instruction given in github.com/remusmp/rpi-rt-kernel

I replaced ```make RASPIOS_IMAGE_NAME=raspios_full_arm64``` with:

```
sudo make Pi4
```

This command produces raspios_lite_arm64-Pi4.zip. Applying this image, the kernel information reports only SMP PREEMPT:

```
uname -a
```

Output:

```
Linux picnc 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
```

```
cat /proc/version
```

Output:

```
Linux version 6.6.31+rpt-rpi-v8 (serge@raspberrypi.com) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29)
```

⓸ Interestingly, if I use 'Raspberry Pi OS (other)' from Raspberry Pi Imager as shown:



Then select:

```
Raspberry Pi OS Full (64-bit)
A port of Debian Bookworm with desktop environment and recommended applications.
Released: 2024-07-04
Online - 2.8 GB download
```



I also have the exact same kernel, but also with the desktop.

I am taking a break... I will try again to get RT going.

Thank you.

...behai.

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

  • Cant do this anymore bye all
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 2 days ago #313465 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Installing LinuxCNC 2.9 on Raspberry Pi 4B with Preempt-RT kernel
First of all, my deepest deepest sympathies,sorry to hear you live in Melbourne, the only good thing Victoria has to other is Philip Island and the roads, airports and docks that lead out of the state.

Why aren't you using the premade image for your RPi ?

The links are on the Linuxcnc home page under downloads.
The following user(s) said Thank You: behai

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

Time to create page: 0.161 seconds
Powered by Kunena Forum