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 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.
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