From: Marek Vasut Date: Mon, 27 Jan 2020 14:03:23 +0100 Subject: [GIT] Pull request: u-boot-dfu (26.01.2020) In-Reply-To: References: <20200126212657.70d9e763@jawa> <6e96c366-1f86-fa60-e05d-24fcd084b2a9@denx.de> <20200127085248.07ea307f@jawa> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 1/27/20 9:14 AM, Guillermo Rodriguez Garcia wrote: > Hi Marek, Hi, > El lun., 27 ene. 2020 a las 8:52, Lukasz Majewski () escribió: >> >> Hi Marek, >> >>> On 1/26/20 9:26 PM, Lukasz Majewski wrote: >>> Hi, >>> >>> [...] >>> >>>> ---------------------------------------------------------------- >>>> Guillermo Rodríguez (1): >>>> dfu: Add option to skip empty pages when flashing UBI images >>>> to >>> >>> Can that option be enabled/disabled at runtime instead of being >>> hardcoded? >> >> It has been designed in a similar way to Android's existing >> FASTBOOT_FLASH_NAND_TRIMFFS option. > > Without this option, UBI images need to be built with --space-fixup > [1] so that the kernel can "fix" the NAND on first mount. > When this option is used, --space-fixup is no longer necessary because > dfu knows how to correctly flash UBI images. However, UBI images built > with --space-fixup will still work fine. Does NAND.TRIMFFS preserve UBI erase counters in the NAND ? I don't think so, so I don't think "correctly flash UBI images" is the correct formulation here. > In other words, enabling this option at buildtime has no countereffects. > So there is no point in making it configurable at runtime, if support > has been built into U-boot. > > [1]: http://www.linux-mtd.infradead.org/faq/ubifs.html#L_free_space_fixup So what if I want to write raw NAND image without "trimffs" on such a system via DFU, e.g. a bootloader ? How can I do that ?