rpi3b+ kernel modules for wifi in early userspace

This is for ARMv8 based devices

rpi3b+ kernel modules for wifi in early userspace

Postby Binabik » Mon Jun 03, 2019 7:57 am

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.
Binabik
 
Posts: 5
Joined: Fri Apr 21, 2017 9:41 am

Re: rpi3b+ kernel modules for wifi in early userspace

Postby lategoodbye » Tue Jun 04, 2019 12:41 pm

$this->bbcode_second_pass_quote('', 'H')ow 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.


Since there are hard- and software dependencies this wont be easy.

Looking at the kernel log you should see something like this:
mmc1: new high speed SDIO card at address 0001

Please use this as a checklist as required kernel driver / modules:
CONFIG_BRCMFMAC -> Wifi driver
CONFIG_MMC_SDHCI_IPROC -> MMC driver
CONFIG_RASPBERRYPI_FIRMWARE -> Firmware driver
CONFIG_GPIO_RASPBERRYPI_EXP -> GPIO expander

Also make sure that the wifi firmware (brcmfmac43455-sdio.bin + brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt) is available in early userspace.
lategoodbye
 
Posts: 124
Joined: Sat Dec 29, 2018 1:24 am


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 40 guests