Android 6.0.1 doesn't detect external SD card on iMX6Q board

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

Android 6.0.1 doesn't detect external SD card on iMX6Q board

Jump to solution
3,440 Views
nguyenmr
Contributor III

Hi all,

i have problem with mount external SD card on my iMX6 board. When i insert or remove SD card, it can be detected and on debug console shows as:

when inserted:

mmc1: mmc_rescan_try_freq: trying to init card at 300000 Hz
mmc1: host does not support reading read-only switch, assuming write-enable
mmc1: new high speed SDHC card at address 0007
mmcblk1: mmc1:0007 SL32G 28.9 GiB
mmcblk1: p1 p2

 

BUT on android 6, nothing happens! i don't see any message inform new sd card inserted, i go to Settings -> Storage & USB and it only shows Internal Storage, NOT exist SD card. I try to use "File Manager" app and it only shows internal storage also!

 

in /device/fsl/sabresd_6dq/fstab.freescale i'm using this command:

devices/soc0/soc/2100000.aips-bus/2194000.usdhc/mmc_host/mmc1* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata

 

Can any one give me some advices, where can i edit in android AOSP to mount/enable external sd card and can detect it? 

My device running on Android Mashmallow 6.0.1 and Kernel 4.1.15

 

Thanks!

 

Regards,

Nguyen

Labels (4)
0 Kudos
Reply
1 Solution
2,383 Views
nguyenmr
Contributor III

It's mounted OK!

i change the mount commnand in fstab.freescale to /devices/soc0/soc/2100000.aips-bus/2194000.usdhc/mmc_host* auto auto defaults voldmanaged=sdcard:auto,encryptable=userdata

and i can mount all SD card and USB stick now.

Regards,

Nguyen

View solution in original post

0 Kudos
Reply
4 Replies
2,384 Views
nguyenmr
Contributor III

It's mounted OK!

i change the mount commnand in fstab.freescale to /devices/soc0/soc/2100000.aips-bus/2194000.usdhc/mmc_host* auto auto defaults voldmanaged=sdcard:auto,encryptable=userdata

and i can mount all SD card and USB stick now.

Regards,

Nguyen

0 Kudos
Reply
2,383 Views
b36401
NXP Employee
NXP Employee

Please make sure that you have valid filesystem on this external SD card.

Have a great day,
Victor

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

0 Kudos
Reply
2,383 Views
nguyenmr
Contributor III

Hi Victor,

i format sd card in FAT32, however i don't use sd card to boot system, i use eMMC to boot and android OS is running already. Here i want to use blank (assume that) SD card to use as external storage. I try to insert this (blank) sd card to another Smartphone runs android M, it canbe detected and shows up message allows me chose format type. It's my target!

Regards,

Nguyen 

0 Kudos
Reply
2,383 Views
davidjonathan
Contributor I

You say nothing happens on Android 6, but what OS and version did the log of "mmc1..." messages come from?

As for Mr. Linnik's reply, at least under Linux you do not need a valid filesystem for the card to be detected. In fact, the mmc message log would look the same except for the last one which would not show any partitions, only "mmcblk1:".

0 Kudos
Reply