x86: Fix Linux v4.7+ zimage booting (update bootparam.h)
PATCH v2 1/1 x86: Fix Linux v4.7+ zimage booting (update bootparam.h)
Booting Linux kernel v4.7+ does not work since commit Linux 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.
---
v2:
- Specified that the refereced git commit is a Linux commit as suggested by Bin
arch/x86/include/asm/bootparam.h | 3 +++ 1 file changed, 3 insertions(+)
arch/x86/include/asm/bootparam.h +3 -0
@@ -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
PATCH v2 1/1 x86: Fix Linux v4.7+ zimage booting (update bootparam.h)
Quoted 11 lines · Stefan Roese
Booting Linux kernel v4.7+ does not work since commit Linux commit
974f221c"x86/boot: Move compressed kernel to the end of the decompression buffer".This patch adds the latest version of the
setup_headerstruct, 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 <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Bin Meng <[email protected]>Tested-by Bin Meng <[email protected]>
Quoted 8 lines
---
v2:
- Specified that the refereced git commit is a Linux commit as suggested by Binarch/x86/include/asm/bootparam.h | 3 +++ 1 file changed, 3 insertions(+)
applied to u-boot-x86, thanks!