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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user