[PATCH 22.03 1/4] ath79: switch some RedBoot based devices to OKLI loader

Tomasz Maciej Nowak tmn505 at gmail.com
Tue Jul 5 08:09:06 PDT 2022

W dniu 5.07.2022 o 12:21, Thibaut VARÈNE pisze:
> Hi,


> Have you considered if CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE[1] could maybe help there?
> It seems to address a similar issue (write-access to a 4K partition with 64K EB size).

That's a no-go, as in this particular case we would need to ignore hw capabilities of the flash. The FIS partition (something like partition table) is 1 KiB in size, that is compilation time setting for the bootloader, which can't be changed later, and the smallest erase size for flash chips on these boards is 4 KiB. To make matters worse this partition shares same erase block (64KiB) with another partition, both need to be valid and present for RedBoot not to interrupt the boot. So I couldn't see any faster option as to use OKLI, which could make the kernel partition constant in terms of size, so we don't have to fiddle with FIS partition anymore.
> [1] from pending-5.10/402-mtd-spi-nor-write-support-for-minor-aligned-partitions.patch
> HTH,
> T.



More information about the openwrt-devel mailing list