[Testing - Trixie] Error building missing btintel_pcie module for BT on Intel BE201

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
TheNino
Posts: 1
Joined: 2025-01-07 18:23

[Testing - Trixie] Error building missing btintel_pcie module for BT on Intel BE201

#1 Post by TheNino »

I've installed Testing on a Dell XPS 13 9359 with Lunar Lake 258V and a BE201 Wi-Fi/BT network device.

The WiFi works correctly with the iwlwifi module and the firmware which is already available in the deb package.
Instead, the Bluetooth device is not working due to missing driver and firmware. The firmware is available in the firmware git repo, but the module is missing (I've checked both config file in /boot directory and linux-config-6.12 package).
The module solves the issue, as can be seen when testing an Ubuntu 24.10 live stick.

After installing the required package dependencies, I've tried an in-tree build of the module with the following procedure:

Code: Select all

sudo apt install linux-source-6.12
mkdir ~/kernel
cd ~/kernel
tar xf /usr/src/linux-source-6.12.tar.xz
cp /boot/config-6.12.6-amd64 .config
cp /usr/src/linux-headers-6.12.6-amd64/Module.symvers .
make clean
I've set CONFIG_BT_INTEL_PCIE=M (verified with grep on the saved .config file) using

Code: Select all

make menuconfig
Then, I've compiled the module with
make module_prepare
make M=drivers/bluetooth

The building ends without any error or warning, but trying to load the modules with

Code: Select all

sudo insmode drivers/bluetooth/btintel_pcie.ko
Which step I've missed or is wrong?
I get the following error:

Code: Select all

insmod: ERROR: could not insert module drivers/bluetooth/btintel_pcie.ko: Invalid module format
Checking dmesg I get the following error:

Code: Select all

module btintel_pcie: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time 
Checking with modinfo the module, I see

Code: Select all

vermagic: 6.12.6 SMP preempt mod_unload modv versions
while checking a module in the kernel package (e.g., btintel) I see

Code: Select all

vermagic: 6.12.6-amd64 SMP preempt mod_unload modv versions
The same happens if I disable the signature with

Code: Select all

./script/config --disable MODULE_SIG

Aki
Global Moderator
Global Moderator
Posts: 4259
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 124 times
Been thanked: 576 times

Re: [Testing - Trixie] Error building missing btintel_pcie module for BT on Intel BE201

#2 Post by Aki »

Hello
TheNino wrote: 2025-01-08 09:40 [..]
I've set CONFIG_BT_INTEL_PCIE=M (verified with grep on the saved .config file) using

Code: Select all

make menuconfig
Then, I've compiled the module with
make module_prepare
make M=drivers/bluetooth
[/code]
If I remember correctly, if you change a CONFIG_* parameter (as CONFIG_BT_INTEL_PCIE) you need to rebuild the entire kernel and its modules. So, probably you need to build a new custom kernel package.
TheNino wrote: 2025-01-08 09:40 The building ends without any error or warning, but trying to load the modules with

Code: Select all

sudo insmod drivers/bluetooth/btintel_pcie.ko
Which step I've missed or is wrong?
I get the following error:

Code: Select all

insmod: ERROR: could not insert module drivers/bluetooth/btintel_pcie.ko: Invalid module format
Checking dmesg I get the following error:

Code: Select all

module btintel_pcie: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time 
The CONFIG_MODULE_COMPRESS_XZ kernel options has been activated by default in Debian for linux kernel version 6.12.

After that, the binary format of kernel module has been changing from ".ko" to ".ko.xz" (they are now also compressed in xz format) and also extensions of file name of kernel modules changed.

Hope this helps.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply