Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-19 Thread Vladimir 'phcoder' Serbinenko
Patch on patch. Now it installs correctly and external module builds work too. For install script to work I had to simplify sed command. Does this new sed command poses any problems. Also agner (objconv author) accepted my patch but said that addend modification was incorrect. I've seen now that re

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-16 Thread Vladimir 'phcoder' Serbinenko
On Tue, May 12, 2009 at 10:57 PM, step21 wrote: > I didn't include sh.mod speifically in my past builds, but even with > it specifically added somehow I only get rescue mode. My other > grub.efi is in the same directory and still works perfectly. command > used if you want to check it: "./grub-mki

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-12 Thread step21
I didn't include sh.mod speifically in my past builds, but even with it specifically added somehow I only get rescue mode. My other grub.efi is in the same directory and still works perfectly. command used if you want to check it: "./grub-mkimage -d . -o grapple.efi configfile kernel normal xnu lin

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-12 Thread Bean
Hi, Have you tried sh.mod and normal.mod ? On Tue, May 12, 2009 at 7:48 PM, step21 wrote: > it gets started now, but then goes to rescue mode. Possibly I just > forgot to pass some module to grub-mkimage, but don't know which, > cause in addition to configfile I also tried with almost all module

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-12 Thread step21
it gets started now, but then goes to rescue mode. Possibly I just forgot to pass some module to grub-mkimage, but don't know which, cause in addition to configfile I also tried with almost all modules, but still only rescue mode. any ideas? On Tue, May 12, 2009 at 7:18 AM, Peter Cros wrote: > Al

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-11 Thread Peter Cros
Also good for cross compile --target=i386, running grub32.efi on MacBook2,1. On Tue, May 12, 2009 at 1:23 PM, Peter Cros wrote: > > All good now, with the addition of grub-mkimage.c prefix workaround and > apple2.diff. (grub2 rev2202) > > (x86_64 grub.efi booting ubuntu904 2.6.28-amd64 on MBP4,

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-11 Thread Peter Cros
All good now, with the addition of grub-mkimage.c prefix workaround and apple2.diff. (grub2 rev2202) (x86_64 grub.efi booting ubuntu904 2.6.28-amd64 on MBP4,1). On Tue, May 12, 2009 at 11:54 AM, Vladimir 'phcoder' Serbinenko < phco...@gmail.com> wrote: > On Mon, May 11, 2009 at 8:04 PM, step21

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-11 Thread Vladimir 'phcoder' Serbinenko
On Mon, May 11, 2009 at 8:04 PM, step21 wrote: > It compiles for me, but even with outcommented line in grub-mkimage.c > it does not start. It's a bug in objconv with 64-bit images. Add this patch workaround (prefix workaround still applies). Also this patch-on-patch contains another improvement f

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-11 Thread step21
It compiles for me, but even with outcommented line in grub-mkimage.c it does not start. On Mon, May 11, 2009 at 6:45 PM, Vladimir 'phcoder' Serbinenko wrote: > On Mon, May 11, 2009 at 6:30 PM, Vladimir 'phcoder' Serbinenko > wrote: >> On Mon, May 11, 2009 at 12:48 PM, Peter Cros wrote: >>> >>>

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-11 Thread Vladimir 'phcoder' Serbinenko
On Mon, May 11, 2009 at 6:30 PM, Vladimir 'phcoder' Serbinenko wrote: > On Mon, May 11, 2009 at 12:48 PM, Peter Cros wrote: >> >> Hi, >> patches were applied with grub2 rev 2202, compiles and builds grub.efi in >> Mac OSX 10.5.6 , i686-apple-darwin9-gcc-4.0.1, with no errors, but fails to >> ru

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-11 Thread Vladimir 'phcoder' Serbinenko
On Mon, May 11, 2009 at 12:48 PM, Peter Cros wrote: > > Hi, > patches were applied with grub2 rev 2202, compiles and builds grub.efi in Mac > OSX 10.5.6 , i686-apple-darwin9-gcc-4.0.1, with no errors, but fails to run > grub.efi. > ./configure  --with-platform=efi --target=x86_64 > ./grub-mkimag

Re: [PATCH] Make grub2 compile with Apple's gcc

2009-05-11 Thread Peter Cros
Hi, patches were applied with grub2 rev 2202, compiles and builds grub.efi in Mac OSX 10.5.6 , i686-apple-darwin9-gcc-4.0.1, with no errors, but fails to run grub.efi. ./configure --with-platform=efi --target=x86_64 ./grub-mkimage -d . -o grubosx.efi appleldr boot cat cmp chain configfile crc d