# WP7607-1 - Bluetooth Drivers - WL1835MOD

**URL:** <https://forum.legato.io/t/wp7607-1-bluetooth-drivers-wl1835mod/4086>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [February 6, 2019, 9:42am UTC](https://forum.legato.io/t/wp7607-1-bluetooth-drivers-wl1835mod/4086 "2019-02-06T09:42:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [February 6, 2019, 9:42am UTC](https://forum.legato.io/t/wp7607-1-bluetooth-drivers-wl1835mod/4086/1 "2019-02-06T09:42:57Z")

</div>

Hello,

I’m currently working on a project using a WP7607-1 module and we’re integrating the WL1835MOD to our board.

I’m trying to use [yocto\_wp76\_wp77\_meta-bluetooth](https://github.com/dpfrey/yocto_wp76_wp77_meta-bluetooth) to add bluetooth drivers to the wp76xx linux distribution but the compilation fails at the end.

The distribution I’m using is the latest available for wp76xx found on this page: [wp76xx-firmware-latest-release-components](https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-latest-release-components/).

I can compile it without adding the meta-bluetooth layer.

Error is the following:

ERROR: linux-quic-3.18.44-r1 do\_compile\_kernelmodules: oe\_runmake failed  
ERROR: linux-quic-3.18.44-r1 do\_compile\_kernelmodules: Function failed: do\_compile\_kernelmodules (log file is located at ----------/yocto/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-quic/3.18.44-r1/temp/log.do\_compile\_kernelmodules.30471)  
ERROR: Logfile of failure stored in: ----------/yocto/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-quic/3.18.44-r1/temp/log.do\_compile\_kernelmodules.30471  
Log data follows:  
| DEBUG: Executing shell function do\_compile\_kernelmodules  
| NOTE: make HOSTCC=gcc HOSTCPP=gcc -E -C ----------/yocto/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-quic/3.18.44-r1/build -j 32 modules CC=----------/yocto/kernel/.git/…/scripts/gcc-wrapper.py arm-poky-linux-gnueabi-gcc -fuse-ld=bfd LD=arm-poky-linux-gnueabi-ld.bfd O=----------/yocto/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-quic/3.18.44-r1/build  
| make: Entering directory ‘----------/yocto/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-quic/3.18.44-r1/build’  
| CHK include/config/kernel.release  
| GEN ./Makefile  
| CHK include/generated/uapi/linux/version.h  
| CHK include/generated/utsrelease.h  
| Using ----------/yocto/kernel as source for kernel  
| CC scripts/mod/empty.o  
| CC scripts/mod/devicetable-offsets.s  
| MKELF scripts/mod/elfconfig.h  
| HOSTCC scripts/mod/modpost.o  
| HOSTCC scripts/mod/sumversion.o  
| GEN scripts/mod/devicetable-offsets.h  
| HOSTCC scripts/mod/file2alias.o  
| make[3]: ‘include/generated/mach-types.h’ is up to date.  
| CALL ----------/yocto/kernel/scripts/checksyscalls.sh  
| HOSTLD scripts/mod/modpost  
| CC [M] fs/quota/quota\_v1.o  
| CC [M] fs/quota/quota\_v2.o  
| CC [M] fs/quota/quota\_tree.o  
| CC [M] crypto/seqiv.o  
| CC [M] crypto/ctr.o  
| CC [M] crypto/ccm.o  
| CC [M] crypto/arc4.o  
| CC [M] crypto/michael\_mic.o  
| CC [M] crypto/ansi\_cprng.o  
| CC [M] drivers/bluetooth/hci\_vhci.o  
| CC [M] drivers/bluetooth/hci\_ldisc.o  
| CC [M] drivers/bluetooth/hci\_h4.o  
| CC [M] drivers/bluetooth/hci\_bcsp.o  
| CC [M] drivers/input/misc/gpio\_event.o  
| CC [M] block/test-iosched.o  
| CC [M] drivers/bluetooth/hci\_ll.o  
| CC [M] drivers/mmc/card/mmc\_test.o  
| CC [M] drivers/bluetooth/hci\_ath.o  
| CC [M] drivers/bluetooth/hci\_h5.o  
| CC [M] drivers/input/misc/gpio\_matrix.o  
| CC [M] drivers/input/misc/gpio\_input.o  
| CC [M] drivers/bluetooth/hci\_ibs.o  
| CC [M] drivers/iio/imu/bmi160/bmi160\_i2c.o  
| CC [M] drivers/net/phy/at803x.o  
| CC [M] drivers/net/ethernet/qualcomm/emac/emac\_main.o  
| CC [M] drivers/net/ethernet/qualcomm/emac/emac\_hw.o  
| CC [M] drivers/bluetooth/bpa10x.o  
| CC [M] drivers/bluetooth/bcm203x.o  
| CC [M] drivers/input/misc/gpio\_output.o  
| CC [M] drivers/input/misc/gpio\_axis.o  
| CC [M] drivers/iio/imu/bmi160/bmi160\_core.o  
| CC [M] drivers/iio/imu/bmi160/bmi160\_main.o  
| CC [M] drivers/bluetooth/bfusb.o  
| CC [M] drivers/mmc/card/mmc\_block\_test.o  
| CC [M] drivers/bluetooth/btusb.o  
| CC [M] drivers/bluetooth/btsdio.o  
| CC [M] drivers/net/phy/qca8337.o  
| CC [M] drivers/net/ethernet/qualcomm/emac/emac\_ethtool.o  
| CC [M] drivers/net/wireless/ti/wl12xx/main.o  
| CC [M] drivers/net/ethernet/qualcomm/emac/emac\_ptp.o  
| CC [M] drivers/net/wireless/ti/wl1251/main.o  
| CC [M] drivers/net/wireless/ti/wl1251/event.o  
| CC [M] drivers/bluetooth/ath3k.o  
| CC [M] drivers/net/wireless/ti/wl1251/tx.o  
| CC [M] drivers/net/wireless/ti/wl1251/rx.o  
| CC [M] drivers/net/wireless/ti/wl12xx/cmd.o  
| CC [M] drivers/net/wireless/ti/wl12xx/acx.o  
| CC [M] drivers/iio/imu/bmi160/bmi160\_ring.o  
| CC [M] drivers/net/wireless/ti/wl18xx/main.o  
| CC [M] drivers/bluetooth/btmrvl\_main.o  
| CC [M] drivers/net/wireless/ti/wl1251/ps.o  
| CC [M] drivers/net/wireless/ti/wl18xx/acx.o  
| CC [M] drivers/net/ethernet/qualcomm/emac/emac\_phy.o  
| CC [M] drivers/net/ethernet/qualcomm/emac/emac\_rgmii.o  
| CC [M] drivers/net/ethernet/qualcomm/emac/emac\_sgmii.o  
| CC [M] drivers/net/wireless/ti/wl18xx/tx.o  
| CC [M] drivers/net/wireless/ti/wl12xx/debugfs.o  
| CC [M] drivers/net/wireless/ti/wlcore/main.o  
| CC [M] drivers/net/wireless/ti/wlcore/cmd.o  
| CC [M] drivers/net/wireless/ti/wl12xx/scan.o  
| CC [M] drivers/net/wireless/ti/wl12xx/event.o  
| CC [M] drivers/net/wireless/ti/wl1251/cmd.o  
| CC [M] drivers/net/wireless/ti/wl1251/acx.o  
| CC [M] drivers/bluetooth/btmrvl\_debugfs.o  
| CC [M] drivers/bluetooth/btmrvl\_sdio.o  
| CC [M] drivers/net/wireless/ti/wl1251/boot.o  
| CC [M] drivers/net/wireless/ti/wl18xx/io.o  
| CC [M] drivers/net/wireless/ti/wl18xx/debugfs.o  
| CC [M] drivers/bluetooth/bluetooth-power.o  
| CC [M] drivers/net/wireless/ti/wl1251/init.o  
| CC [M] drivers/net/wireless/ti/wl1251/debugfs.o  
| In file included from ----------/yocto/kernel/include/linux/module.h:17:0,  
| from ----------/yocto/kernel/drivers/bluetooth/btusb.c:23:  
| ----------/yocto/kernel/drivers/bluetooth/btusb.c: In function ‘\_\_check\_reset’:  
| ----------/yocto/kernel/include/linux/moduleparam.h:145:27: warning: return from incompatible pointer type [-Wincompatible-pointer-types]  
| error, forbidden warning: moduleparam.h:145  
| ----------/yocto/kernel/scripts/Makefile.build:263: recipe for target ‘drivers/bluetooth/btusb.o’ failed  
| make[4]: \*\*\* [drivers/bluetooth/btusb.o] Error 1  
| make[4]: \*\*\* Waiting for unfinished jobs…  
| CC [M] drivers/net/wireless/ti/wl1251/io.o  
| CC [M] drivers/net/wireless/ti/wl18xx/scan.o  
| CC [M] drivers/net/wireless/ti/wlcore/io.o  
| CC [M] drivers/net/wireless/ti/wl18xx/cmd.o  
| CC [M] drivers/net/wireless/ti/wlcore/event.o  
| CC [M] drivers/net/wireless/ti/wl18xx/event.o  
| CC [M] drivers/net/wireless/ti/wlcore/tx.o  
| CC [M] drivers/net/wireless/ti/wlcore/rx.o  
| LD [M] drivers/net/ethernet/qualcomm/emac/qcom\_emac.o  
| CC [M] net/bluetooth/af\_bluetooth.o  
| CC [M] drivers/net/wireless/ti/wlcore/ps.o  
| CC [M] net/bluetooth/hci\_core.o  
| CC [M] drivers/net/wireless/ti/wlcore/acx.o  
| CC [M] net/bluetooth/hci\_conn.o  
| LD [M] drivers/net/wireless/ti/wl12xx/wl12xx.o  
| CC [M] net/bluetooth/hci\_event.o  
| CC [M] net/bluetooth/mgmt.o  
| CC [M] net/bluetooth/hci\_sock.o  
| CC [M] net/bluetooth/hci\_sysfs.o  
| CC [M] net/bluetooth/l2cap\_core.o  
| CC [M] net/bluetooth/smp.o  
| CC [M] net/bluetooth/l2cap\_sock.o  
| CC [M] net/bluetooth/sco.o  
| CC [M] net/bluetooth/lib.o  
| CC [M] net/bluetooth/a2mp.o  
| CC [M] net/bluetooth/amp.o  
| CC [M] drivers/usb/serial/usb-serial.o  
| CC [M] drivers/net/wireless/ti/wlcore/init.o  
| CC [M] drivers/net/wireless/ti/wlcore/boot.o  
| CC [M] lib/crc7.o  
| CC [M] drivers/net/wireless/ti/wlcore/debugfs.o  
| CC [M] drivers/net/wireless/ti/wlcore/scan.o  
| CC [M] drivers/net/wireless/ti/wlcore/sysfs.o  
| ----------/yocto/kernel/scripts/Makefile.build:402: recipe for target ‘drivers/bluetooth’ failed  
| make[3]: \*\*\* [drivers/bluetooth] Error 2  
| make[3]: \*\*\* Waiting for unfinished jobs…  
| CC [M] drivers/net/wireless/ti/wlcore/vendor\_cmd.o  
| LD [M] drivers/iio/imu/bmi160/bmi160.o  
| CC [M] drivers/usb/serial/generic.o  
| CC [M] drivers/net/wireless/ti/wlcore/testmode.o  
| CC [M] drivers/net/wireless/ti/wlcore/sdio.o  
| CC [M] net/bluetooth/bnep/core.o  
| CC [M] net/bluetooth/hidp/core.o  
| CC [M] drivers/usb/serial/bus.o  
| CC [M] net/bluetooth/rfcomm/core.o  
| CC [M] net/bluetooth/rfcomm/sock.o  
| CC [M] net/bluetooth/hidp/sock.o  
| LD [M] drivers/net/wireless/ti/wl18xx/wl18xx.o  
| LD [M] drivers/net/wireless/ti/wl1251/wl1251.o  
| ----------/yocto/kernel/net/bluetooth/hci\_sock.c: In function ‘hci\_sock\_sendmsg’:  
| ----------/yocto/kernel/net/bluetooth/hci\_sock.c:980:8: warning: passing argument 2 of ‘hci\_test\_bit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]  
| &hci\_sec\_filter.ocf\_mask[ogf])) &&  
| ^  
| ----------/yocto/kernel/net/bluetooth/hci\_sock.c:49:19: note: expected ‘void _’ but argument is of type 'const \_\_u32 (_)[4] {aka const unsigned int (\*)[4]}’  
| static inline int hci\_test\_bit(int nr, void \*addr)  
| ^ ~~~~~~~~~~~  
| CC [M] drivers/usb/serial/ftdi\_sio.o  
| CC [M] net/bluetooth/bnep/sock.o  
| CC [M] net/bluetooth/bnep/netdev.o  
| CC [M] net/bluetooth/rfcomm/tty.o  
| CC [M] net/mac80211/main.o  
| CC [M] net/mac80211/sta\_info.o  
| CC [M] net/mac80211/status.o  
| CC [M] net/mac80211/wep.o  
| CC [M] net/mac80211/wpa.o  
| CC [M] net/mac80211/scan.o  
| CC [M] net/mac80211/offchannel.o  
| CC [M] net/wireless/core.o  
| CC [M] net/mac80211/ht.o  
| CC [M] net/mac80211/agg-tx.o  
| CC [M] net/wireless/sysfs.o  
| LD [M] drivers/usb/serial/usbserial.o  
| CC [M] net/wireless/radiotap.o  
| LD [M] drivers/net/wireless/ti/wlcore/wlcore\_sdio.o  
| ERROR: oe\_runmake failed  
| CC [M] net/wireless/util.o  
| CC [M] net/wireless/reg.o  
| CC [M] net/wireless/scan.o  
| CC [M] net/mac80211/agg-rx.o  
| CC [M] net/wireless/nl80211.o  
| CC [M] net/mac80211/vht.o  
| CC [M] net/wireless/mlme.o  
| LD [M] net/bluetooth/bnep/bnep.o  
| LD [M] net/bluetooth/hidp/hidp.o  
| CC [M] net/mac80211/ibss.o  
| CC [M] net/netfilter/xt\_physdev.o  
| CC [M] net/wireless/ibss.o  
| LD [M] drivers/net/wireless/ti/wlcore/wlcore.o  
| CC [M] net/wireless/sme.o  
| CC [M] net/mac80211/iface.o  
| CC [M] net/wireless/chan.o  
| CC [M] net/wireless/ethtool.o  
| CC [M] net/mac80211/rate.o  
| ----------/yocto/kernel/Makefile:956: recipe for target ‘drivers’ failed  
| make[2]: \*\*\* [drivers] Error 2  
| make[2]: \*\*\* Waiting for unfinished jobs…  
| CC [M] net/wireless/ap.o  
| CC [M] net/wireless/mesh.o  
| CC [M] net/mac80211/michael.o  
| CC [M] net/mac80211/tkip.o  
| CC [M] net/mac80211/aes\_ccm.o  
| CC [M] net/mac80211/ethtool.o  
| CC [M] net/mac80211/aes\_cmac.o  
| CC [M] net/mac80211/cfg.o  
| CC [M] net/wireless/trace.o  
| CC [M] net/mac80211/rx.o  
| CC [M] net/mac80211/spectmgmt.o  
| CC [M] net/wireless/debugfs.o  
| LD [M] net/bluetooth/rfcomm/rfcomm.o  
| CC [M] net/mac80211/tx.o  
| CC [M] net/mac80211/key.o  
| CC [M] net/mac80211/util.o  
| CC [M] net/mac80211/wme.o  
| CC [M] net/mac80211/event.o  
| CC [M] net/wireless/wext-compat.o  
| CC [M] net/wireless/wext-sme.o  
| CC [M] net/mac80211/chan.o  
| CC [M] net/mac80211/trace.o  
| CC [M] net/wireless/regdb.o  
| CC [M] net/mac80211/mlme.o  
| CC [M] net/mac80211/tdls.o  
| CC [M] net/mac80211/pm.o  
| CC [M] net/mac80211/rc80211\_minstrel.o  
| CC [M] net/mac80211/rc80211\_minstrel\_ht.o  
| LD [M] net/bluetooth/bluetooth.o  
| LD [M] net/wireless/cfg80211.o  
| LD [M] net/mac80211/mac80211.o  
| Makefile:145: recipe for target ‘sub-make’ failed  
| make[1]: \*\*\* [sub-make] Error 2  
| Makefile:24: recipe for target ‘\_\_sub-make’ failed  
| make: \*\*\* [\_\_sub-make] Error 2  
| make: Leaving directory ‘----------/yocto/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-quic/3.18.44-r1/build’  
| WARNING: ----------/yocto/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-quic/3.18.44-r1/temp/run.do\_compile\_kernelmodules.30471:1 exit 1 from ‘exit 1’  
| ERROR: Function failed: do\_compile\_kernelmodules (log file is located at ----------/yocto/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-quic/3.18.44-r1/temp/log.do\_compile\_kernelmodules.30471)  
ERROR: Task (----------/yocto/meta-swi/meta-swi-mdm9x28/recipes-kernel/linux/linux-quic\_git.bb:do\_compile\_kernelmodules) failed with exit code ‘1’  
NOTE: Tasks Summary: Attempted 3083 tasks of which 13 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:  
----------/yocto/meta-swi/meta-swi-mdm9x28/recipes-kernel/linux/linux-quic\_git.bb:do\_compile\_kernelmodules  
Summary: There were 18 WARNING messages shown.  
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.  
Makefile:247: recipe for target ‘image\_bin’ failed  
make: \*\*\* [image\_bin] Error 1

Any idea of what could be going wrong? Did somebody manage to use this layer with latest linux sources for wp76xx?

Thanks in advance,  
Best regards

---

<div class="post-metadata">

**Author:** ![ben.o](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@ben.o](https://forum.legato.io/u/ben.o)\
**Post date:** [February 6, 2019, 10:47am UTC](https://forum.legato.io/t/wp7607-1-bluetooth-drivers-wl1835mod/4086/2 "2019-02-06T10:47:52Z")

</div>

The error came from android kernel.

Reason and fix: [https://github.com/ryan-andri/android\_kernel\_santoni/commit/4760c9ce07d6617d38cedbf973f580a040be9d2c](https://github.com/ryan-andri/android_kernel_santoni/commit/4760c9ce07d6617d38cedbf973f580a040be9d2c)

Ben
