Bin Meng | 76e4b3b | 2019-07-18 00:34:27 -0700 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | ARM64 |
| 4 | ===== |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 5 | |
| 6 | Summary |
Bin Meng | 76e4b3b | 2019-07-18 00:34:27 -0700 | [diff] [blame] | 7 | ------- |
Andre Przywara | 8add679 | 2016-11-03 01:01:50 +0000 | [diff] [blame] | 8 | The initial arm64 U-Boot port was developed before hardware was available, |
| 9 | so the first supported platforms were the Foundation and Fast Model for ARMv8. |
| 10 | These days U-Boot runs on a variety of 64-bit capable ARM hardware, from |
| 11 | embedded development boards to servers. |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 12 | |
| 13 | Notes |
Bin Meng | 76e4b3b | 2019-07-18 00:34:27 -0700 | [diff] [blame] | 14 | ----- |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 15 | |
Andre Przywara | 8add679 | 2016-11-03 01:01:50 +0000 | [diff] [blame] | 16 | 1. 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 |
| 21 | entering the OS. |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 22 | |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 23 | 2. U-Boot for arm64 is compiled with AArch64-gcc. AArch64-gcc |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 24 | use rela relocation format, a tool(tools/relocate-rela) by Scott Wood |
| 25 | is used to encode the initial addend of rela to u-boot.bin. After running, |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 26 | the U-Boot will be relocated to destination again. |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 27 | |
Andre Przywara | 8add679 | 2016-11-03 01:01:50 +0000 | [diff] [blame] | 28 | 3. Earlier Linux kernel versions required the FDT to be placed at a |
| 29 | 2 MB boundary and within the same 512 MB section as the kernel image, |
| 30 | resulting in fdt_high to be defined specially. |
| 31 | Since kernel version 4.2 Linux is more relaxed about the DT location, so it |
| 32 | can be placed anywhere in memory. |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 33 | Please reference linux/Documentation/arm64/booting.txt for detail. |
| 34 | |
| 35 | 4. Spin-table is used to wake up secondary processors. One location |
| 36 | (or per processor location) is defined to hold the kernel entry point |
| 37 | for secondary processors. It must be ensured that the location is |
| 38 | accessible and zero immediately after secondary processor |
| 39 | enter slave_cpu branch execution in start.S. The location address |
| 40 | is encoded in cpu node of DTS. Linux kernel store the entry point |
| 41 | of secondary processors to it and send event to wakeup secondary |
| 42 | processors. |
| 43 | Please reference linux/Documentation/arm64/booting.txt for detail. |
| 44 | |
| 45 | 5. Generic board is supported. |
| 46 | |
| 47 | 6. CONFIG_ARM64 instead of CONFIG_ARMV8 is used to distinguish aarch64 and |
| 48 | aarch32 specific codes. |
| 49 | |
Sergey Temerkhanov | 94f7ff3 | 2015-10-14 09:55:45 -0700 | [diff] [blame] | 50 | |
Andre Przywara | 8add679 | 2016-11-03 01:01:50 +0000 | [diff] [blame] | 51 | Contributors |
Bin Meng | 76e4b3b | 2019-07-18 00:34:27 -0700 | [diff] [blame] | 52 | ------------ |
| 53 | * Tom Rini <trini@ti.com> |
| 54 | * Scott Wood <scottwood@freescale.com> |
| 55 | * York Sun <yorksun@freescale.com> |
| 56 | * Simon Glass <sjg@chromium.org> |
| 57 | * Sharma Bhupesh <bhupesh.sharma@freescale.com> |
| 58 | * Rob Herring <robherring2@gmail.com> |
| 59 | * Sergey Temerkhanov <s.temerkhanov@gmail.com> |