<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>103610</bug_id>
          
          <creation_ts>2005-08-24 11:36 0000</creation_ts>
          <short_desc>yaboot-static claims incorrectly that /proc/device-tree broken is in the 2.6.12 kernel series</short_desc>
          <delta_ts>2005-11-21 06:51:19 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>PPC64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>bruda@turing.ubishops.ca</reporter>
          <assigned_to>ppc64@gentoo.org</assigned_to>
          <cc>matt@daubenspeck.org</cc>
    
    <cc>ppc@gentoo.org</cc>
    
    <cc>release@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>bruda@turing.ubishops.ca</who>
            <bug_when>2005-08-24 11:36:55 0000</bug_when>
            <thetext>A check in ofpath makes it bail out without returning any path (only for
/dev/sd* arguments).  So ybin and brethen will fail to run properly.  This is
manifest only in the 2.6.12 kernel series, and is caused by a /proc/device-tree
cleanup as mentioned at
&lt;http://lists.penguinppc.org/yaboot-devel/2005/yaboot-devel-200506/msg00055.html&gt;

The above URL also offers a fix, which has been deemed correct only if BootX is
no longer in use (cf.
&lt;http://lists.penguinppc.org/yaboot-devel/2005/yaboot-devel-200506/msg00056.html&gt;).
 Since the yaboot-static package is ppc64 only, and ppc64 cannot use BootX
afaik, I believe that applying the patch is in order.

Reproducible: Always
Steps to Reproduce:
1. Boot any 2.6.12 kernel
2. Run ofpath /dev/sda (or similar or something that uses ofpath such as ybin)

Actual Results:  
&lt; turing:~ &gt; ybin -v
ybin: Finding OpenFirmware device path to `/dev/sda2&apos;...
ofpath: /proc/device-tree is broken.  Do not use BootX to boot, use yaboot.
ofpath: The yaboot HOWTO can be found here: http://www.alaska.net/~erbenson/doc
ybin: Unable to find OpenFirmware path for boot=/dev/sda2
ybin: Please add ofboot=&lt;path&gt; where &lt;path&gt; is the OpenFirmware path to
/dev/sda2 to /etc/yaboot.conf
ybin: Finding OpenFirmware device path to `/dev/sda11&apos;...
ofpath: /proc/device-tree is broken.  Do not use BootX to boot, use yaboot.
ofpath: The yaboot HOWTO can be found here: http://www.alaska.net/~erbenson/doc
ybin: Unable to determine OpenFirmware path for macosx=/dev/sda11
ybin: Try specifying the real OpenFirmware path for macosx=/dev/sda11 in
/etc/yaboot.conf


Expected Results:  
(note: this is the actual result of using the patched ofpath)
&lt; turing:~ &gt; ybin -v
ybin: Finding OpenFirmware device path to `/dev/sda2&apos;...
ybin: Finding OpenFirmware device path to `/dev/sda11&apos;...
ybin: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto /dev/sda2...
ybin: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/sda2...
ybin: Installing /etc/yaboot.conf onto /dev/sda2...
ybin: Setting attributes on ofboot...
ybin: Setting attributes on yaboot...
ybin: Setting attributes on yaboot.conf...
ybin: Blessing /dev/sda2 with Holy Penguin Pee...
ybin: Updating OpenFirmware boot-device variable in nvram...


nothing else is applicable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>matt@daubenspeck.org</who>
            <bug_when>2005-10-06 11:50:06 0000</bug_when>
            <thetext>This affects standard ppc as well:

# ofpath /dev/sda
ofpath: /proc/device-tree is broken.  Do not use BootX to boot, use yaboot.
ofpath: The yaboot HOWTO can be found here: http://www.alaska.net/~erbenson/doc

# ybin -v
ybin: Warning: `nvsetenv&apos; could not be found, nvram will not be updated
ybin: Finding OpenFirmware device path to `/dev/sda2&apos;...
ofpath: /proc/device-tree is broken.  Do not use BootX to boot, use yaboot.
ofpath: The yaboot HOWTO can be found here: http://www.alaska.net/~erbenson/doc
ybin: Unable to find OpenFirmware path for boot=/dev/sda2
ybin: Please add ofboot=&lt;path&gt; where &lt;path&gt; is the OpenFirmware path to
/dev/sda2 to /etc/yaboot.conf

Install halts at this point.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hansmi@gentoo.org</who>
            <bug_when>2005-10-06 12:11:17 0000</bug_when>
            <thetext>I&apos;ve seen this problem, too. A  temporary fix is to comment out the check and
error message in /usr/sbin/ofpath (Line 710 to 715).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>matt@daubenspeck.org</who>
            <bug_when>2005-10-06 12:27:04 0000</bug_when>
            <thetext>I tried that, but since /usr/sbin/ofpath is on the boot CD, it&apos;s read-only and
cannot be saved.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dostrow@gentoo.org</who>
            <bug_when>2005-10-08 16:59:02 0000</bug_when>
            <thetext>Fix in CVS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dostrow@gentoo.org</who>
            <bug_when>2005-10-08 17:52:01 0000</bug_when>
            <thetext>Whoops...forgot to close it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2005-11-21 06:51:19 0000</bug_when>
            <thetext>This is fixed with the 2005.1-r1 release media.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>