Bluetooth is not working in Beagle bone

184 views
Skip to first unread message

Mallikarjun Phulari

unread,
Sep 23, 2016, 11:12:46 AM9/23/16
to Chromium OS dev
Hi,
I have built an image for beaglebone with the help of the link


I have built a test image and i have installed chromium os on beagle bone:

after I have built the package bluez using emerge and deployed it using cros deploy.
i can see the executables and tools of bluez in chromium os.

and i rebooted after deploying the image.

i am getting an error while loading the image like:
Bluetooth main process exited with status 1.

when i try to run bluetoothd manually i am getting following error:

# /usr/libexec/bluetooth/bluetoothd -n                                                                                                                                                                                                    :(
bluetoothd[5824]: Bluetooth daemon 5.39
bluetoothd[5824]: Failed to access management interface
bluetoothd[5824]: Adapter handling initialization failed.

I also tried to run hciconfig then i am getting an error like:
can't open hci socket.: address family not supported by protocol

The reason i guess is, the bluetooth driver is not loaded.
I cant even see the driver for bluetooth in  build/beaglebone/....../kernel/driver section.
But i can see the driver for arm-generic build in the same section
 and evrything works fine there.
If this is the problem then plaese help me to load the driver in beaglbone
if not plaese help me to solve the issue with other solutions any
Thanks

Mike Frysinger

unread,
Sep 23, 2016, 5:18:22 PM9/23/16
to Mallikarjun Phulari, Chromium OS dev
CONFIG_BT is turned off in the beaglebone kernel configs.  you'll need to modify src/overlays/overlay-beaglebone/sys-kernel/kernel-beaglebone*/files/config* to suite your needs and then rebuild the kernel.
-mike

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en


Mallikarjun Phulari

unread,
Sep 24, 2016, 4:07:37 AM9/24/16
to Chromium OS dev, mallu....@gmail.com

I am sorry if i am annoying you..
I am new to chromium os.
I made the change as you suggested. i marked it once 'y' once, once 'm'.
 then build the packages and image again.. same problem.

Can you please tell me how to rebuild the kernel as you mentioned.
please let me know the steps. please

Brian Norris

unread,
Sep 24, 2016, 4:42:13 AM9/24/16
to Mallikarjun Phulari, Chromium OS dev
You probably need to 'cros_workon' the ebuild. i.e.:

cros_workon-beaglebone start sys-kernel/kernel-beaglebone

Mallikarjun Phulari

unread,
Sep 24, 2016, 8:27:10 AM9/24/16
to Chromium OS dev, mallu....@gmail.com
HI Brian,

I followed these steps still no bluetooth

cros_workon-beaglebone start sys-kernel/kernel-beaglebone

cros_workon_make --board=${BOARD} bluez

cros_workon_make --board=${BOARD} bluez --test

cros_workon_make --board=${BOARD} bluez --install

./build_image --board=${BOARD} --noenable_rootfs_verification dev

cros flash usb:// beaglebone/latest

booted the beaglebone using the usb:

still i cant see bluetooth supoort on beagle bone

Mallikarjun Phulari

unread,
Sep 26, 2016, 1:03:49 PM9/26/16
to Chromium OS dev, mallu....@gmail.com
Hi Mike,

I enabled bluetooth in beagleboard with steps provide by you..
The bluetoothd is loading correctly now.
When i connect a BT USB dongle to Beaglebone and try hciconfig, it is not working.
I have loaded the driver HCIBTUSB  by making following changes in /build/beaglebone/boot/config_4_4 file

CONFIG_BT_HCI-USB =m

i also set all HCI related drivers by marking them as "m"

still hciconfig is not working.

Plaese let me know the steps to make hciconfig work

On Saturday, 24 September 2016 02:48:22 UTC+5:30, Mike Frysinger wrote:

Mike Frysinger

unread,
Sep 26, 2016, 1:52:15 PM9/26/16
to Mallikarjun Phulari, Chromium OS dev
modifying files in /build/beaglebone/ won't help.  those are the installed ones.  you need to modify the files i referenced earlier and then check that the files installed into /build/beaglebone/ are correct.  if they are not, then the build step isn't working and you'll need to recheck it.
-mike

Mallikarjun Phulari

unread,
Sep 27, 2016, 11:13:49 AM9/27/16
to Chromium OS dev, mallu....@gmail.com
Hi mike,

I enabled all the drivers related to HCI in overlays/overlay-beaglebone/sys-kernel/kernel-beaglebone-4_4/files/config-4.4.4like: 
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_OMAP3=y
CONFIG_USB_OHCI_HCD_PLATFORM=y

CONFIG_USB_XHCI_HCD=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_HCD_OMAP=y
CONFIG_USB_EHCI_HCD_PLATFORM=y

CONFIG_MMC_SDHCI=y

CONFIG_USB_OHCI_LITTLE_ENDIAN=y

still hciconfig is not working: it is not displaying anything.

But when i connect BT dongle i can see the followings in terminal:
 [   75.233606] usb 1-1: USB disconnect, device number 5
[   77.471248] usb 1-1: new full-speed USB device number 6 using musb-hdrc
[   77.631293] usb 1-1: New USB device found, idVendor=0a12, idProduct=0001
[   77.638387] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   77.645924] usb 1-1: Product: CSR8510 A10

and i can i also see an error message on terminal when the kernel is loading:
udevd[151]: failed to execute '/usr/bin/get_bluetooth_device_class.sh' '/usr/bin/get_bluetooth_device_class.sh ':y
 is this is the problem??

Please let me know what i am doing wrong??

Mallikarjun Phulari

unread,
Sep 27, 2016, 11:22:48 AM9/27/16
to Chromium OS dev, mallu....@gmail.com
In reference to the previous mail:

I can also see the following bluetooth drivers are not set in /build/beaglebone/boot/config:

CONFIG_BT_HCIBTUSB is not set
CONFIG_BT_HCIBTSDIO is not set
CONFIG_BT_HCIUART is not set
CONFIG_BT_HCIBCM203X is not set
CONFIG_BT_HCIBFUSB is not set
CONFIG_BT_HCIVHCI is not set
CONFIG_BT_MRVL is not set

How to set these drivers:

what changes i have to make and where?

Mike Frysinger

unread,
Sep 27, 2016, 12:02:07 PM9/27/16
to Mallikarjun Phulari, Chromium OS dev
if it's not set in /build/beaglebone/boot/config, then your build steps aren't working, so trying to boot the image is a waste of time.  iterate at the build before trying to run it.

figure out which kernel exactly you're building ... beaglebone has two atm available.  then modify the config that kernel uses.

you might also have to set USE=bluetooth in the beaglebone's make.conf file.
-mike
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages