Three question about grub2

2009-08-07 Thread J.Bakshi
Hello list, I am collecting some toolkits in my usb-stick powered with grub2. I installed grub2 in this stick from my debian squeeze box. During grub configuration some question has developed in my mind and I might be permitted to ask those in this list. 1] I am trying to boot the latest memtest8

Re: Three question about grub2

2009-08-07 Thread Felix Zielcke
Am Freitag, den 07.08.2009, 14:19 +0530 schrieb J.Bakshi: > Hello list, > > I am collecting some toolkits in my usb-stick powered with grub2. I > installed grub2 in this stick from my debian squeeze box. During grub > configuration some question has developed in my mind and I might be > permitted

Re: Three question about grub2

2009-08-07 Thread J.Bakshi
On Fri, Aug 7, 2009 at 2:26 PM, Felix Zielcke wrote: > Am Freitag, den 07.08.2009, 14:19 +0530 schrieb J.Bakshi: >> Hello list, >> >> I am collecting some toolkits in my usb-stick powered with grub2. I >> installed grub2 in this stick from my debian squeeze box. During grub >> configuration some qu

Re: [PATCH] multiboot on EFI

2009-08-07 Thread Robert Millan
On Wed, Aug 05, 2009 at 12:33:56PM +0200, Vladimir 'phcoder' Serbinenko wrote: > >>  static grub_err_t > >>  grub_multiboot_boot (void) > >>  { > >> +#ifdef GRUB_MACHINE_EFI > >> +  if (! grub_efi_finish_boot_services ()) > >> +     grub_fatal ("cannot exit boot services"); > >> +#endif > > > > gru

Re: [PATCH] ntldr support

2009-08-07 Thread Robert Millan
On Wed, Aug 05, 2009 at 07:35:32AM +0200, Christian Franke wrote: > Vladimir 'phcoder' Serbinenko wrote: >> On Tue, Aug 4, 2009 at 9:27 PM, Robert Millan<...> wrote: >> >>> After thinking a bit about this, I don't think we want this command in >>> its current form. >>> >>> The problem is it is m

Re: [PATCH 1/2] Relocator framework

2009-08-07 Thread Robert Millan
On Wed, Aug 05, 2009 at 12:18:17PM +0200, Vladimir 'phcoder' Serbinenko wrote: > >> +#ifdef __x86_64__ > >> +extern grub_uint64_t grub_relocator32_backward_src; > >> +#else > >> +extern grub_uint32_t grub_relocator32_backward_src; > >> +#endif > > > > You could make this a pointer, or grub_uintptr_

Re: [PATCH 2/2] Use relocator framework for multiboot1

2009-08-07 Thread Robert Millan
On Wed, Aug 05, 2009 at 12:20:35PM +0200, Vladimir 'phcoder' Serbinenko wrote: > On Tue, Aug 4, 2009 at 10:56 PM, Robert Millan wrote: > > On Mon, Aug 03, 2009 at 02:10:18PM +0200, Vladimir 'phcoder' Serbinenko > > wrote: > >> +#define GRUB_MULTIBOOT_STACK_SIZE 4096 > >> [...] > >> +#define stack_

Re: [PATCH 1/2] Relocator framework

2009-08-07 Thread Marco Gerards
Robert Millan writes: [...] >> Apple linker can't handle 64-bit differences > > This seems like a bug. Can GNU binutils be used on MacOS to resolve this? > > If it's workable, I'd rather make binutils a build requirement than adding > more of this (the other APPLE_CC ifdefs will probably need s

Re: [PATCH] ntldr support

2009-08-07 Thread Michal Suchanek
2009/8/7 Robert Millan : > On Wed, Aug 05, 2009 at 07:35:32AM +0200, Christian Franke wrote: >> Vladimir 'phcoder' Serbinenko wrote: >>> On Tue, Aug 4, 2009 at 9:27 PM, Robert Millan<...> wrote: >>> After thinking a bit about this, I don't think we want this command in its current form. >

Re: [PATCH] use UUID to map system devices to grub devices

2009-08-07 Thread Robert Millan
On Wed, Aug 05, 2009 at 08:18:29AM +0200, Felix Zielcke wrote: > Am Dienstag, den 04.08.2009, 23:19 +0200 schrieb Robert Millan: > > On Fri, Jul 31, 2009 at 06:26:51PM +0200, Felix Zielcke wrote: > > > > > > If we'd do an arbitrary mapping then `grub-probe -t drive' would show > > > the wrong grub

Re: i386/pc/grub-setup.c question

2009-08-07 Thread Robert Millan
On Wed, Aug 05, 2009 at 01:41:10AM -0700, Seth Goldberg wrote: > Has the blocklist (--force) code path been tested? We don't test it much. If you test it and find problems, feedback is welcome of course (I think Felix already addressed your concern), but we recommend that you avoid reliing on i

Re: New maintainers

2009-08-07 Thread Robert Millan
On Thu, Aug 06, 2009 at 12:09:46AM +0100, Carles Pina i Estany wrote: > > Hi, > > Ops, of course this had to be private. I'm going to translate. :-) > > felicitats Robert! > > congrats Robert! Gràcies / Thanks ;-) > > Aviat tornaré a posar-me amb el tema del gettext, segurament a partir > >

Re: VBE info request bit per Multiboot Specification 1

2009-08-07 Thread Robert Millan
On Tue, Aug 04, 2009 at 04:49:57PM -0700, Jan Setje-Eilers wrote: > > >> On Tue, Aug 04, 2009 at 01:37:19PM -0400, Francis Shim wrote: >>> Hi, >>> >>> In the Multiboot specifications (version 1), there is a flag that >>> the OS Image can set to request that the boot loader provide VBE >>> informa

Re: booting iso image having syslinux

2009-08-07 Thread Robert Millan
On Thu, Aug 06, 2009 at 02:12:58PM +0530, J.Bakshi wrote: > Hello list, > > GRUB2 has a cool feature to boot .iso image. It is really a cool > option as we can simply put the .iso and test it without making a cd. > Some of the .iso has syslinux inbuilt. Like live .iso of gparted and > dban. How c

Re: booting iso image having syslinux

2009-08-07 Thread Robert Millan
On Thu, Aug 06, 2009 at 05:18:22PM +0530, J.Bakshi wrote: > Thanks for your kind guidance. > The kernel path is correct. But after getting your response, I have > downloaded the iso again and overwrite the existing one in usb-stick. > Also check the md5sum and it is correct. And something *NEW* has

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Robert Millan
On Thu, Aug 06, 2009 at 11:39:11AM +0200, Felix Zielcke wrote: > +for dir in ${pkgdatadir} /boot/grub /usr/share/grub ; do > + for basename in unicode unifont ascii; do > + path="${dir}/${basename}.pf2" > +if is_path_readable_by_grub ${path} > /dev/null ; then > + GRUB_FO

Re: bootmgr support

2009-08-07 Thread Robert Millan
On Thu, Aug 06, 2009 at 06:57:43PM +0200, Yves Blusseau wrote: > Hi all, > > it will be great to have bootmgr support because we can boot directly > windows recovery environement image files (wim). > > We don't need a bootblock, only a valid boot/BCD file so it's possible > to put several WIM f

Re: [PATCH] ntldr support

2009-08-07 Thread Robert Millan
On Fri, Aug 07, 2009 at 01:17:30PM +0200, Michal Suchanek wrote: > > ntldr is a boot loader like any other and it needs its configuration > and support files to work. Without them it fails (not sure how) but > that is not unexpected. I tend to agree, but in this particular case, it's conceivable

Re: booting iso image having syslinux

2009-08-07 Thread J.Bakshi
On Fri, Aug 7, 2009 at 5:06 PM, Robert Millan wrote: > On Thu, Aug 06, 2009 at 02:12:58PM +0530, J.Bakshi wrote: >> Hello list, >> >> GRUB2 has a cool feature to boot .iso image.  It is really a cool >> option as we can simply put the .iso and test it without making a cd. >> Some of the .iso has sy

Re: Three question about grub2

2009-08-07 Thread J.Bakshi
On Fri, Aug 7, 2009 at 2:48 PM, J.Bakshi wrote: > On Fri, Aug 7, 2009 at 2:26 PM, Felix Zielcke wrote: >> Am Freitag, den 07.08.2009, 14:19 +0530 schrieb J.Bakshi: >>> Hello list, [snip..] >>> 2] In syslinux.cfg we use "TEXT" to display message. How to do the >>> same in grub2 ? >> >> echo co

Re: booting iso image having syslinux

2009-08-07 Thread J.Bakshi
> > Are you using vga= ?  I fixed a bug recently (in SVN) that may cause this > behaviour. > Then I have to reinstall grub from my sqeeeze box to the usb-stick again to see the effect. ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org

Re: [PATCH 1/2] Relocator framework

2009-08-07 Thread Vladimir 'phcoder' Serbinenko
On Fri, Aug 7, 2009 at 1:16 PM, Marco Gerards wrote: > Robert Millan writes: > > [...] > >>> Apple linker can't handle 64-bit differences >> >> This seems like a bug.  Can GNU binutils be used on MacOS to resolve this? >> >> If it's workable, I'd rather make binutils a build requirement than addin

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Felix Zielcke
Am Freitag, den 07.08.2009, 13:39 +0200 schrieb Robert Millan: > On Thu, Aug 06, 2009 at 11:39:11AM +0200, Felix Zielcke wrote: > > +for dir in ${pkgdatadir} /boot/grub /usr/share/grub ; do > > + for basename in unicode unifont ascii; do > > + path="${dir}/${basename}.pf2" > > +i

[PATCH] Reimplement 10_freebsd.in using 10_linux.in

2009-08-07 Thread Robert Millan
This patch reimplements 10_freebsd.in using 10_linux.in as a base, with the kFreeBSD-specific parts of 10_freebsd.in. The new version brings in support for multiple kernel versions (the reason for the rewrite) and also handling of acpi.ko. It is diffed against 10_linux.in, since the old code str

Re: Three question about grub2

2009-08-07 Thread Marco Gerards
"J.Bakshi" writes: > Coming back with one more question in mind. ( already searched bot no > luck yet ). "echo" can dispaly message. Is there ( by any luck ) any > command to display message from a file ? cat -- Marco ___ Grub-devel mailing list Gr

Re: [PATCH] make 10_linux' test_gt() a bit more generic

2009-08-07 Thread Robert Millan
Committed. Also moved those functions to grub-mkconfig_lib.in. On Tue, Aug 04, 2009 at 09:19:40PM +0200, Robert Millan wrote: > > This makes 10_linux' test_gt() a bit more generic so that it can be > moved (along with a few other functions) to grub-mkconfig_lib, where > it'll be usable by 10_f

Re: [PATCH] fix FreeBSD.vfs.root.mountfrom

2009-08-07 Thread Robert Millan
Committed. On Tue, Aug 04, 2009 at 09:13:51PM +0200, Robert Millan wrote: > On Tue, Aug 04, 2009 at 08:42:25PM +0200, Robert Millan wrote: > > > > FreeBSD.vfs.root.mountfrom expects an absolute path, not just device name. > > Actually, both work, but the former is what their loader uses, and it

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Felix Zielcke
Am Freitag, den 07.08.2009, 14:02 +0200 schrieb Felix Zielcke: > Am Freitag, den 07.08.2009, 13:39 +0200 schrieb Robert Millan: > > On Thu, Aug 06, 2009 at 11:39:11AM +0200, Felix Zielcke wrote: > > > +for dir in ${pkgdatadir} /boot/grub /usr/share/grub ; do > > > + for basename in unicode

Solving the grub-pe2elf problem

2009-08-07 Thread Robert Millan
Hi, I thought of a possible solution to the grub-pe2elf problem. It seems that it is burdensome to produce ELF binaries on Windows, but building PE binaries or even PE/win32 executables on GNU/Linux is not (thanks to Mingw32 toolchain which is available on most distributions). If building GRUB

Re: Solving the grub-pe2elf problem

2009-08-07 Thread Vladimir 'phcoder' Serbinenko
On Fri, Aug 7, 2009 at 3:46 PM, Robert Millan wrote: > > Hi, > > I thought of a possible solution to the grub-pe2elf problem.  It seems that > it is burdensome to produce ELF binaries on Windows, but building PE binaries > or even PE/win32 executables on GNU/Linux is not (thanks to Mingw32 toolchai

Re: Solving the grub-pe2elf problem

2009-08-07 Thread Vladimir 'phcoder' Serbinenko
On Fri, Aug 7, 2009 at 4:01 PM, Vladimir 'phcoder' Serbinenko wrote: > On Fri, Aug 7, 2009 at 3:46 PM, Robert Millan wrote: >> >> Hi, >> >> I thought of a possible solution to the grub-pe2elf problem.  It seems that >> it is burdensome to produce ELF binaries on Windows, but building PE binaries >>

Re: [PATCH] use UUID to map system devices to grub devices

2009-08-07 Thread Felix Zielcke
Am Freitag, den 07.08.2009, 13:27 +0200 schrieb Robert Millan: > On Wed, Aug 05, 2009 at 08:18:29AM +0200, Felix Zielcke wrote: > > Am Dienstag, den 04.08.2009, 23:19 +0200 schrieb Robert Millan: > > > On Fri, Jul 31, 2009 at 06:26:51PM +0200, Felix Zielcke wrote: > > > > > > > > If we'd do an arb

Re: Solving the grub-pe2elf problem

2009-08-07 Thread Christian Franke
Robert Millan wrote: I thought of a possible solution to the grub-pe2elf problem. It seems that it is burdensome to produce ELF binaries on Windows, but building PE binaries or even PE/win32 executables on GNU/Linux is not (thanks to Mingw32 toolchain which is available on most distributions).

Re: Solving the grub-pe2elf problem

2009-08-07 Thread Christian Franke
Vladimir 'phcoder' Serbinenko wrote: If you see pe2elf as being too much of a burden we may switch to objconv: http://www.agner.org/optimize/. It's already used in conjunction with Apple Mach-O toolchain. It's not a GNU project but is licensed under GPL. Thanks for the hint, I will try objco

Re: [PATCH 2/2] RFT: Remove ABS macro from boot/i386/pc/boot.S

2009-08-07 Thread Vladimir 'phcoder' Serbinenko
On Sat, Jul 18, 2009 at 9:16 PM, Robert Millan wrote: > On Sat, Jul 18, 2009 at 08:34:41PM +0200, Vladimir 'phcoder' Serbinenko wrote: >> Haiku can be compiled and can use either gcc 4.x or gcc2.95. The main >> reason for them to keep gcc 2.95 possibility is the binary >> compatibility with BeOS. A

Re: [PATCH] New object format

2009-08-07 Thread Bean
Hi, Update: Support 64-bit mach-o object files, now you can build i386-pc, i386-efi and x86_64-efi in OSX. Use PIC in x86_64-efi. Relocation R_X86_64_32S would cause problem in machine with 2G or more memory, the only way to get rid of it is to use large memory model, or use PIC. Large model is

How to call dban fron grub ?

2009-08-07 Thread J. Bakshi
Hello developers, I think ( please correct me if I am wrong ) I need not say more about dban (Darik's Boot And Nuke); a HDD data eraser. dban is shipped with syslinux to fit into both Cd and USB stick. What I am trying to achieve is to call dban by grub2. As per the syslinux.cfg; calling dban wi

Re: Solving the grub-pe2elf problem

2009-08-07 Thread Bean
Hi, You could also check out my new object format at http://github.com/bean123/grub, lib branch. It supports conversion of pe/elf/mach-o object file to a grub specific format, so that you can use native build tool in Linux/OSX/Windows, no need for linker and converter. It also reduce compile time

GRUB manual

2009-08-07 Thread Robert Millan
Hi, I've just reviewed the WIP manual in docs/grub.texi, and removed a lot of information that is specific to GRUB Legacy (sometimes entire sections). The remaining text was still written with GRUB Legacy in mind, and is certainly full of inaccuracies related to that. If you spot one of those,

Re: How to call dban fron grub ?

2009-08-07 Thread Felix Zielcke
Am Freitag, den 07.08.2009, 22:47 +0530 schrieb J. Bakshi: > Hello developers, > > I think ( please correct me if I am wrong ) I need not say more about dban > (Darik's Boot And Nuke); a HDD data eraser. > dban is shipped with syslinux to fit into both Cd and USB stick. What I am > trying to ach

Re: [PATCH] use UUID to map system devices to grub devices

2009-08-07 Thread Robert Millan
On Fri, Aug 07, 2009 at 04:29:00PM +0200, Felix Zielcke wrote: > Am Freitag, den 07.08.2009, 13:27 +0200 schrieb Robert Millan: > > On Wed, Aug 05, 2009 at 08:18:29AM +0200, Felix Zielcke wrote: > > > Am Dienstag, den 04.08.2009, 23:19 +0200 schrieb Robert Millan: > > > > On Fri, Jul 31, 2009 at 06

Re: Solving the grub-pe2elf problem

2009-08-07 Thread Robert Millan
On Fri, Aug 07, 2009 at 04:06:11PM +0200, Vladimir 'phcoder' Serbinenko wrote: > On Fri, Aug 7, 2009 at 4:01 PM, Vladimir 'phcoder' > Serbinenko wrote: > > On Fri, Aug 7, 2009 at 3:46 PM, Robert Millan wrote: > >> > >> Hi, > >> > >> I thought of a possible solution to the grub-pe2elf problem.  It s

Re: [PATCH] ntldr support

2009-08-07 Thread Michal Suchanek
2009/8/7 Robert Millan : > On Fri, Aug 07, 2009 at 01:17:30PM +0200, Michal Suchanek wrote: >> >> ntldr is a boot loader like any other and it needs its configuration >> and support files to work. Without them it fails (not sure how) but >> that is not unexpected. > > I tend to agree, but in this p

Re: booting iso image having syslinux

2009-08-07 Thread Peter Cros
Some comments about live iso booting and grub2 loopback - After grub boots the live iso kernel and initrd, they need to loop mount the iso again to access the live files. Otherwise the initrd would need rebuild, or some way found to pass the loop mount from grub. I have been trying some availabl

Re: [PATCH 1/2] Relocator framework

2009-08-07 Thread Pavel Roskin
On Fri, 2009-08-07 at 14:01 +0200, Vladimir 'phcoder' Serbinenko wrote: > Apple's compiler is based GCC but binutils aren't and they pose the > most of problems. Actualy the most problematic bit was that I didn't > know that unless you prefix variable with L_ apple's assembler treats > it as globa

Re: Solving the grub-pe2elf problem

2009-08-07 Thread Pavel Roskin
On Fri, 2009-08-07 at 22:39 +0200, Robert Millan wrote: > I don't understand this. Why is a requirement to install GNU binutils > unreasonable, whereas a requirement to install objconv is not? Installing binutils can break the existing toolchain. Installing objconv should not. It's a good idea

Re: Solving the grub-pe2elf problem

2009-08-07 Thread Pavel Roskin
On Fri, 2009-08-07 at 15:46 +0200, Robert Millan wrote: > Other maintainers, is it burdensome to any of you to include these binaries > in official builds? I suppose it's not, since mingw32 packages are widely > available, but it doesn't hurt to ask :-) I would prefer not to do a binary build at

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Pavel Roskin
On Fri, 2009-08-07 at 14:57 +0200, Felix Zielcke wrote: > I commited it now with an ack from Robert on IRC. Sorry, I'm commenting after it has been committed. Anyway, please note that having an approval doesn't absolve you from testing the code on your own. Reviews are not testing. There was a

Re: [PATCH] use UUID to map system devices to grub devices

2009-08-07 Thread Felix Zielcke
Am Freitag, den 07.08.2009, 21:22 +0200 schrieb Robert Millan: > On Fri, Aug 07, 2009 at 04:29:00PM +0200, Felix Zielcke wrote: > > Am Freitag, den 07.08.2009, 13:27 +0200 schrieb Robert Millan: > > > On Wed, Aug 05, 2009 at 08:18:29AM +0200, Felix Zielcke wrote: > > > > Am Dienstag, den 04.08.2009

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Felix Zielcke
Am Samstag, den 08.08.2009, 01:12 -0400 schrieb Pavel Roskin: > On Fri, 2009-08-07 at 14:57 +0200, Felix Zielcke wrote: > > > I commited it now with an ack from Robert on IRC. > > Sorry, I'm commenting after it has been committed. Anyway, please note > that having an approval doesn't absolve you

Re: [PATCH] make 10_linux' test_gt() a bit more generic

2009-08-07 Thread Pavel Roskin
On Fri, 2009-08-07 at 14:05 +0200, Robert Millan wrote: > > Committed. Also moved those functions to grub-mkconfig_lib.in. When comparing vmlinuz-2.6.31-rc4-wl and vmlinuz-2.6.31-rc5-wl, version_test_gt() ends up comparing "wl" and "wl". Using the "g" modifier leads to the replacement being app

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Felix Zielcke
Am Samstag, den 08.08.2009, 07:36 +0200 schrieb Felix Zielcke: > Am Samstag, den 08.08.2009, 01:12 -0400 schrieb Pavel Roskin: > > On Fri, 2009-08-07 at 14:57 +0200, Felix Zielcke wrote: > > > > > I commited it now with an ack from Robert on IRC. > > > > Sorry, I'm commenting after it has been co

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Pavel Roskin
On Sat, 2009-08-08 at 07:36 +0200, Felix Zielcke wrote: > > Could you please explain what I should do to keep using ascii.pf2? I > > checked the script, but don't see any variable controlling that. "make > > install" would install both unicode.pf2 and ascii.pf2, so unicode.pf2 > > would always b

Re: How to call dban fron grub ?

2009-08-07 Thread J. Bakshi
On Fri, 07 Aug 2009 19:35:09 +0200 Felix Zielcke wrote: [..] > > > > Does anyone of you have the luck to call dban from grub2 ? > > > > > > Try with the old linux loader with linux16 and initrd16 [..] WORKING !! it is working :-) you are a hero. ___

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Felix Zielcke
Am Samstag, den 08.08.2009, 01:49 -0400 schrieb Pavel Roskin: > On Sat, 2009-08-08 at 07:36 +0200, Felix Zielcke wrote: > > > > Could you please explain what I should do to keep using ascii.pf2? I > > > checked the script, but don't see any variable controlling that. "make > > > install" would i

Re: booting iso image having syslinux

2009-08-07 Thread J. Bakshi
On Sat, 8 Aug 2009 13:25:34 +1000 Peter Cros wrote: > Some comments about live iso booting and grub2 loopback - > > After grub boots the live iso kernel and initrd, they need to loop > mount the iso again to access the live files. Otherwise the initrd > would need rebuild, or some way found to

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Pavel Roskin
On Sat, 2009-08-08 at 08:04 +0200, Felix Zielcke wrote: > > I think it would be more natural to let the user specify the full path > > to the file. Setting LANG=C seems unneeded in this case. After all, > > it's the user's choice, and we cannot examine the font file to check > > which characters

Re: [PATCH] move functionality of font_path() directly to util/grub-mkconfig.in and prefer unicode.pf2 over ascii.pf2

2009-08-07 Thread Felix Zielcke
Am Samstag, den 08.08.2009, 02:35 -0400 schrieb Pavel Roskin: > On Sat, 2009-08-08 at 08:04 +0200, Felix Zielcke wrote: > > > > I think it would be more natural to let the user specify the full path > > > to the file. Setting LANG=C seems unneeded in this case. After all, > > > it's the user's c