[1] https://lists.debian.org/debian-powerpc/2022/03/msg00029.html
[2] https://opensource.apple.com/source/bless/bless-37/README.BOOTING
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 - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
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
I suppose it would be better if someone did the test on a system where
*only* Linux is installed, to make sure that OpenFirmware is able to
find GRUB without boot-device being set.
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].
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
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.
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.
On Mar 27, 2022, at 10:51 PM, Dennis Clarke <dclarke@blastwave.org> wrote:
On 3/25/22 03:43, John Paul Adrian Glaubitz wrote:
Then the machine DOES NOT boot.
I see :
Welcome to GRUB!
error: symbol `grub_disk_native_sectors' not found.
grub rescue>
Then, of course, the fans being their full speed noises.
So, any ideas on what to type at that prompt?
On Mar 27, 2022, at 10:51 PM, Dennis Clarke <dclarke@blastwave.org> wrote: >>
On 3/25/22 03:43, John Paul Adrian Glaubitz wrote:
Then the machine DOES NOT boot.
I see :
Welcome to GRUB!
error: symbol `grub_disk_native_sectors' not found.
grub rescue>
This change is unrelated to the change. It indicates a broken GRUB installation.
Then, of course, the fans being their full speed noises.
So, any ideas on what to type at that prompt?
Try invoking the boot menu by holding down <Alt> and see if you can find an alternative working boot loader.
If that doesn’t work, then my suspicion is that your installation is rather old and GRUB on this system was installed using the old hacky scripts.
I don’t think the G5 behaves differently here than my G4.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 89:06:34 |
Calls: | 6,658 |
Files: | 12,203 |
Messages: | 5,334,022 |