[GIT] Pull request: u-boot-dfu (26.01.2020)
Marek Vasut
marex at denx.de
Mon Jan 27 14:03:23 CET 2020
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 (<lukma at denx.de>) 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 ?
More information about the U-Boot
mailing list