AnsweredAssumed Answered

P1020WLAN - Extended storage

Question asked by Sunder Kumaresan on Jun 3, 2016
Latest reply on Aug 8, 2016 by abinesh selvaraj

P1020WLAN-AP board is booting from the on-board NOR flash. The current jumper settings is default to use on-board NAND flash as the extended storage with booting up with NOR Flash.  With P1020wlan.dtb, the NAND partition is not recognized.

P1020wlan.dtb did not contain specification for NAND flash at chip select 1.  It has been modified in the DTB file as given below through dts file.

 

       localbus@ffe05000 {

              reg = <0x0 0xffe05000 0x0 0x1000>;

              ranges = <0x0 0x0 0x0 0xec000000 0x4000000 0x1 0x0 0x0 0xff800000 0x40000 0x2 0x0 0x0 0xffb00000 0x20000>;

              #address-cells = <0x2>;

              #size-cells = <0x1>;

              compatible = "fsl,p1020-elbc", "fsl,elbc", "simple-bus";

              interrupts = <0x13 0x2 0x0 0x0 0x10 0x2 0x0 0x0>;

 

              nor@0,0 {

                     #address-cells = <0x1>;

                     #size-cells = <0x1>;

                     compatible = "cfi-flash";

                     reg = <0x0 0x0 0x4000000>;

                     bank-width = <0x2>;

                     device-width = <0x1>;

 

                     partition@0 {

                           reg = <0x0 0x20000>;

                           label = "NOR DTB Image";

                     };

 

                     partition@20000 {

                           reg = <0x20000 0x3e0000>;

                           label = "NOR Linux Kernel Image";

                     };

 

                     partition@400000 {

                           reg = <0x400000 0x3a00000>;

                           label = "NOR Root File System";

                     };

 

                     partition@3e00000 {

                           reg = <0x3e00000 0x100000>;

                           label = "NOR Vitesse-7385 Firmware";

                           read-only;

                     };

 

                     partition@3f00000 {

                           reg = <0x3f00000 0x100000>;

                           label = "NOR U-Boot Image";

                           read-only;

                     };

              };

 

             nand@1,0 {

                     #address-cells = <0x1>;

                     #size-cells = <0x1>;

                     compatible = "fsl,p1020-fcm-nand", "fsl,elbc-fcm-nand";

                     reg = <0x1 0x0 0x40000>;

 

                     partition@0 {

                           reg = <0x0 0x100000>;

                           label = "NAND U-Boot Image";

                           read-only;

                     };

              };

 

              L2switch@2,0 {

                     #address-cells = <0x1>;

                     #size-cells = <0x1>;

                     compatible = "vitesse-7385";

                     reg = <0x2 0x0 0x20000>;

              };

       };

 

.

The following kernel configuration have been enabled.

CONFIG_MTD_NAND_FSL_IFC

CONFIG_MTD_NAND

CONFIG_MTD_NAND_ECC

CONFIG_MTD_NAND_FSL_ELBC

With this changes, the NAND partition is not being probed and listed under ‘/proc/mtd’. But the NOR partitions (as provided in DTS) is visible. What would be other settings required to enable the NAND partition and use it as extended storage?

Outcomes