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)
This commit is contained in:
Peng Fan 2018-06-12 16:12:44 +08:00 committed by Ye Li
parent c2ba2460d8
commit d260e97be3
1 changed files with 22 additions and 0 deletions

View File

@ -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