Skip to content

Commit

Permalink
driver: add documentation for the intel driver
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverBzH committed Mar 5, 2024
1 parent 18560ec commit c4cfbbd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/mkdocs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ nav:
- Drivers:
- drivers/index.md
- Realtek: drivers/realtek.md
- Intel: drivers/intel.md
- API:
- Guide: api/guide.md
- Examples: api/examples.md
Expand Down
3 changes: 2 additions & 1 deletion docs/mkdocs/src/drivers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ USB vendor ID and product ID.

Drivers included in the module are:

* [Realtek](realtek.md): Loading of Firmware and Config for Realtek USB dongles.
* [Realtek](realtek.md): Loading of Firmware and Config for Realtek USB dongles.
* [Intel](intel.md): Loading of Firmware for Intel dongles.
44 changes: 44 additions & 0 deletions docs/mkdocs/src/drivers/intel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
INTEL DRIVER
==============

This driver supports loading firmware images for dongles with an Intel chipset. At present, it is specifically designed for the Intel AX210 model.

The Intel AX210 relies solely on HCI Vendor Commands in bootloader mode, which limits the ability to programmatically identify the correct dongle when connected. To use Bumble with the Intel AX210, it's necessary to explicitly specify the intel driver in the transport command. For example:

```shell
python3 examples/<example>.py examples/classic1.json tcp-client:[driver=intel]127.0.0.1:6211
```

The driver uses particular Intel HCI vendor commands to ascertain the appropriate firmware image for the dongle in use. If a matching image is found, the driver proceeds to load it. The firmware files are sought in the following sequence:

* The search begins in the directory specified by the `BUMBLE_INTEL_FIRMWARE_DIR` environment variable, if it has been set.
* Next, the driver looks in the directory `<package-dir>/drivers/intel_fw`, where `<package-dir>` is the directory where the bumble package is installed.
* On Linux, the system's firmware directory at `lib/firmware/intel/` is also checked.
* Lastly, the driver searches in the current directory.


Obtaining Firmware Images and Config Data
-----------------------------------------

To determine the required firmware version for your dongle, you can utilize the utility scripts. Once you know the version needed, the firmware can be sourced directly from the Intel firmware repository in the Linux kernel. You can find the appropriate version at the following link: [Intel Firmware Repository](https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/intel).

To aid in identifying the correct firmware version, the intel_util utility program can be used. This tool provides commands to retrieve firmware information and load firmware images into the Bluetooth dongle.

Usage of the intel_util program is as follows:

```
Usage: intel_util.py [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
info Get the firmware info from a transport
load Load a firmware image into the Bluetooth dongle
```

An example command to get firmware info:

```shell
python3 tools/intel_util.py info tcp-client:[driver=intel]127.0.0.1:6211
```

0 comments on commit c4cfbbd

Please sign in to comment.