Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GSxCa-0007mr-5L for mharc-grub-devel@gnu.org; Thu, 28 Sep 2006 10:49:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSxCY-0007kx-Ml for grub-devel@gnu.org; Thu, 28 Sep 2006 10:49:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSxCX-0007jk-EI for grub-devel@gnu.org; Thu, 28 Sep 2006 10:49:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSxCX-0007jZ-Aq for grub-devel@gnu.org; Thu, 28 Sep 2006 10:49:25 -0400 Received: from [212.27.42.29] (helo=smtp3-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GSxHd-0005ab-GT for grub-devel@gnu.org; Thu, 28 Sep 2006 10:54:41 -0400 Received: from imp1-g19.free.fr (imp1-g19.free.fr [212.27.42.1]) by smtp3-g19.free.fr (Postfix) with ESMTP id 481384980D for ; Thu, 28 Sep 2006 16:49:24 +0200 (CEST) Received: by imp1-g19.free.fr (Postfix, from userid 33) id 2D49E46B8; Thu, 28 Sep 2006 16:49:24 +0200 (CEST) Received: from 129.184.84.11 ([129.184.84.11]) by imp1-g19.free.fr (IMP) with HTTP for ; Thu, 28 Sep 2006 16:49:24 +0200 Message-ID: <1159454964.451be0f4181e5@imp1-g19.free.fr> Date: Thu, 28 Sep 2006 16:49:24 +0200 From: tgingold@free.fr To: The development of GRUB 2 References: <1159443706.451bb4fad4e1a@imp6-g19.free.fr> <87zmck15gp.fsf@xs4all.nl> <1159451113.451bd1e94a4d9@imp1-g19.free.fr> <87ac4k12vn.fsf@xs4all.nl> In-Reply-To: <87ac4k12vn.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 129.184.84.11 Content-Transfer-Encoding: quoted-printable Subject: Re: Grub for ia64 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, 28 Sep 2006 14:49:27 -0000 Quoting Marco Gerards : > tgingold@free.fr writes: > > >> Can you please explain why you want this in detail? I know there ar= e > >> issues with EFI to determine the prefix. My guess is that is why yo= u > >> want to change this. > > Yes. > > Please elaborate. The prefix is determined from an EFI file path. This file path may have some components in upper case. However grub can't match a mixed file nam= e with a FAT directory entry. We could either fix this by lowering the EFI file path or fixing the fat = fs. > >> But I am afraid this might not be a generic > >> solution so I hope we can discuss the problem first. > > I suppose you can't use mixed case filename currently for FAT fs. Th= is > > patch fixes that. > > Well, I am afraid the same problem will show up when using HFS+, ext2 > or whatever. So that is why I would like a detailed description of > this problem (I just know there is a problem, but never received a > detailed report). > > >> > [I think most 64 bits issues have already been reported recently a= nd > >> > independently by the mail grub2 64bit system compatible] > >> > >> Cool. I assume these patches are in CVS now? > > AFAIK not yet integrated. > > Ok. Your patch relies on that? so would those have to go in first? No, No. Completly independant. > >> > * the current common code can't work on ia64 (on ia64 a function > >> > pointer is a descriptor and not the address of the first function > >> > instruction). > >> > >> Can you give some examples by using code? Certainly we would have t= o > >> aim for module loading at some point in time. :) > > Yes, cf kern/dl.c: > > > > if (grub_strcmp (name, "grub_mod_init") =3D=3D 0) > > mod->init =3D (void (*) (grub_dl_t)) sym->st_value; > > > > This won't work on ia64 AFAIK. > > Why not? In the internal working of filesystems there are also > function pointer being used. Same for almost every other part of > GRUB 2. So I am wondering what makes this different. Function pointers works on ia64 (of course!) But you can't convert an ad= dress to a function pointer. This cast is not valid on ia64 (and violates the = C standard). > >> > * grub-emu doesn't have dynamic modules and could reuse this work = to > remove > >> > most of #ifdef/#endif GRUB_UTIL > >> > >> *Please* do not mess around too much with grub-emu. I can perfectly > >> understand why people want all kind of things changed in grub-emu an= d > >> I would certainly like to have module support there (IIRC there were > >> patches sent in, some of which I still have to review, etc :-/). > >> > >> It's important to know why I wrote grub-emu. It is mainly a debuggi= ng > >> tool. For example you don't want to implement a filesystem or work = on > >> the commandline interface without such tool. Having module loading > >> only is just annoying so GRUB_UTIL can't and won't be removed. > > >From my point of view, GRUB_UTIL could be removed without adding > >modules to grub-emu. This would be slightly cleaner. > > Well, it's use can certainly be brought back or changed. But adding a > module loader is not the way to go. If it bothers a lot of people I > could change functions like grub_dl_ref into a macro which does the > #ifdef. I have never suggested to add module loader to grub-emu! > >> Actually, it is technically almost impossible to do modules loading = in > >> every case on every processor. For example take the PPC, some > >> relocations are almost impossible or very hard to implement in > >> userspace. > > Looks strange. How does ld.so works on these systems ? > > For the PPC I once wrote a module loader (userspace). Some > relocations expect the symbols you point to from the relocated code, > to be within 4MB. The dynamic loader on the PPC perhaps has no > problems with that because it can load code about everywhere and > perhaps those relocations are normally not used, but I can be wrong. These problems are very common. You should compile with -fpic! Tristan.