[U-Boot] [PATCH 2/3] x86: Add a reference to README.efi

UEFI is commonly used on x86. Add a reference to U-Boot's support for this in the x86 README.
Signed-off-by: Simon Glass sjg@chromium.org ---
doc/README.x86 | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/doc/README.x86 b/doc/README.x86 index 7d694b1..04e7a54 100644 --- a/doc/README.x86 +++ b/doc/README.x86 @@ -1035,10 +1035,21 @@ command from the OS. For other platform boards, ACPI support status can be checked by examining their board defconfig files to see if CONFIG_GENERATE_ACPI_TABLE is set to y.
+EFI Support +----------- +U-Boot supports booting as a 32-bit or 64-bit EFI payload, e.g. with UEFI. +This is enabled with CONFIG_EFI_STUB. U-Boot can also run as an EFI +application, with CONFIG_EFI_APP. The CONFIG_EFI_LOADER option, where U-Booot +provides an EFI environment to the kernel (i.e. replaces UEFI completely but +provides the same EFI run-time services) is not currently supports on x86. + +See README.efi for details of EFI support in U-Boot. + TODO List --------- - Audio - Chrome OS verified boot +- Support for CONFIG_EFI_LOADER
References ----------

This feature is not supported. Document this, and add some details on how it might be implemented.
Signed-off-by: Simon Glass sjg@chromium.org ---
doc/README.x86 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
diff --git a/doc/README.x86 b/doc/README.x86 index 04e7a54..a2d6994 100644 --- a/doc/README.x86 +++ b/doc/README.x86 @@ -1045,11 +1045,29 @@ provides the same EFI run-time services) is not currently supports on x86.
See README.efi for details of EFI support in U-Boot.
+64-bit Support +-------------- +U-Boot supports booting a 64-bit kernel directly and is able to change to +64-bit mode to do so. It also supports (with CONFIG_EFI_STUB) booting from +both 32-bit and 64-bit UEFI. However, U-Boot itself is currently always built +in 32-bit mode. Some access to the full memory range is provided with +arch_phys_memset(). + +The development work to make U-Boot itself run in 64-bit mode has not yet +been attempted. The best approach would likely be to build a 32-bit SPL +image for U-Boot, with CONFIG_SPL_BUILD. This could then handle the early CPU +init in 16-bit and 32-bit mode, running the FSP and any other binaries that +are needed. Then it could change to 64-bit model and jump to U-Boot proper. + +Given U-Boot's extensive 64-bit support this has not been a high priority, +but it would be a nice addition. + TODO List --------- - Audio - Chrome OS verified boot - Support for CONFIG_EFI_LOADER +- Building U-Boot to run in 64-bit mode
References ----------

On Sun, Jul 17, 2016 at 3:23 PM, Simon Glass sjg@chromium.org wrote:
This feature is not supported. Document this, and add some details on how it might be implemented.
Signed-off-by: Simon Glass sjg@chromium.org
doc/README.x86 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com

On Mon, Jul 18, 2016 at 9:27 AM, Bin Meng bmeng.cn@gmail.com wrote:
On Sun, Jul 17, 2016 at 3:23 PM, Simon Glass sjg@chromium.org wrote:
This feature is not supported. Document this, and add some details on how it might be implemented.
Signed-off-by: Simon Glass sjg@chromium.org
doc/README.x86 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com
applied to u-boot-x86, thanks!

On Sun, Jul 17, 2016 at 3:23 PM, Simon Glass sjg@chromium.org wrote:
UEFI is commonly used on x86. Add a reference to U-Boot's support for this in the x86 README.
Signed-off-by: Simon Glass sjg@chromium.org
doc/README.x86 | 11 +++++++++++ 1 file changed, 11 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com
But one issue below:
diff --git a/doc/README.x86 b/doc/README.x86 index 7d694b1..04e7a54 100644 --- a/doc/README.x86 +++ b/doc/README.x86 @@ -1035,10 +1035,21 @@ command from the OS. For other platform boards, ACPI support status can be checked by examining their board defconfig files to see if CONFIG_GENERATE_ACPI_TABLE is set to y.
+EFI Support +----------- +U-Boot supports booting as a 32-bit or 64-bit EFI payload, e.g. with UEFI. +This is enabled with CONFIG_EFI_STUB. U-Boot can also run as an EFI +application, with CONFIG_EFI_APP. The CONFIG_EFI_LOADER option, where U-Booot +provides an EFI environment to the kernel (i.e. replaces UEFI completely but +provides the same EFI run-time services) is not currently supports on x86.
is not currently "supported"
I can fix this when applying
+See README.efi for details of EFI support in U-Boot.
TODO List
- Audio
- Chrome OS verified boot
+- Support for CONFIG_EFI_LOADER
References
--
Regards, Bin

Hi Bin,
On 17 July 2016 at 19:27, Bin Meng bmeng.cn@gmail.com wrote:
On Sun, Jul 17, 2016 at 3:23 PM, Simon Glass sjg@chromium.org wrote:
UEFI is commonly used on x86. Add a reference to U-Boot's support for this in the x86 README.
Signed-off-by: Simon Glass sjg@chromium.org
doc/README.x86 | 11 +++++++++++ 1 file changed, 11 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com
But one issue below:
diff --git a/doc/README.x86 b/doc/README.x86 index 7d694b1..04e7a54 100644 --- a/doc/README.x86 +++ b/doc/README.x86 @@ -1035,10 +1035,21 @@ command from the OS. For other platform boards, ACPI support status can be checked by examining their board defconfig files to see if CONFIG_GENERATE_ACPI_TABLE is set to y.
+EFI Support +----------- +U-Boot supports booting as a 32-bit or 64-bit EFI payload, e.g. with UEFI. +This is enabled with CONFIG_EFI_STUB. U-Boot can also run as an EFI +application, with CONFIG_EFI_APP. The CONFIG_EFI_LOADER option, where U-Booot +provides an EFI environment to the kernel (i.e. replaces UEFI completely but +provides the same EFI run-time services) is not currently supports on x86.
is not currently "supported"
I can fix this when applying
OK thank you.
+See README.efi for details of EFI support in U-Boot.
TODO List
- Audio
- Chrome OS verified boot
+- Support for CONFIG_EFI_LOADER
References
--
Regards, Bin
Regards, Simon

On Mon, Jul 18, 2016 at 9:27 AM, Bin Meng bmeng.cn@gmail.com wrote:
On Sun, Jul 17, 2016 at 3:23 PM, Simon Glass sjg@chromium.org wrote:
UEFI is commonly used on x86. Add a reference to U-Boot's support for this in the x86 README.
Signed-off-by: Simon Glass sjg@chromium.org
doc/README.x86 | 11 +++++++++++ 1 file changed, 11 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com
But one issue below:
diff --git a/doc/README.x86 b/doc/README.x86 index 7d694b1..04e7a54 100644 --- a/doc/README.x86 +++ b/doc/README.x86 @@ -1035,10 +1035,21 @@ command from the OS. For other platform boards, ACPI support status can be checked by examining their board defconfig files to see if CONFIG_GENERATE_ACPI_TABLE is set to y.
+EFI Support +----------- +U-Boot supports booting as a 32-bit or 64-bit EFI payload, e.g. with UEFI. +This is enabled with CONFIG_EFI_STUB. U-Boot can also run as an EFI +application, with CONFIG_EFI_APP. The CONFIG_EFI_LOADER option, where U-Booot +provides an EFI environment to the kernel (i.e. replaces UEFI completely but +provides the same EFI run-time services) is not currently supports on x86.
is not currently "supported"
I can fix this when applying
Fixed this, and
applied to u-boot-x86, thanks!
participants (2)
-
Bin Meng
-
Simon Glass