Re: Why it's so difficult to fix PowerMac booting for good
Hi Adrian, On Wed, 2 Oct 2024 at 09:52, John Paul Adrian Glaubitz wrote: > > On Tue, 2024-10-01 at 23:38 +0100, Ed Robbins wrote: > > I just tried this, and blessed the file with: > > > > hmount /dev/sda2 > > hattrib -c UNIX -t tbxi :System:Library:CoreServices:BootX > > humount > > > > But I see no difference upon rebooting the machine. Am I missing something? > > You actually did not bless the bootloader folder. From the grub-installer > script [1]: > > # hattrib -c UNIX -t tbxi :System:Library:CoreServices:BootX > # hattrib -b :System:Library:CoreServices > Thanks. Just gave this a try (running both those commands) and I'm afraid the behaviour is still identical to what I described previously. I mean, holding down alt is not so bad honestly, and that seems to "just work" with the standard grub install as far as I am aware. > Adrian > > > [1] > > https://salsa.debian.org/installer-team/grub-installer/-/blob/master/grub-installer?ref_type=heads#L1061 > > -- > .''`. John Paul Adrian Glaubitz > : :' : Debian Developer > `. `' Physicist > `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: Booting OS X from grub
Hi Adrian, On Wed, 2 Oct 2024 at 12:42, John Paul Adrian Glaubitz wrote: > > Hello Ed, > > On Wed, 2024-10-02 at 12:35 +0100, Ed Robbins wrote: > > Picking up from the other thread... this is about booting OS X on > > apple ppc hardware when grub is being used to boot Linux. > > Ah, that's a completely different problem then. I don't actually know whether > GRUB can load other bootloaders when using Open Firmware (ieee1275). > I think Ben's solution (the BootX file he shared) is just an openfirmware script that runs before grub, which allows you to choose between a grub/os x/CD. And it is also how yaboot handled this (I think his script is a modification of the yaboot one). But I am not sure how to make that script run by default instead of jumping straight to grub. > This is probably something that needs to be asked on the grub-devel mailing > list. Although grub shows options for the other installed operating systems (i.e. OS X) it indeed seems unable to boot them. I am not sure if this is supposed to work. > > Adrian > > -- > .''`. John Paul Adrian Glaubitz > : :' : Debian Developer > `. `' Physicist > `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: Why it's so difficult to fix PowerMac booting for good
Hi Ed, On Wed, 2024-10-02 at 10:59 +0100, Ed Robbins wrote: > > > But I see no difference upon rebooting the machine. Am I missing > > > something? > > > > You actually did not bless the bootloader folder. From the grub-installer > > script [1]: > > > > # hattrib -c UNIX -t tbxi :System:Library:CoreServices:BootX > > # hattrib -b :System:Library:CoreServices > > > > Thanks. Just gave this a try (running both those commands) and I'm > afraid the behaviour is still identical to what I described > previously. > > I mean, holding down alt is not so bad honestly, and that seems to > "just work" with the standard grub install as far as I am aware. I'm not 100% sure I understand what your problem is, can you elaborate this again? I think you should also better create a new mailing list thread for that since this seems to be a different problem. Normally the firmware should detect and show all blessed bootloaders both in the startup boot menu in the firmware and the startup selection of OSX. The current default bootloader selection is stored in NVRAM separately. In the past, we hard-wired the Open-Firmware path into NVRAM before I understood what is actually necessary for a bootloader to be displayed and selectable in the startup menu which are the two hattrib changes to bless a folder. Every bootloader that has been blessed will automatically show up in the startup screen and will be selectable. But, again, please create a new thread for this and describe your problem in detail, hijacking other threads often just results in such discussions being buried. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Booting OS X from grub
Hi all, Picking up from the other thread... this is about booting OS X on apple ppc hardware when grub is being used to boot Linux. I tried the version of the BootX file Ben Westover shared in this message https://lists.debian.org/debian-powerpc/2023/06/msg8.html I placed the file in /boot/grub/System/Library/CoreServices/BootX. I then blessed it: umount /dev/sda2 hmount /dev/sda2 hattrib -c UNIX -t tbxi :System:Library:CoreServices:BootX hattrib -b :System:Library:CoreServices humount What I expected to happen, was that on power on I would get a menu, the same as yaboot used to have, which says something like "press l for linux, x for mac os, c for cdrom". What actually happens is that on power on it goes straight to grub, as it did before. If I hold alt down at power on and select the debian option, then I do get the "press l for linux, x for mac os, c for cdrom" menu. However I am not really sure this is worth pursuing, because holding down alt to select the operating system is already a working solution for booting mac os x when grub is used as the bootloader for Linux. I do wonder though how one would go about changing the default boot OS. Thanks, Ed
Re: Booting OS X from grub
Hello Ed, On Wed, 2024-10-02 at 12:35 +0100, Ed Robbins wrote: > Picking up from the other thread... this is about booting OS X on > apple ppc hardware when grub is being used to boot Linux. Ah, that's a completely different problem then. I don't actually know whether GRUB can load other bootloaders when using Open Firmware (ieee1275). This is probably something that needs to be asked on the grub-devel mailing list. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: Why it's so difficult to fix PowerMac booting for good
On Tue, 1 Oct 2024 at 23:38, Ed Robbins wrote: > > Hi Ben, > > On Fri, 2 Jun 2023 at 05:26, Ben Westover wrote: > > > > Hello, > > > > It turns out that adding &device; alone is not enough since it refers to > > only the drive and not the partition along with it. &device;:&partition; > > is what was actually needed. Fixed script is attached. > > I just tried this, and blessed the file with: > > hmount /dev/sda2 > hattrib -c UNIX -t tbxi :System:Library:CoreServices:BootX > humount > > But I see no difference upon rebooting the machine. Am I missing something? I played a bit more (without changing anything). The behaviour I get now is: If I just turn on the machine, it goes to the grub menu. If I hold down alt, I can choose between debian (with a nice logo but called "untitled"), Leopard and Tiger -> OS X options both work -> If I choose debian, I get a menu the same as the old yaboot first menu: Press l for Linux, x for mac os, c for cdrom -> x does boot mac os -> l takes me to the grub menu Thanks, Ed > > Thanks, > Ed > > > > > -- > > Ben Westover
Re: Why it's so difficult to fix PowerMac booting for good
On Tue, 2024-10-01 at 23:38 +0100, Ed Robbins wrote: > I just tried this, and blessed the file with: > > hmount /dev/sda2 > hattrib -c UNIX -t tbxi :System:Library:CoreServices:BootX > humount > > But I see no difference upon rebooting the machine. Am I missing something? You actually did not bless the bootloader folder. From the grub-installer script [1]: # hattrib -c UNIX -t tbxi :System:Library:CoreServices:BootX # hattrib -b :System:Library:CoreServices Adrian > [1] > https://salsa.debian.org/installer-team/grub-installer/-/blob/master/grub-installer?ref_type=heads#L1061 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913