summaryrefslogtreecommitdiff
path: root/doc/README.arm64
blob: f32108feb77cec5dd67f8dbb6557fbb4a8f3a180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
U-boot for arm64

Summary
=======
No hardware platform of arm64 is available now. The u-boot is
simulated on Foundation Model and Fast Model for ARMv8.

Notes
=====

1. Currenly, u-boot run at the highest exception level processor
   supported and jump to EL2 or optionally EL1 before enter OS.

2. U-boot for arm64 is compiled with AArch64-gcc. AArch64-gcc
   use rela relocation format, a tool(tools/relocate-rela) by Scott Wood
   is used to encode the initial addend of rela to u-boot.bin. After running,
   the u-boot will be relocated to destination again.

3. Fdt should be placed at a 2-megabyte boundary and within the first 512
   megabytes from the start of the kernel image. So, fdt_high should be
   defined specially.
   Please reference linux/Documentation/arm64/booting.txt for detail.

4. Spin-table is used to wake up secondary processors. One location
   (or per processor location) is defined to hold the kernel entry point
   for secondary processors. It must be ensured that the location is
   accessible and zero immediately after secondary processor
   enter slave_cpu branch execution in start.S. The location address
   is encoded in cpu node of DTS. Linux kernel store the entry point
   of secondary processors to it and send event to wakeup secondary
   processors.
   Please reference linux/Documentation/arm64/booting.txt for detail.

5. Generic board is supported.

6. CONFIG_ARM64 instead of CONFIG_ARMV8 is used to distinguish aarch64 and
   aarch32 specific codes.

7. CONFIG_SYS_FULL_VA is used to enable 2-level page tables. For cores
   supporting 64k pages it allows usage of full 48+ virtual/physical addresses

   Enabling this option requires the following ones to be defined:
       - CONFIG_SYS_MEM_MAP - an array of 'struct mm_region' describing the
         system memory map (start, length, attributes)
       - CONFIG_SYS_MEM_MAP_SIZE - number of entries in CONFIG_SYS_MEM_MAP
       - CONFIG_SYS_PTL1_ENTRIES - number of 1st level page table entries
       - CONFIG_SYS_PTL2_ENTRIES - number of 1nd level page table entries
         for the largest CONFIG_SYS_MEM_MAP entry
       - CONFIG_COREID_MASK - the mask value used to get the core from the
         MPIDR_EL1 register
       - CONFIG_SYS_PTL2_BITS - number of bits addressed by the 2nd level
         page tables
       - CONFIG_SYS_BLOCK_SHIFT - number of bits addressed by a single block
         entry from L2 page tables
       - CONFIG_SYS_PGTABLE_SIZE - total size of the page table
       - CONFIG_SYS_TCR_EL{1,2,3}_IPS_BITS - the IPS field of the TCR_EL{1,2,3}




Contributor
===========
   Tom Rini            <trini@ti.com>
   Scott Wood          <scottwood@freescale.com>
   York Sun            <yorksun@freescale.com>
   Simon Glass         <sjg@chromium.org>
   Sharma Bhupesh      <bhupesh.sharma@freescale.com>
   Rob Herring         <robherring2@gmail.com>
   Sergey Temerkhanov  <s.temerkhanov@gmail.com>