kth5 / archpower

Unofficial Archlinux port to powerpc64le, powerpc64, powerpc and riscv64
https://archlinuxpower.org
77 stars 5 forks source link

Additional steps for booting using grub on ppc #12

Closed Sadoon-AlBader closed 5 months ago

Sadoon-AlBader commented 3 years ago

How to use Grub for booting:

This method will execute on KVM but will fail at setting the OF variable boot-device properly. No fix known at this time.

Originally posted by @kth5 in https://github.com/kth5/archpower/issues/5#issuecomment-713321912

Additional steps needed to fix the issue where OF doesn't recognize grub:

$ hmount /dev/sda2
$ hattrib -t tbxi -c UNIX :System:Library:CoreServices:BootX
$ hattrib -b :System:Library:CoreServices
$ humount

With this I think we have a complete method of installing Arch on both ppc Macs and OpenPOWER systems. I think we need a small wiki to make these steps more friendly, I'll open another issue and I'll work on that.

saul-huerta commented 3 years ago

In the step you mention: $ hmount /dev/sda2 $ hattrib -t tbxi -c UNIX :System:Library:CoreServices:BootX $ hattrib -b :System:Library:CoreServices $ humount These commands where are they put? Going to OF or restarting the ArchPower installation media or after putting the command "arch-chroot /mnt"? because in both the installation media environment and the installed system environment it tells me that ":System:Library:CoreServices:BootX" is not a directory.

crazycusti commented 2 years ago

Try grub-install --macppc-directory=/boot/grub

after that, look in /boot/grub if these files exists:

/ mach_kernel System/ Library/ CoreServices/ .disk_label .disk_label.contentDetails BootX grub.elf SystemVersion.plist

Source: https://forums.gentoo.org/viewtopic-t-1082746.html?sid=76347d1408dd36d53967326ff81ac7b1

kth5 commented 2 years ago

Added a Wiki page:

https://github.com/kth5/archpower/wiki/NewWorld-PowerMac-G3-G4-G5-installation-with-Grub

@crazycusti I don't have a G4 mac at hand until tomorrow but I'll give it a go.

retronica commented 2 years ago

Try grub-install --macppc-directory=/boot/grub

after that, look in /boot/grub if these files exists:

/ mach_kernel System/ Library/ CoreServices/ .disk_label .disk_label.contentDetails BootX grub.elf SystemVersion.plist

Source: https://forums.gentoo.org/viewtopic-t-1082746.html?sid=76347d1408dd36d53967326ff81ac7b1

I have found the need to specify --macppc-directory=/boot/grub on both mac G4 laptops i've tested

kth5 commented 5 months ago

Closing this for inactivity & it's only a historically relevant ticket.