Jump to content

Mavericks kernel testing on AMD (formerly Mountain Lion kernel testing on AMD)


theconnactic
 Share

6,414 posts in this topic

Recommended Posts

The first test with ML 10.8 with boot flag: -v, I get past kernel is LP64, it lists me my RTL81xx and hangs on: en0: start returns rv = true

It may also be that I have the bottle ML version, therefore.

The kernel boots very good and clean :king:

Link to comment
Share on other sites

The first test with ML 10.8 with boot flag: -v, I get past kernel is LP64, it lists me my RTL81xx and hangs on: en0: start returns rv = true

It may also be that I have he bottle ML version, therefore.

The kernel boots very good and clean :king:

Did you test with patched dyld?

Link to comment
Share on other sites

The second test with ML 10.8.3 with boot flag: -v, that boots much further than the first test, but the connection I get a KP with Bieb-Sound

 

the third Test with boot flag: arch=x86_64 busratio=20 maxmem=4096 -s that boots much further than the first test, but the connection I get a KP with Bieb-Sound and Black screen

 

all Tests with Phenom II X 6 1100T

 

Tomorrow I'll install mountain Lion 10.8.2 than I will run the test once more.

 

Did you test with patched dyld?

 

Edit:

sorry , only with diff no dylid

 

My eyes are now round ball, I bring some messed sun, where I find the dyld here?

Link to comment
Share on other sites

Hi! I found the right kexts (actually none.. Used the original kexts with flag PCIRootUID=1 :D)!

Unfortunately... Kernel is LP64. 10.8.2 myHack USB Installer with vanilla/stock dyld.

Tried to boot like 5 times, so I'm pretty sure it gets stuck there.

Will patch dyld now and try again. :)

 

EDIT: And all on Phenom II x4 965. Now I'll also do the myHack installation to another partition of HDD, it might be the USB that is failing. :D

Link to comment
Share on other sites

Hi, Andy!

 

With which version of Mountain Lion your latest kernel is supposed to work with? 10.8.0 or 10.8.2?

Best regards.

It is a 10.8.2 kernel...

Link to comment
Share on other sites

theconnatic can you test with mountain lion?? I'll go to bed, I am now almost 36 hours awake and now my eyes rebel. I will continue tomorrow, bye

Link to comment
Share on other sites

With the custom dyld?

It appears the kernel is no longer the issue...

Launchd is...

If only I knew where it hangs in launchd... then I could patch it...

Link to comment
Share on other sites

With the custom dyld?

It appears the kernel is no longer the issue...

Launchd is...

If only I knew where it hangs in launchd... then I could patch it...

 

Launchd.... It's pretty damn hard to get it even compiled on my SL. :D

Link to comment
Share on other sites

With the custom dyld?

It appears the kernel is no longer the issue...

Launchd is...

If only I knew where it hangs in launchd... then I could patch it...

 

I used the vanilla dyld. I don't have a patched one.

How about a debug version of your latest kernel?

Link to comment
Share on other sites

I used the vanilla dyld. I don't have a patched one.

How about a debug version of your latest kernel?

 

Use the amd_insn_patcher to patch the dyld?

Also I think someone posted a patched dyld in this topic, just few pages back... Not sure though.

 

EDIT: Here it is :Dhttp://www.insanelym...80#entry1875414

 

EDIT2: Andy... I did some testing with Lion. Changed the launchd to fsck_hfs in the source, so it wouldn't start launchd, but something else. No difference, still stuck @ Kernel is LP64.

So... It might be the kernel? I applied most of your ML patches to the kern_exec, atleast it didn't panic or give any errno... but stuck. With patched and vanilla dyld.

Link to comment
Share on other sites

Maybe we should get out and push X-)

I wish I knew what it was...

I'm at a loss here...

Link to comment
Share on other sites

Maybe we should get out and push X-)

I wish I knew what it was...

I'm at a loss here...

 

Same here... Trying to add weird debug messages everywhere on the kernel source... :D

But I think it is not about the launchd, it must be the kernel... :D

Link to comment
Share on other sites

Could it be something that launchd loads maybe? I can't think of anything else. I mean none of this code makes sense to me so its my only suggestion lol

 

I think not, I tried with Lion. Changed the launchd to fsck_hfs in the kernel source, no changes. Still got stuck @ Kernel is LP64.

Link to comment
Share on other sites

What main files are used in the kernel source? I'm installing a clean ML on my laptop to try learn what I can =]

 

What do you mean? :D

The problem seems to be somewhere around kern_exec.c and bsd_init.c.

Both are in bsd/kern/.

 

10.8.2: http://www.opensource.apple.com/tarballs/xnu/xnu-2050.18.24.tar.gz

10.7.5: http://www.opensource.apple.com/tarballs/xnu/xnu-1699.32.7.tar.gz

 

compile with XCode 4.2 or something like that.

 

make ARCH_CONFIGS="X86_64" KERNEL_CONFIGS="RELEASE" install

 

and the kernel is in BUILD/dst/mach_kernel.

 

:)

Link to comment
Share on other sites

Erm what files are changed to attempt to get it to run on AMD. Like the files that a diff patches...

 

Oh.... :D Well, you can see that in the diff? Just open it in TextEdit or something...

 

diff -rq original_xnu patched_xnu

 

Should give you differences. I ran this with AnV Lion and vanilla:

 

 

sh-3.2# diff -rq xnu anv
Only in anv: .DS_Store
Only in anv: BUILD
Files xnu/Makefile and anv/Makefile differ
Only in anv/SETUP: setup_voodoo.sh
Only in anv: anv.diff
Only in anv/bsd: .DS_Store
Files xnu/bsd/bsm/audit_kevents.h and anv/bsd/bsm/audit_kevents.h differ
Files xnu/bsd/conf/MASTER and anv/bsd/conf/MASTER differ
Files xnu/bsd/conf/files and anv/bsd/conf/files differ
Files xnu/bsd/dev/i386/sysctl.c and anv/bsd/dev/i386/sysctl.c differ
Files xnu/bsd/hfs/hfs_xattr.c and anv/bsd/hfs/hfs_xattr.c differ
Files xnu/bsd/hfs/hfscommon/Misc/VolumeAllocation.c and anv/bsd/hfs/hfscommon/Misc/VolumeAllocation.c differ
Only in anv/bsd/i386: .DS_Store
Only in anv/bsd/kern: .DS_Store
Files xnu/bsd/kern/bsd_init.c and anv/bsd/kern/bsd_init.c differ
Only in anv/bsd/kern: disasm.c
Only in anv/bsd/kern: disasm.h
Only in anv/bsd/kern: dyld.c
Only in anv/bsd/kern: dyld.h
Files xnu/bsd/kern/kern_exec.c and anv/bsd/kern/kern_exec.c differ
Files xnu/bsd/kern/kern_mib.c and anv/bsd/kern/kern_mib.c differ
Files xnu/bsd/kern/kern_prot.c and anv/bsd/kern/kern_prot.c differ
Files xnu/bsd/kern/mach_fat.c and anv/bsd/kern/mach_fat.c differ
Files xnu/bsd/kern/mach_fat.h and anv/bsd/kern/mach_fat.h differ
Files xnu/bsd/kern/mach_process.c and anv/bsd/kern/mach_process.c differ
Files xnu/bsd/kern/ubc_subr.c and anv/bsd/kern/ubc_subr.c differ
Files xnu/bsd/kern/uipc_socket.c and anv/bsd/kern/uipc_socket.c differ
Files xnu/bsd/netinet/ip_dummynet.c and anv/bsd/netinet/ip_dummynet.c differ
Files xnu/bsd/nfs/nfs_vfsops.c and anv/bsd/nfs/nfs_vfsops.c differ
Only in anv/bsd/sys: .DS_Store
Files xnu/bsd/sys/ubc.h and anv/bsd/sys/ubc.h differ
Files xnu/bsd/sys/ubc_internal.h and anv/bsd/sys/ubc_internal.h differ
Only in anv: build.sh
Files xnu/config/version.c and anv/config/version.c differ
Only in anv: idt_diff.txt
Only in anv/iokit/Drivers/platform: drvAppleIntelClock
Files xnu/iokit/IOKit/IOCatalogue.h and anv/iokit/IOKit/IOCatalogue.h differ
Files xnu/iokit/IOKit/IOService.h and anv/iokit/IOKit/IOService.h differ
Files xnu/iokit/Kernel/IOCatalogue.cpp and anv/iokit/Kernel/IOCatalogue.cpp differ
Files xnu/iokit/Kernel/IOPlatformExpert.cpp and anv/iokit/Kernel/IOPlatformExpert.cpp differ
Files xnu/iokit/Kernel/IOStartIOKit.cpp and anv/iokit/Kernel/IOStartIOKit.cpp differ
Files xnu/iokit/Kernel/IOUserClient.cpp and anv/iokit/Kernel/IOUserClient.cpp differ
Files xnu/iokit/KernelConfigTables.cpp and anv/iokit/KernelConfigTables.cpp differ
Files xnu/iokit/bsddev/IOKitBSDInit.cpp and anv/iokit/bsddev/IOKitBSDInit.cpp differ
Files xnu/iokit/conf/files.i386 and anv/iokit/conf/files.i386 differ
Files xnu/iokit/conf/files.x86_64 and anv/iokit/conf/files.x86_64 differ
Files xnu/libkern/c++/OSKext.cpp and anv/libkern/c++/OSKext.cpp differ
Files xnu/libkern/kernel_mach_header.c and anv/libkern/kernel_mach_header.c differ
Files xnu/libkern/kxld/Makefile and anv/libkern/kxld/Makefile differ
Files xnu/libkern/libkern/kernel_mach_header.h and anv/libkern/libkern/kernel_mach_header.h differ
Files xnu/libsa/bootstrap.cpp and anv/libsa/bootstrap.cpp differ
Files xnu/makedefs/MakeInc.def and anv/makedefs/MakeInc.def differ
Only in anv/osfmk: .DS_Store
Files xnu/osfmk/conf/MASTER.i386 and anv/osfmk/conf/MASTER.i386 differ
Files xnu/osfmk/conf/Makefile.i386 and anv/osfmk/conf/Makefile.i386 differ
Files xnu/osfmk/conf/Makefile.x86_64 and anv/osfmk/conf/Makefile.x86_64 differ
Files xnu/osfmk/conf/files.i386 and anv/osfmk/conf/files.i386 differ
Files xnu/osfmk/conf/files.x86_64 and anv/osfmk/conf/files.x86_64 differ
Only in anv/osfmk/i386: .DS_Store
Files xnu/osfmk/i386/AT386/model_dep.c and anv/osfmk/i386/AT386/model_dep.c differ
Files xnu/osfmk/i386/Makefile and anv/osfmk/i386/Makefile differ
Files xnu/osfmk/i386/acpi_wakeup.s and anv/osfmk/i386/acpi_wakeup.s differ
Files xnu/osfmk/i386/commpage/commpage.c and anv/osfmk/i386/commpage/commpage.c differ
Only in anv/osfmk/i386/commpage: sse3emu.c
Only in anv/osfmk/i386/commpage: sse3emu.h
Files xnu/osfmk/i386/cpu_capabilities.h and anv/osfmk/i386/cpu_capabilities.h differ
Files xnu/osfmk/i386/cpu_data.h and anv/osfmk/i386/cpu_data.h differ
Files xnu/osfmk/i386/cpu_topology.c and anv/osfmk/i386/cpu_topology.c differ
Files xnu/osfmk/i386/cpuid.c and anv/osfmk/i386/cpuid.c differ
Files xnu/osfmk/i386/cpuid.h and anv/osfmk/i386/cpuid.h differ
Only in anv/osfmk/i386: cpuid_legacy.h
Files xnu/osfmk/i386/i386_init.c and anv/osfmk/i386/i386_init.c differ
Files xnu/osfmk/i386/idt.s and anv/osfmk/i386/idt.s differ
Files xnu/osfmk/i386/idt64.s and anv/osfmk/i386/idt64.s differ
Files xnu/osfmk/i386/lapic_native.c and anv/osfmk/i386/lapic_native.c differ
Files xnu/osfmk/i386/locore.s and anv/osfmk/i386/locore.s differ
Files xnu/osfmk/i386/mp.c and anv/osfmk/i386/mp.c differ
Only in anv/osfmk/i386: patcher_opts.h
Files xnu/osfmk/i386/pmCPU.c and anv/osfmk/i386/pmCPU.c differ
Only in anv/osfmk/i386: pm_timer.h
Files xnu/osfmk/i386/pmap.c and anv/osfmk/i386/pmap.c differ
Files xnu/osfmk/i386/pmap_internal.h and anv/osfmk/i386/pmap_internal.h differ
Files xnu/osfmk/i386/start.s and anv/osfmk/i386/start.s differ
Files xnu/osfmk/i386/trap.c and anv/osfmk/i386/trap.c differ
Files xnu/osfmk/i386/trap.h and anv/osfmk/i386/trap.h differ
Files xnu/osfmk/i386/tsc.c and anv/osfmk/i386/tsc.c differ
Files xnu/osfmk/i386/tsc.h and anv/osfmk/i386/tsc.h differ
Files xnu/osfmk/kern/Makefile and anv/osfmk/kern/Makefile differ
Files xnu/osfmk/kern/debug.c and anv/osfmk/kern/debug.c differ
Only in anv/osfmk/kern: voodoo_assert.h
Files xnu/osfmk/vm/vm_object.c and anv/osfmk/vm/vm_object.c differ
Files xnu/osfmk/vm/vm_protos.h and anv/osfmk/vm/vm_protos.h differ
Files xnu/osfmk/vm/vm_resident.c and anv/osfmk/vm/vm_resident.c differ
Files xnu/osfmk/x86_64/idt64.s and anv/osfmk/x86_64/idt64.s differ
Files xnu/osfmk/x86_64/idt_table.h and anv/osfmk/x86_64/idt_table.h differ
Only in anv/osfmk/x86_64: opemu.c
Only in anv/osfmk/x86_64: opemu.h
Files xnu/pexpert/i386/pe_kprintf.c and anv/pexpert/i386/pe_kprintf.c differ
Only in anv: remove_18.c
Only in anv: test.s

 

 

 

You can ignore all .DS_Store etc. files.

Link to comment
Share on other sites

 Share

×
×
  • Create New...