MLK-22259-4: mx6dlsabreauto: configs: add default mtdids and mtdparts configs
authorHan Xu <han.xu@nxp.com>
Fri, 12 Jul 2019 21:19:56 +0000 (16:19 -0500)
committerHan Xu <han.xu@nxp.com>
Tue, 16 Jul 2019 03:25:28 +0000 (22:25 -0500)
set the i.MX6DL 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 912384
Device nor0 not found!
current device is invalid, skip it and check the next one
device 0 offset 0x0, size 0x912384
Erasing at 0x3f00000 -- 100% complete.
NAND fw write: 0x200000 offset, 0x916000 bytes written: OK

Signed-off-by: Han Xu <han.xu@nxp.com>
configs/mx6dlsabreauto_nand_defconfig

index b70b7e9..e3ea6b2 100644 (file)
@@ -12,6 +12,9 @@ CONFIG_NAND=y
 CONFIG_NAND_MXS=y
 CONFIG_NAND_MXS_DT=y
 CONFIG_ENV_IS_IN_NAND=y
+CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nor0=8000000.nor,nand0=gpmi-nand"
+CONFIG_MTDPARTS_SKIP_INVALID=y
 CONFIG_BOOTDELAY=3
 # CONFIG_CONSOLE_MUX is not set
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y