-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hciattach times out sometimes on first boot for rpi0w #148
Comments
I've done some more testing, it seems that |
That sounds like a hardware issue. Are you able to reproduce this on a raspbian? |
I never had this issue on raspbian. I also tested it on 5+ pi's. For what it's worth, once I got the reset script working I never had any more problems. The key is to make sure that nothing tries to use bluetooth before it has been set up properly, otherwise, you have to reboot before it'll work again. |
If you stop the service and run it manually after everything boots up, does it always work? I'm wondering if there is a dependency that we are not aware of. |
Yeah, that fixes it fairly consistently. I'll do some tests to see if anything have changed over the last month, but here is the script that I've been using that has worked consistently:
|
It's definitely something that we need to fix for stability. |
Also, I tried removing my fix and the problem returned. |
i have the same issue, tested with systemv and systemd, i can not get the device to get initialized. |
i tried to reproduce the colleagues error. First I am using rpi0w, in the image, there is no /etc/firmware folder, the files are installed in lib/firmware/ , second it does not have the bcm43430A1.hcd file. As far as i know, the file is needed to reflash the chip. When i created the folders manually in mkdir -p /etc/firmware/brcm/ and copied the files to these locations, i get intialization time out. I then copied the file LICENSE.broadcom_bcm43xx from /lib/firmware to /etc/firmware and i ran hciattach again, i get patch not found .. which patch does it mean? may be the firmware file BCM43430A1.hcd ? see blue5.bbappend, FILES_${PN}_append_raspberrypi0-wifi is missing. thank you |
Moving #174 discussion here. As per @sherifomran investigation this sounds like an outdated firmware. Is anybody able to provide a patch with an updated version of it to master? @keeslinp are you able to test this as well? |
Description
I'm using this layer with yocto to build an image for the rpi0-w, and when I first boot the image on the device sometimes it works flawlessly but other times it doesn't set up the bluetooth properly. If it doesn't work on the first boot then rebooting will usually fix it eventually, sometimes running hciattach manually fixes the problem as well. When I dig through the logs I find that the hciattach has timed out during boot.
Steps to reproduce the issue:
bitbake rpi-hwup-image
dd
image onto sd cardDescribe the results you received:
Sometimes Bluetooth isn't working. There are no devices under
hcitool dev
orhciconfig
. Alsorfkill
doesn't list the bluetooth device.Describe the results you expected:
For bluetooth to setup the first time.
Additional information you deem important (e.g. issue happens only occasionally):
here is the output of
systemctl status brcm43438
:Additional details (revisions used, host distro, etc.):
local.conf
The text was updated successfully, but these errors were encountered: