* [PATCH] image: add lz4 zstd compression magic map
@ 2021-08-31 10:22 Artem Lapkin
2021-09-24 2:41 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Artem Lapkin @ 2021-08-31 10:22 UTC (permalink / raw)
To: trini, narmstrong
Cc: u-boot, u-boot-amlogic, christianshewitt, sjg, art, nick, gouwa
Add lz4 and zstd compression magic map. Already can decompress images
with lz4 and zstd compression type.
Signed-off-by: Artem Lapkin <art@khadas.com>
---
common/image.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/image.c b/common/image.c
index 59c52a1f9a..e199d61a4c 100644
--- a/common/image.c
+++ b/common/image.c
@@ -216,6 +216,8 @@ static const struct comp_magic_map image_comp[] = {
{ IH_COMP_GZIP, "gzip", {0x1f, 0x8b},},
{ IH_COMP_LZMA, "lzma", {0x5d, 0x00},},
{ IH_COMP_LZO, "lzo", {0x89, 0x4c},},
+ { IH_COMP_LZ4, "lz4", {0x04, 0x22},},
+ { IH_COMP_ZSTD, "zstd", {0x28, 0xb5},},
{ IH_COMP_NONE, "none", {}, },
};
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] image: add lz4 zstd compression magic map
2021-08-31 10:22 [PATCH] image: add lz4 zstd compression magic map Artem Lapkin
@ 2021-09-24 2:41 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2021-09-24 2:41 UTC (permalink / raw)
To: Artem Lapkin
Cc: narmstrong, u-boot, u-boot-amlogic, christianshewitt, sjg, art,
nick, gouwa
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
On Tue, Aug 31, 2021 at 06:22:18PM +0800, Artem Lapkin wrote:
> Add lz4 and zstd compression magic map. Already can decompress images
> with lz4 and zstd compression type.
>
> Signed-off-by: Artem Lapkin <art@khadas.com>
Applied to u-boot/next, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-24 2:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31 10:22 [PATCH] image: add lz4 zstd compression magic map Artem Lapkin
2021-09-24 2:41 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.