vmyadhu2
Posts: 4
Joined: Wed Jan 25, 2017 9:17 am

Bluez update in Raspberry Pi 3

Wed Jan 25, 2017 9:37 am

Hi,
I am trying to update the bluez version in Raspberry Pi 3. I am tired to do it, every time the "bluetoothctl" command shows waiting to connect bluetooth or something. Please anybody send me the correct steps to update the bluez version from bluez 5.23 to 5.43

I tried these steps but it doesn't work I don't know why..

sudo apt-get update
sudo apt-get install git build-essential autoconf cmake libtool libglib2.0 libdbus-1-dev libudev-dev libical-dev libreadline-dev
wget http://www.kernel.org/pub/linux/bluetoo ... .43.tar.xz
tar xvf bluez-5.43.tar.xz
cd bluez-5.43/
//////////ONLY FOR RPI////////////////////////////
wget https://gist.github.com/pelwell/c8230c4 ... b7442d.zip
unzip 3b07a1eb296862da889609a84f8e10b299b7442d.zip
git apply -v c8230c48ea24698527cd-3b07a1eb296862da889609a84f8e10b299b7442d/*
//////////END ONLY FOR RPI////////////////////////////

./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --enable-experimental --with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/systemd
make
sudo make install

ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin

Note that if you already installed bluetooth on raspbian you will end up with 2 copies of bluetoothd, one in /usr/sbin, and one in /usr/libexec/bluetooth. The

latter is the one you want running. To ensure this, as well as to enable experimental mode you will need to update systemd in

/etc/systemd/system/bluetooth.target.wants/bluetooth.service

Change

ExecStart=/usr/libexec/bluetooth/bluetoothd

or

ExecStart=/usr/sbin/bluetoothd

to

ExecStart=/usr/libexec/bluetooth/bluetoothd --experimental

The experimental flag is mandatory for bluez to expose BLE via dbus.



Please help. I am a beginner to linux so please explain in simple sentences.

recklessfb
Posts: 37
Joined: Wed Jul 06, 2016 12:26 am

Re: Bluez update in Raspberry Pi 3

Wed Jan 25, 2017 5:47 pm

Did you take a look at this post?
viewtopic.php?f=63&t=145364

vmyadhu2
Posts: 4
Joined: Wed Jan 25, 2017 9:17 am

Re: Bluez update in Raspberry Pi 3

Fri Jan 27, 2017 4:35 am

Yes I did the steps in that link but bluetoothctl commands shows "waiting to connect to bluetooth..." and when I give the command "sudo systemctl status bluetooth" it show Active : failed(Result: exit code).
Then I tried to enable the bluetooth using "sudo systemctl enable bluetooth" and I give "sudo systemctl start bluetooth" but it shows "job for bluetooth failed. See 'sysytemctl status bluetooth.srvice' and journalctl -xn' for details

Please give the correct steps to install bluez-5.43 in Raspberry pi 3

vmyadhu2
Posts: 4
Joined: Wed Jan 25, 2017 9:17 am

Re: Bluez update in Raspberry Pi 3

Fri Jan 27, 2017 4:57 am

I saw this step in a post in the forum, "paste the fw for the BCM module in /lib/firmware/brcm(if you already have brcmfmac43430-sdio.sbin and brcmmac43430-sdio.txt then copy BCM43430A1.hcd only"

I don't understand this step because I didn't see any folder name as "firmware" in the "lib" folder.

fruitoftheloom
Posts: 20427
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Bluez update in Raspberry Pi 3

Fri Jan 27, 2017 2:05 pm

vmyadhu2 wrote:I saw this step in a post in the forum, "paste the fw for the BCM module in /lib/firmware/brcm(if you already have brcmfmac43430-sdio.sbin and brcmmac43430-sdio.txt then copy BCM43430A1.hcd only"

I don't understand this step because I didn't see any folder name as "firmware" in the "lib" folder.
Bluez 5.23 is in Raspbian Jessie

Bluez 5.34 is in Raspbian Stretch Testing

Why not just install the Stretch Release version ??
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

Return to “Beginners”