我正在Linux上开发MMC驱动程序。我的系统现在可以通过eMMC和SD卡稳定地启动了。但在引导过程中,我看到控制台上生成了一些错误。
[ 0.889357] mmc0: tuning execution failed: -5
[ 0.903700] mmc0: error -5 whilst initialising SD card
通过一些调试日志,
[ 0.976730] [DEBUG] mmc_sd_init_card
[ 1.143724] [DEBUG] mmc_execute_tuning
[ 1.219758] [DEBUG] tmio_mmc_execute_tuning: Tuning procedure failed = -5
[ 1.253255] [DEBUG] mmc_sd_init_uhs_card: err=-5
错误似乎来自SD卡初始化(UHS)。
尽管出现了这个错误,但在系统完成引导后,我仍然可以使用SD卡和eMMC。
我对错误"tuning execution“有点模棱两可。谁能解释它并提出修复建议?谢谢!
发布于 2019-03-13 13:01:47
有关更多详细信息,我在SD卡规范中进行了搜索
https://www.sdcard.org/downloads/pls/index.html
找出一些补丁可以解决我的问题。
https://patchwork.kernel.org/patch/9963437/
https://patchwork.kernel.org/patch/9998159/
我的董事会有:
+ sdhi0: used for sdcard 4-bit bus width
+ sdhi2: used for on-board 8bit eMMC
+ sd-uhs-sdr50: SD UHS SDR50 speed is supported
+ sd-uhs-sdr104: SD UHS SDR104 speed is supported
+ mmc-hs200-1_8v: eMMC HS200 mode(1.8V I/O) is supported
+ mmc-hs400-1_8v: eMMC HS400 mode(1.8V I/O) is supported
https://stackoverflow.com/questions/55113851
复制相似问题