![]() |
I've compiled xnu-1456.1.26 by following this guide: http://shantonu.blogspot.com/2009/09...-has-been.html
I have a Pentium-D so these are the minimum changes that need to be made to get it to boot: changes =============== * remove the CPUID checks in cpuid_set_info() in osfmk/i386/cpuid.c: Specifically the cpuid_family and cpuid_model panic * change 'cpufamily = CPUFAMILY_UNKNOWN' to 'cpufamily = CPUFAMILY_INTEL_6_14' in bsd/kern/kern_mib.c * comment out cpuid_family check in tsc_init() on line X in osfmk/i386/tsc.c. Specifically comment out this code: if (cpuid_info()->cpuid_family != CPU_FAMILY_PENTIUM_M) { panic("tsc_init: unknown CPU family: 0x%X\n", cpuid_info()->cpuid_family); } * comment out following lines in commpage_stuff_routine() on line X in osfmk/i386/commpage/commpage.c: if ((cur_routine!=0) && (matched==0)) panic("commpage no match for last, next address %08lx", rd->commpage_address); A few more changes are needed to get x64 support but before I add that, I wanted to get 32bit mode to work. With the above changes, the kernel boots but it hangs after the 'BSD root: disk0s2, major 14, minor 2' print. Normally after that it prints a few 'com.apple.launchd' lines but not with the kernel that I built and I don't know why. Any ideas? |
Code:
MIG clock.h Fixed the, getsectdatafromheader error with this like never_mind said: //#ifndef _SYS_LINKER_SET_H_ void *getsectdatafromheader(kernel_mach_header_t *, const char *, const char *, unsigned long *); //#endif Putting in #include <libkern/kernel_mach_header.h> into linker_set.h did however not work... |
Quote:
Also I've read somewhere else that there might be missing #endif directives to #if directives in some of the headers. Perhaps you should investigate? |
It seems that their defined in mach_traps.h...
Not sure which header file to include... |
Quote:
you #include <i386/mach_traps.h> Just an example... Check the base path and include it before the definitions Also check for those unmatched #if s I have bought an external HD so I'll be on Snow myself soon ;) |
Nice to hear that Andy, looking forward to AnV snow kitty kernel :)
|
I am not pleased with the modbin kernel...
It panics right after init :( I'm not able to install SL on my external HD :-/ |
What does the kernel panic say andy? Did you tried the test7 kernel?
I haven't had the time too check on the error while compiling yet... Hope you can figure it out :) |
Quote:
migging the .h file (there's no .mig files?) is giving me buckets of error, but also on other .h files, so I am probably not doing it right. But what I found is that , the "missing }." is caused by a missing newline in osfmk/conf/MASTER.i386 Seems hard to believe? Just open osfmk/conf/MASTER.i386 , go to the lastline, slam some <returns> (ok 1's enough) into the file (so, at the end) and after that the error is gone. Tough one! Let's see about this next error.. BBL! :) p.s. this is what diff gave me (opendiff didn't show me this, annoying!!!): 80,84d79 < < # added builtin decryptor functions < # < options BUILTIN_DECRYPTER < #options BUILTIN_DECRYPTER_VERBOSE \ No newline at end of file |
Quote:
Need custom kernel with SSE3 emulator, or no go :) Forward we go! :) p.s. why are you not able to install it on external hd?? |