Re: booting iso image having syslinux

2009-08-08 Thread Vladimir 'phcoder' Serbinenko
> I don't know if it is a coincident but your timing to share these info is > directly connected with my problem. > I am presently trying to collect some live iso in my usb stick and like to > call those by grub2. gparted is one of them. > I have in mind to use gparted iso but you have already me

Bug report: crash of grub in case of AppleRaid partitions

2009-08-08 Thread Yves Blusseau
Hi, grub crashed when i try to made an ls -l and if one of my disk contain an AppleRaid partition. ls crash when it try to scan the partition. vladimir said me that there are bugs in hfsplus.c, that doesn"t handle errors correctly. He made me a quick fix: diff --git a/fs/hfsplus.c b/fs/h

Re: [PATCH] ntldr support

2009-08-08 Thread Yves Blusseau
Le 7 août 09 à 13:43, Robert Millan a écrit : 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, bu

Re: booting iso image having syslinux

2009-08-08 Thread J. Bakshi
On Sat, 8 Aug 2009 12:34:12 +0200 "Vladimir 'phcoder' Serbinenko" wrote: > > I don't know if it is a coincident but your timing to share these > > info is directly connected with my problem. I am presently trying > > to collect some live iso in my usb stick and like to call those by > > grub2. gp

Re: [PATCH] ntldr support

2009-08-08 Thread Vladimir 'phcoder' Serbinenko
> About the command, i think that it will be simpler for the user if we have > only one command: chainloader (like in grub4dos) that will try to detect the > type of the bootloader. This is only my personal opinion. I don't agree with this. chainloader and ntldr don't share the same syntax: chainlo

Re: [PATCH 1/2] Relocator framework

2009-08-08 Thread Vladimir 'phcoder' Serbinenko
On Sat, Aug 8, 2009 at 5:52 AM, Pavel Roskin wrote: > 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 pref

Report: compil error on OSX for target=i386

2009-08-08 Thread Yves Blusseau
Hi, can't compil grub2 on OSX with target=i386: ./configure --prefix=/opt --target=i386 *** GRUB2 will be compiled with following components: Platform: i386-pc grub-emu: Yes USB support for grub-emu: No (need libusb library) With memory debugg

Re: Report: compil error on OSX for target=i386

2009-08-08 Thread Bean
Hi, I also encounter this problem with apple gcc 4.0, the fix is to replace: asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" (params->code32_start)); With: asm volatile ("movl %0, %%ecx" : : "m" (params->code32_start)); asm volatile ("movl %0, %%esi" : : "m" (real_mode_mem));

Re: Report: compil error on OSX for target=i386

2009-08-08 Thread Vladimir 'phcoder' Serbinenko
On Sat, Aug 8, 2009 at 4:44 PM, Bean wrote: > Hi, > > I also encounter this problem with apple gcc 4.0, the fix is to replace: > > asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" > (params->code32_start)); > > With: >  asm volatile ("movl %0, %%ecx" : : "m" (params->code32_start)); >

[PATCH] RFT: Rename local labels with a macro from boot/i386/pc/boot.S

2009-08-08 Thread Yves Blusseau
Here a patch to be apply after the 2 pavel's patch (Eliminate Apple specific code and Remove ABS macro). This patch create a new macro LOCAL to define local labels and rename all labels starting with "L_" with the new macro. I have compil boot.img under OSX and boot with the new generated f

Re: Report: compil error on OSX for target=i386

2009-08-08 Thread Bean
On Sat, Aug 8, 2009 at 10:47 PM, Vladimir 'phcoder' Serbinenko wrote: > On Sat, Aug 8, 2009 at 4:44 PM, Bean wrote: >> Hi, >> >> I also encounter this problem with apple gcc 4.0, the fix is to replace: >> >> asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" >> (params->code32_start)); >

Re: [PATCH] RFT: Rename local labels with a macro from boot/i386/pc/boot.S

2009-08-08 Thread Vladimir 'phcoder' Serbinenko
On Sat, Aug 8, 2009 at 4:48 PM, Yves Blusseau wrote: > Here a patch to be apply after the 2 pavel's patch (Eliminate Apple specific > code and Remove ABS macro). This patch create a new macro LOCAL to define > local labels and rename all labels starting with "L_" with the new macro. > Nice. I will

Re: [PATCH] RFT: Rename local labels with a macro from boot/i386/pc/boot.S

2009-08-08 Thread Yves Blusseau
Le 8 août 09 à 16:55, Vladimir 'phcoder' Serbinenko a écrit : On Sat, Aug 8, 2009 at 4:48 PM, Yves Blusseau wrote: Here a patch to be apply after the 2 pavel's patch (Eliminate Apple specific code and Remove ABS macro). This patch create a new macro LOCAL to define local labels and rename a

Re: Fwd: [PATCH 1/2] Framebuffer split

2009-08-08 Thread Michal Suchanek
Hello I cannot get any sense of these patches "with moving code around omitted" so I tried the git repository in Vladimir's signature. Maybe I am missing something but the function of this code escapes me: static grub_err_t grub_video_vbe_set_viewport (unsigned int x, unsigned int y,

grub-dumpdevtree

2009-08-08 Thread Robert Millan
Hi, I just committed this to grub-dumpdevtree. Fortunately, Vladimir explained on IRC that those cryptic numbers are actually hexified versions of ASCII strings. Without that information, this code would be unmaintainable, and to some extent it compromises freedom 1 (the freedom to study how a

Re: [PATCH] ntldr support

2009-08-08 Thread Christian Franke
Michal Suchanek wrote: I tried putting the ntldr binary on an empty fat32 disk and loading with the grub ntldr command. The system just reboots. This also happens when ntldr is loaded by the regular boot code in PBR+boot area. It is apparently the normal(?-) behavior when ntdetect.com i

Re: [PATCH] ntldr support

2009-08-08 Thread Christian Franke
Vladimir 'phcoder' Serbinenko wrote: About the command, i think that it will be simpler for the user if we have only one command: chainloader (like in grub4dos) that will try to detect the type of the bootloader. This is only my personal opinion. I don't agree with this. chainloader and ntl

Re: Fwd: [PATCH 1/2] Framebuffer split

2009-08-08 Thread Michal Suchanek
2009/8/8 Michal Suchanek : > Hello > > I cannot get any sense of these patches "with moving code around > omitted" so I tried the git repository in Vladimir's signature. > > Maybe I am missing something but the function of this code escapes me: > > static grub_err_t > grub_video_vbe_set_viewport (u

Re: Solving the grub-pe2elf problem

2009-08-08 Thread Christian Franke
Bean wrote: 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 comp

Re: booting iso image having syslinux

2009-08-08 Thread Peter Cros
It could be easier to use the partedmagic live iso, pmagic-4.3.iso, (kernel 2.6.30.1-pmagic), which does loop mount iso with 64 bit grub.efi loopback on Apple mac (It has gparted). On Sat, Aug 8, 2009 at 9:50 PM, J. Bakshi wrote: > On Sat, 8 Aug 2009 12:34:12 +0200 > "Vladimir 'phcoder' Serbin