Problems with GRUB2 on PPC
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Jordi Mallach
Hardware:
Apple PowerBook G4 15" 750Mhz, purchased on January 2005.
This can't be right. Anyways, the most important question: what sort of video card is it?
Quoted 6 lines
OS: Debian unstable and Ubuntu dapper installed.
1st problem: when creating grub.cfg, I accidentally leftout the ".img" suffix from the initrd line. When grub whined about a file not found, I tab-completed it, but the changes wouldn't take effect until I manually corrected it in grub.cfg after booting with yaboot.
Marco, do you know if this would have been something broken recently with the scripting changes?
Quoted 5 lines
2nd: after the tests were successful, I changed my OpenFirmware configuration and switched to grubof.modules. After reboot, I got a black screen. What happens is that grub does boot, but it shows black on black text, so you can't see anything. Pressing enter to boot your default entry works as expected, and Linux boots.
Hmmm. It looks like we're using "call-method color!" to set colors. BootX is using "call-method set-colors" instead, and ybin does the same (but from Forth). I'm guessing the "color!" method doesn't exist in your card's firmware, and we should move to "set-colors" instead.
Vincent, do you know how/if this will affect Sparc? If OpenBoot doesn't have "set-colors", we can abstract it into an arch-specific function, but it would be nice if it does.
-Hollis
Re: [patch] set-colors
Quoted 9 lines · Hollis Blanchard
Quoted 5 lines
2nd: after the tests were successful, I changed my OpenFirmware configuration and switched to grubof.modules. After reboot, I got a black screen. What happens is that grub does boot, but it shows black on black text, so you can't see anything. Pressing enter to boot your default entry works as expected, and Linux boots.
Hmmm. It looks like we're using "call-method color!" to set colors. BootX is using "call-method set-colors" instead, and ybin does the same (but from Forth). I'm guessing the "color!" method doesn't exist in your card's firmware, and we should move to "set-colors" instead.
Vincent, do you know how/if this will affect Sparc? If OpenBoot doesn't have "set-colors", we can abstract it into an arch-specific function, but it would be nice if it does.
Jordi and Vincent, could you both please try this patch? It's working for me (but of course so was "color!").
-Hollis
Index: kern/ieee1275/ieee1275.c
===================================================================
RCS file: /sources/grub/grub2/kern/ieee1275/ieee1275.c,v retrieving revision 1.2
ieee1275/ieee1275.c 21 Apr 2006 01:46:54 -0000 renamed from ieee1275/ieee1275.c 21 Aug 2005 18:42:55 -0000 1.2 +3 -1
@@ -536,6 +536,7 @@ grub_ieee1275_set_color (grub_ieee1275_i struct grub_ieee1275_common_hdr common; char *method; grub_ieee1275_ihandle_t ihandle; + grub_ieee1275_cell_t numcolors; grub_ieee1275_cell_t index; grub_ieee1275_cell_t b; grub_ieee1275_cell_t g;
@@ -545,8 +546,9 @@ grub_ieee1275_set_color (grub_ieee1275_i args; INIT_IEEE1275_COMMON (&args.common, "call-method", 6, 1); - args.method = "color!"; + args.method = "set-colors"; args.ihandle = ihandle; + args.numcolors = 1; args.index = index; args.r = r; args.g = g;
Quoted 10 lines · Hollis Blanchard
Quoted 3 lines · Jordi Mallach
Hardware:
Apple PowerBook G4 15" 750Mhz, purchased on January 2005.This can't be right. Anyways, the most important question: what sort of video card is it?
Quoted 2 lines
OS: Debian unstable and Ubuntu dapper installed.
Quoted 7 lines
Quoted 4 lines
1st problem: when creating grub.cfg, I accidentally leftout the ".img" suffix from the initrd line. When grub whined about a file not found, I tab-completed it, but the changes wouldn't take effect until I manually corrected it in grub.cfg after booting with yaboot.
Marco, do you know if this would have been something broken recently with the scripting changes?
Not that I know of, but there are surely bugs. If you can reproduce something, please tell me.
--
Marco