搭建zynq平台下UbertoothOne运行环境

首先认是一下UbertoothOne什么,Ubertooth是一个蓝牙实验平台。 它能够嗅探蓝牙智能(BLE),发现无法发现的经典蓝牙设备,并执行基本的经典蓝牙设备嗅探。Ubertooth不是蓝牙适配器,当运行hciconfig时,它不会显示为蓝牙适配器。下面是官网的原文描述。

Ubertooth is a platform for Bluetooth experimentation. It is able to sniff Bluetooth Smart (BLE), discover undiscoverable classic Bluetooth devices, and perform rudimentary sniffing of classic Bluetooth devices.
Ubertooth is not a Bluetooth dongle and it will not show up as one when running hciconfig.

下面是相关库移植的过程和过程中遇到的问题及解决方法。

  • 编译libbtbb
tar zxvf libbtbb-2020-12-R1.tar.gz
cd libbtbb-2020-12-R1
mkdir build
cd build/
cmake .. -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_INSTALL_PREFIX=/opt/ubertoothone/libbtbb
make
sudo make install
  • 编译libusb
tar zxvf libusb-1.0.26.tar.gz
cd libusb-1.0.26
./configure --host=arm-linux --prefix=/opt/Xilinx/SDK/2018.3/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/libc/ CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ --disable-udev
  • 编译libbluetooth
tar zxvf bluez-libs-3.36.tar.gz
cd bluez-libs-3.36
./configure --prefix=/opt/ubertoothone/libbluetooth/ --host=arm-linux --target=arm-linux CC=arm-linux-gnueabihf-gcc
make 
sudo make install
  • 编译ubertooth
tar zxvf ubertooth-2020-12-R1.tar.gz
cd ubertooth-2020-12-R1/host/
mkdir build
cd build/
cmake .. -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_INSTALL_PREFIX=/opt/ubertoothone/ubertooth
make
sudo make install

#编译过程中遇到问题
1./home/anritsen/work/prj/BluetoothOne/zynq/ubertooth-2020-12-R1/host/ubertooth-tools/src/ubertooth-follow.c:22:10: fatal error: /opt/ubertoothone/libbluetooth/bluetooth/bluetooth.h: No such file or directory
 #include <bluetooth/bluetooth.h>
修改对应文件CMakeCache.txt中头文件路径为绝对路径
2.在设备上执行工具命令时提示缺少libatomic.so库,将交叉工具链SDK中的libatomic.so拷贝至设备上即可
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Linux兵工厂

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值