浏览代码

board/raspberrypi: use kernel Bluetooth mode

The default setting with miniuart-bt requires hciattach which is a
deprecated utility in BlueZ.  Setting the krnbt parameter switches to
the modern method of using serdev in the kernel removing the need for
any userspace configuration to enable the Bluetooth controller.

This is documented as applying to all Raspberry Pi variants so just
enable it globally.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
John Keeping 4 年之前
父节点
当前提交
5352a77102
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      board/raspberrypi/post-image.sh

+ 1 - 1
board/raspberrypi/post-image.sh

@@ -16,7 +16,7 @@ do
 			cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
 			cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
 
 
 # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console
 # fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console
-dtoverlay=miniuart-bt
+dtoverlay=miniuart-bt,krnbt=on
 __EOF__
 __EOF__
 		fi
 		fi
 		;;
 		;;