Important Info Regarding Rpi4/5 Images.

More
18 May 2025 07:30 #328671 by unknown
Following on form this thread.
forum.linuxcnc.org/9-installing-linuxcnc...build-boot-initrd-gz

Please do not run dist-upgrade or attempt to upgrade the kernel, unless you know exactly you are doing and are using the RPi kernel sources from the github page, and be aware some branches do not build or install the device tree files. The kernel was chosen carefully when the image was being built.

The kernel sources are specific to the RPi platform, from memory a Debian Arm kernel didn't allow for device tree overlays, which becomes an issue for enabling I2C and SPI to begin with.

If you find yourself in this position, back up you configs and reburn the image to the SD card, and copy across your configs. If you find a way to fix it by any other means great, but this is not a subject I wish to get involved in nor support.
The following user(s) said Thank You: tommylight, rodw

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

More
18 May 2025 16:12 - 20 May 2025 00:16 #328700 by langdons
Replied by langdons on topic Important Info Regarding Rpi4/5 Images.
Deleted.
Last edit: 20 May 2025 00:16 by langdons. Reason: Deleted.

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

More
18 May 2025 17:27 #328704 by unknown
Replied by unknown on topic Important Info Regarding Rpi4/5 Images.
On a normal daily driver or even server kernel upgrades are fine.
The issue in this instance is that the kernel used in the image is particular to the RPi and is custom built.
From playing around with various Arm devices the boards aren't as "generic" as the PC platform. Each Arm processor or SOC has it's own quirks as such. The device tree is a way to let the Linux kernel know which devices are available, device tree overlays are used to further customise the setup.
Then there are custom patches that are used to further "tune" a particular board.
I have 3 main machines at home running Linux, one desktop and laptop running Mint and a server running Ubuntu, kernel upgrades are not an issue on any of these 3.
Obviously I have an RPi5 & 4 for testing Linuxcnc images, so these don't see kernel upgrades unless testing new images.
The Orangepi PC that running my hacked together reflow oven doesn't get upgrades, it works and is left alone, but it does have a custom device tree has I needed some status LEDs and an off button on the front panel from the GPIO header. Now if I was to upgrade this kernel I would also have to rebuild the device tree file to suit.
Whilst the Arm platform is good, it's come along way in 20 years, it's not as generic as the PC platform, it's kinda like pre PC days.......but without the OS software issues.

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

More
18 May 2025 18:48 - 20 May 2025 00:16 #328708 by langdons
Replied by langdons on topic Important Info Regarding Rpi4/5 Images.
Deleted.
Last edit: 20 May 2025 00:16 by langdons. Reason: Deleted.

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

More
18 May 2025 18:51 - 20 May 2025 00:17 #328709 by langdons
Replied by langdons on topic Important Info Regarding Rpi4/5 Images.
Deleted.
Last edit: 20 May 2025 00:17 by langdons. Reason: Deleted.

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

More
18 May 2025 22:10 #328718 by unknown
Replied by unknown on topic Important Info Regarding Rpi4/5 Images.
It was dist-upgrade being the issue, upgrade is fine as the kernel is pinned anyways.

As usual your comments add nothing to the discussion.

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

More
19 May 2025 11:52 #328736 by rodw
Replied by rodw on topic Important Info Regarding Rpi4/5 Images.
I have no idea how Ubuntu got in the conversation, these images are based on Debian with the Rpi kernel.

The kernel version used is ahead of the standard Debian versions so things break on a dist-upgrade.

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

More
20 May 2025 00:17 #328765 by langdons
Replied by langdons on topic Important Info Regarding Rpi4/5 Images.
Is dist-upgrade ever a good idea?

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
20 May 2025 05:03 #328781 by tommylight
Replied by tommylight on topic Important Info Regarding Rpi4/5 Images.

Is dist-upgrade ever a good idea?

Yes, when you download an ISO, it might be several months old, so that will update to the latest stuff for that distro, including kernels and stuff that "might break things".

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

More
20 May 2025 06:50 #328784 by unknown
Replied by unknown on topic Important Info Regarding Rpi4/5 Images.
For the Linuxcnc Raspberry Pi images just don't do dist-upgrade, it will break things, this has been proven.

You get get away without doing any kind of upgrade.

If you are worried about security, updates are only a small part of the picture. The first step should always be physical security, which should be the number one priority with a computer running a cnc machine.I'd take data loss over damage to a cnc machine any day of the week, you can't back up a cnc machine.
The following user(s) said Thank You: tommylight, langdons

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

Time to create page: 0.102 seconds
Powered by Kunena Forum