Hello,
I have mounted NAND chip in IMX7 sabreSD board. Now I am trying to detect NAND in u-boot and kernel image. Also I want check NAND boot. In u-boot, I configured .config file from "mx7dsabresd_nand_defconfig and built the u-boot. But NAND boot is not working. It seems my NAND device is not detected in the u-boot. Output of nand device command is as below.
=> nand device
no devices available
Is NAND support is already there in the u-boot code? Your ideas/suggestion will be much appreciated.
Cheers,
Gopinath S
hi. did you solve this problem? how to config for use nand ???
what mx7 board you use? as I known, mx7 TO1.0 has issue for nand booting
Hi Joan,
I am a beginner for MCIMX7SABRE board and plan to boot from NAND flash too.
It seems like I have to modify following items to support NAND flash boot. Please kindly advice if any items I missed. Thanks.
Software:
1. Menu config for linux as below
(3.4.2.7 Menu Configuration Options of i.MX_Linux_Reference_Manual.pdf)
CONFIG_MTD_NAND = y
...
CONFIG_MTD_UBI = y
...
2. Do I have to set BOOT_FROM of imximage.cfg to nand?
(imx7-bsp-4.9.11-1/build-fb/tmp/work/imx7dsabresd-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/board/freescale/mx7dsabresd/imximage.cfg)
3. Do I have to modify DTS for NADN flash?
Regards,
Jordan
Sorry, Add following item.
4. set UBOOT_CONFIG in local.conf to "nand" (i.MX_Yocto_Project_User's_Guide.pdf)
Regards,
Jordan
Hi Joan,
I am using MCIMX7SABRE board. By default it has only NAND expansion. Not only NAND booting, I am also facing issues in detecting the NAND chip in u-boot. I enabled NAND driver by setting CONFIG_NAND_MXS=y in def_config file. Is that enough or I need to add few more support for detecting NAND ?
pls check your imx7s part number on your board, if not TO1.0, then you need to configure the NAND in the uboot and kernel, for imx7s, we suggest you to use MT29F32G08CBADB,refer to the linux reference manual, 3.4.2.7 Menu Configuration Options
To enable the NAND driver, the following options must be set:
• CONFIG_IMX_HAVE_PLATFORM_GPMI_NAND= [Y]
• CONFIG_MTD_NAND_GPMI_NAND= [Y | M]
In addition, these MTD options must be enabled:
• CONFIG_MTD_NAND = [y | m]
• CONFIG_MTD = y
• CONFIG_MTD_PARTITIONS = y
• CONFIG_MTD_CHAR = y
• CONFIG_MTD_BLOCK = y
In addition, these UBI options must be enabled:
• CONFIG_MTD_UBI=y
• CONFIG_MTD_UBI_WL_THRESHOLD=4096
• CONFIG_MTD_UBI_BEB_RESERVE=1
• CONFIG_UBIFS_FS=y
Chapter 3 Storage
• CONFIG_UBIFS_FS_LZO=y
• CONFIG_UBIFS_FS_ZLIB=y