256MB NOR

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

256MB NOR

694 Views
vidyasagartata
Contributor II

256MB NOR does not work in P2020.

Labels (1)
0 Kudos
Reply
1 Reply

509 Views
Pavel
NXP Employee
NXP Employee

Check the p2020rdb-pc.dtsi file.

Find the following:

                               reg = <0x0 0x0 0x8000000>;    

       /*     reg = <0x0 0x0 0x10000000>;    */

 

This file shows that NOR 128MBytes is used and virtual addresses are from 0 to 0x8000000.

 

Check the following in this file:

                               partition@ff00000 {

                                               /* This location must not be altered  */

                                               /* 512KB for u-boot Bootloader Image */

                                               /* 512KB for u-boot Environment Variables */

                                               reg = <0x0ff00000 0x00100000>;

 

This partition requires virtual address 0x0x0ff00000.

 

It looks like the following configuration should be used:

&lbc {

                nor@0,0 {

                               #address-cells = <1>;

                               #size-cells = <1>;

                               compatible = "cfi-flash";

                               reg = <0x0 0x0 0x8000000>;    

       /*     reg = <0x0 0x0 0x10000000>;    */

                               bank-width = <2>;

                               device-width = <1>;

 

                               partition@0 {

                                               /* This location must not be altered  */

                                               /* 256KB for Vitesse 7385 Switch firmware */

                                               reg = <0x0 0x00040000>;

                                               label = "NOR Vitesse-7385 Firmware";

                                               read-only;

                               };

 

                               partition@40000 {

                                               /* 256KB for DTB Image */

                                               reg = <0x00040000 0x00040000>;

                                               label = "NOR DTB Image";

                                };

 

                               partition@80000 {

                                               /* 3.5 MB for Linux Kernel Image */

                                               reg = <0x00080000 0x00780000>;

                                               label = "NOR Linux Kernel Image";

                               };

 

                               partition@800000 {

                                               /* 11MB for JFFS2 based Root file System */

                                               /*reg = <0x00400000 0x00b00000>;*/

                                               reg = <0x00800000 0x00B00000>; 

                       /*     reg = <0x00800000 0x10000000>; */

                                               label = "NOR JFFS2 Root File System";

                               };

 

                               partition@ff00000 {

                                               /* This location must not be altered  */

                                               /* 512KB for u-boot Bootloader Image */

                                               /* 512KB for u-boot Environment Variables */

                                               /* 1MB */

                                               reg = <0x01300000 0x00100000>;

                                               label = "NOR U-Boot Image";

                                               read-only;

                               };

                };


Have a great day,
Pavel Chubakov

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

0 Kudos
Reply