Building a kernel
Building a kernel
- Subject: Building a kernel
- From: James Reynolds <email@hidden>
- Date: Fri, 28 Oct 2005 11:11:49 -0600
I built a custom kernel. I only made one small change. My custom
kernel is 4265912 bytes. The shipping kernel is 4308960. Am I
missing code from it?
Also, the docs for building a kernel don't work. Here is what I had
to follow to build mine:
Start with this. It is inaccurate a little, so you have to read some
other docs as well (when you get to cctools and kextsymboltool).
http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming/build/chapter_18_section_3.html
When you get to the step for cctools-576.3, read this webpage:
http://lists.apple.com/archives/darwin-kernel/2005/Jun/msg00100.html
In brief, the fixes are: edit libstuff/bytesex.c and replace all
fpu->environ with fpu->fp_environ and all fpu->stack with
fpu->fp_stack.
When you get to kextsymboltool, you have to get some more files. Read this:
http://lists.apple.com/archives/darwin-dev/2005/Jun/msg00133.html
You can ditto cctools-576.3/include/mach-o to
/usr/local/include/mach-o for the first fix (kld.h) and for the
second fix (KXKextManager.h) you have to download IOKitUser
(http://darwinsource.opendarwin.org/) and then do this ditto:
ditto IOKitUser-271/kext.subproj /usr/local/include/IOKit/kext
--
Thanks,
James Reynolds
University of Utah
Student Computing Labs
email@hidden
801-585-9811
_______________________________________________
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