Welcome! Log In Create A New Profile

Advanced

Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.

Posted by miazza 
Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.
May 11, 2022 11:55AM
I'm trying to update my kernel following the instructions Updated 27 Apr 2022.

At the point 3 I get the error that flash-kernel is not installed:

root@debian:/boot# apt-get remove flash-kernel
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'flash-kernel' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

what am I doing wrong ?
Re: Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.
May 11, 2022 02:19PM
I believe you can safely ignore this package removal step.
Re: Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.
May 11, 2022 02:49PM
Thank you. I supposed it was like that but I wanted to be sure.

Everything went smooth.

In the boot folder now I have a mess of files:

 config-5.17.4-kirkwood-tld-1               linux-5.17.4-kirkwood-tld-1.patch                  uEnv.txt                       zImage-5.13.6-kirkwood-tld-1
..                                dts                                        linux-dtb-5.17.4-kirkwood-tld-1.tar                uImage                         zImage-5.17.4-kirkwood-tld-1
System.map-5.13.6-kirkwood-tld-1  initrd.img-5.13.6-kirkwood-tld-1           linux-headers-5.13.6-kirkwood-tld-1_1.0_armel.deb  uInitrd
System.map-5.17.4-kirkwood-tld-1  initrd.img-5.17.4-kirkwood-tld-1           linux-headers-5.17.4-kirkwood-tld-1_1.0_armel.deb  vmlinuz-5.13.6-kirkwood-tld-1
config-5.13.6-kirkwood-tld-1      linux-5.17.4-kirkwood-tld-1-bodhi.tar.bz2  linux-image-5.17.4-kirkwood-tld-1_1.0_armel.deb    vmlinuz-5.17.4-kirkwood-tld-1

I guess I can delete the followings:
zImage-5.13.6-kirkwood-tld-1
linux-dtb-5.17.4-kirkwood-tld-1.tar
System.map-5.13.6-kirkwood-tld-1
initrd.img-5.13.6-kirkwood-tld-1
linux-headers-5.13.6-kirkwood-tld-1_1.0_armel.deb
linux-headers-5.17.4-kirkwood-tld-1_1.0_armel.deb
vmlinuz-5.13.6-kirkwood-tld-1
config-5.13.6-kirkwood-tld-1
linux-5.17.4-kirkwood-tld-1-bodhi.tar.bz2
linux-image-5.17.4-kirkwood-tld-1_1.0_armel.deb

right ?

all the ones referring to 5.13.6
Re: Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.
May 11, 2022 03:09PM
miazza,

> Thank you. I supposed it was like that but I
> wanted to be sure.

Yes, instruction to remove is there as a precaution when people install the kernel from a mainline rootfs.

delete:

> linux-dtb-5.17.4-kirkwood-tld-1.tar
> linux-5.17.4-kirkwood-tld-1-bodhi.tar.bz2

But keep everything else, those are kernel files, in case you have to recreate the uImage and uInitrd. And also in case you have to reinstall the current kernel or previous kernel.

You coud uninstall the kernel 5.13.6 to save space and clean up. But I would keep that as a back up kernel (so you can boot back to that kernel too).

Do a listing with this command so sort files by date in reverse, so that you can see it is not a mess afterall:

ls -lart

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.
May 11, 2022 03:13PM
You could also create a folder and move them there

cd /boot
mkdir -p kernel
mv -i linux-image-*.deb *.tar *.bz2 ./kernel

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.
May 11, 2022 03:27PM
bodhi Wrote:
-------------------------------------------------------
> You could also create a folder and move them
> there
>
>
> cd /boot
> mkdir -p kernel
> mv -i linux-image-*.deb *.tar *.bz2 ./kernel
>

Why not. the point here is that at every kernel update the mess inceases :)
Re: Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.
May 11, 2022 04:00PM
> Why not. the point here is that at every kernel
> update the mess inceases :)

Yup :) But the kernel files must be in /boot for certain things to work, such as Debian version upgrade. So keep 2 versions and uninstall the rest.

Example to uninstall a kernel version (any version except the one running).

List them

root@tldDebian:/boot# dpkg -l | grep linux-image
ii  linux-image-5.14.9-mvebu-tld-1:armhf   1.0                                 armhf        Linux kernel, version 5.14.9-mvebu-tld-1
ii  linux-image-5.15.5-mvebu-tld-1:armhf   1.0                                 armhf        Linux kernel, version 5.15.5-mvebu-tld-1
ii  linux-image-5.16.5-mvebu-tld-1:armhf   1.0                                 armhf        Linux kernel, version 5.16.5-mvebu-tld-1
ii  linux-image-5.17.4-mvebu-tld-1:armhf   1.0                                 armhf        Linux kernel, version 5.17.4-mvebu-tld-1

Uninstall 5.14.9-mvebu-tld-1
dpkg --purge linux-image-5.14.9-mvebu-tld-1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 05/12/2022 02:06AM by bodhi.
Re: Kernel update to Kernel linux-5.17.4-kirkwood-tld-1.
May 12, 2022 01:15AM
Every time I write something on this forum I learn something.

Thank you !
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: