From d260e97be35718bea46019b7ca8666e83d0b9f01 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Tue, 12 Jun 2018 16:12:44 +0800 Subject: [PATCH] MLK-18577-6 imx8: boot0: add boot header Starting U-Boot in a XEN VM, needs a header, just like Linux Kernel. Without it, xen tool will take is as a file not supported. Signed-off-by: Peng Fan (cherry picked from commit 344ddf76c6de808699ab742d3c11728ca62f36ee) --- arch/arm/include/asm/arch-imx8/boot0.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 arch/arm/include/asm/arch-imx8/boot0.h diff --git a/arch/arm/include/asm/arch-imx8/boot0.h b/arch/arm/include/asm/arch-imx8/boot0.h new file mode 100644 index 0000000..1bece8a --- /dev/null +++ b/arch/arm/include/asm/arch-imx8/boot0.h @@ -0,0 +1,22 @@ +/* + * Configuration settings for XEN + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifdef CONFIG_XEN + add x13, x18, #0x16 + b reset + /* start of zImage header */ + .quad 0x80000 // Image load offset from start of RAM + .quad _end - _start // Effective size of kernel image + .quad 0 // Flags + .quad 0 // reserved + .quad 0 // reserved + .quad 0 // reserved + .byte 0x41 // Magic number, "ARM\x64" + .byte 0x52 + .byte 0x4d + .byte 0x64 + /* end of zImage header */ +#endif -- 1.9.1