Debian 10.x/11.x Kernel Updates

I’m looking to end the “update_kernel.sh” script, in Debian 10.x/11.x i’m working meta packages for kernel branches for users to more easily stay on a LTS kernel:

For example, to stay on v5.10.x-ti for the am335x just run:

sudo apt update
sudo apt install bbb.io-kernel-5.10-ti-am335x
sudo reboot

Upgrades:

sudo apt update ; sudo apt upgrade

All Options (only install one, if you install 2, your upgrades will swap between…)

v4.19.x-ti branch:

bbb.io-kernel-4.19-ti-am335x - BeagleBoard.org 4.19-ti for am335x
bbb.io-kernel-4.19-ti-am57xx - BeagleBoard.org 4.19-ti for am57xx

v4.19.x-ti-rt branch:

bbb.io-kernel-4.19-ti-rt-am335x - BeagleBoard.org 4.19-ti-rt for am335x
bbb.io-kernel-4.19-ti-rt-am57xx - BeagleBoard.org 4.19-ti-rt for am57xx

v5.4.x-ti branch:

bbb.io-kernel-5.4-ti-am335x - BeagleBoard.org 5.4-ti for am335x
bbb.io-kernel-5.4-ti-am57xx - BeagleBoard.org 5.4-ti for am57xx

v5.4.x-ti-rt branch:

bbb.io-kernel-5.4-ti-rt-am335x - BeagleBoard.org 5.4-ti-rt for am335x
bbb.io-kernel-5.4-ti-rt-am57xx - BeagleBoard.org 5.4-ti-rt for am57xx

v5.10.x-ti branch:

bbb.io-kernel-5.10-ti-am335x - BeagleBoard.org 5.10-ti for am335x
bbb.io-kernel-5.10-ti-am57xx - BeagleBoard.org 5.10-ti for am57xx

v5.10.x-ti-rt branch:

bbb.io-kernel-5.10-ti-rt-am335x - BeagleBoard.org 5.10-ti-rt for am335x
bbb.io-kernel-5.10-ti-rt-am57xx - BeagleBoard.org 5.10-ti-rt for am57xx

4.19.x LTS mainline branches:

bbb.io-kernel-4.19-armv7 - BeagleBoard.org 4.19-armv7 for armv7
bbb.io-kernel-4.19-armv7-lpae - BeagleBoard.org 4.19-armv7-lpae for armv7-lpae
bbb.io-kernel-4.19-armv7-rt - BeagleBoard.org 4.19-armv7-rt for armv7
bbb.io-kernel-4.19-bone - BeagleBoard.org 4.19-bone for am335x
bbb.io-kernel-4.19-bone-rt - BeagleBoard.org 4.19-bone-rt for am335x

5.4.x LTS mainline branches:

bbb.io-kernel-5.4-armv7 - BeagleBoard.org 5.4-armv7 for armv7
bbb.io-kernel-5.4-armv7-lpae - BeagleBoard.org 5.4-armv7-lpae for armv7-lpae
bbb.io-kernel-5.4-armv7-rt - BeagleBoard.org 5.4-armv7-rt for armv7
bbb.io-kernel-5.4-bone - BeagleBoard.org 5.4-bone for am335x
bbb.io-kernel-5.4-bone-rt - BeagleBoard.org 5.4-bone-rt for am335x

5.10.x LTS mainline branches:

bbb.io-kernel-5.10-armv7 - BeagleBoard.org 5.10-armv7 for armv7
bbb.io-kernel-5.10-armv7-lpae - BeagleBoard.org 5.10-armv7-lpae for armv7-lpae
bbb.io-kernel-5.10-armv7-rt - BeagleBoard.org 5.10-armv7-rt for armv7
bbb.io-kernel-5.10-bone - BeagleBoard.org 5.10-bone for am335x
bbb.io-kernel-5.10-bone-rt - BeagleBoard.org 5.10-bone-rt for am335x

5.15.x LTS mainline branches:

bbb.io-kernel-5.15-armv7 - BeagleBoard.org 5.15-armv7 for armv7
bbb.io-kernel-5.15-armv7-lpae - BeagleBoard.org 5.15-armv7-lpae for armv7-lpae
bbb.io-kernel-5.15-bone - BeagleBoard.org 5.15-bone for am335x

Edits:
2021.11.01 - add v5.15.x lts branches

Regards,

Sounds good! How to switch branches? Lets say I’m on

sudo apt update
sudo apt install bbb.io-kernel-5.10-ti-am335x
sudo reboot

And I want to switch

sudo apt install bbb.io-kernel-5.10-bone
sudo reboot

Can I purge the original branch?

sudo apt purge bbb.io-kernel-5.10-ti-am335x

If so, when executing this (before/after reboot)?

Regards

Hi @DTJF in that case, order is important:

sudo apt update
sudo apt install bbb.io-kernel-5.10-ti-am335x

/boot/uEnv.txt is now setup for 5.10-ti:

sudo apt install bbb.io-kernel-5.10-bone

/boot/uEnv.txt is now setup for 5.10-bone

So you can safely run:

sudo apt remove bbb.io-kernel-5.10-ti-am335x

Basiclly, last “installed” will be the default in /boot/uEnv.txt

If you were to leave both bbb.io-kernel-5.10-ti-am335x and bbb.io-kernel-5.10-bone installed, “whatever” got the next kernel update would become your default in /boot/uEnv.txt

Regards,

I am getting back into Beaglebones after a few years not doing anything, what is the reason that there are so many version of the kernel?

Kind Regards,
Johan.

Requirements of design integrators… I just patched 3.8.x ‘again’ for a customer this week…

Regards,

OK, but if one would start a new project, what would be the best strategy for a long term, let’s say 10 years?

(I’d never would imagine, still reading books from 2000 years ago, that long term would shrink to 10 years)

Kind Regards,
Johan

Right now: v5.10.x:

https://www.kernel.org/category/releases.html

sudo apt update ; sudo apt install bbb.io-kernel-5.10-bone

Regards,

Hello Robert,

After updating the kernel using apt is there anything that should be done to remove the old kernel installed by the scripts?

Nothing automated, feel free to remove old kernel packages as you wish…

Regards,