How to change the QSPI NOR size

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

How to change the QSPI NOR size

Jump to solution
1,530 Views
erickang
Contributor II

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.

Labels (3)
0 Kudos
1 Solution
910 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

View solution in original post

0 Kudos
3 Replies
911 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 Kudos
910 Views
igorpadykov
NXP Employee
NXP Employee

Hi Eric

one can change qspi size in configuration parameters, please check

IMX6SXRM Table 8-27 QuadSPI Configuration Parameters

Size.jpg

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!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
910 Views
erickang
Contributor II

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.

0 Kudos