Commit 2f1f8069405bdb74d811bb594cbbea3d552fa31a
1 parent
179a0a6ff3
Exists in
smarc-8m-android-10.0.0_2.6.0
and in
1 other branch
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) (cherry picked from commit d260e97be35718bea46019b7ca8666e83d0b9f01) (cherry picked from commit fa6d1e299da0f6913564dcb11c171cee69a43f8e)
Showing 1 changed file with 17 additions and 0 deletions Side-by-side Diff
arch/arm/include/asm/arch-imx8/boot0.h
... | ... | @@ -3,6 +3,23 @@ |
3 | 3 | * Copyright 2019 NXP |
4 | 4 | */ |
5 | 5 | |
6 | +#ifdef CONFIG_XEN | |
7 | + add x13, x18, #0x16 | |
8 | + b reset | |
9 | + /* start of zImage header */ | |
10 | + .quad 0x80000 // Image load offset from start of RAM | |
11 | + .quad _end - _start // Effective size of kernel image | |
12 | + .quad 0 // Flags | |
13 | + .quad 0 // reserved | |
14 | + .quad 0 // reserved | |
15 | + .quad 0 // reserved | |
16 | + .byte 0x41 // Magic number, "ARM\x64" | |
17 | + .byte 0x52 | |
18 | + .byte 0x4d | |
19 | + .byte 0x64 | |
20 | + /* end of zImage header */ | |
21 | +#endif | |
22 | + | |
6 | 23 | #if defined(CONFIG_SPL_BUILD) |
7 | 24 | /* |
8 | 25 | * We use absolute address not PC relative address to jump. |