Comment 6 for bug 859886

Revision history for this message
Sangwook Lee (sangwook) wrote : Re: Bluetooth does not work on Origen 11.09 build 2

Apply patch (my idea) for Android Bluetooth in Origen

File: system/bluetooth/bluedroid/bluetooth.c of Android platform

    if (set_bluetooth_power(1) < 0) goto out;

+ LOGI("Starting bccmd daemon");
+ if (property_set("ctl.start", "bccmd") < 0) {
+ LOGE("Failed to start bccmd");
+ goto out;
+ }

    LOGI("Starting hciattach daemon");
    if (property_set("ctl.start", "hciattach") < 0) {
        LOGE("Failed to start hciattach");
        goto out;
    }

Note that the end stage of executing "bccmd" will return error,
but we have to ignore that.

Further Information:

Function init_rfill() in the above file will check out the following two files, which is currently supported by Linaro Kernel.
root@linaro-alip:/sys/class/rfkill# ls -al
drwxr-xr-x 2 root root 0 Jan 1 00:00 .
drwxr-xr-x 28 root root 0 Jan 1 00:00 ..
lrwxrwxrwx 1 root root 0 Jan 1 00:00 rfkill0 -> ../../devices/platform/rfkill_gpio/rfkill/rfkill0
lrwxrwxrwx 1 root root 0 Jan 1 00:05 rfkill1 -> ../../devices/platform/s5pv210-uart.0/tty/ttySAC0/hci0/rfkill1