You are not logged in.

#1 2022-01-30 12:58:57

860lacov
Member
Registered: 2020-05-02
Posts: 466

[SOLVED] How to enable kernel option?

On latest news on archlinux.org there is:

The linux-firmware package 20220119.0c6a7b3-2 implements kernel firmware compression. Linux kernel from 5.3 on support loading from xz compressed firmware.
CONFIG_FW_LOADER_COMPRESS kernel option must be enabled. All official Arch Linux kernel support this for a long time. [1]

I assume that this will not affect me because "All official Arch Linux kernel support this for a long time."

But I would like to understand and learn this.
There is systemd-boot kernel parameters

In my loader entry in oprtions I have for example:

root=/dev/mapper/cryptroot rootflags=subvol=@ rw

But I don't understand how I should enable option like CONFIG_FW_LOADER_COMPRESS
Should it look like this:

root=/dev/mapper/cryptroot rootflags=subvol=@ rw config_fw_loader_compress

or maybe

root=/dev/mapper/cryptroot rootflags=subvol=@ rw config_fw_loader_compress=1

And in potions line does order matter?
rw at the end of options line?
Or rw can be before for example rootflags?

Last edited by 860lacov (2022-01-30 15:11:00)

Offline

#2 2022-01-30 13:06:24

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: [SOLVED] How to enable kernel option?

The option is for kernel configuration rather than a kernel command line parameter.

Check

zgrep CONFIG_FW_LOADER_COMPRESS /proc/config.gz

EDIT: see also https://wiki.archlinux.org/title/Kernel … figuration

Last edited by Head_on_a_Stick (2022-01-30 13:09:38)

Offline

#3 2022-01-30 14:29:26

860lacov
Member
Registered: 2020-05-02
Posts: 466

Re: [SOLVED] How to enable kernel option?

Head_on_a_Stick wrote:

The option is for kernel configuration rather than a kernel command line parameter.

Check

zgrep CONFIG_FW_LOADER_COMPRESS /proc/config.gz

EDIT: see also https://wiki.archlinux.org/title/Kernel … figuration

Well
zgrep shows

CONFIG_FW_LOADER_COMPRESS=y

And wiki says

You can do a mixture of two things:

    - Use the default Arch settings from an official kernel (recommended)
    - Manually configure the kernel options (optional, advanced and not recommended)

So basically if I use official kernel I can just leave kernel options for developers and I should be ok. Am I right?

Offline

#4 2022-01-30 14:38:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,976

Re: [SOLVED] How to enable kernel option?

Yes. This is a compile time option, if you wanted to change this you'd need to compile and build your own linux kernel package.

Offline

Board footer

Powered by FluxBB