3.1 Enabling BlueZ 5.x Package using Build Root Options
Perform the following steps to enable Bluetooth-related packages and tools for SAMA5D4 and ATWILC3000.
- Clone the Buildroot-at91. For more details on cloning and building the buildroot-at9, refer to https://www.at91.com/linux4sam/bin/view/Linux4SAM/BuildRootBuild#How_to_build_Buildroot_for_AT91.
- Configure the SAMA5D4 Xplained
defconfig.Go to the directory of the buildroot, then enter the following command:
$make atmel_sama5d4_xplained_defconfig
- Configure the menuconfig. Go to the directory of the buildroot, then enter the following command:
$ make menuconfig
Note: The WCHAR support (Toolchain > WCHAR) must be enabled, as it has dependency on the BlueZ stack. - To enable the Bluez5 stack, navigate to
Target packages > Network Applications, then select the tools as shown in
the following figure.Note: Make sure that install deprecated tool is selected; the tool includes the hciattach tool. This is used to enable Bluetooth over UART.
- Save the config file, then run the
make
command.After successful completion, the
rootfs.ubi
file is generated in the/buildroot-at91/output
folder.