head.S 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  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. #include <config.h>
  15. .global _arm64_header
  16. _arm64_header:
  17. b _start
  18. .word 0
  19. /* Image load offset from start of RAM, little-endian */
  20. .quad CONFIG_SYS_TEXT_BASE-PHYS_SDRAM_1
  21. /* Effective size of kernel image, little-endian */
  22. .quad 0 /* 0x60000 - ignored */
  23. /* Informative flags, little-endian */
  24. .quad 0
  25. .quad 0 /* reserved */
  26. .quad 0 /* reserved */
  27. .quad 0 /* reserved */
  28. .byte 0x41 /* Magic number, "ARM\x64" */
  29. .byte 0x52
  30. .byte 0x4d
  31. .byte 0x64
  32. .word 0 /* reserved */