sakaki- / genpi64-overlay

Gentoo overlay for the Raspberry Pi 3 and 4
GNU General Public License v3.0
53 stars 50 forks source link

Unable to make WiFi or Bluetooth work #14

Open Necktwi opened 5 years ago

Necktwi commented 5 years ago

Your Gentoo RPi3 image is working great but when I built the Gentoo for my RPi3B with musl, install your overlay, build the kernel with https://github.com/sakaki-/gentoo-on-rpi3-64bit/blob/master/configs/bcmrpi3_defconfig-bis and merge the firmware: sys-firmware/brcm43430-firmware, sys-firmware/bcm4340a1-firmware, net-wireless/rpi3-bluetooth, I couldn't get the bluetooth or wifi working. In dmesg, I see

...
[    9.700477] mmc1: error -110 whilst initialising SDIO card
[   11.030493] mmc1: error -110 whilst initialising SDIO card
[   12.373493] mmc1: error -110 whilst initialising SDIO card
[   13.738492] mmc1: error -110 whilst initialising SDIO card
...
[   38.889487] Bluetooth: hci0: command 0x0c03 tx timeout
[   47.081475] Bluetooth: hci0: BCM: Reset failed (-110)
...

complete dmesg: dmesg.txt

Thank you for your work!

sakaki- commented 5 years ago

Hi @Necktwi, have you tried it with an actual kernel + module set (rather than a kernel built from the .config), along with your userland? Best, sakaki

Necktwi commented 5 years ago

My Gentoo build is a headless server. Yeah, I tried with your kernel + module set. I got some disappointing dmesg that I exactly don't remember. I shall try them once again and let you know the exact dmesg.

Necktwi commented 5 years ago

Now I remember, I use btrfs root. since your kernel don't have btrfs compiled in, I couldn't boot it on.

sakaki- commented 5 years ago

Re btrfs root, please see comment here. Thanks, sakaki

Necktwi commented 5 years ago

using the latest kernel with BTRFS support didn't fix the issue. Can you build and test the complete gentoorpi image with the latest kernel? I know its foolish to fix this issue with trial and error method instead of finding the root cause but fixing it with just one more try is rather tempting.

sakaki- commented 5 years ago

Please see my response here. Best, sakaki

Necktwi commented 5 years ago

Actual kernel+module+firmware+overlay got wifi and bluetooth to work. But merging sys-kernel/bcmrpi3-kernel-bis-bin or sys-firmware/bcm4340a1-firmware or sys-firmware/brcm43430-firmware or sys-boot/rpi3-64bit-firmware broken the WiFi and Bluetooth.

sakaki- commented 5 years ago

Odd. Are you on profile 17.0 or 17.1? Strike that - 17.1 not yet in the wild for arm64 ^-^ Those packages are merged in the actual image build though, so it is strange that they fail for you.

Necktwi commented 5 years ago

I'm very sorry; It seems there's a problem with my pi. WiFi works when I power it on after a long gap. An immediate reboot is giving the mmc1 error. Whenever I burn some image onto sd card the wifi starts working. Its all because I am giving rest for the pi while I am writing the image. Last night when I checked that WiFi not working, I have shut down the RPi, rested it all night and checked for the error in the morning; it's gone!

sakaki- commented 4 years ago

30 Oct 2020: sadly, due legal obligations arising from a recent change in my 'real world' job, I must announce I am standing down as maintainer of this project with immediate effect. For the meantime, I will leave the repo up (for historical interest, and since the ebuilds etc. may be of use for others looking to take forward Gentoo on 64-bit RPi systems); however, there will be no further updates to the underlying binhost etc., nor will I be accepting / actioning further pull requests or bug reports from this point. Email requests for support will also have to be politely declined, so, please treat this as an effective EOL notice.

For further details, please see my post here.

Many thanks for your interest in this project!

With sincere apologies, sakaki ><