uboot-mtk-20220606: fix read nor again

should read fit size instead of page size.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2024-10-14 19:31:06 +08:00
committed by hanwckf
parent eeb1ebb91c
commit 45c8c841d2

View File

@@ -202,7 +202,7 @@ int boot_from_snor(struct spi_flash *snor, u32 offset)
if (size <= 0x2000) {
/* Load FDT header into memory */
ret = snor_read_generic(snor, offset, (void *)data_load_addr,
snor->page_size);
size);
if (ret)
return ret;