From 15f073b93cf25593b8a19c8237304838285335c0 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Sat, 27 Apr 2024 11:23:00 +0200 Subject: [PATCH] firmware-htc-memul: un-squash wcnss firmware (MR 5075) Unfortunately due to some HTC weirdness we cannot squash the wcnss firmware - some data is lost and the firmware doesn't authenticate on the device. --- device/testing/firmware-htc-memul/APKBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/device/testing/firmware-htc-memul/APKBUILD b/device/testing/firmware-htc-memul/APKBUILD index 97fee9426..e4d021842 100644 --- a/device/testing/firmware-htc-memul/APKBUILD +++ b/device/testing/firmware-htc-memul/APKBUILD @@ -1,6 +1,6 @@ pkgname=firmware-htc-memul pkgver=1 -pkgrel=1 +pkgrel=2 pkgdesc="Firmware for HTC One Mini 2" subpackages=" $pkgname-adsp @@ -25,7 +25,7 @@ done builddir="$srcdir/memul-firmware-$_fw_commit" build() { - for i in *.mdt; do + for i in adsp.mdt mba.mdt modem.mdt; do pil-squasher "$(basename "$i" .mdt)".mbn "$i" done } @@ -54,7 +54,9 @@ modem() { wcnss() { pkgdesc="HTC One Mini 2 - WCNSS firmware" - install -Dm644 "$builddir"/wcnss.mbn -t \ + # Squashing wcnss firmware leads to incomplete .mbn, so keep installing + # the original .mdt + .b0* files + install -Dm644 "$builddir"/wcnss.* -t \ "$subpkgdir/lib/firmware/qcom/msm8926/memul/" cd "$builddir" for _i in $_wififiles; do