no MTD partitions for QSPI flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

no MTD partitions for QSPI flash

1,458 Views
mlt1mlt1
Contributor I

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.

0 Kudos
2 Replies

1,242 Views
Pavel
NXP Employee
NXP Employee

The LS1043ARDB board does not have QSPI Flash.

I have tested the LS1046ARDB board. This board contains two QSPI NOR Flashes.

Attached file contains snapshot for the "cat /proc/mtd" command.

This snapshot shows that NXP Linux BSP supports MTD partition.

See also attached .dts file for the LS1046ARDB board.


Have a great day,
Pavel Chubakov

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,205 Views
IB2020
Contributor II

I wanted to write and read to qspi using mtd commands from linux space in LS1046ARDB Kit. I tried with mtd_debug command and it was coming as command not found

0 Kudos