Skip to content

Commit

Permalink
Add CONFIG_FW_LOADER_USER_HELPER(_FALLBACK)=y to imx_v6_v7_defconfig
Browse files Browse the repository at this point in the history
Yes udev stopped checking firmware entries in sysfs but there are other helpers
still doing so: I my case it is networkmanager which makes Bluetooth work
after applying this patch on Variscite VarSOM.

Without this patch it seems kernel tries three times to load firmware without
success (at that time there is no rootfs yet):
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: request_firmware failed(errno -2) for ti-connectivity/TIInit_11.8.32.bts
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: download firmware failed, retrying...
| ...
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: request_firmware failed(errno -2) for ti-connectivity/TIInit_11.8.32.bts
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: download firmware failed, retrying...
| ...
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: request_firmware failed(errno -2) for ti-connectivity/TIInit_11.8.32.bts
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: download firmware failed, retrying...

With this patch:
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2
| Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Falling back to user helper
| ...
| Aug 24 13:34:34 imx6qdl-variscite-som NetworkManager[362]: <info>  [1535117674.5468] manager[0x17fd0d8]: monitoring kernel firmware directory '/lib/firmware'.
| ...
| Aug 24 13:34:47 imx6qdl-variscite-som kernel: Bluetooth: hci0: send command failed
| Aug 24 13:34:47 imx6qdl-variscite-som kernel: Bluetooth: hci0: download firmware failed, retrying...
| Aug 24 13:34:48 imx6qdl-variscite-som kernel: Bluetooth: hci0: change remote baud rate command in firmware

It seems there is one failure on download but the firmware is reachable and
it ends with succes: there is a working Bluetooth!

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
  • Loading branch information
schnitzeltony authored and otavio committed Sep 7, 2018
1 parent c3bd5fc commit 80f8894
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/configs/imx_v6_v7_defconfig
Expand Up @@ -91,6 +91,8 @@ CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_STANDALONE is not set
CONFIG_CMA_SIZE_MBYTES=64
CONFIG_FW_LOADER_USER_HELPER=y
CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y
CONFIG_IMX_WEIM=y
CONFIG_CONNECTOR=y
CONFIG_MTD=y
Expand Down

0 comments on commit 80f8894

Please sign in to comment.