Wandboard i.MX6 Quad Board has different boot device
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/
/dev/disk/
/dev/block/179:1
Status changed to 'Confirmed' because the bug affects multiple users.