hi,
nvram --print-config='boot-device /pci@f4000000/ata-6@d/@0:2,\\:txbi'
nvram --update-config boot-device=""
nvram --print-config=boot-device
reboot
result is another login prompt
On Fri, Mar 25, 2022, 12:44 AM John Paul Adrian Glaubitz <
[email protected]> wrote:
Hello!
I would like to ask users running Debian on a real PowerMac machine (G3,
G4, G5 etc)
to help me verify a theory on the boot mechanism. In particular, the
question is
whether we can skip setting the boot-device in NVRAM in the grub-installer script
which causes incompatibilities with the PowerMac emulation in QEMU [1].
According to Apple's documentation [2], Open Firmware will automatically search for
available operating systems, so there is no need to explicitly set the
path to
the boot device.
To verify this, I set the boot device on my iBook G4 to NULL and checked whether the
machine would still boot which turns out to be true. However, before I
change the
code in grub-installer, I want to make sure it won't break any other PowerMacs.
So, if you would like to help, please try the following.
As root, run:
root@ibook-g4:~# nvram --print-config=boot-device /pci@f4000000/ata-6@d/@0:2,\\:txbi
root@ibook-g4:~# nvram --update-config boot-device=""
root@ibook-g4:~# nvram --print-config=boot-device
root@ibook-g4:~# reboot
If your machine still comes up after changing "boot-device" to zero, we
know that
it's safe to drop the NVRAM part from the grub-installer script for PowerMacs.
This will fix the remaining compatibility with QEMU.
Thanks,
Adrian
[1] https://lists.debian.org/debian-powerpc/2022/03/msg00029.html
[2] https://opensource.apple.com/source/bless/bless-37/README.BOOTING
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - [email protected]
`. `' Freie Universitaet Berlin - [email protected]
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
<div dir="auto"><div dir="auto"><div dir="auto"><div dir="auto">hi,</div><div dir="auto"><br></div><div dir="auto">nvram --print-config='boot-device /pci@f4000000/ata-6@d/@0:2,\\:txbi'</div><div dir="auto">nvram --update-config boot-device="&
quot;</div><div dir="auto">nvram --print-config=boot-device</div></div></div><div dir="auto">reboot</div><div dir="auto"><br></div><div dir="auto">result is another login prompt</div><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_
attr">On Fri, Mar 25, 2022, 12:44 AM John Paul Adrian Glaubitz <<a href="mailto:
[email protected]" target="_blank" rel="noreferrer">
[email protected]</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .
8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
I would like to ask users running Debian on a real PowerMac machine (G3, G4, G5 etc)<br>
to help me verify a theory on the boot mechanism. In particular, the question is<br>
whether we can skip setting the boot-device in NVRAM in the grub-installer script<br>
which causes incompatibilities with the PowerMac emulation in QEMU [1].<br>
According to Apple's documentation [2], Open Firmware will automatically search for<br>
available operating systems, so there is no need to explicitly set the path to<br>
the boot device.<br>
To verify this, I set the boot device on my iBook G4 to NULL and checked whether the<br>
machine would still boot which turns out to be true. However, before I change the<br>
code in grub-installer, I want to make sure it won't break any other PowerMacs.<br>
So, if you would like to help, please try the following.<br>
As root, run:<br>
root@ibook-g4:~# nvram --print-config=boot-device<br> /pci@f4000000/ata-6@d/@0:2,\\:txbi<br>
root@ibook-g4:~# nvram --update-config boot-device=""<br> root@ibook-g4:~# nvram --print-config=boot-device<br>
root@ibook-g4:~# reboot<br>
If your machine still comes up after changing "boot-device" to zero, we know that<br>
it's safe to drop the NVRAM part from the grub-installer script for PowerMacs.<br>
This will fix the remaining compatibility with QEMU.<br>
Thanks,<br>
Adrian<br>
> [1] <a href="
https://lists.debian.org/debian-powerpc/2022/03/msg00029.html" rel="noreferrer noreferrer noreferrer" target="_blank">
https://lists.debian.org/debian-powerpc/2022/03/msg00029.html</a><br>
> [2] <a href="
https://opensource.apple.com/source/bless/bless-37/README.BOOTING" rel="noreferrer noreferrer noreferrer" target="_blank">
https://opensource.apple.com/source/bless/bless-37/README.BOOTING</a><br>
-- <br>
.''`. John Paul Adrian Glaubitz<br>
: :' : Debian Developer - <a href="mailto:
[email protected]" rel="noreferrer noreferrer" target="_blank">
[email protected]</a><br>
`. `' Freie Universitaet Berlin - <a href="mailto:
[email protected]" rel="noreferrer noreferrer" target="_blank">
[email protected]</a><br>
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913<br>
</blockquote></div>
</div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)