[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Grub2 on Mac OS X
From: |
Antoine Terrienne |
Subject: |
Grub2 on Mac OS X |
Date: |
Mon, 21 Mar 2005 19:55:00 +0100 |
User-agent: |
Internet Messaging Program (IMP) 3.2.5 |
Hello,
I'm trying to compile Grub2 on Mac OS X and I get somme truble. To be more
precise I try to compile from powerpc-apple-darwinX.Y.Z to powerpc-elf. The gcc
provided with XCode cannot link at arbitrary address so I had to rebuild a
complete compilation environment (binutils/gcc) with --target=powerpc-elf. So
far so good, I was able to build the L4 kernel and libs for Pistachio L4 for
powerpc. Now I try to get Grub2 to boot it.
So I manage to compile Grub with --host=powerpc-elf. I fond manny errors I
corrected : configure fails at detecting both gcc (from the system) and
powerpc-elf-gcc (for xcompil). The were somme problems with the differences
between linux and Mac OS like malloc.h located in malloc/malloc.h for Mac.
There were truble also with the argp functions provided by glibc. This is not
present in Mac OS X so I replaced it by getopt like for grub-mkimage. There
were somme other problems with the mix-up of i386 code used by the ppc part.
Somme of the types defined in include/gruc/i386/pc/init.h were not present il
powerpc/ieee1275/init.h.
Grub2 still fails at compiling (somewere in the linux module) now but I'll try
to find a way to make it work. Most problem I get it from the use of somme
linux specific types that are not present on Mac OS.
Here is a patch with the modifications I made. Please tell me if some of them
are wrong. I hope I would help.
Thank's
bye
--
--
____
/ \ / address@hidden
| o o | - http://antoine.terrienne.free.fr
| o | \ #153026466
\ V V /
\_/\_/
grub2_on_macosx_20050321.patch
Description: Binary data
- Grub2 on Mac OS X,
Antoine Terrienne <=