Other Parts Discussed in Thread: PMP,
Hi
In the custom board our spi nor flash has been changed from 32mb to 64mb. Part no S25FL512SDSMFBG10.
WE have changed the device tree with the following:
&qspi {
status = "okay";
spi-max-frequency = <76800000>;
m25p80@0 {
compatible = "s25fl512s"; -------------------------Changed from s25fl256s1
spi-max-frequency = <76800000>;
reg = <0>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
#address-cells = <1>;
#size-cells = <1>;
/* MTD partition table.
* The ROM checks the first four physical blocks
* for a valid file to boot and the flash here is
* 64KiB block size.
*/
partition@0 {
label = "QSPI.SPL";
reg = <0x00000000 0x000040000>;
};
partition@1 {
label = "QSPI.u-boot";
reg = <0x00040000 0x00100000>;
};
partition@2 {
label = "QSPI.u-boot-spl-os";
reg = <0x00140000 0x00080000>;
};
partition@3 {
label = "QSPI.u-boot-env";
reg = <0x001c0000 0x00010000>;
};
partition@4 {
label = "QSPI.u-boot-env.backup1";
reg = <0x001d0000 0x0010000>;
};
partition@5 {
label = "QSPI.kernel";
reg = <0x001e0000 0x0800000>;
};
partition@6 {
label = "QSPI.file-system";
reg = <0x009e0000 0x01620000>;
};
I am getting the following logs:
m25p80 spi32766.0: s25fl512s (65536 Kbytes)
[ 1.400897] 7 ofpart partitions found on MTD device spi32766.0
[ 1.406778] Creating 7 MTD partitions on "spi32766.0":
[ 1.411941] 0x000000000000-0x000000040000 : "QSPI.SPL"
[ 1.418122] 0x000000040000-0x000000140000 : "QSPI.u-boot"
[ 1.424479] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
[ 1.431476] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
[ 1.437270] mtd: partition "QSPI.u-boot-env" doesn't end on an erase block -- force read-only
[ 1.446744] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
[ 1.453215] mtd: partition "QSPI.u-boot-env.backup1" doesn't start on an erase block boundary -- force read-only
[ 1.464375] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
[ 1.469821] mtd: partition "QSPI.kernel" doesn't start on an erase block boundary -- force read-only
[ 1.479923] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
[ 1.485803] mtd: partition "QSPI.file-system" doesn't start on an erase block boundary -- force read-only
Can anyone tell me why the following blocks are turning read only. I am not able to write those partitions.We need to boot from SPI
I have tried disabling the config CONFIG_MTD_SPI_NOR_USE_4K_SECTORS but the result is same.
Thanks
Deepika

