cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP257F-DK + CYW55572

MasonPan0804
Associate II

Hi there,

We are trying to porting the linux driver of  STM32MP257F-DK + CYW55572 based on kernel 6.6.48.

  1. The ST Linux SDK kernel 6.6.48 is from  https://www.st.com/en/embedded-software/stm32mp2dev.html#
  2. The target board image on eMMC is from https://wiki.st.com/stm32mpu/wiki/STM32MP25_Discovery_kits_-_Starter_Package#step3

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

 

 

 

9 REPLIES 9
Christophe Guibout
ST Employee

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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MasonPan0804
Associate II

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

Hello @MasonPan0804,

Yes : it has to been done through the device tree.

 

BR,

Christophe

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MasonPan0804
Associate II

Hi

Do you have guideline to disable or enable the device tree of wifi/bt or microSD??

Thank you!

 

MasonPan0804
Associate II

Hi there, 

 

Should I update the device tree? do you have guideline?

 

Thank you!

Mason

MasonPan0804
Associate II

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

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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MasonPan0804
Associate II

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

 

MasonPan0804
Associate II

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