6 Modify file system details in menuconfig to boot from NAND Flash
- Enter the following command to modify
                the
                configurations:
$ make menuconfigThe configuration window opens.
 - From the menu, select Filesystem
                    images and press Enter.
                - In the Filesystem
                            images window, ensure the ubi image containing an ubifs root
                            filesystem checkbox is enabled. If not, select it and press ‘Y’ to
                            enable.
                         - In the Filesystem
                            images window, select physical eraseblock size and press
                            Enter.
                         - Update the physical
                            eraseblock size to 0x40000 and press Enter. The physical
                        erase block size is the NAND Flash block size in bytes.
                         - In the Filesystem images window, select sub-page size and press Enter.
 - Update the sub-page
                            size to 4096 and press Enter. Some NAND Flash devices support
                        sub-pages,and some do not. Those that do not must be updated with the actual
                        page size as the sub-page size.
                         - In the Filesystem images window, ensure ubifs root filesystem is enabled. If not, select it and press ‘Y’ to enable.
 - In the Filesystem images window, select logical eraseblock size and press Enter.
 - Update the logical
                            eraseblock size to 0x3E000 and press Enter. The logical
                        eraseblock size is calculated by subtracting two pages from the physical
                        eraseblock size (LEB = PEB – 8192). Each of the two pages contains an EC
                        header and a VID header.Note: This calculation is applicable only for a NAND Flash which does not support sub-pages. For a NAND Flash supporting sub-pages, the calculation varies with the sub-page size.
                         - In the Filesystem images window, select minimum I/O unit size and press Enter.
 - Update the minimum I/O
                            unit size to 0x1000 and press Enter. The minimum I/O unit
                        size is equivalent to the NAND Flash device page size.
                         - In the Filesystem images window, select maximum logical eraseblock count and press Enter.
 - Update the maximum logical
                            eraseblock count to 2048 and press Enter. The maximum logical
                        eraseblock count is the total number of blocks of the NAND Flash
                                device.

 - Press ESC twice to exit the menu.
 
 - In the Filesystem
                            images window, ensure the ubi image containing an ubifs root
                            filesystem checkbox is enabled. If not, select it and press ‘Y’ to
                            enable.
 - Select Exit and press
                    Enter.
- Click Yes.

 
 - Click Yes.
 
