AnsweredAssumed Answered

no MTD partitions for QSPI flash

Question asked by mlt1 mlt1 on May 9, 2019
Latest reply on May 20, 2019 by Pavel Chubakov

Hi Yiping,

 

    I am working on the LS1043A with the SDK2.0. The MTD partitions on QSPI flash was configured in the DTS file, but when the linux was running normally, I didn't find any expected MTD partitions in /proc/mtd. During Linux startup, no exception related to QSPI flash occurred.
   So please help me to confirm whether the SDK2.0 supports MTD partitioning for QSPI flash. If not, p
lease kindly tell me how to solve this problem.

 

worklogs as follows: 

 

root@localhost:/proc# cat mtd 
dev: size erasesize name 
mtd0: 00800000 00010000 "1550000.quadspi" 
root@localhost:/proc# 

 

linux startup log: 
...... 
ata1: SATA max UDMA/133 mmio [mem 0x03200000-0x0320ffff] port 0x100 irq 32 
fsl-quadspi 1550000.quadspi: m25p64v (8192 Kbytes) 
libphy: Fixed MDIO Bus: probed 
........ 

 

DTS file related to QSPI: 

 

&qspi { 
num-cs = <2>; 
bus-num = <0>; 
status = "okay"; 
fsl,ddr-sampling-point = <4>; 

 

qflash0: m25p64@0 { 
compatible = "st,m25p64"; 
#address-cells = <1>; 
#size-cells = <1>; 
spi-max-frequency = <50000000>; 
ddr-quad-read; 
reg = <0>; 

 

/* 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 = "RCW"; 
reg = <0x00000000 0x000100000>; 
}; 
partition@1 { 
label = "u-boot"; 
reg = <0x00100000 0x00400000>; 
}; 
partition@2 { 
label = "FMAN"; 
reg = <0x00500000 0x00100000>; 
}; 
partition@3 { 
label = "PPA"; 
reg = <0x00600000 0x00100000>; 
}; 
partition@4 { 
label = "data"; 
reg = <0x00700000 0x00100000>; 
}; 
}; 
}; 

 


Thanks.
Best regards.

Outcomes