Bug#916864: Extend grub-ofpathname to behaves like yaboot/ofpath on PowerPC system

Frank Scheiner frank.scheiner at web.de
Fri May 3 09:53:28 BST 2019


Hi Mathieu,

On 5/3/19 10:02, Mathieu Malaterre wrote:
>> On which machine did this work? I wrote earlier today that the modified
>> grub-ofpathname does not work on a 11,2 type G5, so the patch seems to
>> be not generic enough.
>
> Sorry about that. I must say there are way too many emails to read.

Ok, as your mail came right after Adrian's one where he asked about news
for testing grub-ofpathname, it seemed like you were aware.

> 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
```

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 >
```

Tests were performed on my 11,2 type Power Mac G5.

Cheers,
Frank



More information about the Pkg-grub-devel mailing list