Skip to contentSkip to conversation

kmod: Enable xz support by default

PATCH In review Khem Raj 3 participants 5 messages Apr 28, 2022 – Apr 29, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 kmod: Enable xz support by default

RPi kernel has started building compressed kernel modules by default starting 5.15, currenrly therefore meta-raspberrypi kernels are unable to load kernel modules since kmod and kmod-native do not entertain xz compressed modules. There is a fix proposed in meta-raspberrypi [1] but the fix is needed for native and nativesdk recipes as well, perhaps its best to enable it here for best out of box experience with meta-raspberrypi

[1] https://github.com/agherzan/meta-raspberrypi/pull/1056

---
 meta/recipes-kernel/kmod/kmod_29.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/kmod/kmod_29.bb +1 -1
index 9b663490666..32dc49c1269 100644
@@ -27,7 +27,7 @@ S = "${WORKDIR}/git"
 
 EXTRA_OECONF += "--enable-tools"
 
-PACKAGECONFIG ??= "zlib"
+PACKAGECONFIG ??= "zlib xz"
 PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
 PACKAGECONFIG[logging] = " --enable-logging,--disable-logging"
 PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native"
Signature · 1 line
2.36.0
#1 lore raw
Quoted 11 lines · Khem Raj

RPi kernel has started building compressed kernel modules by default starting 5.15, currenrly therefore meta-raspberrypi kernels are unable to load kernel modules since kmod and kmod-native do not entertain xz compressed modules. There is a fix proposed in meta-raspberrypi [1] but the fix is needed for native and nativesdk recipes as well, perhaps its best to enable it here for best out of box experience with meta-raspberrypi

[1] https://github.com/agherzan/meta-raspberrypi/pull/1056

I don't see any reason not to do this and it does help with the BSPs using this compression requirement. So here is my +1. Would it be reasonable to propose to have it in kirkstone too? Otherwise, @khem, I'd need to drop compression or downgrade the kernel in kirkstone rpi (or make some yocto incompatible changes - which I'd rather not).

Andrei

author
#2 lore raw
Quoted 10 lines · Andrei Gherzan
Quoted 8 lines · Khem Raj

RPi kernel has started building compressed kernel modules by default starting 5.15, currenrly therefore meta-raspberrypi kernels are unable to load kernel modules since kmod and kmod-native do not entertain xz compressed modules. There is a fix proposed in meta-raspberrypi [1] but the fix is needed for native and nativesdk recipes as well, perhaps its best to enable it here for best out of box experience with meta-raspberrypi

Quoted 6 lines
Quoted 3 lines

[1] https://github.com/agherzan/meta-raspberrypi/pull/1056

I don't see any reason not to do this and it does help with the BSPs using this compression requirement. So here is my +1. Would it be reasonable to propose to have it in kirkstone too? Otherwise, @khem, I'd need to drop compression or downgrade the kernel in kirkstone rpi (or make some yocto incompatible changes - which I'd rather not).

Its already in staging for master [1] so hope to land it in master soon. kirkstone is something from Steve to cherry-pick CCing Steve here

[1] https://git.yoctoproject.org/poky-contrib/log/?h=lucaceresoli/master-next

#3 lore raw
Quoted 16 lines · Khem Raj
Quoted 14 lines · Andrei Gherzan
Quoted 11 lines · Khem Raj

RPi kernel has started building compressed kernel modules by default starting 5.15, currenrly therefore meta-raspberrypi kernels are unable to load kernel modules since kmod and kmod-native do not entertain xz compressed modules. There is a fix proposed in meta-raspberrypi [1] but the fix is needed for native and nativesdk recipes as well, perhaps its best to enable it here for best out of box experience with meta-raspberrypi

[1] https://github.com/agherzan/meta-raspberrypi/pull/1056

Quoted 8 lines
Quoted 2 lines

I don't see any reason not to do this and it does help with the BSPs using this compression requirement. So here is my +1. Would it be reasonable to propose to have it in kirkstone too? Otherwise, @khem, I'd need to drop compression or downgrade the kernel in kirkstone rpi (or make some yocto incompatible changes - which I'd rather not).

Its already in staging for master [1] so hope to land it in master soon. kirkstone is something from Steve to cherry-pick CCing Steve here

[1] https://git.yoctoproject.org/poky-contrib/log/?h=lucaceresoli/master-next

It's hit master now, so I will cherry-pick into my next patch set.

Steve

author
#4 lore raw
Quoted 21 lines · Steve Sakoman
Quoted 19 lines · Khem Raj
Quoted 16 lines · Andrei Gherzan
Quoted 11 lines · Khem Raj

RPi kernel has started building compressed kernel modules by default starting 5.15, currenrly therefore meta-raspberrypi kernels are unable to load kernel modules since kmod and kmod-native do not entertain xz compressed modules. There is a fix proposed in meta-raspberrypi [1] but the fix is needed for native and nativesdk recipes as well, perhaps its best to enable it here for best out of box experience with meta-raspberrypi

[1] https://github.com/agherzan/meta-raspberrypi/pull/1056

I don't see any reason not to do this and it does help with the BSPs using this compression requirement. So here is my +1. Would it be reasonable to propose to have it in kirkstone too? Otherwise, @khem, I'd need to drop compression or downgrade the kernel in kirkstone rpi (or make some yocto incompatible changes - which I'd rather not).

Quoted 8 lines
Quoted 5 lines

Its already in staging for master [1] so hope to land it in master soon. kirkstone is something from Steve to cherry-pick CCing Steve here

[1] https://git.yoctoproject.org/poky-contrib/log/?h=lucaceresoli/master-next

It's hit master now, so I will cherry-pick into my next patch set.

thanks Steve.

Quoted 1 line

Steve