Dear All,
I want to know how to change the QSPI NOR Size.
Our development environment is like as below,
- Device/Board : i.MX6SX-SabreSD
- OS : Linux 3.10.53
- Nor Device : Micron N25Q512A13GF840F
Actually, default NOR in i.MX6SX-SabreSD is Micron N25Q256A13EF840,
the N25Q256A13EF840 is pin-to-pin with N25Q512A13GF840F.
We have to change the Size because of RootFS size.
Best Regards,
Eric.
Solved! Go to Solution.
Hi Eric
one can change qspi size in configuration parameters, please check
IMX6SXRM Table 8-27 QuadSPI Configuration Parameters
also one can look at
Linux/Documentation/devicetree/bindings/mtd/partition.txt - Linux Cross Reference - Free Electrons
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
Thanks for your response.
I checked the "Serial Flash A1 size" in "Table 8-27. QuadSPI Configuration Parameters".
I think I will apply the changed Serial Flash Size if I apply the below 2 items.
Is this right?
1) Modify Serial Flash Configuration File
- change qspi-nor-micron-n25q256a-config to qspi-nor-micron-n25q512a-config
- modified contents
. 4000000 /*sflash_A1_size=size in byte(hex) : 64MB = 512Mb = 0x0400.0000 */
. 0 /*sflash_A2_size=size in byte(hex)*/
. 4000000 /*sflash_B1_size=size in byte(hex) : 64MB = 512Mb = 0x0400.0000 */
. 0 /*sflash_B2_size=size in byte(hex)*/
- change cfg.ini in MFGTool
. [variable]
norconfig=qspi-nor-micron-n25q512a-config
2) Change Partition
- change Partition in Linux boot command line or u-boot environment like as below,
mtdparts=21e4000.qspi:1m(uboot),8m(kernel),1m(dtb),-(user)
Best Regards,
Eric.