[PATCH 5/5] lib: uncompress: add general zstd support

Sascha Hauer sha at pengutronix.de
Thu Jul 14 01:45:13 PDT 2022


On Wed, Jul 13, 2022 at 12:09:22PM +0200, Ahmad Fatoum wrote:
> So far, we only supported zstd in squashfs and ubifs. Add support
> everywhere else: In PBL for decompressing barebox proper, in uncompress
> for compression arbitrary files and for bootm to decompress zstd
> kernel images.

Have you tested this with the uncompress command?

a zstd compressed barebox works here, but using uncompress
on a zstd compressed file results in:

ZSTD-compressed data is corrupt

or sometimes:

Out of memory while allocating ZSTD_DStream

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list