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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
3,437 次查看
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

标签 (4)
0 项奖励
回复
1 解答
2,380 次查看
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 项奖励
回复
4 回复数
2,381 次查看
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 项奖励
回复
2,380 次查看
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 项奖励
回复
2,380 次查看
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 项奖励
回复
2,380 次查看
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 项奖励
回复