[PATCH] xilinx: Enable efi debug command

Enable EFI debug command to be able to setup various efi variables to avoid software like grub.
Signed-off-by: Michal Simek michal.simek@xilinx.com ---
configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynqmp_virt_defconfig | 1 + 2 files changed, 2 insertions(+)
diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig index 8d8f125457d4..da3d2c2a936f 100644 --- a/configs/xilinx_versal_virt_defconfig +++ b/configs/xilinx_versal_virt_defconfig @@ -32,6 +32,7 @@ CONFIG_CMD_SF_TEST=y CONFIG_CMD_USB=y CONFIG_CMD_TFTPPUT=y CONFIG_CMD_CACHE=y +CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_TIME=y CONFIG_CMD_TIMER=y CONFIG_CMD_EXT4_WRITE=y diff --git a/configs/xilinx_zynqmp_virt_defconfig b/configs/xilinx_zynqmp_virt_defconfig index da4f4554ed78..db7d3824d7d9 100644 --- a/configs/xilinx_zynqmp_virt_defconfig +++ b/configs/xilinx_zynqmp_virt_defconfig @@ -56,6 +56,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_TFTPPUT=y CONFIG_CMD_BMP=y CONFIG_CMD_CACHE=y +CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_TIME=y CONFIG_CMD_TIMER=y CONFIG_CMD_TPM=y

po 29. 3. 2021 v 8:27 odesílatel Michal Simek michal.simek@xilinx.com napsal:
Enable EFI debug command to be able to setup various efi variables to avoid software like grub.
Signed-off-by: Michal Simek michal.simek@xilinx.com
configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynqmp_virt_defconfig | 1 + 2 files changed, 2 insertions(+)
diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig index 8d8f125457d4..da3d2c2a936f 100644 --- a/configs/xilinx_versal_virt_defconfig +++ b/configs/xilinx_versal_virt_defconfig @@ -32,6 +32,7 @@ CONFIG_CMD_SF_TEST=y CONFIG_CMD_USB=y CONFIG_CMD_TFTPPUT=y CONFIG_CMD_CACHE=y +CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_TIME=y CONFIG_CMD_TIMER=y CONFIG_CMD_EXT4_WRITE=y diff --git a/configs/xilinx_zynqmp_virt_defconfig b/configs/xilinx_zynqmp_virt_defconfig index da4f4554ed78..db7d3824d7d9 100644 --- a/configs/xilinx_zynqmp_virt_defconfig +++ b/configs/xilinx_zynqmp_virt_defconfig @@ -56,6 +56,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_TFTPPUT=y CONFIG_CMD_BMP=y CONFIG_CMD_CACHE=y +CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_TIME=y CONFIG_CMD_TIMER=y CONFIG_CMD_TPM=y -- 2.31.0
Applied. M

On Mon, Mar 29, 2021 at 08:27:00AM +0200, Michal Simek wrote:
Enable EFI debug command to be able to setup various efi variables to avoid software like grub.
Signed-off-by: Michal Simek michal.simek@xilinx.com
Can you elaborate on what you're setting here? This seems like a potentially neat trick that should be documented.

Hi,
On 3/30/21 2:06 PM, Tom Rini wrote:
On Mon, Mar 29, 2021 at 08:27:00AM +0200, Michal Simek wrote:
Enable EFI debug command to be able to setup various efi variables to avoid software like grub.
Signed-off-by: Michal Simek michal.simek@xilinx.com
Can you elaborate on what you're setting here? This seems like a potentially neat trick that should be documented.
It just enabling efidebug command to be able to setup efi variables. We have discussed it recently with Ilias in connection to efi boot without grub. I think Ilias is the best person to talk about details based on patches he is sending.
Thanks, Michal

Hi Tom, Michal,
On Tue, Mar 30, 2021 at 02:16:22PM +0200, Michal Simek wrote:
Hi,
On 3/30/21 2:06 PM, Tom Rini wrote:
On Mon, Mar 29, 2021 at 08:27:00AM +0200, Michal Simek wrote:
Enable EFI debug command to be able to setup various efi variables to avoid software like grub.
Signed-off-by: Michal Simek michal.simek@xilinx.com
Can you elaborate on what you're setting here? This seems like a potentially neat trick that should be documented.
It just enabling efidebug command to be able to setup efi variables. We have discussed it recently with Ilias in connection to efi boot without grub. I think Ilias is the best person to talk about details based on patches he is sending.
It is documented, just not pushed yet u-boot/next, due to the file renaming on the documentation. You can find details here https://lists.denx.de/pipermail/u-boot/2021-March/444855.html but the tl;dr version is that , with newer kernels we can add the initrd path of the specific image in an EFI Boot### variable.
That allows you to boot EFI based vertical distros, that contain multiple initrd-kernel pairs, by just using the EFI interfaces and not have to rely on GRUB or whatever people were doing up to now.
Cheers /Ilias
Thanks, Michal
participants (4)
-
Ilias Apalodimas
-
Michal Simek
-
Michal Simek
-
Tom Rini