Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FWklL-0004xe-NH for mharc-grub-devel@gnu.org; Thu, 20 Apr 2006 21:48:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWklK-0004x9-72 for grub-devel@gnu.org; Thu, 20 Apr 2006 21:48:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWklJ-0004ww-Fk for grub-devel@gnu.org; Thu, 20 Apr 2006 21:48:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWklJ-0004wm-Aq for grub-devel@gnu.org; Thu, 20 Apr 2006 21:48:45 -0400 Received: from [209.86.89.69] (helo=elasmtp-mealy.atl.sa.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWkmk-0001RY-8K; Thu, 20 Apr 2006 21:50:14 -0400 Received: from [63.246.184.80] (helo=[192.168.0.101]) by elasmtp-mealy.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1FWklH-0001Li-Bz; Thu, 20 Apr 2006 21:48:43 -0400 In-Reply-To: <15bb419c8982646ff2f1e0ad2fd3072a@penguinppc.org> References: <20060419175310.GA19052@nubol.oskuro.net> <15bb419c8982646ff2f1e0ad2fd3072a@penguinppc.org> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Thu, 20 Apr 2006 20:49:00 -0500 To: The development of GRUB 2 X-Mailer: Apple Mail (2.623) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec79e71c80ddb3c46041df331d5c8cf8b5c4350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Cc: Jordi Mallach Subject: Re: [patch] set-colors X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 01:48:46 -0000 On Apr 20, 2006, at 8:18 PM, Hollis Blanchard wrote: >> 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 diff -u -p -r1.2 ieee1275.c --- kern/ieee1275/ieee1275.c 21 Aug 2005 18:42:55 -0000 1.2 +++ kern/ieee1275/ieee1275.c 21 Apr 2006 01:46:54 -0000 @@ -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;