# How to put BlueZ stack into MangOH board?

**URL:** <https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247>\
**Category:** mangOH Green\
**Created:** [March 16, 2018, 8:10am UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247 "2018-03-16T08:10:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![FebinPS](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@FebinPS](https://mangoh.discourse.group/u/FebinPS)\
**Post date:** [March 16, 2018, 8:10am UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/1 "2018-03-16T08:10:55Z")

</div>

The board runs Leagato17.09.0 and has WP76xx as controller. How can I put BlueZ stack into this ?

I know you have provided provisions to put some utilities into the board but I am trying to develop a BLE application and I think I would need the whole stack APIs on target.

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [March 16, 2018, 10:51pm UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/2 "2018-03-16T22:51:14Z")

</div>

I’m in the process of trying to figure this out right now. There’s a relevant recipe in `poky/meta/recipes-connectivity/bluez5/`

I built it successfully a week or so ago, but I never tried actually using it because I decided to step back to a higher level and better understand the bluez stack on desktop Linux before I got bogged down with the yocto/mangOH/Legato specific details of it.

---

<div class="post-metadata">

**Author:** ![FebinPS](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@FebinPS](https://mangoh.discourse.group/u/FebinPS)\
**Post date:** [March 20, 2018, 6:35am UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/3 "2018-03-20T06:35:15Z")

</div>

Can you tell me how to include this in yocto build recipe; as this is not usually built with the kernel ?  
Also does this recipe create bluez libraries with BLE suport ?

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [March 23, 2018, 4:41pm UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/4 "2018-03-23T16:41:43Z")

</div>

I have built a [small yocto layer to enable bluetooth support for WP76/WP77](https://github.com/dpfrey/yocto_wp76_wp77_meta-bluetooth). Note that this is super unofficial at this point which is why I posted it on my personal github rather than the mangOH github. Please read the README in the layer repository. Note that this does _not_ provide support for the onboard mangOH Red bluetooth. It just enables bluetooth support in the kernel and provides bluez libraries. I haven’t really tested it yet other than bringing up the bluetooth interface using the wifi/bt IoT card.

---

<div class="post-metadata">

**Author:** ![FebinPS](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@FebinPS](https://mangoh.discourse.group/u/FebinPS)\
**Post date:** [March 27, 2018, 1:55pm UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/5 "2018-03-27T13:55:13Z")

</div>

Hi David,

I tried following the instructions in you git page. I seem to be facing some issue either with flashing or the .cwe file; I am not sure at this point in time.

The flashed board does not contain any Bluetooth utilities nor any BlueZ files. Any pointers ?

I am flashing the file using swiflash.  
_swiflash -m WP76XX -i yocto\_wp76xx.4k.cwe_

- The meta-bluetooth folder didnot exist in my source so I created one and copied your repository into it.
- The file swi-meta/build.sh was also not present; so I created a file, copied your code into it and renamed it build.sh, within swi-meta

---

<div class="post-metadata">

**Author:** ![FebinPS](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@FebinPS](https://mangoh.discourse.group/u/FebinPS)\
**Post date:** [April 13, 2018, 11:13am UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/6 "2018-04-13T11:13:16Z")

</div>

@dfrey Hi I figured this out on my own.

You need to edit the yocto/build\_bin/conf/local.conf, and add the line:  
**IMAGE\_INSTALL\_append = " bluez5 bluezhcidump"**

Use the following command to make sure bluez5 is available in the yocto source and so is bluezhcidump.  
**bitbake-layers show-recipes**

If hcidump is not available it can be ignored. So the addition to local.conf will become:  
**IMAGE\_INSTALL\_append = " bluez5"**

Run bitbake, double check that the package has been added using:  
**bitbake image -g -u depexp**

Flash and BlueZ away. 🙂

---

<div class="post-metadata">

**Author:** ![langestefan](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@langestefan](https://mangoh.discourse.group/u/langestefan)\
**Post date:** [June 21, 2019, 11:58am UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/7 "2019-06-21T11:58:12Z")

</div>

Hi. I was wondering what the state is for BlueZ on Legato. Is it an official integration yet?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [June 21, 2019, 4:35pm UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/8 "2019-06-21T16:35:39Z")

</div>

We will be able to have a way to add BlueZ 5.30 to mangoh boards by end of August. That method will be supported by the mangoh team

---

<div class="post-metadata">

**Author:** ![dbeckwith](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dbeckwith/32/2139_2.png) [@dbeckwith](https://mangoh.discourse.group/u/dbeckwith)\
**Post date:** [July 3, 2019, 10:57pm UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/9 "2019-07-03T22:57:18Z")

</div>

@asyal Will the BlueZ support work with any Bluetooth module that supports the HCI interface?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [July 3, 2019, 11:55pm UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/10 "2019-07-03T23:55:07Z")

</div>

We will only validate it against the module on mangoh yellow

---

<div class="post-metadata">

**Author:** ![dbeckwith](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dbeckwith/32/2139_2.png) [@dbeckwith](https://mangoh.discourse.group/u/dbeckwith)\
**Post date:** [July 4, 2019, 7:16pm UTC](https://mangoh.discourse.group/t/how-to-put-bluez-stack-into-mangoh-board/1247/11 "2019-07-04T19:16:31Z")

</div>

@asyal Thanks for the update.
