Great! Thanks @kacf, now I can start the compilation.
As prescribed in the documentation, I first tried with
MENDER_UBOOT_AUTO_CONFIGURE=“1”
But I had an error:
ERROR: u-boot-xlnx-v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0 do_configure: U-Boot configuration xilinx_zynqmp_virt_defconfig has setting:
CONFIG_MTDIDS_DEFAULT=“”
but Mender expects:
CONFIG_MTDIDS_DEFAULT=“nand0=nand_mtd”
However, when I looked in
u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/git/configs/xilinx_zynqmp_virt_defconfig
I can see that the patch has been applied:
CONFIG_ENV_SIZE=0x8000
CONFIG_MTDIDS_DEFAULT=“nand0=nand_mtd”
CONFIG_MTDPARTS_DEFAULT=“mtdparts=mtdparts=nand_mtd:0x100000@0x000000(uboot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs),-(ubi)”
CONFIG_ENV_IS_IN_UBI=y
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
CONFIG_ENV_UBI_PART=“ubi”
CONFIG_ENV_UBI_VOLUME=“u-boot-env-1”
CONFIG_ENV_UBI_VOLUME_REDUND=“u-boot-env-2”
CONFIG_BOOTCOUNT_LIMIT=y
CONFIG_BOOTCOUNT_ENV=y
and the variable has been correctly set. Therefore, there is certainly something that I am missing.
I extracted the patch as explained in the documentation. I has no error doing so and the extracted patch is:
diff -r -u /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/old-src/configs/xilinx_zynqmp_virt_defconfig /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/git/configs/xilinx_zynqmp_virt_defconfig
— /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/old-src/configs/xilinx_zynqmp_virt_defconfig 2021-08-12 13:16:35.261127648 +0000
+++ /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/git/configs/xilinx_zynqmp_virt_defconfig 2021-08-12 13:17:02.182196631 +0000
@@ -138,3 +138,36 @@
CONFIG_SPL_GZIP=y
CONFIG_OF_LIBFDT_OVERLAY=y
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
+CONFIG_ENV_SIZE=0x8000
+CONFIG_MTDIDS_DEFAULT=“nand0=nand_mtd”
+CONFIG_MTDPARTS_DEFAULT=“mtdparts=mtdparts=nand_mtd:0x100000@0x000000(uboot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs),-(ubi)”
+# CONFIG_ENV_IS_NOWHERE is not set
+# CONFIG_ENV_IS_IN_EEPROM is not set
+# CONFIG_ENV_IS_IN_FAT is not set
+# CONFIG_ENV_IS_IN_EXT4 is not set
+# CONFIG_ENV_IS_IN_FLASH is not set
+# CONFIG_ENV_IS_IN_MMC is not set
+# CONFIG_ENV_IS_IN_NAND is not set
+# CONFIG_ENV_IS_IN_NVRAM is not set
+# CONFIG_ENV_IS_IN_ONENAND is not set
+# CONFIG_ENV_IS_IN_REMOTE is not set
+# CONFIG_ENV_IS_IN_SPI_FLASH is not set
+CONFIG_MTD_UBI=y
+CONFIG_ENV_IS_IN_UBI=y
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
+CONFIG_ENV_UBI_PART=“ubi”
+CONFIG_ENV_UBI_VOLUME=“u-boot-env-1”
+CONFIG_ENV_UBI_VOLUME_REDUND=“u-boot-env-2”
+CONFIG_CMD_UBIFS=y
+CONFIG_MTD_PARTITIONS=y
+# CONFIG_BOOTCOUNT_GENERIC is not set
+# CONFIG_BOOTCOUNT_EXT is not set
+# CONFIG_BOOTCOUNT_AM33XX is not set
+# CONFIG_BOOTCOUNT_RAM is not set
+# CONFIG_BOOTCOUNT_I2C is not set
+# CONFIG_BOOTCOUNT_AT91 is not set
+# CONFIG_BOOTCOUNT_BOOTLIMIT is not set
+# CONFIG_BOOTCOUNT_ALEN is not set
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_BOOTCOUNT_ENV=y
+# CONFIG_BOOTCOMMAND is not set
Binary files /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/old-src/.git/index and /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/git/.git/index differ
diff -r -u /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/old-src/include/config_defaults.h /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/git/include/config_defaults.h
— /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/old-src/include/config_defaults.h 2021-08-12 13:16:35.362127907 +0000
+++ /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/git/include/config_defaults.h 2021-08-12 13:17:02.008196185 +0000
@@ -10,3 +10,5 @@
#define CONFIG_DEFAULTS_H
#endif
+#define MTDIDS_DEFAULT CONFIG_MTDIDS_DEFAULT
+#define MTDPARTS_DEFAULT CONFIG_MTDPARTS_DEFAULT
diff -r -u /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/old-src/include/config_distro_bootcmd.h /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/git/include/config_distro_bootcmd.h
— /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/old-src/include/config_distro_bootcmd.h 2021-08-12 13:16:35.362127907 +0000
+++ /home/pdaye/workspace/P3Lab/build/p3lab_builder/petalinux/projects/p3-uz4cg_kol_2020.2/build/tmp/work/uz4cg_kol-xilinx-linux/u-boot-xlnx/v2020.01-xilinx-v2020.2+gitAUTOINC+bb4660c33a-r0/git/include/config_distro_bootcmd.h 2021-08-12 13:17:02.013196198 +0000
@@ -486,7 +486,6 @@
“done\0”
#ifndef CONFIG_BOOTCOMMAND
-#define CONFIG_BOOTCOMMAND “run distro_bootcmd”
#endif
#endif /* _CONFIG_CMD_DISTRO_BOOTCMD_H */
I hope that this will help someone finds the issue!
Thanks again for the very nice support!
Pierre