STM32MP257F-DK + CYW55572
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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 ST Linux SDK kernel 6.6.48 is from https://www.st.com/en/embedded-software/stm32mp2dev.html#
- 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
- Labels:
-
ST-Boards
-
STM32MP25 Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-28 11:57 PM
Hello @MasonPan0804,
Yes : it has to been done through the device tree.
BR,
Christophe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-29 6:41 PM
Hi there,
Should I update the device tree? do you have guideline?
Thank you!
Mason
