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

 

 

 

5 REPLIES 5
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