Re: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images
Hi, Sorry, I missed this as well - my otherwise lovely threaded email client doesn't sort on the basis of most recent message, but thread start date. > root@ibook-g4-14:/home/glaubitz/grub# grub-install -d ./grub-core > --macppc-directory=/boot/grub --no-nvram > Installing for powerpc-ieee1275 platform. > grub-install: warning: cannot open directory `/usr/local/share/locale': No > such file or directory. > Installation finished. No error reported. > root@ibook-g4-14:/home/glaubitz/grub# > > However, after rebooting the machine, the machine is now unbootable. The > firmware > is unable to even load GRUB. I'm just getting the question mark sign which > indicates > that the firmware cannot find the bootloader. That's really irritating. (and apologies for rendering your machine unbootable!) I don't have a good idea what the cause of that would be. I don't think I saw anything similar under qemu's mac99 model. Is there any chance you could dump the `available` property of the /memory node before grub is loaded? I don't think it's likely to be very revealing but it's my best idea so far... I've also since left IBM so I'm not likely to have a heap of time to follow it up, unfortnately. The patch does solve a real issue on Power systems, so I guess the next best thing if we can't root-cause it is to make the link address compile-time configurable :/ Kind regards, Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images
Hi! On 1/14/22 17:54, John Paul Adrian Glaubitz wrote: > Hmm, I must have forgotten that. Let me give it a try after dinner. The laptop > just happens to be sitting next to me. I gave it a try now and made sure to use the proper grub-core directory and that the kernel.img in /usr/local/lib/grub/powerpc-ieee1275/ is up-to-date, so installation went without an error message: root@ibook-g4-14:/home/glaubitz/grub# grub-install -d ./grub-core --macppc-directory=/boot/grub --no-nvram Installing for powerpc-ieee1275 platform. grub-install: warning: cannot open directory `/usr/local/share/locale': No such file or directory. Installation finished. No error reported. root@ibook-g4-14:/home/glaubitz/grub# However, after rebooting the machine, the machine is now unbootable. The firmware is unable to even load GRUB. I'm just getting the question mark sign which indicates that the firmware cannot find the bootloader. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images
Hi Robbie! On 1/14/22 17:43, Robbie Harwood wrote: > John Paul Adrian Glaubitz writes: > >> On 11/24/21 01:51, Daniel Axtens wrote: >>> Could you humour me and: >>> - check that your kernel.img in /usr is indeed up to date >>> - try grub-install ... -d ./grub-core? >>> >>> Many thanks! >> >> Apologies for the late reply. I will give it a try later today and >> report back. > > Hi Adrian, did you get a chance to try Daniel's suggestion? Hmm, I must have forgotten that. Let me give it a try after dinner. The laptop just happens to be sitting next to me. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images
John Paul Adrian Glaubitz writes: > On 11/24/21 01:51, Daniel Axtens wrote: >> Could you humour me and: >> - check that your kernel.img in /usr is indeed up to date >> - try grub-install ... -d ./grub-core? >> >> Many thanks! > > Apologies for the late reply. I will give it a try later today and > report back. Hi Adrian, did you get a chance to try Daniel's suggestion? Be well, --Robbie signature.asc Description: PGP signature ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images
Hi Daniel! On 11/24/21 01:51, Daniel Axtens wrote: > Could you humour me and: > - check that your kernel.img in /usr is indeed up to date > - try grub-install ... -d ./grub-core? > > Many thanks! Apologies for the late reply. I will give it a try later today and report back. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images
Hi Adrian, Thanks for testing! > root@ibook-g4-14:/home/glaubitz/grub# grub-install > --macppc-directory=/boot/grub --no-nvram > Installing for powerpc-ieee1275 platform. > grub-install: warning: cannot open directory `/usr/local/share/locale': No > such file or directory. > grub-install: error: `/usr/local/lib/grub/powerpc-ieee1275/kernel.img' is > miscompiled: its start address is 0x20 instead of 0x80: ld.gold bug?. > root@ibook-g4-14:/home/glaubitz/grub# Fascinating. I saw a similar issue when I only updated the kernel (Makefile.core.def) and not the utils and fixed it with the change to offsets.h. Interestingly you're seeing the issue in reverse: the tools are expecting the new offset but /usr/local/lib/grub/powerpc-ieee1275/kernel.img is built with the old offset. Could you humour me and: - check that your kernel.img in /usr is indeed up to date - try grub-install ... -d ./grub-core? Many thanks! Kind regards, Daniel ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel
Re: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images
Hello Daniel! On 11/16/21 04:42, Daniel Axtens wrote: > Daniel Axtens (2): > powerpc-ieee1275: load grub at 8MB, not 2MB > ieee1275: set real-base in the PowerPC IEEE1275 Note to 32MB I have applied these now and tested them on my iBook G4 but that introduced the following regression: root@ibook-g4-14:/home/glaubitz/grub# grub-install --macppc-directory=/boot/grub --no-nvram Installing for powerpc-ieee1275 platform. grub-install: warning: cannot open directory `/usr/local/share/locale': No such file or directory. grub-install: error: `/usr/local/lib/grub/powerpc-ieee1275/kernel.img' is miscompiled: its start address is 0x20 instead of 0x80: ld.gold bug?. root@ibook-g4-14:/home/glaubitz/grub# Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel