[PATCH v2 15/15] ARM: configs: u8500: Enable compressed firmware loading
Stefan Hansson
newbyte at postmarketos.org
Sun Nov 15 13:25:42 PST 2026
Hej Linus,
On 08/11/2026 16:51, Linus Walleij wrote:
> Allow firmware requests to load XZ- and Zstd-compressed files, as used
> by postmarketOS firmware packages. This lets the existing device drivers
> use compressed firmware without requiring uncompressed copies.
>
> Signed-off-by: Linus Walleij <linusw at kernel.org>
> ---
> arch/arm/configs/u8500_defconfig | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/configs/u8500_defconfig b/arch/arm/configs/u8500_defconfig
> index c43b2e39d295..90309291c657 100644
> --- a/arch/arm/configs/u8500_defconfig
> +++ b/arch/arm/configs/u8500_defconfig
> @@ -92,6 +92,9 @@ CONFIG_NFC_SHDLC=y
> CONFIG_NFC_PN544_I2C=m
> CONFIG_DEVTMPFS=y
> CONFIG_DEVTMPFS_MOUNT=y
> +CONFIG_FW_LOADER_COMPRESS=y
> +CONFIG_FW_LOADER_COMPRESS_XZ=y
> +CONFIG_FW_LOADER_COMPRESS_ZSTD=y
FWIW, Nura (formerly postmarketOS) only uses Zstd-compressed firmware,
so enabling XZ compression isn't necessary per se.
More broadly, is there any reason to enable this upstream in Linux for
all OS:es that use the u8500 defconfig given that we have our own means
of generating configs that match our needs downstream in Nura? While
it's not likely that our firmware compression format will change in the
future, in general it is probably easier to have one source of truth
downstream that we rely on rather than manually keeping the upstream
defconfig in sync with our downstream kconfig generator.
> CONFIG_GNSS=m
> CONFIG_GNSS_SIRF_SERIAL=m
> CONFIG_ZRAM=y
>
Stefan
More information about the linux-arm-kernel
mailing list