This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM4376: Bring up of Bluez on AM4376 starter kit

Part Number: AM4376
Other Parts Discussed in Thread: WL1837

Tool/software: Linux

Hello All,

We are trying to bring up bluetooth of wl1837 withAM4376 starter kit using BlueZ.

We are using linux sdk 3.03 and kernel 4.4.41I go through following link

processors.wiki.ti.com/index.php/WL18xx_BlueZ_Bringing_Up_on_AM335x

Q.1  I want to understand which patches are mandatory for applying to linux kernel

Patches related to OF_CONFIG are 4 years old . Do we need to apply that patches?

Q.2 What are modification required to make in dts file for wl1837?

As per link i made entry in dts file but didn't work.

Please guide me to bringing up bluetooth part of wl1837.

Regards,

Dhananjay Patil

  • Hi,

    Can, you try with SDK4.02 or so.. The SDK has Bluez enabled in kernel, and so you do not need to recompile. In general for K4.x kernels, to enable Bluez with WL18xx, we recommend the following :
    Kernel Part :
    a) Build kernel BT module without TI ST driver.. Use plain linux UART driver with HCI.. For K4.4, we use below kernel config options:
    CONFIG_BT_RFCOMM
    CONFIG_BT_HCIUART
    CONFIG_BT_HCIUART_H4
    CONFIG_BT_HCIUART_LL
    CONFIG_BT_HCIUART_3WIRE


    User space/File system Part:
    b) Take a note of the UART and GPIO (BT Enable) wired to the WL1837 for Bluetooth.
    After, kernel has booted..
    i) Toggle the BT EN GPIO lines to reset the device.
    ex:
    echo <bt_en> /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio<bt_en>/direction
    echo 0 > /sys/class/gpio/gpio<bt_en>/value
    echo 1 > /sys/class/gpio/gpio<bt_en>/value

    ii) If, you are using Bluez, use hciattach, to load the firmware as below :
    #hciattach <uart dev port> texas <baudrate>
    for ex:
    #hciattach /dev/ttyS1 texas 3000000

    Thanks
  • Hello Hari,

    Thanks for your guidance.

    I have following question
    1. Do we need any changes required in starter kit dts for kernel 4.4.41?
    2. How the probing process of bluetooth driver take place?
    3. Do we need to place .bts in /lib/firmware/ ?
    As per description bts required to receive hci commands.

    Regards,
    Dhananjay Patil
  • Make sure, the UART and GPIO pad configurations are correct in the DTS file. I believe, TISDK dts file already does this. All Bluez drivers are kernel modules, and gets installed when you run 'hciattach'.
    As for the bts files, TI processor SDK file system already has the bts files..

    Thanks
  • Hi Hari,

    Thanks for your valuable inputs.
    I successfully completed bring up bluez on starter kit by following your instruction.
    I am also able to scan bluetooth device.


    Regards,
    Dhananjay Patil