cancel
Showing results for 
Search instead for 
Did you mean: 

add WLAN interface to stm32mp157f-dk2

FBofi.1
Associate II

Hi ST Community,

I have been trying to add the WLAN interface to my stm32mp157f-dk2 board with the distro "openstlinux-weston" and the machine "stm32mp1" without success with the following documentation:

  • I have applied the kernel configuration given in chapter 3 of the following link

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

  • I checked that the file "stm32mp157f-dk2.dts" has the configuration described in the chapter 3.2 of the following link

https://wiki.st.com/stm32mpu/wiki/WLAN_device_tree_configuration#cite_note-stm32mp151.dtsi-6

  • Also I checked that the stm43mp1.conf file (machine configuration file) has the following settings

MACHINE_FEATURES += "wifi"

WIFI_LIST += "linux-firmware-bcm43430"

After applying all these settings and rebuilding the image, when I connect to the stm32mp157f-dk2 board and apply the command "ifconfig -a" I don't see any new WLAN interface.

Maybe I'm missing something?

Thanks in advance

8 REPLIES 8
Pavel A.
Evangelist III

So do you actually have this Broadcom chip or other wi-fi device?

FBofi.1
Associate II

Hello Pavel,

Yes I'm sure about it. In the stm32mp157f-dk2 schematic you can see that there is a LBEE5KL1DX-883 chip.

Kevin HUBER
ST Employee

Hello @FBofi.1​ ,

Please can you follow the tutorial of this wiki page with networkd: https://wiki.st.com/stm32mpu/wiki/How_to_setup_a_WLAN_connection#Automatic_WiFi_configuration_at_start_up

Best Regards,

Kevin

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.
FBofi.1
Associate II

Hello @Kevin HUBER​ ,

At the moment I have no problem with the configuration of the WLAN interface. The problem is that despite applying the configurations to the kernel, to the device tree and to the configuration of the machine, the WLAN interface is not detected.

Can you confirm that the configuration mentioned in the first comment is correct? maybe I'm missing something?

Thanks,

FBofi.1
Associate II

I have also noticed the following errors appearing in the boot log

[   3.693682] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1

[   3.701290] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.st,stm32mp157f-dk2.bin failed with error -2

[   3.706342] ehci-platform 5800d000.usb: USB 2.0 started, EHCI 1.00

[   3.712590] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2

[   3.719889] hub 1-0:1.0: USB hub found

[   3.732237] hub 1-0:1.0: 2 ports detected

[   3.739743] cfg80211: Loading compiled-in X.509 certificates for regulatory database

[   3.764460] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'

[   3.770013] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

[   3.778297] cfg80211: failed to load regulatory.db

Maybe it's related to this issue? Any hint about it?

Hi,

can you verify that the firmware is actually deployed? It should be in /lib/firmware/brcm/

FBofi.1
Associate II

Hello @Tom�? Ju?ena​ , @Kevin HUBER​ 

I checked the files in "/lib/firmware/brcm/" directory and I found "brcmfmac43430-sdio.bin" but not "brcmfmac43430-sdio.st,stm32mp157f-dk2.bin" file. Attached an image that shows the files contained in this directory

Kevin HUBER
ST Employee

Hello @FBofi.1​ ,

Did you made some progress on this topic?

Best Regards,

Kevin

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.