Hi slesne,
thank you for the information
I saw this patch only spansion.c change, now I also use this version for the preloader and u-boot + i added some modifications
in uboot-socfpga/drivers/mtd/spi/spansion.c
1. Replace
flash->sector_size = 256 * params->pages_per_sector;
With:
flash->sector_size = 512 * params->pages_per_sector;
2. I added
{
.idcode1 = 0x0220,
.idcode2 = 0x4d00,
.pages_per_sector = 512,
.nr_sectors = 256,
.name = "S25FL512S",
},
Also change the following in uboot-socfpga/include/configs/socfpga_common.h:
From this:
# define CONFIG_CQSPI_PAGE_SIZE (256)
To this:
# define CONFIG_CQSPI_PAGE_SIZE (512)
but i still have the same problem so run the preloader code step by step with the debugger
i stop at this line (line 191 in spl.c)
image_entry((u32 *)boot_params_ptr);
I think my changes to support this flash are not good to jump to the next image