Debian Trixie upgrade/install to 2.9.4

More
1 year 2 months ago #333142 by rodw
Debian Trixie is released Yeay!!

It contains Linuxcnc 2.9.4 Wow! 
To upgrade from Bookworm, very rough instructions

sudo apt update
edit /etc/apt/sources.list and replace any instance of bookworm with trixie
sudo apt update
sudo apt upgrade.
Check you are booting in to the new 6.12 Real time kernel
run sudo grub-customizer to set this.
Reboot into the 6.1.2 RT kernel

I removed my version of linuxcnc
sudo apt remove linuxcnc-uspace linuxcnc-uspace-dev

If it is a new install, download debian from Debian.org Trixie is their  current release and install with balena etcher

Check you are running Trixie: lsb_release -a
Check you are runing the prempt_rt kernel 6.12: uname -v (the RT kernel got installed for me)
Linuxcnc should install the RT kernel but I have not checked that.

Install linuxcnc. Seems one dependency did not play well

sudo apt install libqt5webengine5
sudo apt install linuxcnc-uspace linuxcnc-uspace-dev

enjoy Thats It. If you are running ethercat, I think the packages need to be removed and reinstalled as the config ssemed to be missing config files in 6.12

PS I am using the Cinamon Desktop, Latency seems good even without isolating any cores
Seems that I can run the RT kernel without this desktop hanging which is good! I'll see how it goes.
 

Attachment not found


Have fun

Please Log in to join the conversation.

More
1 year 2 months ago #333146 by unknown
Thanks for Rod.

So those with only 4 cores should there be any issues ?

In case anyone is thinking the RPi may require at a bit of time cos of a library incompatibility that was seen earlier.

Please Log in to join the conversation.

More
1 year 2 months ago #333152 by rodw
I don't think it will cause problems. In fact, I could not run PREEMPT_RT on bookworm or this PC and it would also hang on the normal kernel sometimes. I gave the PC a workout tonight on preempt_rt and its been perfectly stable. I'll try and build a trixie ISO now as the Debian builder takes the OS from the running version.

Just look at the usual network driver upgrades and disable energy efficient Ethernet (EEE) because it will cause latency spikes.

Please Log in to join the conversation.

More
1 year 2 months ago #333224 by onceloved
I have a fresh install of Trixie and linuxcnc and ethercat and it works fine

Please Log in to join the conversation.

More
1 year 2 months ago #333237 by MaxEkb77
I upgrade from bookworm to trixie & ethercat work fine

Please Log in to join the conversation.

More
1 year 2 months ago #333238 by rodw
Great feedback guys.
Did you have any issues with libqt5webengine5?
Last feedback I got, this was an issue with the Debian installer not properly handling our Deb file...

Please Log in to join the conversation.

More
1 year 2 months ago #333240 by Hakan
apt update, apt upgrade, apt dist-upgrade
Ethercat works. Didn't have an issue with the Qt package, might have brought it in earlier.
Did need to reinstall linuxcnc-ethercat.
Then it ran fine on the right RT kernel.

Adding that I see the Ethercat kernel modules get signed so there's a big chance we don't need the trouble with secure boot anymore.
Can't test it but someone maybe can check?

Please Log in to join the conversation.

More
1 year 2 months ago #333244 by rodw
Great feedback.
I think on the dist-upgrade, the EC config is not copied to the new kernel. I seem to remember they said you need to install EC for every kernel you use,

The Ethercat key has always been there. But if Secure boot  is enabled in your BIOS, you need to do the MOK key thing but it is for authorizing the DKMS driver which is a kernel module they use in the install. This has been discussed in an issue I raised on their gitlab repo and they gave very helpful guidance which I added to my sticky..  gitlab.com/etherlab.org/ethercat

If possible disable secure boot but if you have a dual boot with Windows and an encrypted drive you have to retain it or you trash the drive.

Please Log in to join the conversation.

More
1 year 2 months ago #333264 by Hakan
Ended up reinstalling ethercat_dkms and ethercat_master, before that I got errors
of not being able to read PDO at 0x0000 or something. After reinstall that's gone.

Yes, I'm trying to float over the certificate thing without really understanding.
I did some reading on the subject and the lines you have in the sticky file should make secure boot and ethercat modules work together. I'll point to that next time.

Please Log in to join the conversation.

More
1 year 2 months ago #333457 by unknown
My Odroid H2 is now on Trixie.

Insalled rt headers, r8125-dkms, blacklisted r8169.

Touchscreen works.

Please Log in to join the conversation.

Time to create page: 0.398 seconds
Powered by Kunena Forum