<?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>1257</bug_id>
          
          <creation_ts>2011-07-19 00:27:31 +0000</creation_ts>
          <short_desc>[crownbay] broken grub due to wrong root path</short_desc>
          <delta_ts>2011-08-07 22:49:55 +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-configuration</component>
          <version>unspecified</version>
          <rep_platform>TunnelCreek</rep_platform>
          <op_sys>Multiple</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>normal</bug_severity>
          <target_milestone>1.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>dvhart</cc>
    
    <cc>ke.yu</cc>
    
    <cc>sgw</cc>
    
    <cc>wenhuax.fan</cc>
    
    <cc>yp.bsp.watcher</cc>
    
    <cc>yp.watcher</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>14771</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-07-19 00:27:31 +0000</bug_when>
    <thetext>Tree/Branch : Poky/1.1_M2
Poky Commit : fa4bcfdb73167f8159b88e5a4d711c0d37627a70
Meta Branch : 1.1_M2
Meta Commit : 738d2bc6d1a0d7ff6589000893c1c8b4f983d76f

image location: http://autobuilder03.jf.intel.com/crownbay-1.1_M2/nightly/20110717-1/machines/crownbay/x86_32/core-image-sato-sdk-live-crownbay-20110717223745.hddimg.bz2

With Yocto 1.1 M2 RC3 build, default installation of crownbay emgd image could not boot up with a error that &quot;Error 2: Bad file or directory type&quot;.

The issue is that, by default the grub of crownbay is like following:
####
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 rw quiet
####

We should modify the &quot;root (hd0,1)&quot; to &quot;root (hd0,0)&quot; to make system boot up.

The grub used by crownbay is 0.97, instead of version 1.98 on sugarbay and jasperforest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14854</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-07-21 15:53:42 +0000</bug_when>
    <thetext>There seems to be some kind of issue surrounding the creation of the grub.cfg or menu.lst files, depending on which grub version is being used (0.97 for Crownbay as it is 32 bit iirc). It looks to me that the menu.lst should be generated using (hd0,0) instead of (hd0,1) but I&apos;m not sure why hd0,1 would be used for the grub2 config, nor why this is only coming up now.

Tom, I think you have more experience with the grub recipes, could you have a look?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14965</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-07-25 06:50:13 +0000</bug_when>
    <thetext>Yes, it&apos;s strange that it just started happening, and also that it only affects crownbay.  Will look into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15020</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-07-26 11:20:28 +0000</bug_when>
    <thetext>I just tried this on sugarbay, which uses grub2, and saw the same problem, which is suprising and points to a grub non-version-specific problem or some change outside of grub that elicits a common problem or assumption in both versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15152</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-08-02 12:32:05 +0000</bug_when>
    <thetext>The problem is that the wrong init-install.sh is getting pulled in and causing grub2 to be installed for crownbay.

I&apos;m also no longer seeing the problem on sugarbay, which may have actually been operator error.

Will check in a fix for crownbay as soon as I finish testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15161</commentid>
    <comment_count>5</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-08-02 15:31:57 +0000</bug_when>
    <thetext>Fixed by meta/intel commit: 724b13a74e068b7cd018cd8b2e18c2a762881d1d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15295</commentid>
    <comment_count>6</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-08-07 22:37:51 +0000</bug_when>
    <thetext>This issue not reappear in Yocto1.1 M3 RC3 20110806 building.

Image location:

http://autobuilder03.jf.intel.com/crownbay-1.1_M3/nightly/20110806-1/machines/crownbay/x86_32/core-image-sato-sdk-crownbay-20110807054857.hddimg.bz2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15299</commentid>
    <comment_count>7</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-08-07 22:49:55 +0000</bug_when>
    <thetext>Tree/Branch: Poky/1.1_M3
Poky Commit id: abdec68876ac7ce1a6d5c223d1757b7e8a14b85f
Meta Branch: 1.1_M3
Meta Commit id: da93dc24fd73079b4dbb6811b83e44a2036d54ef</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>