Hello,
I'm compiling xnu-1699.22.73 to fix Lapic.c issue that affects HP's laptops and I need some help with the following command.
QUOTE
make install RC_ARCHS="i386 x86_64" RC_CFLAGS="-arch i386 -arch x86_64 -pipe" RC_OS=macos RC_RELEASE=SnowLeopard SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
Compiling Snow Leopard I did used the command above but my question is, what command should I use with OSX Lion? where it says "snowleopard" what should I use instead of? I tried OSXLion and I had 2 errors at the end.
Any help would be great...Thanks!
QUOTE (extraspeed @ Jul 25 2011, 06:44 PM)

Hello,
I'm compiling xnu-1699.22.73 to fix Lapic.c issue that affects HP's laptops and I need some help with the following command.
Compiling Snow Leopard I did used the command above but my question is, what command should I use with OSX Lion? where it says "snowleopard" what should I use instead of? I tried OSXLion and I had 2 errors at the end.
Any help would be great...Thanks!

you are compiling with Xcode 3.26 and to compile a lion kernel u need to be on lion on Xcode 4.1
QUOTE (AkimoA @ Jul 25 2011, 03:25 PM)

you are compiling with Xcode 3.26 and to compile a lion kernel u need to be on lion on Xcode 4.1
Thanks for replying Mate.
Xcode 4 is buggy when I try run it on OSX Lion (at least on this laptop), that's why I tried Xcode 3.26 but I guess I have to try a different approach. I had noticed that apple made some changes to kext_tools-251, kextsymboltool and setsegname files are no longer visible files and also Lapic files has being expanded/added "lapic_native.c", "lapic.c", "lapic.h". .
Anyway, Thanks again
QUOTE (extraspeed @ Jul 25 2011, 09:44 PM)

Hello,
I'm compiling xnu-1699.22.73 to fix Lapic.c issue that affects HP's laptops and I need some help with the following command.
Compiling Snow Leopard I did used the command above but my question is, what command should I use with OSX Lion? where it says "snowleopard" what should I use instead of? I tried OSXLion and I had 2 errors at the end.
Any help would be great...Thanks!

This is only first error. When you correct them you encounter next one.
QUOTE (Slice @ Jul 26 2011, 11:30 PM)

This is only first error. When you correct them you encounter next one.
This is a warning, it's possible to change compiler flags in some makefile not to treat warnings as errors.
QUOTE (extraspeed @ Jul 26 2011, 01:30 PM)

Thanks for replying Mate.
Xcode 4 is buggy when I try run it on OSX Lion (at least on this laptop), that's why I tried Xcode 3.26 but I guess I have to try a different approach. I had noticed that apple made some changes to kext_tools-251, kextsymboltool and setsegname files are no longer visible files and also Lapic files has being expanded/added "lapic_native.c", "lapic.c", "lapic.h". .
Anyway, Thanks again
I build with xcode 4.1 (Build 4B110). it seems to go through all the way. and I get mach_kernel on both i386 and x86_64
john-iMac:xnu-1699.22.73 john$ ls -l BUILD/obj/RELEA*/mach_kernel
-rwxr-xr-x 1 john staff 7535856 Aug 18 19:01 BUILD/obj/RELEASE_I386/mach_kernel
-rwxr-xr-x 1 john staff 7858304 Aug 18 19:02 BUILD/obj/RELEASE_X86_64/mach_kernel
however I will need to test if it works.
ok I did the test on Gateway LION 10.7.0
both 32-bit and 64-bit kernel boot OK.
here are uname command to show the xnu info
boot flag:
mach_kernel.x86_64.11.0 -v arch=x86_64
uname -a
Darwin johns-imac.local 11.0.0 Darwin Kernel Version 11.0.0: Sat Aug 20 00:58:47 PDT 2011; john:xnu-1699.22.73/BUILD/obj/RELEASE_X86_64 x86_64
boot flag:
mach_kernel.i386.11.0 -v arch=i386
uname -a
Darwin johns-iMac.local 11.0.0 Darwin Kernel Version 11.0.0: Sat Aug 20 00:57:11 PDT 2011; john:xnu-1699.22.73/BUILD/obj/RELEASE_I386 i386
with released lion
uname -a
Darwin johns-iMac.local 11.0.0 Darwin Kernel Version 11.0.0: Sat Jun 18 12:57:44 PDT 2011; root:xnu-1699.22.73~1/RELEASE_I386 i386
What I don't understant is the kernel file size I build are a lot smaller. it only has half of the size of released kernel.
sh-3.2# ls -l /mach_kernel*
-rw-r--r--@ 1 root wheel 15565140 Jun 18 12:59 /mach_kernel
-rwxr-xr-x 1 root wheel 7535856 Aug 20 17:10 /mach_kernel.i386.11.0
-rwxr-xr-x 1 root wheel 7858304 Aug 20 17:10 /mach_kernel.x86_64.11.0
This post has been edited by mac20133: Aug 21 2011, 01:11 AM
Native mach_kernel=mach_kernel.ia32+mach_kernel.x64 with a small differencies in size because of optimisations.
OSX Lion, what command should I use? It said: "snowleopard" What should I use instead?