MLK-22339: mx6qsabreauto: configs: add default mtdids and mtdparts
authorYang-yang Guo <alice.guo@nxp.com>
Sat, 3 Aug 2019 09:57:12 +0000 (17:57 +0800)
committerYang-yang Guo <alice.guo@nxp.com>
Sun, 4 Aug 2019 07:21:31 +0000 (15:21 +0800)
configs

set the i.MX6q default mtdids value as
"nor0=8000000.nor,nand0=gpmi-nand", nandbcb can directly write to the
nandboot partition after u-boot brings up.

=> nandbcb update $loadaddr nandboot 924672
Device nor0 not found!
current device is invalid, skip it and check the next one
device 0 offset 0x0, size 0x924672
Erasing at 0x3f00000 -- 100% complete.
NAND fw write: 0x200000 offset, 0x928000 bytes written: OK

Signed-off-by: Yang-yang Guo <alice.guo@nxp.com>
configs/mx6qsabreauto_nand_defconfig

index 5969eb3..1f5bffa 100644 (file)
@@ -8,6 +8,9 @@ CONFIG_NAND_BOOT=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_UBI=y
 CONFIG_MTD=y
+CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nor0=8000000.nor,nand0=gpmi-nand"
+CONFIG_MTDPARTS_SKIP_INVALID=y
 CONFIG_NAND=y
 CONFIG_NAND_MXS=y
 CONFIG_NAND_MXS_DT=y