[yocto] Enabling BLE on RPI 3B+ using meta-rasperrypi recipe

Utsav Jain utsavjain0511 at gmail.com
Wed Feb 27 18:08:03 PST 2019


Hi,

I am using meta-raspberrypi
https://github.com/agherzan/meta-raspberrypi recipe to build an image
for RPI 3B+ . I want to enable bluetooth on the device.

My local.conf looks something like this

CONF_VERSION = "1"
ENABLE_UART = "1"
ENABLE_RPI3_SERIAL_CONSOLE = "1"
SERIAL_CONSOLES = "115200;ttyAMA0"
MACHINE = "raspberrypi3-64"


CORE_OS = " \
    bluez5 \
    openssh openssh-keygen openssh-sftp-server \
    tzdata \
"

WIFI_SUPPORT = " \
    crda \
    iw \
    wpa-supplicant \
"

DEV_SDK_INSTALL = " \
    python3 \
    pi-bluetooth \
    python3-modules \
    python3-pip  \
    python3-pygobject \
    python3-dbus \
    dbus-glib \
    gobject-introspection \
"

DEV_EXTRAS = " \
    ntp \
    ntp-tickadj \
"

EXTRA_TOOLS_INSTALL = " \
    bzip2 \
    ethtool \
    i2c-tools \
    iperf3 \
    iproute2 \
    iptables \
    less \
    netcat \
    procps \
    sysfsutils \
    tcpdump \
    unzip \
    util-linux \
    zip \
    dbus \
"


PREFERRED_VERSION_linux-raspberrypi = "4.%"
DISTRO_FEATURES_remove = "x11 wayland"

DISTRO_FEATURES_append = " bluez5 bluetooth wifi systemd"

IMAGE_INSTALL_append = " \
    ${CORE_OS} \
    ${DEV_SDK_INSTALL} \
    ${DEV_EXTRAS} \
    ${EXTRA_TOOLS_INSTALL} \
    ${WIFI_SUPPORT} \
"

VIRTUAL-RUNTIME_init_manager = "systemd"

PACKAGE_EXCLUDE_append = " packagegroup-core-ssh-dropbear"

I am not able to attach the device to the HCI interface.

bluetoothctl -- devices return "No default controller available"

I am very new to both Yocto and RPI distro. Any help in pointing to
the right firmware or init scripts to fix this is appreciated. Thanks.

-- 
Regards ,
Utsav


More information about the yocto mailing list