Bug#916864: Extend grub-ofpathname to behaves like yaboot/ofpath on PowerPC system
Mathieu Malaterre
malat at debian.org
Fri May 3 13:04:30 BST 2019
On Fri, May 3, 2019 at 1:15 PM John Paul Adrian Glaubitz
<glaubitz at physik.fu-berlin.de> wrote:
>
> Hi!
>
> On 5/3/19 10:53 AM, Frank Scheiner wrote:
> >> Could you reply to the Debian bug number so that I can get a clean
> >> view of the issue.
> >
> > Sure.
> >
> >> Then simply please post the output of:
> >>
> >> (1) yaboot/ofpath (the one that works)
> >
> > ``
> > root at powermac-g5:~# ofpath /dev/sda2
> > /ht at 0,f2000000/pci at 9/k2-sata-root at c/@0/@0:2
> > ```
> >
> >> (2) grub-ofpathname (specify if this with my patch)
> >
> > The `grub-ofpathname` used in the following has your patch included:
> >
> > ```
> > root at powermac-g5:~# grub-ofpathname /dev/sda2
> > /ht at 0,f2000000/pci at 9/k2-sata-root at c/@0:2
> > ```
>
> For reference, here's the same with GRUB 2.04~rc1 on one of the IBM POWER
> machines we have at Debian (running in big-endian mode):
>
> root at redpanda:~# ./yaboot-test/usr/sbin/ofpath /dev/sda2
> /vdevice/v-scsi at 30000004/@1:2
> root at redpanda:~# ./grub/grub-ofpathname /dev/sda2
> /vdevice/v-scsi at 30000004/disk at 8100000000000000:b
> root at redpanda:~#
>
> So, I'm not sure that Mathieu's patch would be enough to mimic the behavior
> of Yaboot's ofpath whose sources can be found at:
>
> > http://git.ozlabs.org/?p=yaboot.git;a=blob;f=ybin/ofpath;h=aff5583457e645f878c01e1084e59689cee94b88;hb=HEAD
>
> I will have a look at ofpath vs. grub-ofpathname once I am finished with
> the cd-boot changes to debian-installer/debian-cd unless someone else
> is faster.
>
> > Using that with `,\grub` added in the NVRAM var `boot-device` does not
> > boot the machine:
> >
> > ```
> > root at powermac-g5:~# nvsetenv boot-device
> > "/ht at 0,f2000000/pci at 9/k2-sata-root at c/@0:2,\grub"
> > root at powermac-g5:~# echo $?
> > 0
> > root at powermac-g5:~# nvram --print-config="boot-device"
> > /ht at 0,f2000000/pci at 9/k2-sata-root at c/@0:2,\grub
> >
> > ## Reboot into OF
> >
> > 0 > boot load-size=0 adler32=1
> >
> > LOAD-SIZE is too small
> >
> > ok
> > 0 >
> > ```
>
> You actually don't need to prove it doesn't work, I believe you anyway ;).
>
> FWIW, where did you install grub-ofpathname from? I don't actually see it
> in the grub-common package on powerpc/ppc64:
>
> root at redpanda:~# dpkg -L grub-common |grep ofpath
> root at redpanda:~# dpkg -L grub2-common |grep ofpath
> root at redpanda:~#
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916830
More information about the Pkg-grub-devel
mailing list