2013-04-26 05:09:16

by Kyungsik Lee

[permalink] [raw]
Subject: [PATCH -next] x86, doc: Add LZ4 magic number for the new compression

Documentation/x86/boot.txt is updated to list the LZ4 magic number.
This LZ4 magic number is used for the new compression format.

Signed-off-by: Kyungsik Lee <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Russell King <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Yann Collet <[email protected]>
---
Documentation/x86/boot.txt | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/x86/boot.txt b/Documentation/x86/boot.txt
index 3840b6f..fc66d42 100644
--- a/Documentation/x86/boot.txt
+++ b/Documentation/x86/boot.txt
@@ -657,9 +657,10 @@ Protocol: 2.08+
uncompressed data should be determined using the standard magic
numbers. The currently supported compression formats are gzip
(magic numbers 1F 8B or 1F 9E), bzip2 (magic number 42 5A), LZMA
- (magic number 5D 00), and XZ (magic number FD 37). The uncompressed
- payload is currently always ELF (magic number 7F 45 4C 46).
-
+ (magic number 5D 00), XZ (magic number FD 37), and LZ4 (magic number
+ 02 21). The uncompressed payload is currently always ELF (magic
+ number 7F 45 4C 46).
+
Field name: payload_length
Type: read
Offset/size: 0x24c/4
--
1.8.1.1


2013-04-26 20:20:53

by H. Peter Anvin

[permalink] [raw]
Subject: Re: [PATCH -next] x86, doc: Add LZ4 magic number for the new compression

On 04/25/2013 10:08 PM, Kyungsik Lee wrote:
> Documentation/x86/boot.txt is updated to list the LZ4 magic number.
> This LZ4 magic number is used for the new compression format.
>
> Signed-off-by: Kyungsik Lee <[email protected]>
> Cc: "H. Peter Anvin" <[email protected]>
> Cc: Ingo Molnar <[email protected]>
> Cc: Thomas Gleixner <[email protected]>
> Cc: Russell King <[email protected]>
> Cc: Borislav Petkov <[email protected]>
> Cc: Florian Fainelli <[email protected]>
> Cc: Yann Collet <[email protected]>
> ---
> Documentation/x86/boot.txt | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/x86/boot.txt b/Documentation/x86/boot.txt
> index 3840b6f..fc66d42 100644
> --- a/Documentation/x86/boot.txt
> +++ b/Documentation/x86/boot.txt
> @@ -657,9 +657,10 @@ Protocol: 2.08+
> uncompressed data should be determined using the standard magic
> numbers. The currently supported compression formats are gzip
> (magic numbers 1F 8B or 1F 9E), bzip2 (magic number 42 5A), LZMA
> - (magic number 5D 00), and XZ (magic number FD 37). The uncompressed
> - payload is currently always ELF (magic number 7F 45 4C 46).
> -
> + (magic number 5D 00), XZ (magic number FD 37), and LZ4 (magic number
> + 02 21). The uncompressed payload is currently always ELF (magic
> + number 7F 45 4C 46).
> +
> Field name: payload_length
> Type: read
> Offset/size: 0x24c/4
>

Acked-by: H. Peter Anvin <[email protected]>