Skip to contentSkip to conversation

x86: Fix Linux v4.7+ zimage booting (update bootparam.h)

PATCH Superseded Stefan Roese 3 participants 3 messages Sep 29, 2016 – Sep 30, 2016 x86

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Fix Linux v4.7+ zimage booting (update bootparam.h)

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.

---
 arch/x86/include/asm/bootparam.h | 3 +++
 1 file changed, 3 insertions(+)
arch/x86/include/asm/bootparam.h +3 -0
index 1400951..a373a79 100644
@@ -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 {
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 x86: Fix Linux v4.7+ zimage booting (update bootparam.h)

Quoted 8 lines · Stefan Roese

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.

Quoted 6 lines
---
 arch/x86/include/asm/bootparam.h | 3 +++
 1 file changed, 3 insertions(+)
#2 lore raw

PATCH 1/1 x86: Fix Linux v4.7+ zimage booting (update bootparam.h)

In reply to Stefan Roese

Hi Stefan,

Well done!

Quoted 1 line · Stefan Roese

Booting Linux kernel v4.7+ does not work since commit 974f221c

Please specify this is Linux kernel commit.

Quoted 6 lines

"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.

Quoted 7 lines
---
 arch/x86/include/asm/bootparam.h | 3 +++
 1 file changed, 3 insertions(+)

Tested on Crown Bay

Regards,
Bin