How to change the QSPI NOR size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to change the QSPI NOR size

跳至解决方案
1,540 次查看
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.

标签 (3)
0 项奖励
1 解答
920 次查看
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 项奖励
3 回复数
921 次查看
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 项奖励
920 次查看
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 项奖励
920 次查看
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 项奖励