UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Adventurer
Adventurer
360 次查看
注册日期: ‎11-23-2018

SD卡启动 sdhci_send_command: MMC: 0 busy timeout

大家好,我在用petalinux2018.2做sd卡启动程序的时候,发现出现如下问题:

 

环境:petalinux2018.2 vivado2018.2 zu3

 

U-Boot 2018.01 (Apr 25 2019 - 01:05:10 +0800) Xilinx ZynqMP ZCU102 rev1.0

I2C:   ready
DRAM:  2 GiB
EL Level:	EL2
Chip ID:	zu3eg
MMC:   sdhci@ff170000: 0
sdhci_send_command: MMC: 0 busy timeout increasing to: 200 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 400 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 800 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 1600 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 3200 ms.
sdhci_send_command: MMC: 0 busy timeout.
sdhci_send_command: MMC: 0 busy timeout.
mmc_init: -70, time 7439
** Bad device mmc 0 **
Using default environment

In:    serial@ff010000
Out:   serial@ff010000
Err:   serial@ff010000
Model: ZynqMP template
Board: Xilinx ZynqMP
Bootmode: SD_MODE1
Net:   ZYNQ GEM: ff0e0000, phyaddr ffffffff, interface rgmii-id
eth0: ethernet@ff0e0000

ethernet@ff0e0000 Waiting for PHY auto negotiation to complete......................................... TIMEOUT !
Hit any key to stop autoboot:  0 
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
mmc_init: -70, time 3254
** Bad device mmc 0 **
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
mmc_init: -70, time 3254
ZynqMP> 

 

之前在使用没有问题,sd卡能够启动,并且进入rootfs。最新做的程序(boot.bin image.ub)出现上述问题,但更换为之前的boot.bin image.ub 就可以正常启动。

 

 

0 项奖励
2 条回复2
Xilinx Employee
Xilinx Employee
333 次查看
注册日期: ‎05-11-2010

回复: SD卡启动 sdhci_send_command: MMC: 0 busy timeout

你前面的boot.bin和image.ub也是petalinux 2018.2生成的么?基于同一个hdf文件?你最好先做一下交叉实验,判断一下是fsbl初始化sd controller有问题还是u-boot有问题。比如在sdk里面生成xilffs library example的application,然后和fsbl生成boot.bin就可以在standalone环境下测试sd,这个测试会format sd卡然后在sd卡里创建一个文件,所以请保存好sd卡里原有的文件。

下面这个article是MPSoC器件的SD checklist,看一下吧。

https://www.xilinx.com/support/answers/69006.html

0 项奖励
Adventurer
Adventurer
323 次查看
注册日期: ‎11-23-2018

回复: SD卡启动 sdhci_send_command: MMC: 0 busy timeout

@yzhang 

 

都是petalinux2018.2生成,但不是同一个hdf,区别只是pl端IP不同,ps配置完全一样。

 

换了一张sd卡起来了。

0 项奖励