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.

请教TI WILINK的BT/WLAN在android6.0的集成问题



Hi Expert,

We follow bellow wiki portting patch on 6AM.1.3 New Icons 26.gifrelease:

         omappedia.org/.../Device_Driver_Interface_of_WiLink_Solution

now, we have below node(driver build in kernel):

      (1) /sys/devices/platform/kim     

      (2) /sys/devices/platform/btwilink

But it didn't work on your board, here is the log:

 6.113686] (stk) :ldisc installation timeout
[    6.117883] (stk) :ldisc_install = 0[    6.927723] cfg80211: World regulatory domain updated:
[    6.932892] cfg80211:  DFS Master region: unset
[    6.937510] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    6.947346] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[    6.955765] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
[    6.964425] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
[    6.972816] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[    6.981364] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[    7.113772] (stk) : timed out waiting for ldisc to be un-installed
[    7.226849] (stk) :ldisc_install = 1(stk) :ldisc installation timeout
[    8.226583] (stk) :ldisc_install = 0init: Starting service 'surfaceflinger'...
[    9.223708] (stk) : timed out waiting for ldisc to be un-installed
[    9.233213] PVR_K:(Error): PVRSRVOpenDCDeviceKM: no devnode matching index 0
[    9.336761] (stk) :ldisc_install = 1
[    9.497720] init: Service 'surfaceflinger' (pid 269) killed by signal 11
[    9.504680] init: Service 'surfaceflinger' (pid 269) killing any children in process group
[   10.333703] (stk) :ldisc installation timeout
[   10.337909] (stk) :ldisc_install = 0init: Starting service 'netd'...
[   10.518226] init: Starting service 'media'...
[   10.523327] init: Starting service 'zygote'...
[   11.333719] (stk) : timed out waiting for ldisc to be un-installed
[   11.446904] (stk) :ldisc_install = 1(stk) :ldisc installation timeout
[   12.446681] (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
[   13.555417] (stk) :ldisc_install = 1init: Starting service 'surfaceflinger'...
[   14.553754] (stk) :ldisc installation timeout

bellow is userspace log:

01-01 00:00:05.116 E/uim-sysfs(  168): uim: Inside main
01-01 00:00:05.116 E/uim-sysfs(  168): uim:kim sysfs name: kim
01-01 00:00:05.116 E/uim-sysfs(  168): uim:ST built into the kernel ?
01-01 00:00:05.117 E/uim-sysfs(  168): uim:BT driver module un-available...
01-01 00:00:05.117 E/uim-sysfs(  168): uim:BT driver built into the kernel ?
01-01 00:00:05.117 E/uim-sysfs(  168): uim:FM driver module un-available...
01-01 00:00:05.117 E/uim-sysfs(  168): uim:FM driver built into the kernel ?
01-01 00:00:05.117 E/uim-sysfs(  168): uim:GPS driver module un-available...
01-01 00:00:05.117 E/uim-sysfs(  168): uim:GPS driver built into the kernel ?
01-01 00:00:05.117 E/uim-sysfs(  168): uim:FM V4L2 driver module un-available...
01-01 00:00:05.117 E/uim-sysfs(  168): uim:FM V4L2 driver built into the kernel ?
01-01 00:00:05.117 E/uim-sysfs(  168): uim:found bluetooth rfkill entry @ 0
01-01 00:00:05.117 E/uim-sysfs(  168):
01-01 00:00:05.129 I/uim-sysfs(  168): type=1400 audit(0.0:4): avc: denied { chown } for capability=0 scontext=u:r:hci_attach:s0 tcontext=u:r:hci_attach:s0 tclass=capability permissive=1
01-01 00:00:05.129 I/uim-sysfs(  168): type=1400 audit(0.0:5): avc: denied { fowner } for capability=3 scontext=u:r:hci_attach:s0 tcontext=u:r:hci_attach:s0 tclass=capability permissive=1
01-01 00:00:05.136 E/uim-sysfs(  168): uim:changed permissions for /sys/class/rfkill/rfkill0/state(0)
01-01 00:00:05.136 E/uim-sysfs(  168):
01-01 00:00:05.136 E/uim-sysfs(  168): uim:install already set
01-01 00:00:05.136 E/uim-sysfs(  168): uim: Inside st_uart_config
01-01 00:00:05.136 E/uim-sysfs(  168): uim:install set to 1
01-01 00:00:05.136 E/uim-sysfs(  168): uim:opening /dev/ttyS2, while already open
01-01 00:00:05.136 E/uim-sysfs(  168): uim:cleanup
01-01 00:00:05.139 E/uim-sysfs(  168): uim: Inside set_baud_rate
01-01 00:00:05.139 E/uim-sysfs(  168): uim: set_baud_rate() done
01-01 00:00:05.139 E/uim-sysfs(  168): uim: Setting speed to 921600
01-01 00:00:05.139 E/uim-sysfs(  168): uim: Inside read_command_complete
01-01 00:00:05.139 E/uim-sysfs(  168): uim: Command complete started
01-01 00:00:05.139 E/uim-sysfs(  168): uim: Inside read_hci_event
01-01 00:00:05.139 E/uim-sysfs(  168): uim: read_hci_event
01-01 00:00:05.281 I/        (  180): debuggerd: starting
01-01 00:00:05.347 I/Netd    (  179): Netd 1.0 starting
01-01 00:00:05.351 E/uim-sysfs(  168): uim: Invalid response
01-01 00:00:05.351 E/uim-sysfs(  168): uim:cleanup


It seem that ldisc installation fail, Could you help on this issue? Thanks.


BRs

Wufeng

15618297805

  • It seems there is a bug on uim.c in bellow code:

    50        int dev_fd;

    418                 if (dev_fd != -1) {
    419                         UIM_ERR("opening %s, while already open", uart_dev_name);
    420                         cleanup(-1);
    421                 }

    dev_fd is use without set to -1 which cause cleanup(-1)

    after fix this issue, still got the problem but the different of userspase log:

    01-01 00:00:35.330 E/uim-sysfs(  170): uim: Inside st_uart_config
    01-01 00:00:35.330 E/uim-sysfs(  170): uim: Un-Installed N_TI_WL Line displine
    01-01 00:00:35.431 E/uim-sysfs(  170): uim: Inside st_uart_config
    01-01 00:00:35.431 E/uim-sysfs(  170): uim:install set to 1
    01-01 00:00:35.431 E/uim-sysfs(  170): uim: Inside set_baud_rate
    01-01 00:00:35.431 E/uim-sysfs(  170): uim: set_baud_rate() done
    01-01 00:00:35.431 E/uim-sysfs(  170): uim: Setting speed to 921600
    01-01 00:00:35.431 E/uim-sysfs(  170): uim: Inside read_command_complete
    01-01 00:00:35.431 E/uim-sysfs(  170): uim: Command complete started
    01-01 00:00:35.431 E/uim-sysfs(  170): uim: Inside read_hci_event
    01-01 00:00:35.431 E/uim-sysfs(  170): uim: read_hci_event
    01-01 00:00:35.503 F/DEBUG   (  175):
    01-01 00:00:35.503 F/DEBUG   (  175): Tombstone written to: /data/tombstones/tombstone_08
    01-01 00:00:35.632 E/uim-sysfs(  170): uim: Invatimelid response
    01-01 00:00:35.632 E/uim-sysfs(  170): uim:cleanup


    And kernel still:

    [   18.043697] (stk) :ldisc installation timeout
    [   18.047905] (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed


    Any suggestion?


    Thanks


    BRs

    Wufeng

    15618297805

       

  • One more question,libbt open /dev/hci_tty as comm port, but on my platform these is no /dev/hci_tty.

     74             fd = open("/dev/hci_tty", O_RDWR);
     75             if (fd < 0) {
     76                 ALOGE(" Can't open hci_tty");
     77                 return -1;
     78             }

    Something missing on my source code? Thanks.

    BRs

    Wufeng

  • 请问具体用的是哪款器件?请到无线板块咨询。

  • 无线使用wl1833,在无线区再发一个帖子?我这边编辑不了帖子区域