unixabg/cryptmypi

initramfs-wifi.hook for Raspberry Pi 4

Closed this issue · 7 comments

Hello @unixabg
If it possible modify initramfs-wifi.hook for Raspberry Pi 4?
With default options: "brcmfmac brcmutil cfg80211 rfkill" my Rpi 4 doesn't work...
Thx =)

@unixabg Can you help me? How I can run wifi initramfs with Rpi4B?
Plz...

Greetings,
So what I can say is that 0000-experimental-initramfs-wifi.hook has some issues. Please know that I will examine, but I am not sponsored for this project and only get to work on in my spare time. However, I do think that it should be possible to activate the wlan0 networking for remote unlock. The 0000-optional-sys-wifi.hook is in good order and operates as expected.

Greetings,
So what I can say is that 0000-experimental-initramfs-wifi.hook has some issues. Please know that I will examine, but I am not sponsored for this project and only get to work on in my spare time. However, I do think that it should be possible to activate the wlan0 networking for remote unlock. The 0000-optional-sys-wifi.hook is in good order and operates as expected.

Hi @unixabg thx for your answer
But I can do myself, Can You help me only with wifi module:
Which wifi drivers I must to use, then start My Rpi4B, default doesn't work
_INITRAMFS_WIFI_DRIVERS='brcmfmac brcmutil cfg80211 rfkill'
Rpi4B has BCM2711, but I don't know default wifi chipset
Can you help me?
When my Rpi4 boot up I have next error;
brfmac direct firmware load brcm/brcmfmac43455-sdio failed with error -2

@unixabg
I have netx error, when Build initframs:
Attempting to build new initramfs ... (CHROOT is /mnt/cryptmypi)
Creating symbolic links from current physical device to crypttab device (if not using sd card mmcblk0p)
Using kernel '4.19.118-Re4son-v8l+'
Building new initramfs ...
Adding module /lib/modules/4.19.118-Re4son-v8l+/kernel/drivers/md/dm-mod.ko
Adding module /lib/modules/4.19.118-Re4son-v8l+/kernel/drivers/md/dm-crypt.ko
Adding module /lib/modules/4.19.118-Re4son-v8l+/kernel/net/rfkill/rfkill.ko
Adding module /lib/modules/4.19.118-Re4son-v8l+/kernel/net/wireless/cfg80211.ko
Adding module /lib/modules/4.19.118-Re4son-v8l+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmutil/brcmutil.ko
Adding module /lib/modules/4.19.118-Re4son-v8l+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4373-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4356-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4354-sdio.bin for module brcmfmac
Adding firmware /lib/firmware/brcm/brcmfmac43455-sdio.bin
Adding firmware /lib/firmware/brcm/brcmfmac43430-sdio.bin
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43430a0-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4339-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43362-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4335-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43341-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43340-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4334-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4330-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4329-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43241b5-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43241b4-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43241b0-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43143-sdio.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac4373.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43569.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43242a.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43236b.bin for module brcmfmac
W: Possible missing firmware /lib/firmware/brcm/brcmfmac43143.bin for module brcmfmac
Copying module directory kernel/drivers/usb/dwc2
Adding module /lib/modules/4.19.118-Re4son-v8l+/kernel/drivers/usb/gadget/udc/udc-core.ko
Adding module /lib/modules/4.19.118-Re4son-v8l+/kernel/drivers/usb/dwc2/dwc2.ko
Copying module directory kernel/drivers/input/keyboard

Greetings,
So the issue was that the firmware for the wifi was not included in the initramfs. Also on boot it needs just a small sleep to allow the wlan0 be ready for operations, see commit 7ecfe01 . I tested both rpi3b+ and rpi4 in which both unlock over wlan0. Commit f807abf added additional example information to unlock over wifi. Please test and let me know if now working for you.

Hi @unixabg
Thx for your atention, I will test and give to you feedback...
Cheers!

@unixabg IT's A LIVE....
Thx so much for your work Richard, all works ....
Thx!!!!!!!!!!!!!!!!!!!!