2025-04-27 7:02 PM
Hi there,
We are trying to porting the linux driver of STM32MP257F-DK + CYW55572 based on kernel 6.6.48.
The generated 6.6.48 driver(patched) 3 ko files as the attachment but found the errors as below.
insmod ./cfg80211.ko
[17917.220084] module cfg80211: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
insmod: ERROR: could not insert module cfg80211.ko: Invalid module format
insmod ./brcmutil.ko
[17998.345277] module brcmutil: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
insmod: ERROR: could not insert module ./brcmutil.ko: Invalid module format
insmod ./brcmfmac.ko
[18031.322200] module brcmfmac: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
insmod: ERROR: could not insert module ./brcmfmac.ko: Invalid module format
May I confirm why insert ko with errors or suggestions?
Thank you!
Mason
2025-04-28 12:14 AM - edited 2025-04-28 12:16 AM
Hello @MasonPan0804,
This problem happends when the kernel binary (Image.gz) and your module (*.ko) don't have the same kernel build version.
I would suggest to rebuild the whole kernel, flash both kernel image and modules into the board, reboot and test again.
BR,
Christophe
2025-04-28 6:43 PM
Hi there,
The now the 3 ko files look ok and work.
The board has on-board wifi/bt cyw43439, could we disable it and enable the microSD port to access external wifi/bt SDIO using the 3 ko files?
Mason
2025-04-28 11:57 PM
Hello @MasonPan0804,
Yes : it has to been done through the device tree.
BR,
Christophe
2025-04-29 12:13 AM
Hi
Do you have guideline to disable or enable the device tree of wifi/bt or microSD??
Thank you!
2025-04-29 6:41 PM
Hi there,
Should I update the device tree? do you have guideline?
Thank you!
Mason
2025-05-04 8:02 PM
Hi there,
May I confirm how to change STM32MP257F-DK stm32mp25-pinctrl.dtsi, stm32mp257f-dk.dts?
We would like to use sdmmc1 as SDIO wifi port, thank you!
Mason
2025-05-05 12:09 AM
Hello @MasonPan0804 ,
Feel free to have a look into our wiki : here is the page talking about SDMMC device tree configuration : https://wiki.st.com/stm32mpu/wiki/SDMMC_device_tree_configuration.
You can also have a look into STM32CubeMx.
BR,
Christophe
2025-05-05 8:02 PM
Hi,
If I want to use sdmmc1 vddio use 1.8V, how to update the dts?
in the scmi_vddio1, i need to add below?
regulator-init-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
Thank you!
Mason
2025-05-07 6:09 PM
Hi,
Is below correct? As I know the STM32CubeMX can not set the supply voltage of pin VDDIO_SDCARD, thank you!
707 &scmi_regu {
708 scmi_vddio1: regulator@0 {
709 regulator-min-microvolt = <1800000>;
710 regulator-max-microvolt = <1800000>;
711 regulator-init-microvolt = <1800000>;
712 regulator-boot-on;
713 regulator-always-on;
714 };
Mason