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!
04-26-2019 10:10 AM - 编辑日期 04-26-2019 10:26 AM
大家好,我在用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 就可以正常启动。
修改时间 04-26-2019 11:16 AM
你前面的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,看一下吧。