[imx6] NAND boot must be enable WEIM ?

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

[imx6] NAND boot must be enable WEIM ?

1,064 Views
yunbaekim
Contributor II

Hello

I have to use I2C3 for flexCAN.

But I2C3 conflict with WEIM.

So disabled weim

imx6dl-sabreauto-gpmi-weim.dts

/*

* Copyright (C) 2014 Freescale Semiconductor, Inc.

*

* This program is free software; you can redistribute it and/or modify

* it under the terms of the GNU General Public License version 2 as

* published by the Free Software Foundation.

*/

#include "imx6dl-sabreauto.dts"

&ecspi1 {

  /* pin conflict with weim */

  status = "disabled";

};

&flexcan1 {

  /* kyb_16 */

  status = "okay";

};

&flexcan2 {

  /* max7310_c on i2c3 is gone */

  status = "disabled";

};

&gpmi {

  status = "okay";

};

&i2c3 {

  /* pin conflict with weim */

  status = "okay"; // kyb_16

};

&uart3 {

  /* pin conflict with gpmi and weim */

  status = "disabled";

};

&usbh1 {

  /* max7310_b on i2c3 is gone */

  status = "disabled";

};

&usbotg {

  dr_mode = "peripheral";

  status = "disabled"; // kyb_16

};

&weim {

  pinctrl-assert-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;

  status = "disabled"; // kyb_16

};

 

and it occured ERROR bellow

UBI error: ubi_init: cannot open mtd 4, error -19
input: gpio-keys.18 as /devices/soc0/gpio-keys.18/input/input1
snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:02 UTC (2)
ALSA device list:
   #0: cs42888-audio
   #1: imx-spdif
   #2: imx-hdmi-soc
UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
Please append a correct "root=" boot option; here are the available partitions:
1f00           65536 mtdblock0  (driver?)
1f01           16384 mtdblock1  (driver?)
1f02           16384 mtdblock2  (driver?)
1f03         4096000 mtdblock3  (driver?)
b300        30375936 mmcblk2  driver: mmcblk
   b301            8192 mmcblk2p1 1ef0813e-01
   b302          819200 mmcblk2p2 1ef0813e-02

 

I attached 2 Log files.

case1 log file is

     - Disabled i2c3 . Enabled WEIM. =>Booting is success.

case2 log file is

     - Enabled i2c3. Disabled WEIM. =>Booting is fail.

 

please help...

 

- imx6dlsabreauto
- Linux 3.14.
- MFGTool (imx3.14.) / mfgtool2-yocto-mx6-sabreauto-nand.vbs

Original Attachment has been moved to: case2_BOOT_XNANDi2c3_Xweim_O.txt.zip

Original Attachment has been moved to: NAND_Writing_Log.txt.zip

Original Attachment has been moved to: case1_BOOT_ONANDi2c3_Oweim_X.txt.zip

Labels (1)
0 Kudos
3 Replies

599 Views
andreykononov
Contributor III

are you solved this problem? i get the same

0 Kudos

599 Views
andreykononov
Contributor III

I found a solution

change u-boot cmd for kernel from

console=ttymxc3,115200 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),-(rootfs)

to

console=ttymxc3,115200 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),-(rootfs)

0 Kudos

599 Views
igorpadykov
NXP Employee
NXP Employee

Hi yunbaekim

could you try to disable eim also in uboot, undefining

#define CONFIG_SYS_USE_EIMNOR in uboot/include/configs/mx6sabre_common.h

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos