cancel
Showing results for 
Search instead for 
Did you mean: 

Adding WLAN to STM32MP157-DK2 does not copy modules. What is wrong?

bodashmas
Associate II

Hi everyone

I am trying to modify the Kernel during the Distribution Package method (compiled from Yocto directly to the image)

I have followed the information in the following pages:

https://wiki.st.com/stm32mpu/wiki/WLAN_overview

https://wiki.st.com/stm32mpu/wiki/How_to_customize_the_Linux_kernel

https://wiki.st.com/stm32mpu/wiki/Menuconfig_or_how_to_configure_kernel

My setup is importing the meta-st-stm32mp, adding my own layers and building an image from core-image (no OpenSTLinux in this case)

MACHINE = "stm32mp1-disco"

I have created a .bbappend recipe as follows:

FILESEXTRAPATHS:prepend := "${THISDIR}:${THISDIR}/linux-stm32mp:"
 
KERNEL_CONFIG_FRAGMENTS:append = "${WORKDIR}/fragments/5.10/fragment-06-wlan.config"
SRC_URI:append = " file://5.10/fragment-06-wlan.config;subdir=fragments "
SRC_URI:class-devupstream += "file://5.10/fragment-06-wlan.config;subdir=fragments"
 
# Autoload WiFi driver on boot
KERNEL_MODULE_AUTOLOAD:append  = "brcmfmac"
 
IMAGE_INSTALL:append = " kernel-module-brcmfmac linux-firmware-brcmfmac "

File fragment-06-wlan.config looks as follows:

CONFIG_BRCMFMAC=m
CONFIG_BRCMUTIL=m
CONFIG_WLAN_VENDOR_BROADCOM=y
CONFIG_WLAN=y
CONFIG_NETDEVICES=y
CONFIG_CFG80211=m

Inspecting .config in work/stm32mp1_disco-poky-linux-gnueabi/linux-stm32mp/5.10.10-r0/build shows that these changes were included.

Looking at the build folder for linux-stm32mp looks like this:

0693W00000Lya5fQAB.pngI can find all the modules and drivers that I wish to load.

If I inspect the build folder for my output rootfs, I get this:

0693W00000Lya6dQAB.pngClearly the end result does not includes the modules and drivers I was hoping to see there. Of course flashing the image leads to the same result, thus modules cannot be loaded.

Could someone advise what am I missing?

1 ACCEPTED SOLUTION

Accepted Solutions
bodashmas
Associate II

Solved.

My image was ovewritting IMAGE_INSTALL and leaving out packagegroup-base-extended \

View solution in original post

1 REPLY 1
bodashmas
Associate II

Solved.

My image was ovewritting IMAGE_INSTALL and leaving out packagegroup-base-extended \