Wandboard i.MX6 Quad Board has different boot device

Bug #1306841 reported by Benjamin Drung
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
flash-kernel (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned
Vivid
Fix Released
Undecided
Unassigned

Bug Description

== Rationale ==
The wandboards have two microsd slots, one directly tied to the SoC and one on the main board. The wandboard only boots from the one tied to the SoC.

Unfortunately, the device numbering is wrong, in that when only the SoC slot is populated, it'll appear as mmcblk0, but when both slots are, the SoC slot becomes mmcblk1.

So far flash-kernel has only supported the configuration with both slots populated, but it's reasonably common for people to only use the SoC slot and then use the SATA port to attach more storage.

The fix is to use the constant path name from udev which always points to the right slot.

== Testcase ==
 - Run flash-kernel before update => fails to find sdcard
 - Run flash-kernel after update => finds sdcard and install kernel
 - Reboot to check that things boot as expected

== Regression potential ==
Should a system somehow miss the /dev/disk/by-path symlink, flash-kernel may fail to install the new kernel. Note that testing on 5 different boards showed that this symlink is constant, regardless of storage configuration, so this shouldn't be an actual problem.

== Original bug report ==
The Wandboard i.MX6 Quad Board has two sdcard slots. The boot device is set to "/dev/mmcblk1p1", but this device only exists if both sdcard slots are used. I use just one sdcard and my boot device is called "/dev/mmcblk0p1".

flash-kernel need to dynamically detect the correct sdcard slot or use a unique device name.

I have following device symlink on my system:
/dev/disk/by-id/mmc-SD16G_0xd62aac9a-part1
/dev/disk/by-path/platform-2198000.usdhc-part1
/dev/block/179:1

Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in flash-kernel (Ubuntu):
status: New → Confirmed
Revision history for this message
Stéphane Graber (stgraber) wrote :

I just uploaded a fix to wily which should fix that.

I'll SRU it back to trusty too.

Changed in flash-kernel (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote :

Fixes uploaded to the trusty and vivid queues.

description: updated
Changed in flash-kernel (Ubuntu Trusty):
status: New → In Progress
Changed in flash-kernel (Ubuntu Vivid):
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Benjamin, or anyone else affected,

Accepted flash-kernel into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/flash-kernel/3.0~rc.4ubuntu54.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in flash-kernel (Ubuntu Vivid):
status: In Progress → Fix Committed
tags: added: verification-needed
Changed in flash-kernel (Ubuntu Trusty):
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Benjamin, or anyone else affected,

Accepted flash-kernel into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/flash-kernel/3.0~rc.4ubuntu49.6 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Michael Jeanson (mjeanson) wrote :

I tested 3.0~rc.4ubuntu49.6 in trusty-proposed and I confirm I can now run flash-kernel successfully on a Wandboard Quad without manually editing all.db

Revision history for this message
Stéphane Graber (stgraber) wrote :

and I just validated vivid too (installed on trusty though).

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package flash-kernel - 3.0~rc.4ubuntu49.6

---------------
flash-kernel (3.0~rc.4ubuntu49.6) trusty; urgency=medium

  * Wandboard: Use /dev/disk/by-path/platform-2198000.usdhc-part1
    instead of the hardcoded mmcblk1p1, this should make things work on
    boards with just a single microSD card in. (LP: #1306841)

 -- Stéphane Graber <email address hidden> Thu, 27 Aug 2015 12:07:33 -0400

Changed in flash-kernel (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for flash-kernel has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package flash-kernel - 3.0~rc.4ubuntu54.1

---------------
flash-kernel (3.0~rc.4ubuntu54.1) vivid; urgency=medium

  * Wandboard: Use /dev/disk/by-path/platform-2198000.usdhc-part1
    instead of the hardcoded mmcblk1p1, this should make things work on
    boards with just a single microSD card in. (LP: #1306841)

 -- Stéphane Graber <email address hidden> Thu, 27 Aug 2015 12:06:16 -0400

Changed in flash-kernel (Ubuntu Vivid):
status: Fix Committed → Fix Released
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.