Kernel upgrading

I was having a problem with running StartOS on my mini pc (GMKTEC M5 PLUS 5825U) for last month or two. Every day, in the best case 2 days of uptime, my mini pc will freeze. Lights are on, but its disconnected from router, (LAN). When connected with mouse, keyboard and monitor, the screen is black and doesn’t react on CTRL+F5 to return screen from sleeping. WIFI was also returning some rpc error.

Anyway, as I was having a problem with graphics when installing other operating systems on this mini pc before (MX Linux in my case) I decided to update kernel to ahs (advanced hardware support) version that was working without problems for months on this pc, before I repurposed it for running StartOS.

To upgrade kernel (you can find some other version if you want, but this is one of the latest if not latest at this moment) :

sudo -i
sudo /usr/lib/startos/scripts/chroot-and-upgrade
apt install wget

wget https://mxrepo.com/mx/repo/pool/ahs/l/linux/linux-image-6.10.4-amd64-unsigned_6.10.4-1~mx23ahs_amd64.deb
wget https://mxrepo.com/mx/repo/pool/ahs/l/linux/linux-headers-6.10.4-amd64_6.10.4-1~mx23ahs_amd64.deb
wget https://mxrepo.com/mx/repo/pool/ahs/l/linux/linux-headers-6.10.4-common_6.10.4-1~mx23ahs_all.deb
wget https://mxrepo.com/mx/repo/pool/ahs/l/linux/linux-kbuild-6.10.4_6.10.4-1~mx23ahs_amd64.deb

dpkg -i linux-image-6.10.4-amd64-unsigned_6.10.4-1~mx23ahs_amd64.deb linux-headers-6.10.4-amd64_6.10.4-1~mx23ahs_amd64.deb linux-headers-6.10.4-common_6.10.4-1~mx23ahs_all.deb linux-kbuild-6.10.4_6.10.4-1~mx23ahs_amd64.deb

update-grub

exit

If something goes wrong you can always reflash StartOS. Even better, you can use virtualbox to install StartOS and install custom kernel for exercise.

The fact that the data partition is separate from the OS partitions in StartOS means yes, you can do anything like this you want and if it does go wrong, you’re a reflash away from having everything back as before.

1 Like