All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: zynqmp: Add third backup bootmode
@ 2020-03-11 14:13 Michal Simek
  2020-04-06 11:04 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2020-03-11 14:13 UTC (permalink / raw)
  To: u-boot

I found this issue when was running py/test.py on zcu102 which is for me by
default setup to SD boot mode without any way to change boot mode.
Alternative software bootmode selection to JTAG is not working because JTAG
mode is 0 which also reset value for it. That's why saying SPL to take
u-boot.itb from RAM instead of SD in SD boot mode is not possible via
alternative bootmode selection.
That's why setup third boot mode to JTAG(BOOT_DEVICE_RAM) as final
fallback.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 arch/arm/mach-zynqmp/spl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-zynqmp/spl.c b/arch/arm/mach-zynqmp/spl.c
index 896657f51c3d..b3830182e250 100644
--- a/arch/arm/mach-zynqmp/spl.c
+++ b/arch/arm/mach-zynqmp/spl.c
@@ -66,6 +66,8 @@ void board_boot_order(u32 *spl_boot_list)
 		spl_boot_list[1] = BOOT_DEVICE_MMC2;
 	if (spl_boot_list[0] == BOOT_DEVICE_MMC2)
 		spl_boot_list[1] = BOOT_DEVICE_MMC1;
+
+	spl_boot_list[2] = BOOT_DEVICE_RAM;
 }
 
 u32 spl_boot_device(void)
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] arm64: zynqmp: Add third backup bootmode
  2020-03-11 14:13 [PATCH] arm64: zynqmp: Add third backup bootmode Michal Simek
@ 2020-04-06 11:04 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2020-04-06 11:04 UTC (permalink / raw)
  To: u-boot

st 11. 3. 2020 v 15:13 odes?latel Michal Simek <michal.simek@xilinx.com> napsal:
>
> I found this issue when was running py/test.py on zcu102 which is for me by
> default setup to SD boot mode without any way to change boot mode.
> Alternative software bootmode selection to JTAG is not working because JTAG
> mode is 0 which also reset value for it. That's why saying SPL to take
> u-boot.itb from RAM instead of SD in SD boot mode is not possible via
> alternative bootmode selection.
> That's why setup third boot mode to JTAG(BOOT_DEVICE_RAM) as final
> fallback.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  arch/arm/mach-zynqmp/spl.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-zynqmp/spl.c b/arch/arm/mach-zynqmp/spl.c
> index 896657f51c3d..b3830182e250 100644
> --- a/arch/arm/mach-zynqmp/spl.c
> +++ b/arch/arm/mach-zynqmp/spl.c
> @@ -66,6 +66,8 @@ void board_boot_order(u32 *spl_boot_list)
>                 spl_boot_list[1] = BOOT_DEVICE_MMC2;
>         if (spl_boot_list[0] == BOOT_DEVICE_MMC2)
>                 spl_boot_list[1] = BOOT_DEVICE_MMC1;
> +
> +       spl_boot_list[2] = BOOT_DEVICE_RAM;
>  }
>
>  u32 spl_boot_device(void)
> --
> 2.25.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-06 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 14:13 [PATCH] arm64: zynqmp: Add third backup bootmode Michal Simek
2020-04-06 11:04 ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.