From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CcOwA-0003Zb-VS for mharc-grub-devel@gnu.org; Thu, 09 Dec 2004 09:06:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CcOw8-0003ZN-U6 for grub-devel@gnu.org; Thu, 09 Dec 2004 09:06:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CcOw8-0003ZB-Ad for grub-devel@gnu.org; Thu, 09 Dec 2004 09:06:28 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcOw8-0003Z8-85 for grub-devel@gnu.org; Thu, 09 Dec 2004 09:06:28 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CcOlx-0001Ug-AR for grub-devel@gnu.org; Thu, 09 Dec 2004 08:55:57 -0500 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 7D8238899 for ; Thu, 9 Dec 2004 14:52:28 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 10407-03 for ; Thu, 9 Dec 2004 14:52:25 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 52AB68D22 for ; Thu, 9 Dec 2004 14:52:25 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id EC880C058 for ; Thu, 9 Dec 2004 14:52:24 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <87sm6iqs9s.fsf@night.trouble.net> <87d5xlhtcb.fsf@marco.marco-g.com> <87brd4q5wq.fsf@night.trouble.net> <200412090316.04926.okuji@enbug.org> <87vfbbofzr.fsf@night.trouble.net> From: Marco Gerards Date: Thu, 09 Dec 2004 13:51:23 +0000 In-Reply-To: <87vfbbofzr.fsf@night.trouble.net> (Johan Rydberg's message of "Thu, 09 Dec 2004 12:42:00 +0100") Message-ID: <874qivbmw4.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Re: multiboot 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: Thu, 09 Dec 2004 14:06:29 -0000 Johan Rydberg writes: > "Yoshinori K. Okuji" writes: > >>> That brings us the next issue; BUILD_CC is used to build >>> _everything_, including the host-specific object files, and since >>> BUILD_CC is set to /usr/bin/gcc in my cross-compiler environment it >>> will try to compile PPC assembler sources with a i386 compiler. Not >>> good. >> >> Why? Host-specific objects are compiled by CC instead of BUILD_CC. > > Not for the powerpc target, where everything is "utilities" including > grubof. Right, but that is just a "bug" that should be fixed after module loading works. As for module loading. It already works, but in grubof it crashes when jumping into the module. This is most likely a problem with the protection of the memory. Johan told me to have a look at the ibat registers, etc. I'll do that. I can check in the kern/powerpc/dl.c + powerpc-ieee1275.rmk changes so it becomes easy for Hollis to finish grub-mkimage, IIRC he still wanted to do some things there, although it worked fine for me. That way we can get module loading quite soon and fix the problem with utilities as well... Hacking around this problem while it is not crucial does not seem right to me. Thanks, Marco