Downgrading Debian linux kernel on HC4/petitboot

Post Reply
dqbydt
Posts: 46
Joined: Wed Mar 01, 2017 7:52 am
languages_spoken: English
ODROIDs: C1+ C2 C4 HC4 XU4 VU5 VU7+
Has thanked: 0
Been thanked: 1 time
Contact:

Downgrading Debian linux kernel on HC4/petitboot

Post by dqbydt »

I installed Debian buster via petitboot-netboot on the HC4. The installed kernel is 5.10.0-odroid-arm64. I would like to run OMV with zfs. Unfortunately, the default zfs package for buster requires kernel version less than 4.20: https://packages.debian.org/buster/zfs-dkms. Even the package from buster-backports needs kernel less than 5.10: https://packages.debian.org/buster-backports/zfs-dkms.

I see that there is a linux-image-5.9.0-odroid-arm64 package available, which should be compatible with zfs-dkms from buster-backports. My question is, after installing that linux-image package, what changes are needed to boot the new, downgraded kernel from petitboot? Is there a file equivalent to grub.cfg that can be used to set boot order for petitboot?

igorpec
Posts: 954
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 56 times
Been thanked: 134 times
Contact:

Re: Downgrading Debian linux kernel on HC4/petitboot

Post by igorpec »

FYI. ZFS v2.0.1 works fine out of the box on Armbian with kernel 5.9.y / 5.10.y, Debian or Ubuntu variant.

1. Install headers via armbian-config
2. Run: apt install zfs-dkms dkms python3-distutils python3-lib2to3 zfsutils-linux
3. Install OMV as they recommend https://forum.openmediavault.org/index. ... platforms/
ARMBIAN
Linux for ARM development boards
What is Armbian?

dqbydt
Posts: 46
Joined: Wed Mar 01, 2017 7:52 am
languages_spoken: English
ODROIDs: C1+ C2 C4 HC4 XU4 VU5 VU7+
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Downgrading Debian linux kernel on HC4/petitboot

Post by dqbydt »

Thank you @igorpec, I will switch to Armbian if I am unable to get my current installation to work.

igorpec
Posts: 954
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 56 times
Been thanked: 134 times
Contact:

Re: Downgrading Debian linux kernel on HC4/petitboot

Post by igorpec »

dqbydt wrote:
Thu Jan 28, 2021 9:23 am
Thank you @igorpec, I will switch to Armbian if I am unable to get my current installation to work.
See you in two days :)
ARMBIAN
Linux for ARM development boards
What is Armbian?

User avatar
tobetter
Posts: 7744
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1190 times
Contact:

Re: Downgrading Debian linux kernel on HC4/petitboot

Post by tobetter »

dqbydt wrote:
Thu Jan 28, 2021 9:23 am
Thank you @igorpec, I will switch to Armbian if I am unable to get my current installation to work.
If you like to boot with 5.9 kernel, please do run this commands.

Code: Select all

sudo apt install linux-image-5.9.0-odroid-arm64 linux-headers-5.9.0-odroid-arm64
This commands will not switch to 5.9 kernel yet but you will have two different installed kernels in /boot directory. In order to switch to 5.9 kernel, please run this command.

Code: Select all

sudo flash-kernel --force 5.9.0-odroid-arm64
sudo reboot
If you like to switch back to 5.10 kernel, do run this command.

Code: Select all

sudo flash-kernel --force 5.10.0-odroid-arm64
sudo reboot
In case, if you like to try Grub, install "odroid-grub2" and update its configuration with this commands.

Code: Select all

sudo apt install odroid-grub2
sudo update-grub2
sudo reboot
If everything goes smooth and you have the latest Petitboot, you can select the kernel version from the Petitboot screen. Supporting Grub2 with the Petitboot is trivial, please refer to the previous discussion in the thread.
viewtopic.php?p=316050#p316050

In any case, if you need to build the dkms, please refer to the link which I've tried with 5.7 but no later version.
viewtopic.php?p=316050#p316050

Let me know if you encounter a problem.
These users thanked the author tobetter for the post:
odroid (Mon May 03, 2021 9:44 am)

dqbydt
Posts: 46
Joined: Wed Mar 01, 2017 7:52 am
languages_spoken: English
ODROIDs: C1+ C2 C4 HC4 XU4 VU5 VU7+
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Downgrading Debian linux kernel on HC4/petitboot

Post by dqbydt »

Just wanted to update this post to say that @tobetter's instructions worked without any problems.

Additionally, as of May 2021, it should be no longer necessary to downgrade the kernel: the zfs package in backports has been upgraded to 2.0.3-1. This has a kernel dependency of linux-libc-dev (<< 5.11~), which is compatible with kernel 5.10.
These users thanked the author dqbydt for the post:
tobetter (Sun May 02, 2021 1:07 pm)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests