ICS eMMC image - SD card mount fails

Bug #978748 reported by Sunil Kamath
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
IglooCommunity
Fix Released
High
Anmar Oueja

Bug Description

While working on eMMC ICS image we can see that sd card is not mounted.

we used hack to mount sd card after boot:
mount -t vfat /dev/block/mmcblk1p1 /mnt/sdcard

With this we are able to see the content of sdcard over command prompt
With settings->storage we can see usb storage and also its contents.

But sdcard content is not reflected in ICS apps like - Gallery/media play.
This is because sd card auto detect is not working fine.

Revision history for this message
Patrik Klinger (patrik-klinger) wrote :

Sunil, what is you recommended importance level of this bug and should it be mapped to the 2012.04 release?

Revision history for this message
Sunil Kamath (sunil-kamath) wrote :

lets have it for 12.05. But definitely its very important to have this in place. I could see that we Mridul couldnt perform some of the BT/WLAN functionality test because of this issue.

Changed in igloocommunity:
importance: Undecided → High
milestone: none → 2012.05
Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

Yes, this is a known issue - when booting from emmc the content of 'init.partition.rc' needs to be modified manually before the build is done. The same applies to vold.fstab. This needs to be added to this wiki:

http://igloocommunity.org/support/Android_Getting_started_with_ICS#Boot_ICS_from_emmc

something I did not have time to do.

Revision history for this message
Sunil Kamath (sunil-kamath) wrote :

Modification done in init.partition.rc for system/cache/data.

I am referring to sdcard mount here.

Correct me if i am wrong, Seems like LAMC creates a SD card slot in eMMC.

Once we insert sdcard after boot, we need to use hack for real sd card slot to get recognized.
We cannot make Android framework to become aware about the change. Hence apps like gallery/media player will not be aware about this.

Same holds good for consecutive boots.

Revision history for this message
Anmar Oueja (anmar) wrote :

This is not a bug. It is a fact that we are faced with when we boot from eMMC cs. MMC. I am going to mark it as "Won't fix". We should make sure release notes clearly reference the doc Mathieu wrote in the case end users wish to use the eMMC.

Changed in igloocommunity:
status: New → Won't Fix
Revision history for this message
Sunil Kamath (sunil-kamath) wrote :

Need a small discussion to conclude on it.

Revision history for this message
Anmar Oueja (anmar) wrote : Re: [Bug 978748] Re: ICS eMMC image - SD card mount fails

Absolutely. Lets discuss during the bug triaging meeting on Friday.

Revision history for this message
Sunil Kamath (sunil-kamath) wrote :
Revision history for this message
Anmar Oueja (anmar) wrote :

After discussion with Sunil we agreed on the following:

1. Sunil to discuss with Mathieu to decide if changing l-a-m-c is all is needed
2. Outline the changes to l-a-m-c
3. Issue a BP for the Linaro infra team to work on.

Changed in igloocommunity:
status: Won't Fix → Confirmed
Anmar Oueja (anmar)
Changed in igloocommunity:
assignee: nobody → Anmar Oueja (anmar)
Changed in igloocommunity:
milestone: 2012.05 → 2012.07
milestone: 2012.07 → 2012.06
milestone: 2012.06 → 2012.07
Revision history for this message
Sunil Kamath (sunil-kamath) wrote :

There is workaround for even to make Android framework to get aware about this.

After using workaround to mount microSD card, contents of microSD card (such as audio files, video files) may not appear in Music application and Gallery application.

To solve this:
1. Give command as before (sd card mount), and kindly go to “Dev tools” -> select “Scan SD card”.
Now, content will appear in Music application and Gallery application.

Or

2. Instead of only one sd card mount command, give following 3 commands as below:
mount -t vfat /dev/block/mmcblk1p1 /mnt/sdcard
setprop EXTERNAL_STORAGE_STATE mounted
am broadcast -a android.intent.action.MEDIA_MOUNTED --ez read-only false -d file:///mnt/sdcard

Now, content will appear in Music application or Gallery application.

Revision history for this message
Sunil Kamath (sunil-kamath) wrote :

With this workaround, we are able to solve this issue.

May be best is to use this workaround itself.
We can close this issue as this is applicable for only emmc image. And issue get resolved if we use above workaround.

This workaround should be sufficient.

Revision history for this message
Anmar Oueja (anmar) wrote :

Marked it as Fix Committed due to Suni's comments in the previous comment

Changed in igloocommunity:
status: Confirmed → Fix Committed
Changed in igloocommunity:
milestone: 2012.07 → 2012.06
Changed in igloocommunity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.