Hi,
I was following along the guide on https://gist.github.com/gea0/4fc2be0cb7a74d0e7cc4322aed710d38 for an encrypted system which gets unlocked remotely by adding dropbear as an early ssh server to the mkinitcpio / early userspace.
Instead of connecting via Ethernet, I was trying to use the internal Wi-Fi adapter of the Raspberry Pi 3B+. According to https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#Remote_unlocking_of_the_root_(or_other)_partition, I wrote a small mkinitcpio hook and added wpa_passphrase and wpa_supplicant to the mkinitcpio binaries. But finally, I was unsure which kernel modules would be required.
I ran lsmod and added the brcmfmac module as well as (recursively) all modules that it depends on but this did not work. When rebooting, I got plenty of error messages complaining about the missing "wlan0" device.
How can I systematically find out which kernel modules are required to successfully connect to the wifi in early userspace? Thanks in advance for any hint.