How to change kernel options in ImageBuilder

Hi everyone. I am trying to debug a driver that needs CONFIG_KERNEL_DEBUG_FS, CONFIG_DEBUG, CONFIG_PACKAGE_RTW88_DEBUGFS and CONFIG_PACKAGE_RTW88_DEBUG kernel options enabled for debug messages to appear. But I am having trouble finding where to actually change the options. I tried changing ".config" in the ImageBuilder extracted directory, which didn't work and also tried setting the ".config" in ./build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.73/.config which also didn't work.

The module is an ipk and can be found here: https://downloads.openwrt.org/releases/24.10.0/targets/x86/64/kmods/6.6.73-1-a21259e4f338051d27a6443a3a7f7f1f/kmod-rtw88-8812au_6.6.73.6.12.6-r1_x86_64.ipk

For this module I need to set the above options so that it provides debug output.

Thanks

Try make kernel_menuconfig. Search for those with, say /rtw88_debug (if you type the parenthetical number on the entry of interest, it jumps you right to the config option).

1 Like

How to change kernel options in ImageBuilder

You can't.
Imagebuilder does not compile anything, but just glues together already compiled pieces like kernel, other core image stuff and add-on packages, and assembles them to the final image to be flashed.

2 Likes

Oh, I missed imagebuilder, sorry...

1 Like

https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem

https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem

2 Likes

Thank you everyone for your help

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.