当前位置:网站首页>SD卡報錯“error -110 whilst initialising SD card
SD卡報錯“error -110 whilst initialising SD card
2022-07-06 03:05: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卡問題。
边栏推荐
- RobotFramework入门(二)appUI自动化之app启动
- Linear regression and logistic regression
- 主数据管理理论与实践
- Analyze menu analysis
- 2022工作中遇到的问题四
- Trends in DDoS Attacks
- [Chongqing Guangdong education] higher mathematics I reference materials of Southwest Petroleum University
- Communication between microservices
- QT release exe software and modify exe application icon
- Era5 reanalysis data download strategy
猜你喜欢

淘宝焦点图布局实战

【Kubernetes 系列】一文学会Kubernetes Service安全的暴露应用

八道超经典指针面试题(三千字详解)

RobotFramework入门(二)appUI自动化之app启动

IPv6 jobs
如何做好功能测试
![Huawei, H3C, Cisco command comparison, mind map form from the basic, switching, routing three directions [transferred from wechat official account network technology alliance station]](/img/3b/385d19e51340ecd6281df47b39f40c.png)
Huawei, H3C, Cisco command comparison, mind map form from the basic, switching, routing three directions [transferred from wechat official account network technology alliance station]

MySQL advanced notes

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

Eight super classic pointer interview questions (3000 words in detail)
随机推荐
Audio audiorecord binder communication mechanism
【若依(ruoyi)】设置主题样式
Which ecology is better, such as Mi family, graffiti, hilink, zhiting, etc? Analysis of five mainstream smart brands
Audio-AudioRecord Binder通信机制
建模规范:命名规范
[unity3d] GUI control
Deeply analyze the chain 2+1 mode, and subvert the traditional thinking of selling goods?
Web security SQL injection vulnerability (1)
C # create self host webservice
【概念】Web 基础概念认知
ERA5再分析资料下载攻略
Elimination games
Summary of Bible story reading
NR modulation 1
Classic interview question [gem pirate]
多态day02
2.12 simulation
My C language learning record (blue bridge) -- under the pointer
Installation and use tutorial of cobaltstrike-4.4-k8 modified version
华为、H3C、思科命令对比,思维导图形式从基础、交换、路由三大方向介绍【转自微信公众号网络技术联盟站】