Re: Building 10.6 kernel?
Re: Building 10.6 kernel?
- Subject: Re: Building 10.6 kernel?
- From: "Nix, James L (IS)" <email@hidden>
- Date: Tue, 1 Dec 2009 13:58:39 -0600
- Thread-topic: Building 10.6 kernel?
Thanks for all the help. The advice I received worked great. I no longer see
the 10 minute delay at system startup. Below is a summary of the
steps I took to build and run a 10.6.2 kernel. However, I would still like to
know why the AppleProfileFamily kext needs to be disabled. Could someone shed
some light on exactly how the AppleProfileFamily kext is dependent upon the
specific kernel that it ships with?
Thanks,
--Jim
Building 10.6.2 kernel:
1. Build xnu kernel using instructions at:
http://shantonu.blogspot.com/2009/09/mac-os-x-kernel-source-xnu-has-been.html
2. Install new mach_kernel file on test partition.
3. Disable AppleProfileFamily.kext by removing it from the /System/Library/Extensions
directory of the test partition.
4. touch /System/Library/Extensions directory of the test partition.
5. Boot up the test partition!
---------------------------------------------
After you install the new kernel, on the same partition,
touch SystemLibrary/Extensions
The first time it reboots it will rebuild the kernel cache.
After booting successfully once, it will boot fast again.
-- Terry
---------------------------------------------
Date: Thu, 26 Nov 2009 14:58:15 -0500
From: nawcom <email@hidden>
Subject: Re: Building 10.6 kernel?
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
What I have been doing since the first xnu src for darwin 10 came out is
using a kernel extension to prevent any of the kexts of and within
AppleProfileFamily.kext from loading. If you'd like to see the source
code for this kext let me know, but simply removing the kexts and
subkexts inside of it does the same thing.
Give this a try James, move AppleProfileFamily.kext out from
/System/Library/Extensions to some other place and rebuild the
Extensions.mkext (can be done with a simple: sudo mv
/System/Library/Extensions/AppleProfileFamily.kext /System/Library; sudo
touch /System/Library/Extensions) and reboot, launching your compiled
kernel. you will see that you won't have to wait 10 minutes and there
will be no losses or effects in performance or anything in the OS
itself. I still haven't been able to get information from Apple on how
to solve this issue, but this is what I have been using as an effective
solution to the problem.
-nawcom
---------------------------------------------
Nix, James L (IS) wrote:
> The instructions at:
>
> http://shantonu.blogspot.com/2009/09/mac-os-x-kernel-source-xnu-has-been.html
>
> work great. I had no problems building the kernel. The problem is that when I
> install the new kernel, my test machine takes approx. 10 minutes to boot.
> Actually boot works ok, but the machine hangs prior to login -- just after
> the SecurityAgent launches. It hangs for about 10 minutes and then proceeds
> normally. It's as if some process is timing out.
>
> When I ssh into the machine and run top, I notice that the hidd process is "stuck".
> If I kill the hidd process, it restarts, and the machine immediately becomes responsive.
>
> Any ideas? Are there some kernel dependencies that I am overlooking?
> By the way, this happens with all three versions of the 10.6 source available
> at opensource.apple.com.
>
> Thanks,
>
> --Jim
>
>
<<winmail.dat>>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden