You are not logged in.

#1 2023-06-19 16:49:41

scragnoth
Member
Registered: 2023-04-10
Posts: 17

[solved] How to change the ArchLinux Kernel configuration

I want to check, and if necessary, alter a few configurations of my current ArchLinux kernel without building a custom kernel (if at all possible). I'm running kernel 6.3.5

I already found out about

zcat /proc/config.gz

but that's no help to edit the configuration I think, it just shows the configuration. Is there a way to split the output? It's too long, so the first lines are always missing from my terminal window after it has finished.

I want to add these configurations to my kernel config (after "The following options all need to be enabled:"): https://github.com/thesofproject/linux/ … 1582170753

That's the GitHub of the "sof-firmware" package. My goal is to get sound to work on my Lenovo Yoga Tablet 2-851F (Intel bay-trail) which has an Arizona WM510205 sound chip. Support was added for that, but it won't work out of the box in Arch I reckon. I already put 31 missing kernel modules (I compared jwrdegoede's lsmod from his machine where the sound works - while running Fedora Workstation tho) in a

/etc/modules-load.d/arizona.conf

file to load them at boot.

Out of 31 modules I didn't get those two modules:

intel_bytcrc_pwrsrc
regmap_spi

to run which he also has running, I didn't check if they're blacklisted yet.

I tried to find help with my sound issue on this forum also, I went to the sof-firmware GitHub afterwards: https://bbs.archlinux.org/viewtopic.php?id=286271

Last edited by scragnoth (2023-06-20 17:03:37)

Offline

#2 2023-06-19 16:56:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,552

Re: [solved] How to change the ArchLinux Kernel configuration

The configuration are *build time* options. You can't change them without rebuilding the kernel.

Offline

#3 2023-06-19 16:56:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,453
Website

Re: [solved] How to change the ArchLinux Kernel configuration

You cannot change the kernel's compile-time configuration without recompiling.  However, that doesn't matter here: all those config options are set on the default arch kernel.  So whatever problems you are facing are not related to that.

For reviewing, you can pass the output of zcat into a pager, or other filtering programs.  You can also just use zgrep.  For example, I copied the list from the github page and did the following to check / confirm they are already enabled:

# select on website so the "requirments" are in the primary selection
# on wayland, so I use wl-paste -p, on xorg one could use xsel
wl-paste -p | sed 's/=.*/=/' > requirements
zgrep -Ff requirements /proc/config.gz

Note there is one difference (but it doesn't require a recompile): the stock arch kernel builds gpio-crystalcove as a module rather than built in - so you might need to explicitly load that module - however, anything that needs it should trigger it to load anyways.

Last edited by Trilby (2023-06-19 17:04:57)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#4 2023-06-19 18:19:21

espritlibre
Member
Registered: 2022-12-15
Posts: 138

Re: [solved] How to change the ArchLinux Kernel configuration

you can also just navigate with your favourite file browser to /proc/config.gz double click on the config.gz archive and open the file in your favourite text editor or just disable the line buffer in your terminal then the output won't get cut...

CONFIG_PMIC_OPREGION=y
CONFIG_BYTCRC_PMIC_OPREGION=y
CONFIG_INTEL_SOC_PMIC=y
CONFIG_PWM_CRC=y
CONFIG_GPIO_CRYSTAL_COVE=y
CONFIG_GPIO_ARIZONA=m
CONFIG_MFD_ARIZONA=m
CONFIG_MFD_ARIZONA_SPI=m
CONFIG_MFD_WM5102=y
CONFIG_REGULATOR_ARIZONA_LDO1=m
CONFIG_REGULATOR_ARIZONA_MICSUPP=m
CONFIG_SND_SOC_ARIZONA=m
CONFIG_SND_SOC_WM5102=m
CONFIG_SND_SOC_INTEL_BYTCR_WM5102_MACH=m

i checked the list for you and all these configs are applied in the standard arch kernel, the only config that differs is CONFIG_GPIO_CRYSTAL_COVE which in the arch kernel is a module, modules get autoloaded if the hardware is present but you can try to load the module manually with:

sudo modprobe gpio_crystalcove

Last edited by espritlibre (2023-06-19 18:24:30)

Offline

#5 2023-06-19 18:35:44

loqs
Member
Registered: 2014-03-06
Posts: 18,777

Re: [solved] How to change the ArchLinux Kernel configuration

intel_bytcrc_pwrsrc will be added in 6.4 https://github.com/torvalds/linux/commi … d125b5981a
regmap_spi is built into Arch's kernel

Offline

#6 2023-06-19 21:13:02

scragnoth
Member
Registered: 2023-04-10
Posts: 17

Re: [solved] How to change the ArchLinux Kernel configuration

Thanks to all of you, especially @Trilby and @espritlibre - I checked for gpio-crystalcove, it wasn't loaded, I added it to my /etc/modules-load.d/arizona.conf file, rebooted and the sound worked, no more dreaded dummy output. I'm so happy after trying it for so long, I got this machine for free in late 2020, my company didn't want to tell me the password for the Windows 8.1 which was on there so I never found out if the sound worked in the first place.

Offline

#7 2023-06-19 22:37:17

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [solved] How to change the ArchLinux Kernel configuration

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB