SD card is not unmounted rarely on MCIMX6Q-SDP with jb4.2.2_1.1.0-ga.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SD card is not unmounted rarely on MCIMX6Q-SDP with jb4.2.2_1.1.0-ga.

Jump to solution
1,897 Views
satoshishimoda
Senior Contributor I

Hi community,

I met a problem.

Please see the detail as below.

=====

[Board]

MCIMX6Q-SDP

[BSP]

android_jb4.2.2_1.1.0-ga

[Problem]

SD card is not unmounted, and cannot mount any device after that.

In this case, access to the SD card by "ls" command is rejected with the following log.

  FAT-fs (mmcblk1p1): Directory bread(block xxx) failed

[Procedure]

1. Boot android_jb4.2.2_1.1.0-ga fron eMMC.

2. Settings -> Developer options -> Check "Stay awake".

3. Repeat insert and remove SD card. When remove SD card, don't execute "umount" command, just plug-out.

[Frequency]

Maybe very rare.

We repeated insert and remove over 30 min to reproduce this issue.

=====

For your information, the file system in SD card was not broken when this issue was occurred.

Then, we found the system can mount a device after ocurred this issue by the following command.

busybox umount -l /mnt/extsd

However, this solution is not usable for mass production because end user don't use serial console.

So we want to find the root cause and want to know a solution to prevent this issue.

Would you reproduce the same issue and analyze how to prevent it?

Best Regards,

Satoshi Shimoda

Labels (3)
Tags (1)
0 Kudos
Reply
1 Solution
1,523 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Satoshi,

Actually, the correct operation on  SD card in android, sequence operation should be done through storage in settings

The following ways can solve the problem:

(1)Insert SD card into connector

(2)if android can't mount it automatically, Using "mount SD card" in storage.

(3)Before removing SD card, you should use "umount sd card" in storage, then remove it from connector.

Similarly, operation for U disk should also comply with these steps.

Hope this can help you.

Have a nice day

Best Regards

Dan

View solution in original post

0 Kudos
Reply
8 Replies
1,523 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Satoshi Shimoda,

About how to boot from SD card you can refer to the Android_User_Guide.pdf. Any questions you can contact me easily.
Have a great day
Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
1,523 Views
satoshishimoda
Senior Contributor I

Would you give me your comment about unmount issue?

0 Kudos
Reply
1,523 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Satoshi,

We have confirmed with our team, here the "umount" maybe cause by many distraction factors. Here we want to know how long time between you insert and remove SD card?

Best Regards

Have a great day

Dan

0 Kudos
Reply
1,523 Views
satoshishimoda
Senior Contributor I

Hi Dan Wang,

Would you let me know your status?

Best Regards,

Satoshi Shimoda

0 Kudos
Reply
1,524 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Satoshi,

Actually, the correct operation on  SD card in android, sequence operation should be done through storage in settings

The following ways can solve the problem:

(1)Insert SD card into connector

(2)if android can't mount it automatically, Using "mount SD card" in storage.

(3)Before removing SD card, you should use "umount sd card" in storage, then remove it from connector.

Similarly, operation for U disk should also comply with these steps.

Hope this can help you.

Have a nice day

Best Regards

Dan

0 Kudos
Reply
1,523 Views
satoshishimoda
Senior Contributor I

Hi Dan Wang,

> Here we what to know how long time between you insert and remove SD card?

Please note that you should insert and remove SD card as rapid as possible to duplicate this issue.

You know some logs are output on the console when you insert or remove SD card, but don't wait the log output before next inserting or removing.

Best Regards,

Satoshi Shimoda

0 Kudos
Reply
1,523 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Satoshi,

So Sorry for late reply. I am confirming this for you. I will give you reply as soon as possible.

Best Regards

Have a great day

Dan

0 Kudos
Reply
1,523 Views
satoshishimoda
Senior Contributor I

Hi Dan Wang,

Please note that my question is not how to boot from SD card.

The system is boot from eMMC (sorry, I did typo in my original post).

Best Regards,

Satoshi Shimoda

0 Kudos
Reply