I am using WP76xx as the processor and using Legato 17.09 with related toolchain.
I am trying to integrate Bluedroid stack to the board so that I can start using it for some BT development. I was planning to use BlueZ but some changes from higher ups reccomended using Bluedroid.
How practical is this ?
Anyways, I have gone ahead with trying. I downloaded Bluedroid fro Linux, a project from GIT, and created a WLP18xx sub-folder in the devices folder, put in my own makefile and libbt-vendor-ti.c[The second one from online] and cross-compiled the same using the toolchain associated to Legato 17.09.
It compiled without issue and I placed executables in /tmp folder of the target and associated libraries in /usr/lib[using overlayfs].
When I run the bdt app I am getting âBluetooth not enabled. Plz enable itâ message. Using rfkill didnot reveal any bluetooth devices.
I downloaded and ran the BluetoothUtil app; hoping it will bring up the drivers and associated processes. I am met with the error ::
Jan 6 00:05:27 swi-mdm9x28 user.info Legato: INFO | supervisor[1905]/supervisor T=main | proc.c proc_Start() 1204 | Execing 'bt-init.shâ Jan 6 00:05:27 swi-mdm9x28 user.info Legato: INFO | bt-init.sh[1905] | PWD is: /legato/systems/current/appsWriteable/bluetoothUtil Jan 6 00:05:27 swi-mdm9x28 user.err Legato: =ERR= | bt-init.sh[1905] | modprobe: module hci_uart not found in modules.dep Jan 6 00:05:28 swi-mdm9x28 user.err Legato: =ERR= | bt-init.sh[1905] | modprobe: module bluetooth not found in modules.dep Jan 6 00:05:29 swi-mdm9x28 user.err Legato: =ERR= | bt-init.sh[1905] | modprobe: module rfcomm not found in modules.dep Jan 6 00:05:30 swi-mdm9x28 user.err Legato: =ERR= | bt-init.sh[1905] | modprobe: module hidp not found in modules.dep Jan 6 00:05:31 swi-mdm9x28 user.err Legato: =ERR= | bt-init.sh[1905] | modprobe: module bnep not found in modules.dep
I was using a Kernel provided by the offshore guys. So no; I am trying to build the kernel as stated in:
I have downloaded the Legato distribution: Legato-Dist-Source-mdm9x28-SWI9X07Y_02.11.00.00.tar.bz2
And I am following the steps as mentioned in the GIT page above.
Now; I am faced with: ./tmp/log/cooker/swi-mdm9x28/20180220124554.log:ERROR: linux-yocto was skipped: incompatible with machine swi-mdm9x28 (not in COMPATIBLE_MACHINE)
PS: I am new to building kernels and Yocto recipes and all, so IF my question is about something way too obvious please dont be cross and all.
maybe you can transfer the yocto_wp76xx.4k.cwe image by scp to /tmp folder of the module.
After that you can upgrade the FW by âfwupdate download yocto_wp76xx.4k.cweâ on module UART console.