cancel
Showing results for 
Search instead for 
Did you mean: 

WiFi USB dongle for STM32MP2

GLut_
Associate

Hello,

I’m trying to add Wi-Fi support to my STM32MP257F-EV1board. I’m using Panda Wireless PAU0A Wi-Fi USB dongle, it uses MT7610U chipset. I have followed example of Modifying kernel configuration in How to cross-compile with the Distribution Package. In fact, the example uses Realtek RTL192CU chipset, I’m using MediaTek MT76x0U in configuration, that’s the only difference.

I updated the kernel image on board. However, when I plug in the dongle I get the error:

GLut__0-1727712518112.png

It looks like all necessary modules are present:

GLut__1-1727712565721.png

I tried to restart the module, same result:

GLut__2-1727712622802.png

I checked, this Wi-Fi dongle works with Ubuntu 22.04 and Raspbian.

Please, advise, what I’m doing wrong.

 

3 REPLIES 3
PatrickF
ST Employee

Hi @GLut_ 

altough quite old and related to another MPU, this post could help.
https://community.st.com/t5/stm32-mpus/how-to-use-edimax-ew-7811un-v2-wifi-dongle-on-stm32mp157a-dk1/ta-p/49790

Maybe you simply miss to get the relevant xxxx.bin in right location

Regards.

 

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.

Thank you, @PatrickF for your reply. 

Indeed, I'm missing mt7610e.bin and mt7610u.bin, but where do I get them? I've followed the instructions in example of Modifying kernel configuration in How to cross-compile with the Distribution Package, and as a result I got a new kernel image and relevant library files. No xxxxxx.bin files were created (or I couldn't find them), and nothing was mentioned about xxxx.bin files. How to get these files short of copying them from another system? 

Actually, I created folder /lib/firmware/mediatek and copied mt7610e.bin and mt7610u.bin from RaspberryPi I have. After that I was able to load the driver and bring-up WiFi interface. It worked, but it does not feel like a proper way to do.

Hello @GLut_ ,
What you ask now is a proper way to install directly your binary firmwares on the final Image generated by Yocto, without having to copy it by yourself on the fly.

In fact, this is a pure Yocto consideration : How to install something somewhere in your file system.

You can create your own Yocto layer / recipe to create the new folder in /lib/firmware, then install your binaries.

In theory, the recipes that aims to install this kind of files is "linux-firmware". On ST side, we overwrite it in https://github.com/STMicroelectronics/meta-st-stm32mp/tree/mickledore/recipes-kernel/linux-firmware with some bbappend files.

You can get inspired by this. Otherwise, you can check how to create a recipe taken into consideration for your Yocto image, that create a directory and install files inside.

Kind regards,
Erwan.

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.