ARM-xScale 配置编译Bluetooth内核模块

1. 配置linux 2.6.15.6 内核

[*] Networking support
      Networking options  --->
[ ]   Amateur Radio support  --->
< >   IrDA (infrared) subsystem support  --->
<*>   Bluetooth subsystem support  --->
< >   Generic IEEE 802.11 Networking Stack

--- Bluetooth subsystem support
<*>   L2CAP protocol support
<*>   SCO links support
<*>   RFCOMM protocol support
[*]     RFCOMM TTY support
<*>   BNEP protocol support
[*]     Multicast filter support
[*]     Protocol filter support
<*>   HIDP protocol support
      Bluetooth device drivers  --->

<*> HCI UART driver
[*]   UART (H4) protocol support
[*]   BCSP protocol support
< > HCI VHCI (Virtual HCI device) driver (NEW)

 

 

在Richad 的帮助下改了 linux-2.6.15.6/net/bluetooth/hci-sock.c 的代码

所有 return -EACCES 都注掉了.

要不然 hciattack 会"permisiton denied".

 

make ARCH=arm CROSS_COMPILE=/opt/gcc-4.1.2-glibc-2.4/arm-xscale-linux-gnu/bin/arm-xscale-linux-gnu-

make modules

make install

 

 

2.

BCSP protocol: CSR 的 BlueCore 串口通讯协议,只适用于Csr非USB芯片,也可用于PCMCIA and CF cards.

UART (H4) protocol: 蓝牙串口通讯协议,适合于所有非USB的蓝牙芯片,也可用于PCMCIA and CF cards.

 

3.hciattach 命令

common chipsets

hciattach -s 115200 /dev/ttyS1 any 115200

csr  using bcsp protocol

hciattach -s 115200 /dev/ttyS1 bcsp 115200

csr using H4 protocol

hciattach -s 115200 /dev/ttyS1 csr 115200    <-- need to set PSKEY_HOST_INTERFACE first

 

list all support chipsets

hciattach -l

 

4.

hciconfig hci0 up

hciconfig hci0 down

hciconfig hci0 reset

hciconfig -a


 

 


 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值