diff options
author | Peng Fan <peng.fan@nxp.com> | 2018-06-12 16:12:44 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-06-13 22:03:49 -0700 |
commit | d260e97be35718bea46019b7ca8666e83d0b9f01 (patch) | |
tree | 7e86e8aec3210fefaf551d1bddfab89fc9d0bb38 /arch/arm/include | |
parent | c2ba2460d8985aa0b084f7beef2d0bc8773d90e3 (diff) |
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 <peng.fan@nxp.com>
(cherry picked from commit 344ddf76c6de808699ab742d3c11728ca62f36ee)
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-imx8/boot0.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 0000000000..1bece8a6f2 --- /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 |