Bug 8710

Summary: Install to eMMC failed with Gummiboot and GRUB
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mei Yeen Ng <mei.yeen.ng>
Component: coreAssignee: Mei Yeen Ng <mei.yeen.ng>
Status: RESOLVED FIXED QA Contact: Mei Yeen Ng <mei.yeen.ng>
Severity: major    
Priority: Medium+ CC: bogdanx.a.voiculescu, meta.mr.watcher, meta.watcher, richard.purdie, sgw
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: Other   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Error Log of eMMC failed to install none

Description Mei Yeen Ng 2015-11-23 11:32:10 UTC
Created attachment 2861 [details]
Error Log of eMMC failed to install

BUILD: 2.0: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1
ENVIRONMENT: Intel Atom x86_64 platform
IMAGE: core-image-sato

STEPS TO REPRODUCE:
1. Boot up core-image-sato using USB Boot
2. At Gummiboot loader, choose Install option
3. Select install to /dev/mmcblk0

EXPECTED OUTCOME:
Install core-image-sato to eMMC successfully and boot up from eMMC. 

ACTUAL OUTCOME:
Failed to install to eMMC with error message as below: 
Formatting /dev/mmcblk01 to vfat...
mkfs.fat 3.0.28 (2015-05-16)
/dev/mmcblk01: No such file or directory
Comment 1 Mei Yeen Ng 2015-11-23 13:15:47 UTC
Root caused of the issue: Failed to assign partition prefix 'p' to /dev/mmcblk0 due to failed condition checking with the additional /dev/ in this Jethro version. 

Testing patch and working on getting patch upstream.
Comment 2 Mei Yeen Ng 2015-11-26 02:39:22 UTC
Installation to eMMC using GRUB also failed with the same error seen on Gummiboot. Patch will cover both GRUB and gummiboot.
Comment 4 Cristina Agurida 2016-02-16 14:39:37 UTC
Hello,

Tested on latest master: 36b43b233c841b3c09fc17e04686b4b758780963

I tested on an Lenovo S10-3 and it worked to install the image on an SD card. However, the kernel mapped the SD drive as /dev/sdc (it is an USB to SD internal converter). I don't have the hardware to test this.
Please give it a try yourself and let me know the outcome.

Thank you,
Cristina