Regression on powerpc-ieee2375
Hi,
I've found some time to try to find out a small time gap where the following bug was introduced.
I had a January or early February snapshot of grub installed in my Apple PowerBook. Installing it involves working around some problems, most notably grub-probe not liking that my boot device is called "hd" and not "hd0" in Apple's OpenFirmware. This makes grub-install unusable, although grub-mkdevicemap does write a correct file.
To install, I need to copy the mod files to my bootstrap partition manually, create the core image and modify the correctly generated device.map so it reads "(hd0) /dev/hda" instead of "(hd) /dev/hda". After this, update-grub generates a grub.cfg, which I then need to correct back to "hd,X" values, and then I can boot.
The other day I installed a recent grub snapshot, version 1.96+20080408-1, and grub stopped being able to boot Linux.
The menu loads correctly, and when an entry gets selected, I get:
Booting Debian GNU/Linux, linux 2.6.25-rc8-powerpc (single-user mode)
Invalid memory access a t %SRR0: 00139d4 %SRR1: 00003030 load-size=5a474 adler32=50409797
and am dropped to an OF prompt.
I've found out the last version that works is 1.96+20080219-2, with latest changelog entry:
2008-02-19 Robert Millan <[email protected]>
* partmap/gpt.c: Include <grub/gpt_partition.h>'. (grub_gpt_partition_type_empty): Redefine with macro from <grub/gpt_partition.h>'. (gpt_partition_map_iterate): Adjust partition type comparison.
[...]
The next Debian version available is 20080228-1, with the following changelog entry:
2008-02-28 Robert Millan <[email protected]>
* conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod. (aout_mod_SOURCES): New variable. (aout_mod_CFLAGS): Likewise. (aout_mod_LDFLAGS): Likewise.
* conf/i386-ieee1275.rmk: Likewise.
Does anyone have an educated guess of what commit could have broken powerpc? I'm more or less available for testing, when I have the laptop with me, and can be contacted on IRC as well.
I mentioned the grub-probe "(hd)" problem back in February, but I don't remember reaching any conclusion on what the correct behaviour should be. I think Pavel suggested that grub translated these unusual device names to add a number between OF and grub, but that's all I can remember. Any help to get grub-probe functional on Apple would be cool.
Jordi
Signature · 3 lines
Jordi Mallach Pérez -- Debian developer http://www.debian.org/ [email protected] [email protected] http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/
Quoted 4 lines · Jordi Mallach
The menu loads correctly, and when an entry gets selected, I get:
Booting Debian GNU/Linux, linux 2.6.25-rc8-powerpc (single-user mode)
Invalid memory access a t %SRR0: 00139d4 %SRR1: 00003030 load-size=5a474 adler32=50409797
I suspect this change:
* kern/elf.c (grub_elf32_load): Get the physical address after the hook function is called, so that it's possible to change it inside the hook.
It's just because it involves ELF files, and PowerPC kernels are ELF files.
You may want to use the git clone of the repository for bisection:git://repo.or.cz/grub2.git
That commit is 3e29769b6e7d9dce668e719f87fd3508bdef3bcf
Quoted 5 lines
I've found out the last version that works is 1.96+20080219-2, with latest changelog entry:
2008-02-19 Robert Millan <[email protected]>
That's 53094f1fa0d674e155fe137eff5c8b6a4f7d33d2
Quoted 4 lines
The next Debian version available is 20080228-1, with the following changelog entry:
2008-02-28 Robert Millan <[email protected]>
That's 3532b06122258d8551b7e7f37cd03c0c5d3633c8
Happy bisecting :-)
Quoted 7 lines
I mentioned the grub-probe "(hd)" problem back in February, but I don't
remember reaching any conclusion on what the correct behaviour should be. I think Pavel suggested that grub translated these unusual device names to add a number between OF and grub, but that's all I can remember. Any help to get grub-probe functional on Apple would be cool.
Actually, I would prefer that we retire device.map and use BIOS/firmware data, relative paths and labels whenever possible. That should work for the absolute majority of the users.
Sophisticated cross-device installs should provide the needed mappings on the command line. But I don't think I have ever suggested that publicly.
Signature · 2 lines
Regards, Pavel Roskin