RPI4 Raspbian 64 bit & LinuxCNC
I'm just trying to remove some roadblocks so 2.9 is released sooner than later.
Please Log in or Create an account to join the conversation.
I thought the "normal" Raspberian style would use rpi-imager www.raspberrypi.com/software/
The 'normal' Raspian stylee dd from the SDCard to a USB SSD doesn't result in a bootable USB device but sticking Cornholio's .img on a USB SSD does boot... but didn't auto-resize the root partition a parted and resize2fs sorted that (no not idea but it worked!).
Balena Etcher is also an alternative which runs on any platform and is way faster than dd
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Getting a little OT but rpi-imager/etcher is primarily a means to create a bootable SD Card from a .img file. I was talking about migrating a live system running on an SD Card to a USB SSD on a RPi and yes there are pretty, gui ways of doing this in Raspian World for people that can't spell dd
I thought the "normal" Raspberian style would use rpi-imager www.raspberrypi.com/software/
Balena Etcher is also an alternative which runs on any platform and is way faster than dd
Back on topic; as LinuxCNC is an official part of Debian Bookworm, given a bootable Bookworm for the RPi (which Cornholio seems to have given us; thank you) going forward users would just "apt update", "apt upgrade" to get the latest official LinuxCNC release and life is good (even then why would you if it's all working? My Mill is happily running on 2.8.0-pre1 of 2016 vintage ).
There isn't really a need to generate new .img files that I can see until, possibly, Trixie comes along in a couple of years time with a different kernel; and even then a dist-upgrade might work (note to Cornholio: should there be a repo in sources.list for the rt kernel?).
So thanks to both yourself and Cornholio. I now have LinuxCNC 2.9 on Bookworm on my RPi with which to continue my lathe conversion.
Please Log in or Create an account to join the conversation.
I told you I am not a pi user....
And not having much luck here, Somehow I have corrupted the linux internals so need to install linux again
Just trying to do the final mucking arround to save the linuxcnc debs in the output folder.
Please Log in or Create an account to join the conversation.
To have a repo for the kernel someone would have to have a server setup as repo. I did that once (for packages built for Linuxcnc on Mint) and no not again.
Please Log in or Create an account to join the conversation.
On the Pi, you are not able to just do an apt update to get the latest version of linuxcnc. You will either have to get a newer img from us or build from source because there are no pi images being created by the new linuxcnc buildbot. The one in Bookworm is dated February I think.
I told you I am not a pi user....
I'm going to try and scp to copy from the qemu guest (which is doing the build) to the host (the machine running image builder)
Please Log in or Create an account to join the conversation.
Now I'm confused again (easily done).On the Pi, you are not able to just do an apt update to get the latest version of linuxcnc.
As LinuxCNC is an official Debian thing hosted in the Debian repository then the package maintainer will, presumably, have to love and care for it, push stable updates to Debian which then become available to update like any other Debian package. A Debian version isn't frozen; just look at the number of in-release updates.
This obviously won't get the latest bleeding edge dev version but should cover the stable released ones.
Or am I totaly misunderstanding the point of getting LinuxCNC into the official Debian repo?
Please Log in or Create an account to join the conversation.
forum.linuxcnc.org/9-installing-linuxcnc...cnc?start=280#280137
Please Log in or Create an account to join the conversation.
But that buildbot is unable to build the debs for the Pi so the only option is to build from source to update linuxcnc. Its my hope that this installer could be hooked into the buildbot system and produce an image and updated debs for the pi whenever the code base is changed. But I am not a decision maker, I am just trying to remove some roadblocks.
So Debian 12 was released on the 6.1 kernel. Further to Cornholio's comments, we need the Preempt-rt patch from kernel.org. This can be found at kernel.org mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.1/
Each version of the Linux kernel goes through a number of releases. the latest RT patch you can see it is 6.1.46
This patch is used to update the ordinary kernel code and compiled to get a PREEMPT_RT kernel. But it needs to be applied to the same version to guarantee reliable operation. The Raspberry Pi kernel repo has advanced to 6.1.51 so we can't use the very latest. Instead we searched the git tree and found the commit where the 6.1.46 kernel was merged into the raspberry kernel. So this is the base code we retrieve in the installer and we have copied the RT patch into a folder in the installer which first applies our patch, the builds the kernel, followed by a root file system and linuxcnc and turns it into an image. Because the linux kernel has now advanced up to 6.5, its unlikely the patch will change, so this should last for a long time. Except for the need to update linuxcnc.
Please Log in or Create an account to join the conversation.