Android LEB fails to mount system and user partition interminttently

Bug #823313 reported by Mathieu Poirier
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro Android
Won't Fix
High
Unassigned

Bug Description

The snowball android LEB (https://android-build.linaro.org/builds/~linaro-android/leb-snowball/) fails to mount the system and data partition when starting up, resulting in a failure to find the binaries required to boot the system.

When booting normally (system and data partition mounted) the mmc0 and mmc1 are discovered, scanned and respective partitions are identified. When the system fails to find the system and data partition, scrolling back the console log one can find that mmc0 and mmc1 are not discovered nor scanned.

This problem is intermittent on some board and reproducible at will on other. The type and speed of the SD card also seems to have an effect.

Tags: patch snowball
Changed in linaro-landing-team-ste:
assignee: nobody → Mathieu Poirier (mathieu.poirier)
Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

Adding two snapshots - working.txt and notworking.txt. It it pretty obvious that in notworking.txt mmc0 and mmc1 aren't scanned, resulting in the failure detailed above. Both snapshots have been taken from the exact same kernel, board, and SD card.

Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :
visibility: private → public
Anmar Oueja (anmar)
Changed in linaro-landing-team-ste:
milestone: none → 2011.09
Changed in linaro-landing-team-ste:
assignee: Mathieu Poirier (mathieu.poirier) → Philippe Langlais (philang)
Alexander Sack (asac)
Changed in linaro-android:
milestone: none → 11.08
importance: Undecided → High
Fathi Boudra (fboudra)
Changed in linaro-android:
milestone: 11.08 → 11.09
Fathi Boudra (fboudra)
Changed in linaro-android:
assignee: nobody → Mathieu Poirier (mathieu.poirier)
Anmar Oueja (anmar)
Changed in linaro-landing-team-ste:
importance: Undecided → Critical
Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Hey Anmar, lets sync up about this.

Revision history for this message
Philippe Langlais (philang) wrote :

I found the root cause, the problem is that some SD-card are too slow to enumerate their partitions and Snowbal Android boot doesn't verify that mmc partitions are present.
To fix this bug, Android must mount mmc parttions with wait option in Snowball platform init.rc file:

In Snowball Android 3.0 kernel, git://git.linaro.org/bsp/st-ericsson/linux-3.0-android-ux500.git :
   revert commit 2036fd7 "Temporary fix to bypass mmc card discovery problem"

In git://android.git.linaro.org/device/linaro/snowball.git:
  revert d04a69b7 "Temporary fix to bypass mmc card discovery problem"
  and apply attached patch

Mathieu, can you test this fix with your Snowball and different SD-cards

Anmar Oueja (anmar)
Changed in linaro-landing-team-ste:
status: New → Fix Committed
Fathi Boudra (fboudra)
Changed in linaro-android:
status: New → Confirmed
tags: added: patch snowball
Changed in linaro-landing-team-ste:
status: Fix Committed → In Progress
Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

Introducing the 'wait' option to the mount commands in 'init.rc' resolves the issue when PRCMU v2.2.5 is used but it is still reproducible with PRCMU v3.3.2.

The problem can be approached from two fronts:

1) in the kernel, to understand why it take so long for the sdcard (and sometimes the emmc) to be discovered.
2) in Android, to understand why the 'wait' option supplied to mount doesn't yield the intended purpose with PRCMU v3.3.2.

I will look into the latter.

Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Moved out to 11.10 due LT dependency.

Changed in linaro-android:
milestone: 11.09 → 11.10
Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

At this point we need help from ST-Ericsson.

Changed in linaro-landing-team-ste:
assignee: Philippe Langlais (philang) → Thomas Espersson (espersson)
Revision history for this message
Lee Jones (lag) wrote :

This issue has been escalated to ST-Ericsson.

And now, we wait ...

Revision history for this message
Thomas Espersson (espersson) wrote :

Can you please confirm what Snowball HW version, base HW pack (boot binaries) and kernel version (commit) that has been used.

Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

This problem can be reproduced on V2, V4 and V5 boards running android.

The kernel used for these build can be found here: http://git.linaro.org/git/bsp/st-ericsson/linux-3.0-android-ux500.git, the config file is u8500_snowball_android_defconfig.

The mmc issue can be observed on all the snowball android build that have been release since July, including the latest found here: https://android-build.linaro.org/builds/~linaro-android/landing-snowball/#build=17

The problem is intermittent but much easier to reproduce with Patriot Memory MicroSD cards. I had two of these cards but I sent one to Philippe Langlais. Philippe has been leading the investigation on this issue and has the latest details. Please follow up with him.

Lee Jones (lag)
Changed in linaro-landing-team-ste:
milestone: 2011.09 → 2011.11
Anmar Oueja (anmar)
Changed in linaro-android:
assignee: Mathieu Poirier (mathieu.poirier) → Abhishek Paliwal (abhishek-paliwal)
Fathi Boudra (fboudra)
Changed in linaro-android:
milestone: 11.10 → 11.11
assignee: Abhishek Paliwal (abhishek-paliwal) → Mathieu Poirier (mathieu.poirier)
Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Is this bug seen in the igloo community builds?

Revision history for this message
David Zinman (dzinman) wrote :

Unset the milestone since this has not been resolved for many cycles.

Changed in linaro-android:
milestone: 11.11 → none
Anmar Oueja (anmar)
Changed in linaro-landing-team-ste:
milestone: 2011.11 → 2012.01
Revision history for this message
Anmar Oueja (anmar) wrote :

Mathieu: Any update on this issue? We should test it with V11 when they land in our hands.

Changed in linaro-landing-team-ste:
milestone: 2012.01 → none
Revision history for this message
Mathieu Poirier (mathieu.poirier-deactivatedaccount) wrote :

Nobody is working on this problem anymore. The solution is to see if the new mmc driver coming with the 3.1 kernel will yield better results.

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

I will mark this bug as won't fix since we don't plan on working on it anymore.

Changed in linaro-landing-team-ste:
status: In Progress → Won't Fix
Fathi Boudra (fboudra)
Changed in linaro-android:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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