pil-squasher icon indicating copy to clipboard operation
pil-squasher copied to clipboard

pil-squasher: workaround for MSM8226 WCNSS firmware

Open lumag opened this issue 8 months ago • 1 comments

On some of old devices WCNSS firmware has wrong p_filesz for the hash segment. Work around it by copying full hash segment if available.

lumag avatar Jun 06 '25 23:06 lumag

Still doesn't work unfortunately...

[   62.891350] remoteproc remoteproc2: powering up fb204000.remoteproc
[   63.528583] remoteproc remoteproc2: Booting fw image qcom/msm8926/memul/wcnss.mbn, size 3946700
[   63.570652] qcom-wcnss-pil fb204000.remoteproc: error -5 initializing firmware qcom/msm8926/memul/wcnss.mbn
[   63.570748] remoteproc remoteproc2: Failed to load program segments: -5
[   63.571494] remoteproc remoteproc2: Boot failed: -5

(for reference here on github, the firmware this applies to is for HTC One Mini 2 https://github.com/fairblobs/memul-firmware)

Seems HTC has some custom secure boot on at least this device, the string "HTC Secure Boot" can be found in the binaries for example.

z3ntu avatar Jun 18 '25 16:06 z3ntu