How to update the Kernel?

Post Reply
DarthKeizer
Posts: 10
Joined: Fri Jul 15, 2022 6:57 pm
languages_spoken: english
ODROIDs: ODROID-C4
Has thanked: 3 times
Been thanked: 0
Contact:

How to update the Kernel?

Post by DarthKeizer »

Hi guys,
I have tried everything i know of:
  • Update the repo to jammy and update full-upgrade
  • sudo ubuntu-mainline-kernel.sh -i , this script iver tried
  • apt-cache search linux-image and installing the latest from there.
screenshot below:

Image

User avatar
odroid
Site Admin
Posts: 41084
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3194 times
Been thanked: 1753 times
Contact:

Re: How to update the Kernel?

Post by odroid »

Our latest official Kernel version is the same 4.9.312 as you found to support the GPU & VPU HW acceleration.
https://wiki.odroid.com/odroid-c4/os_im ... l/20220705

If you don't need the HW VPU (4K video playback) acceleration, freshly flash @tobetter's Ubuntu 22.04 image which supports the upstream Kernel 5.18 since Kernel updating path from 4.9 to 5.1x is not available.
viewtopic.php?f=52&t=44177
These users thanked the author odroid for the post:
DarthKeizer (Wed Jul 20, 2022 2:58 am)

DarthKeizer
Posts: 10
Joined: Fri Jul 15, 2022 6:57 pm
languages_spoken: english
ODROIDs: ODROID-C4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: How to update the Kernel?

Post by DarthKeizer »

odroid wrote:
Mon Jul 18, 2022 10:22 am
Our latest official Kernel version is the same 4.9.312 as you found to support the GPU & VPU HW acceleration.
https://wiki.odroid.com/odroid-c4/os_im ... l/20220705

If you don't need the HW VPU (4K video playback) acceleration, freshly flash @tobetter's Ubuntu 22.04 image which supports the upstream Kernel 5.18 since Kernel updating path from 4.9 to 5.1x is not available.
viewtopic.php?f=52&t=44177
Okay so just download the 22.04 and flash it and im good to go?

DarthKeizer
Posts: 10
Joined: Fri Jul 15, 2022 6:57 pm
languages_spoken: english
ODROIDs: ODROID-C4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: How to update the Kernel?

Post by DarthKeizer »

odroid wrote:
Mon Jul 18, 2022 10:22 am
Our latest official Kernel version is the same 4.9.312 as you found to support the GPU & VPU HW acceleration.
https://wiki.odroid.com/odroid-c4/os_im ... l/20220705

If you don't need the HW VPU (4K video playback) acceleration, freshly flash @tobetter's Ubuntu 22.04 image which supports the upstream Kernel 5.18 since Kernel updating path from 4.9 to 5.1x is not available.
viewtopic.php?f=52&t=44177
How can I upgrade to 22.04 from my 20.04 build?

User avatar
mad_ady
Posts: 11446
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1115 times
Contact:

Re: How to update the Kernel?

Post by mad_ady »

You can do sudo do-release-upgrade -d, but you may need to manually re-enable hardkernel's repos after the upgrade.
These users thanked the author mad_ady for the post:
DarthKeizer (Wed Jul 20, 2022 10:30 pm)

DarthKeizer
Posts: 10
Joined: Fri Jul 15, 2022 6:57 pm
languages_spoken: english
ODROIDs: ODROID-C4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: How to update the Kernel?

Post by DarthKeizer »

mad_ady wrote:
Wed Jul 20, 2022 4:14 am
You can do sudo do-release-upgrade -d, but you may need to manually re-enable hardkernel's repos after the upgrade.
Thanks, sorry for being such a noob!. Where are those repos located at, so i can copy and paste?

User avatar
mad_ady
Posts: 11446
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1115 times
Contact:

Re: How to update the Kernel?

Post by mad_ady »

After the upgrade you'll need to update the files in /etc/apt/sources.list.d/*. Uncomment the lines containing "jammy" and run sudo apt-get update; sudo apt-get dist-upgrade to finish.

HWAM
Posts: 3
Joined: Sun Jan 29, 2023 8:33 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: How to update the Kernel?

Post by HWAM »

I have Odroid N2+ with hardkernel image Ubuntu Mate 22.04. Just the regular image on the Odroid site.

Kernel 4.9.

How can I update to kernel to run docker? At least 4.15 or 4.19 I guess.

User avatar
mad_ady
Posts: 11446
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1115 times
Contact:

Re: How to update the Kernel?

Post by mad_ady »

Kernel 4.9 should support Docker. Make sure you've updated sudo apt-get dist-upgrade, and run the script that checks compiance with docker features.

Upgrading to tobetter's mainline kernel build is more difficult from the stock image and it's not recommended/documented (might imply changes in uboot too)

K33pSm1l1ng
Posts: 2
Joined: Thu May 18, 2023 5:10 am
languages_spoken: english
ODROIDs: N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: How to update the Kernel?

Post by K33pSm1l1ng »

mad_ady wrote:
Mon Jan 30, 2023 4:33 am
Kernel 4.9 should support Docker. Make sure you've updated sudo apt-get dist-upgrade, and run the script that checks compiance with docker features.

Upgrading to tobetter's mainline kernel build is more difficult from the stock image and it's not recommended/documented (might imply changes in uboot too)
Sadly docker doesn't support the Ubuntu 22.04 Image. Because Ubuntu 22.04. uses "cgroup v2", which is used by default by Docker. "Enabling cgroup v2 for containers requires kernel 4.15 or later. Kernel 5.2 or later is recommended."
And I found no solution to change that setting for the kernel. It took me several hours to find that out, but I'm by far no expert to things like that.

So there are only a few options available as workaround:
  • you could use the way more outdated Ubuntu 20.04. image
  • instead of Docker you could try e.g. podman but it isn't fully supported for NextCloud, if you want to use it

User avatar
mad_ady
Posts: 11446
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1115 times
Contact:

Re: How to update the Kernel?

Post by mad_ady »

Hmm, I wasn't aware of that problem. Internet searches suggest adding systemd.unified_cgroup_hierarchy=0 to the kernel command line (boot.ini on the stack image).

Otherwise, tobetter also ships modern kernels for c4 in his netboot images.

K33pSm1l1ng
Posts: 2
Joined: Thu May 18, 2023 5:10 am
languages_spoken: english
ODROIDs: N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: How to update the Kernel?

Post by K33pSm1l1ng »

mad_ady wrote:
Thu May 18, 2023 3:17 pm
Hmm, I wasn't aware of that problem. Internet searches suggest adding systemd.unified_cgroup_hierarchy=0 to the kernel command line (boot.ini on the stack image).

Otherwise, tobetter also ships modern kernels for c4 in his netboot images.
Yeah found that solution as well but I didn't managed to make it running. Docker says here:

Code: Select all

 sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=1" 
But the grubby command doesn't exists and the other solution:
If grubby command is not available, edit the GRUB_CMDLINE_LINUX line in /etc/default/grub and run sudo update-grub.
didn't worked as well.

Btw. you need maybe to use the "Boot Select Switch" to boot ARMBIAN

User avatar
mad_ady
Posts: 11446
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1115 times
Contact:

Re: How to update the Kernel?

Post by mad_ady »

Right. Those commands are more intel oriented. On the Hardkernel Ubuntu image you'd need to edit /media/boot/boot.ini and add that option I mentioned to the bootargs line. Then, after reboot check that it was applied with cat /proc/cmdline

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest