<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10262</bug_id>
          
          <creation_ts>2016-09-12 21:11:36 +0000</creation_ts>
          <short_desc>SD card not being recognized when trying to install the image</short_desc>
          <delta_ts>2016-10-05 20:19:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-runtime</component>
          <version>2.2</version>
          <rep_platform>MinnowBoard Max</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2_M3.rc1/machines/genericx86/core-image-sato-sdk-genericx86.hddimg</bug_file_loc>
          <status_whiteboard>YP 2.2 M4 RC1 BUILD BLOCKING BUG</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Francisco Pedraza">francisco.j.pedraza.gonzalez</reporter>
          <assigned_to name="Alejandro Hernandez">alejandro.hernandez</assigned_to>
          <cc>alejandro.hernandez</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>sonia.delgado</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66053</commentid>
    <comment_count>0</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2016-09-12 21:11:36 +0000</bug_when>
    <thetext>STATUS: FAILED
BUILD: 2.2 M3: 2679a347c576f5411fbe802d2f6201c94036ecb2
ENVIRONMENT: genericx86 - on MMAX32bit
UI
STEPS TO REPRODUCE: 
1. Get a SD-drive with enough free space to install an image.
2. Plugin USB which contains live image burned (USB1).
3. Configure device BIOS to firstly boot from USB if necessary
4. Boot the device and select option &quot;Install&quot;  from boot menu.
5. Make sure that the device in which image is going to be installed is the SD-drive.
6. Proceed through default install process.
7. Remove USB1, and reboot into new installed system.

EXPECTED OUTCOME: 
1. User can choose install system from USB stick on SD-drive from boot menu or command line option.
2. Installed system can boot up.

Notes:

Just to confirm, after booting the image with the USB and then connect the SD Card. SD card is not being recognized

1. After trying dmesg | tail -f 
SD card is not being displayed when pluging it in or out
2. ls /dev | grep mmcblk shows no recognized mmcblk devices

You can download the image from here:
http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2_M3.rc1/machines/genericx86/core-image-sato-sdk-genericx86.hddimg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66055</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2016-09-12 21:27:34 +0000</bug_when>
    <thetext>Since this is  being tested on a Minnowboard MAX, I checked the kernel config coming from the meta-intel layer, and compared it with the one we get when using genericx86:

Genericx86:
$ cat .config | grep MMC
# CONFIG_PCI_GOMMCONFIG is not set
CONFIG_PCI_MMCONFIG=y
# Supported MMC/SDIO adapters
# CONFIG_MMC is not set

meta-intel:
$ cat .config | grep MMC
CONFIG_PCI_MMCONFIG=y
# Supported MMC/SDIO adapters
CONFIG_MMC=y
# CONFIG_MMC_DEBUG is not set
# MMC/SD/SDIO Card Drivers
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8
CONFIG_MMC_BLOCK_BOUNCE=y
# CONFIG_MMC_TEST is not set
# MMC/SD/SDIO Host Controller Drivers
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PCI=y
CONFIG_MMC_RICOH_MMC=y
CONFIG_MMC_SDHCI_ACPI=y


So I am guessing the missing configs are producing the failure.

I believe these should be added to genericx86 since we do want to support installing poky to an SD card, although I am unsure if there&apos;s a reason why these configs are missing and they&apos;re not meant to be added to genericx86.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66059</commentid>
    <comment_count>2</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2016-09-12 22:28:51 +0000</bug_when>
    <thetext>IIRC there have been requests to pare down what gets built in genericx86, but I believe this is important enough to add.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66687</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-09-28 15:18:49 +0000</bug_when>
    <thetext>Posted for Bruce&apos;s review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66944</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-10-05 15:42:02 +0000</bug_when>
    <thetext>Does http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=edf08e5df481753e28cf6bfff98bdcc5618c49e6 fix this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66962</commentid>
    <comment_count>5</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2016-10-05 20:06:02 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Does
&gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/
&gt; ?id=edf08e5df481753e28cf6bfff98bdcc5618c49e6 fix this?

Yes, I just checked, it works correctly after this changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66963</commentid>
    <comment_count>6</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2016-10-05 20:19:04 +0000</bug_when>
    <thetext>I just verified this one, working good. After booting when connecting SD Card is being recognized successfully. Apart of this, I installed from USB to SD Card the image. And then boot from SD Card successfully.
Regards,
Paco</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>