Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions scripts/setup_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -297,29 +297,30 @@ function ubu_update_bt_fw() {
kill $qemu_pid > /dev/null
sleep 5
fi

if [ "$(hciconfig)" != "" ]; then
if [ "$(hciconfig | grep "UP")" == "" ]; then
if [ "$(rfkill list bluetooth | grep "Soft blocked: no" )" == "" ]; then
sudo rfkill unblock bluetooth
fi
fi
hciconfig hci0 up
if [ -d "linux-firmware" ] ; then
rm -rf linux-firmware
fi
git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware
cd linux-firmware
# Checkout to specific firmware version 22.50.0.4 as guest also uses this version. Latest
# Checkout to specific commit as guest also uses this version. Latest
# is not taken as firmware update process in the guest is manual
git checkout fa0efeff4894e36b9c3964376f2c99fae101d147
git checkout b377ccf4f1ba7416b08c7f1170c3e28a460ac29e
cd -
sudo cp linux-firmware/intel/ibt-19-0-4* /lib/firmware/intel
sudo cp linux-firmware/intel/ibt-18-16-1* /lib/firmware/intel
sudo cp linux-firmware/intel/ibt-0040-0041* /lib/firmware/intel
ln -sf /lib/firmware/intel/ibt-19-0-4.sfi /lib/firmware/intel/ibt-19-16-0.sfi
ln -sf /lib/firmware/intel/ibt-19-0-4.ddc /lib/firmware/intel/ibt-19-16-0.ddc
hcitool cmd 3f 01 01 01 00 00 00 00 00 > /dev/null 2>&1 &
sleep 5
echo "BT FW in the host got updated"
hciconfig hci0 up
reboot_required=1
else
usb_devices="/sys/kernel/debug/usb/devices"
Expand Down