Hello there…
I hope all are doing well
I’m Working with the Yocto project with the dunfell branch
I have the STM32MP1 dk1 board, to test the kernel
My goal is to load the drivers for the USB WiFi dongles
That’s how, I’m using menuconfig to enable the drivers and customise the kernel
Now, The problem is, after menuconfig it’s successfully generating the image but unfortunately, in custom image I’m unable to find the loadable kernel modules!
I’m flowing the tutorial provided by @ShawnHymel followed by the below URL (which is extreamly good)
How to enable WiFi networking in the Yocto Project for a custom Linux image for the STM32MP157D-DK1
From my side, the steps are as follows…
- Manually set the required drivers by using menuconfig GUI tool
bitbake -c menuconfig virtual/kernel
- Generate the default configuration
bitbake -c savedefconfig virtual/kernel
- also verified the drivers, which I have set in to the menuconfiig
- drivers exist in defconfig
- copy defconfig in to the custom-layer
/meta-customer/recipes-kernel/linux/files/
- Updated linux-stm32mp_%.bbappend asper the default configuration
FILESEXTRAPATHS_prepend := "${THISDIR}:${THISDIR}/files:"
SRC_URI += "\
file://0001-stm32mp157a-dk1-i2c-add-dts.patch \
file://0002-stm32mp157a-dk1-add-ltdc-dts.patch\
file://defconfig\
"
# Applying the default configuration
KERNEL_DEFCONFIG_stm32mp1 = "defconfig"
- Updated locakl.conf to load the module automatically during the boot
# Adding kernel modules for the USB WiFi drivers
IMAGE_INSTALL += "kernel-module-r8188eu \
linux-firmware-rtl8188 \
dhcp-client \
iw \
wpa-supplicant \
wireless-regdb-static"
# Autoload WiFi driver on boot
KERNEL_MODULE_AUTOLOAD += "r8188eu"
- Then i done bake the image
bitbake core-image-minimal
Problem statement :
- During the building of the image, I can find the logs to build the modules, which I’d set erlear !
- core-image-minimal.menifest seems not updated, as i verified using grep “modules which i set”
- After flashing the image on sd card & booting on ab board /lib directory missing all loadable modules!
- Even, wpa-supplicant is not working, which i have installed with image
Guys, can you advice what’s baking wrong here! All comments & suggestions welcome
Thanks,
Mahendra Sondagar