<?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>3870</bug_id>
          
          <creation_ts>2013-02-08 13:21:19 +0000</creation_ts>
          <short_desc>atom-pc - cannot boot image on netbook after install</short_desc>
          <delta_ts>2013-02-28 13:44:32 +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-meta-yocto</component>
          <version>1.4</version>
          <rep_platform>Netbook</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>cristian.iorga</cc>
    
    <cc>dvhart</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29680</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-02-08 13:21:19 +0000</bug_when>
    <thetext>IMAGES USED: 
core-image-sato: http://autobuilder.yoctoproject.org/pub/nightly/20130208-1/machines/atom-pc/
and
core-image-sato-sdk http://autobuilder.yoctoproject.org/pub/nightly/20130131-4/machines/atom-pc/

HARDWARE USED: Lenovo S10-3 netbook.


STEPS TO REPRODUCE
1. Download the hddimg images from autobuilder. e.g.: http://autobuilder.yoctoproject.org/pub/nightly/20130131-4/machines/atom-pc/core-image-sato-sdk-atom-pc.hddimg

2. Copy the hddimg to the usb:
e.g.: $ sudo dd if=./core-image-sato-sdk-atom-pc.hddimg of=/dev/sdc
3. After the image is copied, install it into the netbook.
4. After installation finnished, boot the netbook from its local HDD

EXPECTED RESTULTS
4. Image boots successfully

ACTUAL RESULTS
4. Image stops at grub.
When trying to type &quot;boot&quot; or &quot;vmlinuz&quot; a message saying that kernel cannot be found is displayed.

On liveboot, the image boots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29730</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-02-11 22:04:51 +0000</bug_when>
    <thetext>Without hardware this is going to be rather difficult for me to debug. I would start by clearing the grub config and trying to boot from the grub shell. Use tab completion to determine which HD device GRUB uses for the installed media and compare that to what the installer put in the grub config it installed.

Ultimately I think we&apos;ll find that this is a bug in our less-than-stellar installer :-)

Alex I suggest you own this if you want to see it fixed. I&apos;ll happyily offer suggestions, but without that particular machine, I won&apos;t make much progress on my own and you&apos;ll be on the hook to run my suggestions anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29808</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-02-14 15:38:41 +0000</bug_when>
    <thetext>Please try on the default n450 hardware and report back</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29924</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-02-18 15:44:24 +0000</bug_when>
    <thetext>After the discussion between me and Darren, resulted that I should check if grub.cfg file is configured correctly with the correct kernel path.

After my investigation I have found that no config.cfg file was found installed on the system.
e.g. in:
a)
grub&gt; linux (hd0,1)/boot/grub/ 
folder no grub.cfg was found

b)
grub&gt; linux (hd0,2)/boot/
folder no grub folder or grub.cfg file was found

Thanks,
Alex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30012</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-02-21 17:29:37 +0000</bug_when>
    <thetext>The problem here is that grub2 is installed but a grub 1 menu.lst is
    created at install time. At boot, grub2 doesn&apos;t find a grub.cfg file and
    drops to the grub shell.
    
    This happens because the installer is looking for 40_custom (a grub2
    file) on the rootfs, but grub2 isn&apos;t installed on the rootfs. It exists
    in the initramfs. Patching the installer to look on the initramfs
    resolves the problem.
    
    Note that the problem may have occurred if grub2 used to be installed on
    the rootfs but was later removed. In any case, the installer is HORRIBLE
    and really needs to be completely redesigned as part of the deployment
    effort. For now, this should get the live image installer limping along
    again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30200</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-02-28 04:55:30 +0000</bug_when>
    <thetext>commit 4f4d82c62c56e182907244b98497ba3cfd848eed
Author: Darren Hart &lt;dvhart@linux.intel.com&gt;
Date:   Thu Feb 21 09:28:02 2013 -0800

    install: Look for grub2 files on the initramfs, not rootfs
    
    Fixes [YOCTO #3870] atom-pc - cannot boot image on netbook after install</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30242</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-02-28 13:44:32 +0000</bug_when>
    <thetext>Thank Darren,
Grub now it&apos;s fixed, and the image can boot.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>