How to change the QSPI NOR size

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to change the QSPI NOR size

ソリューションへジャンプ
1,537件の閲覧回数
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 解決策
917件の閲覧回数
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 返答(返信)
918件の閲覧回数
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 件の賞賛
917件の閲覧回数
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 件の賞賛
917件の閲覧回数
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 件の賞賛