From: Alexander Kerner Date: Mon, 18 Nov 2019 17:19:04 +0100 Subject: [U-Boot] uboot environment in ubi on qspi flash Message-ID: <20191118161904.GM18652@hosaka.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello! I want to store the uboot environment in the ubi partition in the qspi flash on xilinx zynqmp. There is an error message during the start: ---- Loading Environment from UBI... Could not find a valid device for spi0.0 Partition ubi not found! ** Cannot find mtd partition "ubi" ---- After running 'sf probe' manually I can save the environment to the ubi volume. I wonder how to make the uboot probe the qspi flash before trying to attach the ubi partition? Here is my configuration: defconfig: CONFIG_ENV_IS_IN_UBI=y CONFIG_MTDIDS_DEFAULT="nor0=spi0.0" CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:0x80000(uboot-spl),0x200000(uboot),-(ubi)" include/configs/spb4.h: #define CONFIG_ENV_UBI_PART "ubi" #define CONFIG_ENV_UBI_VOLUME "uboot-env" #define CONFIG_ENV_SIZE 0x20000 Kind regards Alexander