Port Bluetooth Driver

Port Bluetooth Driver

Place the AIC8800 Bluetooth driver into the kernel tree:
  1. Place the aic8800 bluetooth driver package under the /linux/driver/bluetooth directory.

  2. Add the following content to /linux/driver/bluetooth/Kconfig:
    config BT_AICBTUSB
    tristate "AIC HCI USB driver"
    depends on USB
    help
    AIC Bluetooth HCI USB driver
  3. Enable Add the following content to /linux/driver/bluetooth/Makefile:
    obj-$(CONFIG_BT_AICBTUSB) += aic_btusb.o

Enable Bluetooth Driver in Kernel Configuration

Enable the AIC8800 Bluetooth driver support in the kernel configuration。
  1. Under the root directory of VisionFive 2, type the following command to enter the kernel menu configuration GUI.
    make linux-menuconfig
  2. Enter the Device Drivers > Bluetooth subsystem support menu, and select the Bluetooth device drivers option.

  3. Compile AIC HCI USB driver into a module.
    Figure 1. AIC HCI USB driver
  4. Save your change before you exit the kernel configuration dialog.

Bring up Bluetooth Interface

After building and booting the kernel with the AIC8800 driver, you can run the following to bring up the Bluetooth interface:
hciconfig hci0 up