From f6e4656971af2e9fef917494e8f6c8d4f3fa37f4 Mon Sep 17 00:00:00 2001 From: Gonzalo Ruiz Date: Mon, 16 Mar 2020 18:12:30 +0100 Subject: [PATCH] firmware-qualcomm: fix Bluetooth NVM file customization We are currently applying customizations to the base NVM file on install. There was an error that introduced the '"\' characters into the NVM file instead of the intended hex data. This commit fixes the implementation of this customization. Signed-off-by: Gonzalo Ruiz (cherry picked from commit a204a7bfc54fc15aca0d87530c838fb427710a8e) --- .../recipes-bsp/firmware-qualcomm/firmware-qualcomm.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-digi-arm/recipes-bsp/firmware-qualcomm/firmware-qualcomm.bb b/meta-digi-arm/recipes-bsp/firmware-qualcomm/firmware-qualcomm.bb index 1e5c5c4d0..e73ad50e7 100644 --- a/meta-digi-arm/recipes-bsp/firmware-qualcomm/firmware-qualcomm.bb +++ b/meta-digi-arm/recipes-bsp/firmware-qualcomm/firmware-qualcomm.bb @@ -82,14 +82,14 @@ do_install() { fi # Disable IBS over H4 for all the platforms in the bluetooth firmware - printf \"\\x02\" | dd of="${D}${base_libdir}/firmware/qca/nvm_tlv_3.2.bin" bs=1 seek=54 count=1 conv=notrunc,fsync + awk 'BEGIN{printf "%c", 0x02}' | dd of="${D}${base_libdir}/firmware/qca/nvm_tlv_3.2.bin" bs=1 seek=54 count=1 conv=notrunc,fsync } do_install_append_ccimx6ul() { # Disable DEEP SLEEP in the bluetooth firmware - printf \"\\x00\" | dd of="${D}${base_libdir}/firmware/qca/nvm_tlv_3.2.bin" bs=1 seek=74 count=1 conv=notrunc,fsync + awk 'BEGIN{printf "%c", 0x00}' | dd of="${D}${base_libdir}/firmware/qca/nvm_tlv_3.2.bin" bs=1 seek=74 count=1 conv=notrunc,fsync # Enable Internal Clock in the bluetooth firmware - printf \"\\x01\\x00\" | dd of="${D}${base_libdir}/firmware/qca/nvm_tlv_3.2.bin" bs=1 seek=93 count=2 conv=notrunc,fsync + awk 'BEGIN{printf "%c%c", 0x01, 0x00}' | dd of="${D}${base_libdir}/firmware/qca/nvm_tlv_3.2.bin" bs=1 seek=93 count=2 conv=notrunc,fsync } QCA_MODEL ?= "qca6564"