当前位置:网站首页>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卡问题。
边栏推荐
- 全国大学生信息安全赛创新实践赛初赛---misc(永恒的夜)
- How does yyds dry inventory deal with repeated messages in the consumption process?
- The difference between sizeof and strlen in C language
- Modeling specifications: naming conventions
- 手写数据库客户端
- Game theory matlab
- Atcoder beginer contest 233 (a~d) solution
- [network security interview question] - how to penetrate the test file directory through
- Day 50 - install vsftpd on ceontos6.8
- My C language learning record (blue bridge) -- under the pointer
猜你喜欢

华为、H3C、思科命令对比,思维导图形式从基础、交换、路由三大方向介绍【转自微信公众号网络技术联盟站】

2022工作中遇到的问题四
![[ruoyi] enable Mini navigation bar](/img/28/a8b38aecd90c8ddc98333f0e2d3eab.png)
[ruoyi] enable Mini navigation bar

Misc (eternal night), the preliminary competition of the innovation practice competition of the National College Students' information security competition

js 正则过滤和增加富文本中图片前缀

Linear regression and logistic regression

#PAT#day10

微服务注册与发现

Microsoft speech synthesis assistant v1.3 text to speech tool, real speech AI generator

Universal crud interface
随机推荐
【Unity3D】GUI控件
Jenkins basic knowledge ----- detailed explanation of 03pipeline code
Huawei, H3C, Cisco command comparison, mind map form from the basic, switching, routing three directions [transferred from wechat official account network technology alliance station]
PMP practice once a day | don't get lost in the exam -7.5
1. Dynamic parameters of function: *args, **kwargs
RobotFramework入门(二)appUI自动化之app启动
Apt installation ZABBIX
Installation and use tutorial of cobaltstrike-4.4-k8 modified version
[unity3d] GUI control
Prototype design
[ruoyi] ztree custom icon (iconskin attribute)
[Yu Yue education] basic reference materials of digital electronic technology of Xi'an University of Technology
Qt发布exe软件及修改exe应用程序图标
resulttype和resultmap的区别和应用场景
Audio-AudioRecord Binder通信机制
建模规范:命名规范
【Kubernetes 系列】一文學會Kubernetes Service安全的暴露應用
Redis cluster deployment based on redis5
Performance test method of bank core business system
Is there a completely independent localization database technology