[PATCH] xilinx: Enable sntp command

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Sep 29 10:50:08 CEST 2025


On 9/29/25 08:24, Michal Simek wrote:
> Enable SNTP commands on all Xilinx boards.

Would it make sense to enable CONFIG_RTC_EMULATION on those boards that 
don't have an RTC like amd_versal2_virt_defconfig? For instance FAT 
write uses the date from the RTC.

For boards that have an RTC (emulated or not) CONFIG_CMD_DATE may be 
helpful.

Best regard

Heinrich

> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
> 
>   configs/amd_versal2_virt_defconfig       | 1 +
>   configs/microblaze-generic_defconfig     | 1 +
>   configs/xilinx_mbv32_defconfig           | 1 +
>   configs/xilinx_mbv32_smode_defconfig     | 1 +
>   configs/xilinx_mbv64_defconfig           | 1 +
>   configs/xilinx_mbv64_smode_defconfig     | 1 +
>   configs/xilinx_versal_net_virt_defconfig | 1 +
>   configs/xilinx_versal_virt_defconfig     | 1 +
>   configs/xilinx_zynq_virt_defconfig       | 2 +-
>   configs/xilinx_zynqmp_kria_defconfig     | 1 +
>   configs/xilinx_zynqmp_virt_defconfig     | 1 +
>   11 files changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/configs/amd_versal2_virt_defconfig b/configs/amd_versal2_virt_defconfig
> index 5791f0415c95..4a7bc1951451 100644
> --- a/configs/amd_versal2_virt_defconfig
> +++ b/configs/amd_versal2_virt_defconfig
> @@ -48,6 +48,7 @@ CONFIG_CMD_SF_TEST=y
>   CONFIG_CMD_SPI=y
>   CONFIG_CMD_UFS=y
>   CONFIG_CMD_USB=y
> +CONFIG_CMD_SNTP=y
>   CONFIG_WGET_HTTPS=y
>   CONFIG_CMD_CACHE=y
>   CONFIG_CMD_EFIDEBUG=y
> diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig
> index 07612ef5e932..e26613ce9099 100644
> --- a/configs/microblaze-generic_defconfig
> +++ b/configs/microblaze-generic_defconfig
> @@ -49,6 +49,7 @@ CONFIG_CMD_GPIO=y
>   CONFIG_CMD_SAVES=y
>   CONFIG_BOOTP_BOOTFILESIZE=y
>   CONFIG_CMD_TFTPPUT=y
> +CONFIG_CMD_SNTP=y
>   CONFIG_CMD_CACHE=y
>   CONFIG_SPL_OF_CONTROL=y
>   CONFIG_OF_EMBED=y
> diff --git a/configs/xilinx_mbv32_defconfig b/configs/xilinx_mbv32_defconfig
> index e3341179a682..2bf1f33585ec 100644
> --- a/configs/xilinx_mbv32_defconfig
> +++ b/configs/xilinx_mbv32_defconfig
> @@ -32,6 +32,7 @@ CONFIG_SPL_MAX_SIZE=0x40000
>   CONFIG_SPL_HAVE_INIT_STACK=y
>   CONFIG_SPL_SYS_MALLOC=y
>   # CONFIG_CMD_MII is not set
> +CONFIG_CMD_SNTP=y
>   CONFIG_CMD_TIMER=y
>   CONFIG_ENV_RELOC_GD_ENV_ADDR=y
>   CONFIG_SPL_DM_SEQ_ALIAS=y
> diff --git a/configs/xilinx_mbv32_smode_defconfig b/configs/xilinx_mbv32_smode_defconfig
> index c95b44973952..b9263940041e 100644
> --- a/configs/xilinx_mbv32_smode_defconfig
> +++ b/configs/xilinx_mbv32_smode_defconfig
> @@ -34,6 +34,7 @@ CONFIG_SPL_HAVE_INIT_STACK=y
>   CONFIG_SPL_SYS_MALLOC=y
>   CONFIG_SPL_OPENSBI_SCRATCH_OPTIONS=0x2
>   # CONFIG_CMD_MII is not set
> +CONFIG_CMD_SNTP=y
>   CONFIG_CMD_TIMER=y
>   CONFIG_ENV_RELOC_GD_ENV_ADDR=y
>   CONFIG_SPL_DM_SEQ_ALIAS=y
> diff --git a/configs/xilinx_mbv64_defconfig b/configs/xilinx_mbv64_defconfig
> index a3cc1a5669e5..6216ba855b34 100644
> --- a/configs/xilinx_mbv64_defconfig
> +++ b/configs/xilinx_mbv64_defconfig
> @@ -33,6 +33,7 @@ CONFIG_SPL_MAX_SIZE=0x40000
>   CONFIG_SPL_HAVE_INIT_STACK=y
>   CONFIG_SPL_SYS_MALLOC=y
>   # CONFIG_CMD_MII is not set
> +CONFIG_CMD_SNTP=y
>   CONFIG_CMD_TIMER=y
>   CONFIG_ENV_RELOC_GD_ENV_ADDR=y
>   CONFIG_SPL_DM_SEQ_ALIAS=y
> diff --git a/configs/xilinx_mbv64_smode_defconfig b/configs/xilinx_mbv64_smode_defconfig
> index 3d49670c60c4..a3ea779076d6 100644
> --- a/configs/xilinx_mbv64_smode_defconfig
> +++ b/configs/xilinx_mbv64_smode_defconfig
> @@ -35,6 +35,7 @@ CONFIG_SPL_HAVE_INIT_STACK=y
>   CONFIG_SPL_SYS_MALLOC=y
>   CONFIG_SPL_OPENSBI_SCRATCH_OPTIONS=0x2
>   # CONFIG_CMD_MII is not set
> +CONFIG_CMD_SNTP=y
>   CONFIG_CMD_TIMER=y
>   CONFIG_ENV_RELOC_GD_ENV_ADDR=y
>   CONFIG_SPL_DM_SEQ_ALIAS=y
> diff --git a/configs/xilinx_versal_net_virt_defconfig b/configs/xilinx_versal_net_virt_defconfig
> index 13d89c473392..770bd0643c19 100644
> --- a/configs/xilinx_versal_net_virt_defconfig
> +++ b/configs/xilinx_versal_net_virt_defconfig
> @@ -46,6 +46,7 @@ CONFIG_MMC_SPEED_MODE_SET=y
>   CONFIG_CMD_MTD=y
>   CONFIG_CMD_SF_TEST=y
>   CONFIG_CMD_USB=y
> +CONFIG_CMD_SNTP=y
>   CONFIG_WGET_HTTPS=y
>   CONFIG_CMD_CACHE=y
>   CONFIG_CMD_EFIDEBUG=y
> diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig
> index 52142bcc7b2c..ac78dea587cd 100644
> --- a/configs/xilinx_versal_virt_defconfig
> +++ b/configs/xilinx_versal_virt_defconfig
> @@ -52,6 +52,7 @@ CONFIG_MMC_SPEED_MODE_SET=y
>   CONFIG_CMD_MTD=y
>   CONFIG_CMD_SF_TEST=y
>   CONFIG_CMD_USB=y
> +CONFIG_CMD_SNTP=y
>   CONFIG_WGET_HTTPS=y
>   CONFIG_CMD_CACHE=y
>   CONFIG_CMD_EFIDEBUG=y
> diff --git a/configs/xilinx_zynq_virt_defconfig b/configs/xilinx_zynq_virt_defconfig
> index 4412f52bbd2e..c4f9df16a0fe 100644
> --- a/configs/xilinx_zynq_virt_defconfig
> +++ b/configs/xilinx_zynq_virt_defconfig
> @@ -33,7 +33,6 @@ CONFIG_FIT_VERBOSE=y
>   CONFIG_SPL_FIT_PRINT=y
>   CONFIG_SPL_LOAD_FIT=y
>   CONFIG_SPL_LOAD_FIT_ADDRESS=0x10000000
> -CONFIG_LEGACY_IMAGE_FORMAT=y
>   CONFIG_DISTRO_DEFAULTS=y
>   # CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
>   CONFIG_USE_PREBOOT=y
> @@ -71,6 +70,7 @@ CONFIG_CMD_MTD=y
>   CONFIG_CMD_NAND_LOCK_UNLOCK=y
>   CONFIG_CMD_SF_TEST=y
>   CONFIG_CMD_USB=y
> +CONFIG_CMD_SNTP=y
>   CONFIG_CMD_CACHE=y
>   CONFIG_CMD_EFIDEBUG=y
>   CONFIG_CMD_TIME=y
> diff --git a/configs/xilinx_zynqmp_kria_defconfig b/configs/xilinx_zynqmp_kria_defconfig
> index a99462864106..1e0728fa4f3f 100644
> --- a/configs/xilinx_zynqmp_kria_defconfig
> +++ b/configs/xilinx_zynqmp_kria_defconfig
> @@ -82,6 +82,7 @@ CONFIG_CMD_SDRAM=y
>   CONFIG_CMD_SF_TEST=y
>   CONFIG_CMD_SPI=y
>   CONFIG_CMD_USB=y
> +CONFIG_CMD_SNTP=y
>   CONFIG_WGET_HTTPS=y
>   CONFIG_CMD_BMP=y
>   CONFIG_CMD_CACHE=y
> diff --git a/configs/xilinx_zynqmp_virt_defconfig b/configs/xilinx_zynqmp_virt_defconfig
> index b45ac8063fc3..6e4ba7269f85 100644
> --- a/configs/xilinx_zynqmp_virt_defconfig
> +++ b/configs/xilinx_zynqmp_virt_defconfig
> @@ -81,6 +81,7 @@ CONFIG_CMD_SDRAM=y
>   CONFIG_CMD_SF_TEST=y
>   CONFIG_CMD_SPI=y
>   CONFIG_CMD_USB=y
> +CONFIG_CMD_SNTP=y
>   CONFIG_WGET_HTTPS=y
>   CONFIG_CMD_BMP=y
>   CONFIG_CMD_CACHE=y



More information about the U-Boot mailing list