blob: 7c0713504c479bbc78d315162899b3b098d48c0b [file] [log] [blame]
Bin Meng76e4b3b2019-07-18 00:34:27 -07001.. SPDX-License-Identifier: GPL-2.0+
2
3ARM64
4=====
David Feng0ae76532013-12-14 11:47:35 +08005
6Summary
Bin Meng76e4b3b2019-07-18 00:34:27 -07007-------
Andre Przywara8add6792016-11-03 01:01:50 +00008The initial arm64 U-Boot port was developed before hardware was available,
9so the first supported platforms were the Foundation and Fast Model for ARMv8.
10These days U-Boot runs on a variety of 64-bit capable ARM hardware, from
11embedded development boards to servers.
David Feng0ae76532013-12-14 11:47:35 +080012
13Notes
Bin Meng76e4b3b2019-07-18 00:34:27 -070014-----
David Feng0ae76532013-12-14 11:47:35 +080015
Andre Przywara8add6792016-11-03 01:01:50 +0000161. U-Boot can run at any exception level it is entered in, it is
17 recommened to enter it in EL3 if U-Boot takes some responsibilities of a
18 classical firmware (like initial hardware setup, CPU errata workarounds
19 or SMP bringup). U-Boot can be entered in EL2 when its main purpose is
20 that of a boot loader. It can drop to lower exception levels before
Peter Hoyes8d78a6b2022-03-04 16:30:18 +000021 entering the OS. For ARMv8-R it is recommened to enter at S-EL1, as for this
22 architecture there is no S-EL3.
David Feng0ae76532013-12-14 11:47:35 +080023
Bin Menga1875592016-02-05 19:30:11 -0800242. U-Boot for arm64 is compiled with AArch64-gcc. AArch64-gcc
David Feng0ae76532013-12-14 11:47:35 +080025 use rela relocation format, a tool(tools/relocate-rela) by Scott Wood
26 is used to encode the initial addend of rela to u-boot.bin. After running,
Bin Menga1875592016-02-05 19:30:11 -080027 the U-Boot will be relocated to destination again.
David Feng0ae76532013-12-14 11:47:35 +080028
Andre Przywara8add6792016-11-03 01:01:50 +0000293. Earlier Linux kernel versions required the FDT to be placed at a
30 2 MB boundary and within the same 512 MB section as the kernel image,
31 resulting in fdt_high to be defined specially.
32 Since kernel version 4.2 Linux is more relaxed about the DT location, so it
33 can be placed anywhere in memory.
David Feng0ae76532013-12-14 11:47:35 +080034 Please reference linux/Documentation/arm64/booting.txt for detail.
35
364. Spin-table is used to wake up secondary processors. One location
37 (or per processor location) is defined to hold the kernel entry point
38 for secondary processors. It must be ensured that the location is
39 accessible and zero immediately after secondary processor
40 enter slave_cpu branch execution in start.S. The location address
41 is encoded in cpu node of DTS. Linux kernel store the entry point
42 of secondary processors to it and send event to wakeup secondary
43 processors.
44 Please reference linux/Documentation/arm64/booting.txt for detail.
45
465. Generic board is supported.
47
486. CONFIG_ARM64 instead of CONFIG_ARMV8 is used to distinguish aarch64 and
49 aarch32 specific codes.
50
Sergey Temerkhanov94f7ff32015-10-14 09:55:45 -070051
Andre Przywara8add6792016-11-03 01:01:50 +000052Contributors
Bin Meng76e4b3b2019-07-18 00:34:27 -070053------------
54 * Tom Rini <trini@ti.com>
55 * Scott Wood <scottwood@freescale.com>
56 * York Sun <yorksun@freescale.com>
57 * Simon Glass <sjg@chromium.org>
58 * Sharma Bhupesh <bhupesh.sharma@freescale.com>
59 * Rob Herring <robherring2@gmail.com>
60 * Sergey Temerkhanov <s.temerkhanov@gmail.com>