We need to enable bluetooth and dbus on our rapi4 x64 image. I can't find any documentation on doing this. We're new to yocto and RDK. Can someone please help?

source: rdkb-2023q4-kirkstone

manifest: rdkb-extsrc.xml

build:

export MACHINE=raspberrypi4-64-rdk-broadband

source ./meta-cmf-raspberrypi/setup-environment

bitbake rdk-generic-broadband-image

Mar 21 2024 update:

To get dbus on and enabled, we removed the lines 17-20 from meta-cmf-raspberrypi/recipes-core/dbus/dbus_%.bbappend:

do_install_append_aarch64_broadband () {
          # Removing dbus service in 64bit arch alone
          rm  ${D}${systemd_system_unitdir}/dbus.service   
}

However even though it appears the rpi Bluetooth stack is compiled, it appears to be non functional as we’re getting an init failure from hci uart (particularly a timeout).
Any suggestions Manigandan Gopalakrishnan? (since you were the last to update the rapi4 document)

  • No labels

2 Comments

  1. Hello Ryan Hagen ,

    dbus is part of your requirement? we are moving towards rbus.

    timeout may be in fetching. let us try and come back on this.

  2. Hello Ryan Hagen ,

    we could generate build (imagename:rdkb-generic-broadband-image_rdkb-2023q4-kirkstone_20240326120151) with dbus as you mentioned. 

    Observing this failure.


    root@RaspberryPi-Gateway:~# systemctl --state failed
      UNIT            LOAD   ACTIVE SUB    DESCRIPTION                                 
    ● hciuart.service loaded failed failed Configure Bluetooth Modems connected by UART
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    1 loaded units listed.
    root@RaspberryPi-Gateway:~# systemctl status hciuart.service
    × hciuart.service - Configure Bluetooth Modems connected by UART
         Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Thu 2022-04-28 17:42:36 UTC; 1 year 10 months ago
        Process: 260 ExecStart=/usr/bin/btuart (code=exited, status=1/FAILURE)
    
    2022 Apr 28 17:42:29 raspberrypi4-64-rdk-broadband systemd[1]: Starting Configure Bluetooth Modems connected by UART...
    2022 Apr 28 17:42:36 raspberrypi4-64-rdk-broadband btuart[276]: Can't set line discipline: Invalid argument
    2022 Apr 28 17:42:36 raspberrypi4-64-rdk-broadband btuart[276]: Can't initialize device: Invalid argument
    2022 Apr 28 17:42:36 raspberrypi4-64-rdk-broadband btuart[276]: bcm43xx_init
    2022 Apr 28 17:42:36 raspberrypi4-64-rdk-broadband btuart[276]: Flash firmware /lib/firmware/brcm/BCM4345C0.hcd
    2022 Apr 28 17:42:36 raspberrypi4-64-rdk-broadband btuart[276]: Set Controller UART speed to 3000000 bit/s
    2022 Apr 28 17:42:36 raspberrypi4-64-rdk-broadband systemd[1]: hciuart.service: Control process exited, code=exited, status=1/FAILURE
    2022 Apr 28 17:42:36 raspberrypi4-64-rdk-broadband systemd[1]: hciuart.service: Failed with result 'exit-code'.
    2022 Apr 28 17:42:36 raspberrypi4-64-rdk-broadband systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.

    You are talking above failure?