How to compile kernel in Yocto to contain rtl8192cu driver?
I have an old Edimax EW-7811Un that I am trying to get working on the STM32MP157D-DK1. I have installed Yocto along with poky and the meta-st-stm32mp BSP layer. I do not want to use OpenSTLinux right now.
I configured the kernel with
bitbake -c menuconfig virtual/kernel and made sure the following kernel modules were enabled:
- Networking support > Networking options (following should be enabled):
- [*] TCP/IP networking
- [*] IP: kernel level autoconfiguration
- [*] IP: DHCP support
- [*] IP: BOOTP support
- [*] IP: RARP support
- <*> The IPv6 protocol
- [*] IP: kernel level autoconfiguration
- [*] TCP/IP networking
- Networking support > Wireless
- <M> cfg80211 - wireless configuration API
- [*] cfg80211 wireless extensions compatibility (for compatibility with some older tools, e.g. get iwconfig to talk to device)
- <M> Generic IEEE 802.11 Networking Stack (mac80211)
- [*] Minstrel (for rate control in 802.11)
- Device Drivers > USB support, make sure USB Host is enabled:
- <*> Support for Host-side USB
- [*] Enable USB persist by default
- Device Drivers> Network device support > Wireless LAN
- <M> Realtek rtlwifi family of devices
- <M> Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter
- [*] Debugging output for rtlwifi driver family
- <M> Realtek rtlwifi family of devices
I added the following line to the end of conf/local.conf:
IMAGE_INSTALL += “linux-firmware-rtl8192cu�?I built an image with:
bitbake core-image-minimalHowever, it does not seem that the rtl8192cu module was included. I checked the manifest file with:
cat tmp/deploy/images/stm32mp1/core-image-minimal-stm32mp1.manifest | grep rtlNothing shows up, which should indicate that the rtl8192cu module was not included in the build, right?
I tried flashing the image to an SD card and booted up the board. I plug in the USB WiFi dongle and dmesg does not show that the driver is loading.
What am I missing to make this driver work?
