From: Dominik Vogt Date: Tue, 29 Jan 2019 17:20:48 +0100 Subject: [U-Boot] Probing flash before Env setup (Env in UBI) Message-ID: <20190129162048.5ukwdwcs42cp6bd2@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi folks, I'm new to uboot and couldn't figure out how to get "CONFIG_ENV_IS_IN_UBI" to work (on a nor flash) yet. Basically, ubi and ubifs work fine. The mtd device (a nor flash) is supported and works. It is formatted with ubiformat and contains two volumes with a ubifs on each of them. The "partition" is named "nor0" and the volumes are "env-uboot" and "env-uboot-redund". -- Now, when the board boots, it tries to load the envorinment and fails: -- snip -- Loading Environment from SPI Flash... SF: Detected n25q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB *** Warning - bad CRC, using default environment Loading Environment from UBI... Partition nor0 not found! ** Cannot find mtd partition "nor0" -- snip -- The first line looks like the output from "sf probe", but "mtd list" just says: List of MTD devices: No MTD device found Well, I guess I just have to run sf probe ubi part nor0 before loading he environment, but I couldn't figure out how to do that, except by adding some C code to board_init_f(). Ciao Dominik ^_^ ^_^ -- Dominik Vogt