On Fri, May 3, 2019 at 1:15 PM John Paul Adrian Glaubitz <glaub...@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@powermac-g5:~# ofpath /dev/sda2 > > /ht@0,f2000000/pci@9/k2-sata-root@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@powermac-g5:~# grub-ofpathname /dev/sda2 > > /ht@0,f2000000/pci@9/k2-sata-root@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@redpanda:~# ./yaboot-test/usr/sbin/ofpath /dev/sda2 > /vdevice/v-scsi@30000004/@1:2 > root@redpanda:~# ./grub/grub-ofpathname /dev/sda2 > /vdevice/v-scsi@30000004/disk@8100000000000000:b > root@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@powermac-g5:~# nvsetenv boot-device > > "/ht@0,f2000000/pci@9/k2-sata-root@c/@0:2,\grub" > > root@powermac-g5:~# echo $? > > 0 > > root@powermac-g5:~# nvram --print-config="boot-device" > > /ht@0,f2000000/pci@9/k2-sata-root@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@redpanda:~# dpkg -L grub-common |grep ofpath > root@redpanda:~# dpkg -L grub2-common |grep ofpath > root@redpanda:~#
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916830