hciattach on rpi4 times out on first attempt

Bug #1862831 reported by Paul Larson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi (Ubuntu)
New
Undecided
Unassigned
Focal
New
Undecided
Unassigned
linux-raspi2 (Ubuntu)
New
Medium
Unassigned
Eoan
Won't Fix
Undecided
Unassigned

Bug Description

I've observed this in both armhf and arm64 on:
19.10.1-server
18.04.4-server
core18

It does not seem to happen on rpi3, only on rpi4.
If you want to use Bluetooth on rpi, one must first run:
$ sudo hciattach /dev/ttyAMA0 bcm43xx 921600 noflow

On RPI4, this results in a timeout on the first attempt. Reattempting it right after will work though, 100% of the times I've tried it.

In the failed attempt, the output is:
  bcm43xx_init
  Initialization timed out.

And the following is the only new message to show up in dmesg when this fails:
  [ 270.303691] uart-pl011 fe201000.serial: no DMA platform data

tags: added: bionic eoan
tags: added: rls-ff-incoming
Revision history for this message
Hui Wang (hui.wang) wrote :

I tested raspbian on the RPI4B board, also could reproduce this problem.

steps of testing:
login the raspbian, sudo mv /usr/bin/hciattach /usr/bin/hciattach-bak
reboot
login, check the bluetooth is not up "hcitool dev"
run sudo hciattach-bak /dev/ttyAMA0 bcm43xx 921600 noflow
will timeout and fail
run sudo hciattach-bak /dev/ttyAMA0 bcm43xx 921600 noflow
it works..

And because raspbian installed pi-bluetooth package, this issue was not exposed.

Changed in linux-raspi2 (Ubuntu):
importance: Undecided → Medium
Changed in linux-raspi2 (Ubuntu Eoan):
importance: Undecided → Medium
Revision history for this message
Hui Wang (hui.wang) wrote :

I install the pi-bluetooth on ubuntu 19.10.1, after reboot, the bluetooth works automatically.

So pi-bluetooth could hide this issue.

[ 24.924485] Bluetooth: BNEP socket layer initialized
ubuntu@ubuntu:~$ hcitool dev
Devices:
        hci0 B8:27:EB:24:02:02

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1862831

tags: added: iso-testing
Juerg Haefliger (juergh)
no longer affects: linux-raspi (Ubuntu Eoan)
no longer affects: linux-raspi2 (Ubuntu Eoan)
no longer affects: linux-raspi (Ubuntu Eoan)
no longer affects: linux-raspi2 (Ubuntu Focal)
Revision history for this message
Juerg Haefliger (juergh) wrote :

Hrm. So pi-bluetooth seems to do some setup magic that is required for bluetooth to come up properly on Raspberry Pis? So the fix is simply to install pi-bluetooth when one wants to use bluetooth?

Revision history for this message
Francis Ginther (fginther) wrote :

Should we just add pi-bluetooth to the image builds? Are there any downsides of this packaging being installed on non-pi4 models?

Revision history for this message
Brian Murray (brian-murray) wrote :

The Eoan Ermine has reached end of life, so this bug will not be fixed for that release

Changed in linux-raspi2 (Ubuntu Eoan):
status: New → Won't Fix
Revision history for this message
michel jacobs (0d0a) wrote :

solution of hui wang works for me!
thx

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.