[PATCH] cmd: sf: align erase and write on erase block boundary
Ye Li
ye.li at oss.nxp.com
Fri Sep 19 17:46:03 CEST 2025
在 2025/9/19 20:20, Marek Vasut 写道:
> On 9/19/25 9:01 AM, Ye Li wrote:
>> From: Viorel Suman <viorel.suman at nxp.com>
>>
>> Align erase and write on erase block boundary in line
>> with how read was aligned in commit 622b5d35613.
> What is the issue that is being fixed here ?
>
Previous commit 622b5d35613 tried to fix issue that offset is not sector
size aligned. But it only use the aligned offset read_offset for flash
read, not use it for erase and write. So still unaligned offset send to
spi_flash_erase and spi_flash_write.> What is the reproducer ?
>
If the address is neither page or sector aligned, we meet issue with
flash update
Best regards,
Ye Li> Details please .
More information about the U-Boot
mailing list