现在项目采用了东芝MMCA Version 5.1 ,内核的mmc驱动支持出现些问题,log如下
[ 3.865587] Galcore version 5.0.11.25762
[ 3.960991] mmc3: unrecognised EXT_CSD revision 8
[ 3.965803] mmc3: error -22 whilst initialising MMC card
现在采取的解决方法是mmc.c if (card->ext_csd.rev > 6) 改成 > 8 但这应该不是好的解决方案
我们用的时候imx6q +android4.4.3 +linux3.10.53,有没有更好的解决方案 ?
Solved! Go to Solution.
Hi,
You do not need to modify other code. The emmc v4.5 is default supported and here we change the ext_csd.rev to make the emmc v5.1 work on emmc v4.5 mode. It's OK and can work well.
Have a great day,
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
你好,我也在使用东芝的emmc ver5.1 芯片 我按你说的方法修改了代码,但是还是不能启动,目前报错是
mmc0: starting CMD6 arg 03b34b01 flags 0000049d
sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
mmc0: req failed (CMD6): -110, retrying...
sdhci [sdhci_irq()]: *** mmc0 got interrupt:
在mmc_switch part_config 的设置为0x4时返回 超时!请问你遇到过这个问题吗,能否留个联系方式 共享下你们的emmc驱动
这个部分已经改了 ,问题好像跟这个没关系
Hi,
If you do above modify and it can not work. First you can check the value of ext_csd.rev. And then check the BOOT_CFG[7:5] emmc setting 010 8bit.
Best Regards
Dan
感谢回复:
mmc.c if (card->ext_csd.rev > 6) 改成 > 8 可以工作正常的;
现在我的理解是我们的emmc芯片是emmc v5.1的 但是驱动支持的是emmc v4.5;
我想是不是可以修改驱动支持emmc v5.1 来提高emmc的读写速度。
Hi,
You do not need to modify other code. The emmc v4.5 is default supported and here we change the ext_csd.rev to make the emmc v5.1 work on emmc v4.5 mode. It's OK and can work well.
Have a great day,
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
When you change the mmc.c if (card->ext_csd.rev > 6) to > 8 , can it work fine? By now in our side we use this method modify the value of card->ext_csd.rev to make the EMMC 4.4 above version work .
Have a great day,
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------