Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKFhS-00063b-Uk for mharc-grub-devel@gnu.org; Wed, 30 Jan 2008 11:22:10 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKFhR-00063G-4E for grub-devel@gnu.org; Wed, 30 Jan 2008 11:22:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKFhQ-00062c-Cf for grub-devel@gnu.org; Wed, 30 Jan 2008 11:22:08 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKFhQ-00062S-9Y for grub-devel@gnu.org; Wed, 30 Jan 2008 11:22:08 -0500 Received: from smtp8-g19.free.fr ([212.27.42.65]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKFhP-0004XC-Id for grub-devel@gnu.org; Wed, 30 Jan 2008 11:22:08 -0500 Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id BA21417F50C; Wed, 30 Jan 2008 17:22:06 +0100 (CET) Received: from imp6-g19.free.fr (imp6-g19.free.fr [212.27.42.6]) by smtp8-g19.free.fr (Postfix) with ESMTP id 7C55717F52B; Wed, 30 Jan 2008 17:22:06 +0100 (CET) Received: by imp6-g19.free.fr (Postfix, from userid 33) id 518E8427E; Wed, 30 Jan 2008 17:22:01 +0100 (CET) Received: from dhcp-guest.act-europe.fr (dhcp-guest.act-europe.fr [212.99.106.127]) by imp.free.fr (IMP) with HTTP for ; Wed, 30 Jan 2008 17:22:00 +0100 Message-ID: <1201710120.47a0a428d9cb7@imp.free.fr> Date: Wed, 30 Jan 2008 17:22:00 +0100 From: tgingold@free.fr To: Robert Millan References: <20080128160905.GA2739@saphi> <20080128165504.GB9715@thorin> <20080129051252.GA2504@saphi> <20080129095922.GA31756@thorin> <1201602926.479f016e27f08@imp.free.fr> <20080129113219.GA22894@thorin> <1201611409.479f22918bed6@imp.free.fr> <20080129131934.GB26291@thorin> <871w80adut.fsf@xs4all.nl> <20080130054811.GA4665@saphi> <20080130150701.GA25196@thorin> In-Reply-To: <20080130150701.GA25196@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 212.99.106.127 Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Cc: tgingold@free.fr, The development of GRUB 2 Subject: Re: IA64 port 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: Wed, 30 Jan 2008 16:22:09 -0000 Quoting Robert Millan : > On Wed, Jan 30, 2008 at 06:48:11AM +0100, Tristan Gingold wrote: > > grub-probe is missing. Did you check if it works? Although, I think i= t > should just move to common.rmk. I'll have a look at that. Ok. > > diff -ruNp -x '*~' -x CVS -x autom4te.cache -x '*.mk' -x configure > grub2.orig/util/ia64/efi/grub-install.in grub2/util/ia64/efi/grub-insta= ll.in > > --- grub2.orig/util/ia64/efi/grub-install.in 1970-01-01 01:00:00.0000= 00000 > +0100 > > +++ grub2/util/ia64/efi/grub-install.in 2008-01-28 16:29:58.000000000= +0100 > > [...] > > +grub_probefs=3D${sbindir}/grub-probefs > > grub-probefs was renamed to grub-probe. Ok, I missed that. > > +# Create the core image. First, auto-detect the filesystme module. > > +#fs_module=3D`$grub_probefs --device-map=3D${device_map} ${grubdir}` > > +#if test "x$fs_module" =3D x -a "x$modules" =3D x; then > > +# echo "Auto-detection of a filesystem module failed." 1>&2 > > +# echo "Please specify the module with the option \`--modules' > explicitly." 1>&2 > > +# exit 1 > > +#fi > > Why is this commented out? Is ${grubdir} a mount point to efi's boot > memory device? Yes. > We do that on i386 (I don't claim that it is a good way, > in fact I dislike it and Okuji does as well, but if we want to change i= t I > expect we'll want to change it in both). > > Also, missing partmap_module and devabstraction_module. I think you sh= ould > resync this with the latest version of i386/efi/grub-install.in. Will do. > > +modules=3D"kernel > > kernel isn't implicit? Should be. > > gpt > > Is gpt mandatory? Almost. > We can use gpt without efi; I wonder if we can also use > efi without gpt. If you can access the raw disk, any partition map (ev= en no > partition map at all!) could be used, right? Not really. EFI has to load grub, and EFI only always knows GPT+FAT. > > fat > > Even if fat is mandated by the standard, I think it's safer to probe fo= r > that, > since we have the mechanism to do it (grub-probe also performs some san= ity > checks that would detect if the fat is corrupted or so). Sure. > > gzio normal ls cat fshelp help _linux linux memmap systab boot > > Why this selection specificaly? That's the one I used and tested :-) > Other ports without significant size limit > just encourage the user to do "grub-mkimage *.mod -o foo" or manually s= elect > what is needed. Ok. > Or it wasn't possible to load additional modules in runtime yet? I don= 't > remember well.. Yes, you currently can't dynload modules. > > +# Generate init/fini for modules. > > +modfile=3D$tmpdir/mod.c > > +echo "/* Dummy modules. */" > $modfile > > +list=3D"" > > +init_list=3D"" > > +fini_list=3D"" > > +for m in $modules; do > > + file=3D"$pkglibdir/${m}.mod" > > + name=3D`nm $file | sed -n "/ r grub_module_name/ s/.* r > grub_module_name_\(.*\)/\1/p"` > > + init=3D`nm $file | sed -n "/ T grub_module_.*_init/ s/.* T //p"` > > + fini=3D`nm $file | sed -n "/ T grub_module_.*_fini/ s/.* T //p"` > > + init_list=3D"$init_list $init" > > + fini_list=3D"$fini_list $fini" > > + arg=3D"\"$name\",${init:-0},${fini:-0}" > > + list=3D"$list $arg" > > +done > > Is there a way we can do this before to avoid runtime dependency on bin= utils? This is part of the module trick ;-). If we build a grub with all module= s, this is not necessary anymore. > Btw has this been tested on i386-efi ? No. I only have access to an EFI simulator on i386. Tristan.