ProjectOSX

Welcome Guest!

Returning User? Login here.

Want membership privileges? Register here.

 
Start a new topic Add Reply
> Compiling Xnu-1699.22.73 Question
extraspeed
post Jul 25 2011, 05:44 PM
Post #1
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!


AkimoA
post Jul 25 2011, 07:25 PM
Post #2
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
extraspeed
post Jul 26 2011, 12:30 PM
Post #3
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
Slice
post Jul 26 2011, 07:30 PM
Post #4
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.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
гык-sse2
post Jul 28 2011, 03:13 PM
Post #5
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.
UEFI is a great way to get the best of the best in the world of imagination and creativity. ©Google Scribe
mac20133
post Aug 20 2011, 07:50 AM
Post #6
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
Slice
post Aug 27 2011, 06:39 PM
Post #7
Native mach_kernel=mach_kernel.ia32+mach_kernel.x64 with a small differencies in size because of optimisations.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
yingxuy
post Dec 14 2011, 03:21 AM
Post #8
OSX Lion, what command should I use? It said: "snowleopard" What should I use instead?
Slice
post Dec 14 2011, 08:25 AM
Post #9
make install ARCH_CONFIGS="I386 X86_64" KERNEL_CONFIGS="RELEASE"
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2

Add Reply Start a new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: