Commit d260e97be35718bea46019b7ca8666e83d0b9f01

Authored by Peng Fan
Committed by Ye Li
1 parent c2ba2460d8

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)

Showing 1 changed file with 22 additions and 0 deletions Side-by-side Diff

arch/arm/include/asm/arch-imx8/boot0.h
  1 +/*
  2 + * Configuration settings for XEN
  3 + *
  4 + * SPDX-License-Identifier: GPL-2.0+
  5 + */
  6 +
  7 +#ifdef CONFIG_XEN
  8 + add x13, x18, #0x16
  9 + b reset
  10 + /* start of zImage header */
  11 + .quad 0x80000 // Image load offset from start of RAM
  12 + .quad _end - _start // Effective size of kernel image
  13 + .quad 0 // Flags
  14 + .quad 0 // reserved
  15 + .quad 0 // reserved
  16 + .quad 0 // reserved
  17 + .byte 0x41 // Magic number, "ARM\x64"
  18 + .byte 0x52
  19 + .byte 0x4d
  20 + .byte 0x64
  21 + /* end of zImage header */
  22 +#endif