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:
parent
c2ba2460d8
commit
d260e97be3
|
|
@ -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
|
||||
Loading…
Reference in New Issue