Issue on eMMC boot with imx6sx

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

Issue on eMMC boot with imx6sx

4,644 Views
jingyangxie
Contributor V

Hi,all

     we have a problem with boot on emmc,when I use mfgtool(linux 3.14.52) to download the image ,the ternimal logged as followed:

   sdhci: Tuning procedure failed, falling back to fixed sampling clock
   mmc3: tuning execution failed
   mmc3: error -5 whilst initialising MMC card
   mmc3: BKOPS_EN bit is not set
   mmc3: tuning execution failed
   mmc3: error -5 whilst initialising MMC card

can anyone have the same problem?

Labels (2)
0 Kudos
18 Replies

3,305 Views
igorpadykov
NXP Employee
NXP Employee

Hi  jingyang

tuning is used for emmc v.4.5, 5.0, one can check if signal levels

are 1.8V and complies with datasheet sect.4.12.5.4 HS200 Mode Timing

i.MX6SX Datasheet
https://www.nxp.com/docs/en/data-sheet/IMX6SXCEC.pdf

Signal shape may be tweaked changing pad settings in pinctrl_usdhc4_1_200mhz

linux/arch/arm/boot/dts/imx6sx-sdb-emmc.dts

linux-imx.git - i.MX Linux Kernel 

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

0 Kudos

3,305 Views
jingyangxie
Contributor V

Hi,igor

   thanks for your answer,the board now can recognize the emmc(in sd4),but the download cannot be finished ,it stoped at "cpu id  is 0",there are some message:

mmc3: new HS200 MMC card at address 0001
mmcblk3: mmc3:0001 P1XXXX 7.20 GiB
mmcblk3boot0: mmc3:0001 P1XXXX partition 1 2.00 MiB
mmcblk3boot1: mmc3:0001 P1XXXX partition 2 2.00 MiB
mmcblk3rpmb: mmc3:0001 P1XXXX partition 3 128 KiB
mmcblk3: unknown partition table
mmcblk3boot1: unknown partition table
mmcblk3boot0: unknown partition table
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
Registering SWP/SWPB emulation handler
SWBST: disabling
usb_otg1_vbus: disabling
VCC_SD3: disabling
regulator-dummy: disabling
imx mcc test is registered.
Number of LUNs=8
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
Number of LUNs=1
LUN: removable file: (no medium)
Number of LUNs=1
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: g_mass_storage ready
snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
ALSA device list:
No soundcards found.
Freeing unused kernel memory: 380K (808bd000 - 8091c000)
Starting UTP
uuc 0.5 [built Dec 3 2015 08:26:46]
UTP: Waiting for device to appear
UTP: file/device node /dev/utp already exists
cpu_id is 0

0 Kudos

3,305 Views
igorpadykov
NXP Employee
NXP Employee

Hi  jingyang

please check that usb_id is floating or high.

Best regards
igor

0 Kudos

3,305 Views
jingyangxie
Contributor V

Hi,igor

    I check that the usb_id is floating,and the voltage is 3.3V,is there any possibility which cause the download process stopped at "cpu_id is 0"?

0 Kudos

3,305 Views
jingyangxie
Contributor V

the problem is solved

0 Kudos

3,305 Views
wenbochen
Contributor I

Hi, Jingyang Xie, I have the same problem as yours, so, can you tell me how to solve it? Thanks. 

0 Kudos

3,305 Views
jingyangxie
Contributor V

Hi,wenbo

which problem did you have?

0 Kudos

3,305 Views
wenbochen
Contributor I

Hi jingyang, the problem is that, when I burn image on imx6q-sabresd using MFGtools, but it stop here: 

Freeing unused kernel memory: 296K (80bdf000 - 80c29000)
Starting UTP
mknod: /dev/tty0: File exists
ln: /etc/mtab: File exists
disable turn off display
Starting udev
udevd[158]: starting version 182
uuc 0.4 [built Apr 5 2014 08:45:57]
UTP: Waiting for device to appear
UTP: file/device node /dev/utp already exists
cpu_id is 0

I have no idea about this, can u give me some help ? :smileyhappy:

0 Kudos

3,305 Views
jingyangxie
Contributor V

我之前遇到这个问题是硬件问题,把OTG电路里面的某个电阻拆掉了,这个硬件工程师处理的,我问他,他完全忘了,不好意思哈

0 Kudos

3,305 Views
wenbochen
Contributor I

不过还是要谢谢,我这板子可以下载原厂的其他内核,我新编译的内核却下载不了,估计是软件设置的问题,和您的不一样,我再查查资料把。 :smileyhappy:

0 Kudos

3,305 Views
jingyangxie
Contributor V

在firmware里面放原版内核,在files里面放新编译的内核,应该可以烧进去

jingyang xie

邮箱:17702710280@163.com

|

签名由 网易邮箱大师 定制

0 Kudos

3,305 Views
wenbochen
Contributor I

您好,刚刚尝试了一下,串口输出内容如下:

首先是原版的firmware所有文件:

......

mmc2: unrecognised EXT_CSD revision 7

mmc2: error -22 whilst initialising MMC card

mmc2: unrecognised EXT_CSD revision 7

mmc2: error -22 whilst initialising MMC card

Galcore version 4.6.9.9754

mmc2: unrecognised EXT_CSD revisio

0 Kudos

3,305 Views
jingyangxie
Contributor V

你不是说原版的可以下进去吗?

jingyang xie

邮箱:17702710280@163.com

|

签名由 网易邮箱大师 定制

0 Kudos

3,305 Views
wenbochen
Contributor I

hi,尝试多次可下载成功,但是又出现  Waiting for root device /dev/mmcblk3p2, 需要另外找资料了。:)

0 Kudos

3,305 Views
jingyangxie
Contributor V

嗯嗯,只要硬件没什么问题,这个下载还是比较简单的

0 Kudos

3,305 Views
wenbochen
Contributor I

不好意思哈,表达有误。

之前我说的原版的是这个板子原厂的,内核是3.0.35。

刚刚您说的原版的是下载mfgtool时一起的那个uImage吗?

那现在我再试试原厂给的uImage,发现还是不行,直接在“Galcore version 4.9.2.9754” 处停止。

0 Kudos

3,305 Views
jingyangxie
Contributor V

你是用mfgtool下载的吗?

jingyang xie

邮箱:17702710280@163.com

|

签名由 网易邮箱大师 定制

0 Kudos

3,305 Views
wenbochen
Contributor I

是的,从官网下的针对3.10.17的mfgtool。

0 Kudos