blob: ba29b12fc62d96d2a13006f94bd0c03c66dbba70 [file] [log] [blame]
Mateusz Kulikowski626f0482016-03-31 23:12:33 +02001/*
2 * ARM64 header for proper chain-loading with Little Kernel.
3 *
4 * Little Kernel shipped with Dragonboard410C boots standard Linux images for
5 * ARM64. This file adds header that is required to boot U-Boot properly.
6 *
7 * For details see:
8 * https://www.kernel.org/doc/Documentation/arm64/booting.txt
9 *
10 * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
11 *
12 * SPDX-License-Identifier: GPL-2.0+
13 */
14
15#include <config.h>
16
17.global _arm64_header
18_arm64_header:
19 b _start
20 .word 0
21 /* Image load offset from start of RAM, little-endian */
22 .quad CONFIG_SYS_TEXT_BASE-PHYS_SDRAM_1
23 /* Effective size of kernel image, little-endian */
24 .quad 0 /* 0x60000 - ignored */
25 /* Informative flags, little-endian */
26 .quad 0
27 .quad 0 /* reserved */
28 .quad 0 /* reserved */
29 .quad 0 /* reserved */
30 .byte 0x41 /* Magic number, "ARM\x64" */
31 .byte 0x52
32 .byte 0x4d
33 .byte 0x64
34 .word 0 /* reserved */