当前位置:网站首页>SD卡报错“error -110 whilst initialising SD card
SD卡报错“error -110 whilst initialising SD card
2022-07-06 03:01:00 【xrdeng】
SD卡报错“error -110 whilst initialising SD card”
目前开发遇到了某些SD卡和TI的SOC芯片的驱动不协调的地方,具体表现为:
uboot 阶段初始化mmc dev 1 没有任何串口信息输出,无法读写mmc
Kernel阶段报错”SD卡初始化失败 error -110 whilst initialising SD card“
具体的原因是SD的某些CMD操作不支持,返回-110的错误,需要
uboot阶段,在dts中屏蔽掉:
main_sdhci1: [email protected] {
ti,otap-del-sel-legacy = <0x2>;
/*ti,otap-del-sel-sd-hs = <0xf>;
ti,otap-del-sel-sdr12 = <0xf>;
ti,otap-del-sel-sdr25 = <0xf>;
ti,otap-del-sel-sdr50 = <0xc>;
ti,otap-del-sel-sdr104 = <0x5>;
ti,otap-del-sel-ddr50 = <0xc>;
sdhci-caps-mask = <0x2 0x0>;*/
dma-coherent;
};
Kernel阶段,在drivers/mmc/host/sdhci.c 的函数 void __sdhci_read_caps 中添加:
host->quirks2 |= SDHCI_QUIRK2_NO_1_8_V;
主要是使能SDHCI_QUIRK2_NO_1_8_V
if (host->quirks2 & SDHCI_QUIRK2_NO_1_8_V) {
host->caps1 &= ~(SDHCI_SUPPORT_SDR104 | SDHCI_SUPPORT_SDR50 |
SDHCI_SUPPORT_DDR50);
/*
* The SDHCI controller in a SoC might support HS200/HS400
* (indicated using mmc-hs200-1_8v/mmc-hs400-1_8v dt property),
* but if the board is modeled such that the IO lines are not
* connected to 1.8v then HS200/HS400 cannot be supported.
* Disable HS200/HS400 if the board does not have 1.8v connected
* to the IO lines. (Applicable for other modes in 1.8v)
*/
mmc->caps2 &= ~(MMC_CAP2_HSX00_1_8V | MMC_CAP2_HS400_ES);
mmc->caps &= ~(MMC_CAP_1_8V_DDR | MMC_CAP_UHS);
}
重新编译u-boot和Kernel解决SD卡问题。
边栏推荐
- codeforces每日5題(均1700)-第六天
- Introduction to robotframework (III) Baidu search of webui automation
- OCR文字識別方法綜述
- Master data management theory and Practice
- Custom attribute access__ getattribute__/ Settings__ setattr__/ Delete__ delattr__ method
- How does yyds dry inventory deal with repeated messages in the consumption process?
- 银行核心业务系统性能测试方法
- Pure QT version of Chinese chess: realize two-man, man-machine and network games
- Taobao focus map layout practice
- 张丽俊:穿透不确定性要靠四个“不变”
猜你喜欢

解决:AttributeError: ‘str‘ object has no attribute ‘decode‘

C language - Blue Bridge Cup - promised score

PMP每日一练 | 考试不迷路-7.5

微软语音合成助手 v1.3 文本转语音工具,真实语音AI生成器

Modeling specifications: naming conventions

故障分析 | MySQL 耗尽主机内存一例分析

Eight super classic pointer interview questions (3000 words in detail)
![[ruoyi] set theme style](/img/e9/6a6b7113faed16c3b439230806320b.png)
[ruoyi] set theme style

Résumé des méthodes de reconnaissance des caractères ocr

"Hands on learning in depth" Chapter 2 - preparatory knowledge_ 2.5 automatic differentiation_ Learning thinking and exercise answers
随机推荐
[ruoyi] ztree custom icon (iconskin attribute)
深度解析链动2+1模式,颠覆传统卖货思维?
Deeply analyze the chain 2+1 mode, and subvert the traditional thinking of selling goods?
建模规范:命名规范
Introduction to robotframework (I) brief introduction and use
电机控制反Park变换和反Clarke变换公式推导
华为、H3C、思科命令对比,思维导图形式从基础、交换、路由三大方向介绍【转自微信公众号网络技术联盟站】
一个复制也能玩出花来
1003 emergency (25 points), "DIJ deformation"
Detailed use of dbutils # yyds dry goods inventory #
Spherical lens and cylindrical lens
Communication between microservices
Introduction to robotframework (III) Baidu search of webui automation
[ruoyi] enable Mini navigation bar
Atcoder beginer contest 233 (a~d) solution
2345文件粉碎,文件强力删除工具无捆绑纯净提取版
Differences and application scenarios between resulttype and resultmap
Network Security Learning - Web vulnerabilities (Part 1)
Single instance mode of encapsulating PDO with PHP in spare time
Classic interview question [gem pirate]