Skip to content

mini-uart bluetooth on pi3 not working in 4.9 #2052

Closed

Description

@Ing3mar

The mini-uart bluetooth connection on the pi3 has become unstable in kernel 4.9. The bluetooth connection works initially but after as few seconds it breaks down and the connection to the bluetooth device becomes unresponsive. Restaring the hciuart does not work and only a reboot can bring the hciuart connection back. Lowering the baudrate in the hciattach to something like 115200 does not fix it either.

Running a couple of rpi-update's I have found that the first version that breaks the mini-uart bluetooth is the first bump to kernel 4.9.11 (1371164) from 4.4.50.

Activity

  1. bigiot-buildingiot commented on Jun 15, 2017

    @bigiot-buildingiot

    I have the the same troubles with kernel version 4.9.30-v7+ ... also using bluez version 5.45.
    How can safely downgrade my kernel?

  2. pelwell commented on Jun 15, 2017

    @pelwell
    Contributor

    Why are you using BlueZ 5.45? Raspbian Jessie ships with 5.23, and it includes patches for BCM43438 - does your version include those patches?

    You can revert to the 4.4.50 kernel using:

    sudo rpi-update 52241088c1da59a359110d39c1875cda56496764
    

    Note that once you have reverted your kernel you should avoid updating the raspberrypi-kernel or raspberrypi-bootloader packages via apt-get.

  3. bigiot-buildingiot commented on Jun 15, 2017

    @bigiot-buildingiot

    I tried BlueZ 5.45 to see if it was a problem with 5.23. If I would have seen this bug report right away, I would just have downgraded my kernel. But there is so much information out there on how to "fix" bluetooth issues on RPi 3 that it took me 3 days to find this entry here.

    After downgrading my kernel, everything worked fine again, also with BlueZ 5.45.

    Follow-question: how shall I then upgrade the kernel in the future - if the problem gets fixed?

  4. pelwell commented on Jun 15, 2017

    @pelwell
    Contributor

    Follow-question: how shall I then upgrade the kernel in the future - if the problem gets fixed?

    To select the current Raspbian kernel:

    sudo apt-get update
    sudo apt-get install raspberrypi-kernel raspberrypi-bootloader
    

    or for the latest testing kernel and firmware:

    sudo rpi-update
    
  5. pelwell commented on Jun 15, 2017

    @pelwell
    Contributor

    Edit: corrected Raspbian commands.

  6. pelwell commented on Jun 16, 2017

    @pelwell
    Contributor

    This is likely to be a more elaborate duplicate of #1855.

  7. bigiot-buildingiot commented on Jun 17, 2017

    @bigiot-buildingiot

    But didn't you note in your first message in this thread, not to use apt-get for updating the raspberrypi-kernel or raspberrypi-bootloader? Is it okay despite the downgrade?

  8. pelwell commented on Jun 17, 2017

    @pelwell
    Contributor

    Only avoid the upgrade commands if you want to use a specific version of the kernel.

  9. pelwell commented on Jun 22, 2017

    @pelwell
    Contributor

    The latest rpi-update firmware (just released) includes a patch that should fix this problem.

  10. JamesH65 commented on Sep 13, 2017

    @JamesH65
    Contributor

    Please update to the latest kernel which may contain a fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions