All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] x86: Fix Linux v4.7+ zimage booting (update bootparam.h)
@ 2016-09-29  9:34 Stefan Roese
  2016-09-29 23:42 ` Simon Glass
  2016-09-30  6:59 ` Bin Meng
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Roese @ 2016-09-29  9:34 UTC (permalink / raw)
  To: u-boot

Booting Linux kernel v4.7+ does not work since commit 974f221c
"x86/boot: Move compressed kernel to the end of the decompression buffer".

This patch adds the latest version of the setup_header struct, adding
"init_size" which is needed since this commit referenced above. With this
patch, booting Linux v4.8-rc8 does work again on x86 boards.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 arch/x86/include/asm/bootparam.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/include/asm/bootparam.h b/arch/x86/include/asm/bootparam.h
index 1400951..a373a79 100644
--- a/arch/x86/include/asm/bootparam.h
+++ b/arch/x86/include/asm/bootparam.h
@@ -63,6 +63,9 @@ struct setup_header {
 	__u32	payload_offset;
 	__u32	payload_length;
 	__u64	setup_data;
+	__u64	pref_address;
+	__u32	init_size;
+	__u32	handover_offset;
 } __attribute__((packed));
 
 struct sys_desc_table {
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] x86: Fix Linux v4.7+ zimage booting (update bootparam.h)
  2016-09-29  9:34 [U-Boot] [PATCH] x86: Fix Linux v4.7+ zimage booting (update bootparam.h) Stefan Roese
@ 2016-09-29 23:42 ` Simon Glass
  2016-09-30  6:59 ` Bin Meng
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2016-09-29 23:42 UTC (permalink / raw)
  To: u-boot

On 29 September 2016 at 03:34, Stefan Roese <sr@denx.de> wrote:
>
> Booting Linux kernel v4.7+ does not work since commit 974f221c
> "x86/boot: Move compressed kernel to the end of the decompression buffer".
>
> This patch adds the latest version of the setup_header struct, adding
> "init_size" which is needed since this commit referenced above. With this
> patch, booting Linux v4.8-rc8 does work again on x86 boards.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  arch/x86/include/asm/bootparam.h | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] x86: Fix Linux v4.7+ zimage booting (update bootparam.h)
  2016-09-29  9:34 [U-Boot] [PATCH] x86: Fix Linux v4.7+ zimage booting (update bootparam.h) Stefan Roese
  2016-09-29 23:42 ` Simon Glass
@ 2016-09-30  6:59 ` Bin Meng
  1 sibling, 0 replies; 3+ messages in thread
From: Bin Meng @ 2016-09-30  6:59 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

Well done!

On Thu, Sep 29, 2016 at 5:34 PM, Stefan Roese <sr@denx.de> wrote:
> Booting Linux kernel v4.7+ does not work since commit 974f221c

Please specify this is Linux kernel commit.

> "x86/boot: Move compressed kernel to the end of the decompression buffer".
>
> This patch adds the latest version of the setup_header struct, adding
> "init_size" which is needed since this commit referenced above. With this
> patch, booting Linux v4.8-rc8 does work again on x86 boards.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  arch/x86/include/asm/bootparam.h | 3 +++
>  1 file changed, 3 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Tested on Crown Bay
Tested-by: Bin Meng <bmeng.cn@gmail.com>

Regards,
Bin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-30  6:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29  9:34 [U-Boot] [PATCH] x86: Fix Linux v4.7+ zimage booting (update bootparam.h) Stefan Roese
2016-09-29 23:42 ` Simon Glass
2016-09-30  6:59 ` Bin Meng

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.