* Bump to Buildroot 2021.08.1 Move to Buildroot 2021.08.1 using the 2021.08.x-haos branch. Some patches on the previous branch 2021.02.x-haos have been applied upstream meanwhile. Others required rather trivial rebasing. This latest Buildroot release brings new versions of the following components: - glibc 2.33 - systemd 249.3 - Networkmanager 1.32.2 - BlueZ 5.60 - Docker 20.10.8 The patch "Fix dhcp client" seems not to be necessary anymore. The directory /var/lib/dhcp seems not in use when NetworkManager invokes dhclient. It seems the leases which are typically stored in that directory are managed inside NetworkManager. * buildroot 2021.08.1..2021.08.x-haos (6) > package/rpi-firmware: bump version to 1.20210805 > package/rpi-wifi-firmware: bump version to 883b726 > package/linux-firmware: add rtl8761b/rtl8761bu firmware > package/docker-proxy: bump version to 64b7a4574d14 > package/rpi-firmware: Allow to deploy multiple firmware files > network-manager: wpa_supplicant * Bump Raspberry Pi Bluetooth helper scripts With the update to Buildroot 2021.08.1, the bthelper fails with an error org.bluez.Error.Busy when trying to power off the device. Presumably this is a race condition which surfaced due to a change in Bluez 5.60:348feb005aOct 11 14:32:21 homeassistant systemd[1]: Reached target Bluetooth Support. ... Oct 11 14:32:21 homeassistant bluetoothd[412]: Bluetooth management interface 1.18 initialized Oct 11 14:32:21 homeassistant systemd[1]: Started Raspberry Pi bluetooth helper. Oct 11 14:32:21 homeassistant bthelper[417]: Raspberry Pi BDADDR already set Oct 11 14:32:21 homeassistant bthelper[426]: [58B blob data] Oct 11 14:32:21 homeassistant bthelper[426]: [59B blob data] Oct 11 14:32:21 homeassistant bthelper[426]: Failed to set power off: org.bluez.Error.Busy Oct 11 14:32:21 homeassistant systemd[1]: bthelper@hci0.service: Main process exited, code=exited, status=1/FAILURE Oct 11 14:32:21 homeassistant systemd[1]: bthelper@hci0.service: Failed with result 'exit-code'. The latest version of the pi-bluetooth package introduced a sleep before powering off the device, however, presumably for a different reason:ae2efdeee8 (diff-609c8a23261988c47afd40be9b012feb1d167de8761c1301e44e1864635c19e3)Anyways, this latest version seems to also fix the above mentioned race condition.
41 lines
2.2 KiB
Makefile
41 lines
2.2 KiB
Makefile
################################################################################
|
|
#
|
|
# Bluetooth BCM43xx
|
|
#
|
|
################################################################################
|
|
|
|
BLUETOOTH_BCM43XX_VERSION = 1.0.0
|
|
BLUETOOTH_BCM43XX_LICENSE = Apache License 2.0
|
|
BLUETOOTH_BCM43XX_LICENSE_FILES = $(BR2_EXTERNAL_HASSOS_PATH)/../LICENSE
|
|
BLUETOOTH_BCM43XX_SITE = $(BR2_EXTERNAL_HASSOS_PATH)/package/bluetooth-bcm43xx
|
|
BLUETOOTH_BCM43XX_SITE_METHOD = local
|
|
|
|
define BLUETOOTH_BCM43XX_BUILD_CMDS
|
|
curl -L -o $(@D)/BCM43430A1.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/e7fd166981ab4bb9a36c2d1500205a078a35714d/broadcom/BCM43430A1.hcd
|
|
curl -L -o $(@D)/BCM4345C0.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/e7fd166981ab4bb9a36c2d1500205a078a35714d/broadcom/BCM4345C0.hcd
|
|
curl -L -o $(@D)/BCM4345C5.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/e7fd166981ab4bb9a36c2d1500205a078a35714d/broadcom/BCM4345C5.hcd
|
|
curl -L -o $(@D)/btuart https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/e1bb75aa83a632c86270e95f92826eb57ee09a77/usr/bin/btuart
|
|
curl -L -o $(@D)/bthelper https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/e1bb75aa83a632c86270e95f92826eb57ee09a77/usr/bin/bthelper
|
|
curl -L -o $(@D)/90-pi-bluetooth.rules https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/e1bb75aa83a632c86270e95f92826eb57ee09a77/lib/udev/rules.d/90-pi-bluetooth.rules
|
|
|
|
patch $(@D)/btuart $(@D)/0001-btuart-reduced-baud-rate-rpi3b.patch
|
|
endef
|
|
|
|
define BLUETOOTH_BCM43XX_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -d $(TARGET_DIR)/etc/systemd/system/hassos-hardware.target.wants
|
|
$(INSTALL) -m 0644 $(@D)/bluetooth-bcm43xx.service $(TARGET_DIR)/usr/lib/systemd/system/
|
|
$(INSTALL) -m 0644 $(@D)/bthelper@.service $(TARGET_DIR)/usr/lib/systemd/system/
|
|
|
|
$(INSTALL) -d $(TARGET_DIR)/usr/bin
|
|
$(INSTALL) -m 0755 $(@D)/btuart $(TARGET_DIR)/usr/bin/
|
|
$(INSTALL) -m 0755 $(@D)/bthelper $(TARGET_DIR)/usr/bin/
|
|
|
|
$(INSTALL) -d $(TARGET_DIR)/lib/firmware/brcm
|
|
$(INSTALL) -m 0644 $(@D)/*.hcd $(TARGET_DIR)/lib/firmware/brcm/
|
|
|
|
$(INSTALL) -d $(TARGET_DIR)/usr/lib/udev/rules.d
|
|
$(INSTALL) -m 0644 $(@D)/90-pi-bluetooth.rules $(TARGET_DIR)/usr/lib/udev/rules.d/
|
|
endef
|
|
|
|
$(eval $(generic-package))
|