Android 6.0.1 cannot detect external SD card on iMX6Q board

192 views
Skip to first unread message

Phi Nguyen

unread,
Dec 13, 2016, 2:43:05 PM12/13/16
to android-porting

Hi all,

i have problem with mount external SD card on my iMX6q 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

minde...@gmail.com

unread,
Dec 24, 2016, 10:47:34 AM12/24/16
to android-porting

Can you do a busybox fdisk /dev/mmcblk1 and list out all the partitions? If it is successful can you create a fresh ext3 file system in each of these partitions?

-GB

Phi Nguyen

unread,
Dec 25, 2016, 2:06:08 PM12/25/16
to android-porting
I've changed a little to: devices/soc0/soc/2100000.aips-bus/2194000.usdhc/mmc_host* auto auto defaults voldmanaged=sdcard:auto,encryptable=userdata 
and it's mounted successfull with both SD card and USB storage.

BG,
Reply all
Reply to author
Forward
0 new messages