[PATCH 1/2] microblaze: Set script_offset_nor env variable

Michal Simek monstr at monstr.eu
Tue Jan 5 10:37:26 CET 2021


čt 17. 12. 2020 v 15:09 odesílatel Michal Simek
<michal.simek at xilinx.com> napsal:
>
> From: T Karthik Reddy <t.karthik.reddy at xilinx.com>
>
> Set script_offset_nor env variable using CONFIG_BOOT_SCRIPT_OFFSET
> and nor flash start address to keep bootscript offset configurable.
>
> Signed-off-by: T Karthik Reddy <t.karthik.reddy at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  board/xilinx/microblaze-generic/microblaze-generic.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
> index e5909997690a..d4095c07c1e9 100644
> --- a/board/xilinx/microblaze-generic/microblaze-generic.c
> +++ b/board/xilinx/microblaze-generic/microblaze-generic.c
> @@ -67,7 +67,10 @@ int board_late_init(void)
>
>         status |= env_set_hex("ramdisk_addr_r",
>                                gd->ram_base + SZ_32M + SZ_4M + SZ_2M);
> -
> +       if (IS_ENABLED(CONFIG_MTD_NOR_FLASH))
> +               status |= env_set_hex("script_offset_nor",
> +                                      gd->bd->bi_flashstart +
> +                                      CONFIG_BOOT_SCRIPT_OFFSET);
>         if (status)
>                 printf("%s: Saving run time variables FAILED\n", __func__);
>
> --
> 2.29.2
>

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


More information about the U-Boot mailing list