当前位置:网站首页>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卡問題。
边栏推荐
- 1003 emergency (25 points), "DIJ deformation"
- 4. File modification
- 【若依(ruoyi)】设置主题样式
- Introduction to robotframework (III) Baidu search of webui automation
- tcpdump: no suitable device found
- 电机控制反Park变换和反Clarke变换公式推导
- 微服务间通信
- MySQL learning notes-10-tablespace recycling
- IPv6 jobs
- Briefly describe the implementation principle of redis cluster
猜你喜欢

My C language learning records (blue bridge) -- files and file input and output

Gifcam v7.0 minimalist GIF animation recording tool Chinese single file version

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

主数据管理理论与实践

RobotFramework入门(三)WebUI自动化之百度搜索

Network Security Learning - Web vulnerabilities (Part 1)

【 kubernets series】 a Literature Study on the Safe exposure Applications of kubernets Service

What is the investment value of iFLYTEK, which does not make money?

Apt installation ZABBIX

Fault analysis | analysis of an example of MySQL running out of host memory
随机推荐
Solve 9 with C language × 9 Sudoku (personal test available) (thinking analysis)
Microsoft speech synthesis assistant v1.3 text to speech tool, real speech AI generator
Technology sharing | what if Undo is too big
【若依(ruoyi)】设置主题样式
Codeforces 5 questions par jour (1700 chacune) - jour 6
【Unity3D】GUI控件
[network security interview question] - how to penetrate the test file directory through
Rust language -- iterators and closures
C语言sizeof和strlen的区别
2022工作中遇到的问题四
PMP每日一练 | 考试不迷路-7.5
Is there a completely independent localization database technology
Audio audiorecord binder communication mechanism
Introduction to robotframework (I) brief introduction and use
Communication between microservices
Selenium share
My C language learning record (blue bridge) -- under the pointer
Yyds dry inventory comparison of several database storage engines
[ruoyi] ztree custom icon (iconskin attribute)
2.12 simulation