i.MX6 Android BSP cannot mount/unmount a SD card after sleep mode.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6 Android BSP cannot mount/unmount a SD card after sleep mode.

ソリューションへジャンプ
3,552件の閲覧回数
satoshishimoda
Senior Contributor I

Hi community,

I have a problem about SD card mount issue with Android BSP.

Android BSP cannot unmount and mount a SD card after sleep mode.

Please see the reproducing procedure as below.

==========

[Board]

MCIMX6Q-SDP

[BSP]

android_jb4.2.2_1.0.0-ga or android_jb4.2.2_1.1.0-ga

[Procedure]

1. Boot Android with eMMC boot.

2. Insert a SD card (SD card A).

3. Check the contents in SD card A with ls command. (ls /mnt/extsd)

4. Enter sleep mode by pushing power button.

5. Resume from sleep mode by pushing power button.

6. Remove SD card A.

7. Execute ls command. (ls /mnt/extsd)

8. Insert another SD card (SD card B).

9. Execute ls command. (ls /mnt/extsd)

[Result]

On process 3, I can see the contents in the SD card A correctly.

On process 7, I can see the contents in the SD card A, it is illegal.

On process 9, I can see the contents in the SD card A, and cannot see the one in the SD card B.

==========

[Q]

Could you let me know how should I modify the android BSP to resolve this issue?

Best Regards,

Satoshi Shimoda

ラベル(3)
タグ(1)
0 件の賞賛
返信
1 解決策
2,980件の閲覧回数
PeterChan
NXP Employee
NXP Employee

Hello Satoshi Shimoda,

To solve this problem, please remove the kernel option "CONFIG_MMC_BLOCK_DEFERRED_RESUME" in arch/arm/configs/imx6X_android_defconfig and rebuild the kernel. This option has a side-effect that prevent the external card to rescan again after system resume.

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
2,980件の閲覧回数
YixingKong
Senior Contributor IV

Satoshi

I will branch this DI into an internal group and assign an engineer to look into.

Regards,

Yixing

0 件の賞賛
返信
2,980件の閲覧回数
xiaoqianlin
NXP Employee
NXP Employee

I found this issue as well.

After unplugging the SD card, the content is still there.

Linda Lin
0 件の賞賛
返信
2,980件の閲覧回数
satoshishimoda
Senior Contributor I

Hi Xiaoqian Lin,

Thank you for reproducing.

Could you check how to modify this issue?

Best Regards,

Satoshi Shimoda

0 件の賞賛
返信
2,981件の閲覧回数
PeterChan
NXP Employee
NXP Employee

Hello Satoshi Shimoda,

To solve this problem, please remove the kernel option "CONFIG_MMC_BLOCK_DEFERRED_RESUME" in arch/arm/configs/imx6X_android_defconfig and rebuild the kernel. This option has a side-effect that prevent the external card to rescan again after system resume.

0 件の賞賛
返信
2,980件の閲覧回数
satoshishimoda
Senior Contributor I

Hi Peter Chan,

OK, I will try rebuilding with the setting.

0 件の賞賛
返信
2,980件の閲覧回数
satoshishimoda
Senior Contributor I

Hi Peter Chan,

This issue was resolved by your workaround.

Thank you very much for your great support!

Best Regards,

Satoshi Shimoda

0 件の賞賛
返信
2,980件の閲覧回数
xiaoqianlin
NXP Employee
NXP Employee

Can you help to assign this issue to AE?

Linda Lin
0 件の賞賛
返信