NAND

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

NAND

1,827 Views
scottwhitney
Contributor I

Hello,

I have a T1040RDB board that we have been booting our kernel out of the NOR flash.  I would like to use the NAND flash mounted as a drive to the kernel.  In the RDB board do you only have access to the NOR Flash or the NAND flash?

If that is the case I will want to boot out of the NAND flash instead.  If I use the NAND flash will that just use the same memory map as was used in for the NOR memory? Thanks, Scott

Labels (1)
0 Kudos
Reply
4 Replies

1,306 Views
scottwhitney
Contributor I

Yiping/Scott,

Thanks for your helpful answers.  I saw the NAND device in the .dtb file just as you listed above.  After booting I saw all the mtd devices in /proc/mtd.  I am still booting from the NOR flash, but just mounted the NAND RFS Image mtd device (mtdblock4) and now have some (500 MB) non-volatile storage on my T1040RDB.  Thanks again, Scott

0 Kudos
Reply

1,306 Views
huyho
Contributor III

Hi Scott Whitney, 

Please give me more detail! I am a newbie!

I plan to use LS1012A to design a board based on FRDM-LS1012A. I want to store uBoot in NOR FLASH, and store Linux OS in eMMC NAND FLASH.

I posted this question, but no one answer.

I read the document and found that LS1012A uBoot is saved in NOR Flash as default! How do I "use NAND addresses allocation coincidence with dts file, and use "nand read" to read images from NAND to RAM" ?

Thanks a lot!

Best regards,

Huy.

0 Kudos
Reply

1,306 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Scott Whitney,


You could use NAND addresses allocation coincidence with t1040rdb dts file, and use "nand read" to read images from NAND to RAM, boot Kernel from RAM. You also could adjust the memory allocation according to your requirement.

     nand@2,0 {
                   #address-cells = <1>;
                   #size-cells = <1>;
                   compatible = "fsl,ifc-nand";
                   reg = <0x2 0x0 0x10000>;

                   partition@0 {
                           /* This location must not be altered  */
                           /* 1MB for u-boot Bootloader Image */
                           reg = <0x0 0x00100000>;
                           label = "NAND U-Boot Image";
                           read-only;
                   };

                   partition@100000 {
                           /* 1MB for DTB Image */
                           reg = <0x00100000 0x00100000>;
                           label = "NAND DTB Image";
                   };

                   partition@200000 {
                           /* 10MB for Linux Kernel Image */
                           reg = <0x00200000 0x00A00000>;
                           label = "NAND Linux Kernel Image";
                   };

                   partition@C00000 {
                           /* 500MB for Root file System Image */
                           reg = <0x00c00000 0x1F400000>;
                           label = "NAND RFS Image";
                   };
           };


Have a great day,
Yiping

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

1,306 Views
scottwood
NXP Employee
NXP Employee

You should be able to access both NOR and NAND.

The method of access is totally different for NAND.  The flash contents are not memory mapped.  Only a small SRAM for I/O operations is mapped.