Jump to content

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

Mountain Lion AMD legacy kernel x64_86 ssse3 ssse3 emulator

  • Please log in to reply
6379 replies to this topic

#981
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh
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

#982
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

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...

#983
spakk

spakk

    If you try to please everyone, then you have certainly forgotten

  • Local Moderators
  • 2,019 posts
  • Gender:Male
  • Location:marocain
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

#984
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,973 posts
  • Gender:Male
Of course, spakk!

See you.

Well, KP very early into the boot with 10.8.2

#985
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

Of course, spakk!

See you.

Well, KP very early into the boot with 10.8.2


:o

Before or after launchd?
I just get stuck @ Kernel is LP64. :D

#986
Shaneee

Shaneee

    AMD Dev Tester

  • Retired
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
Stuck at kernel is LP64 no matter what boot flags I use.

Booting 10.8.2 on AMD Athlon II X2 215

#987
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
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...

#988
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

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

#989
Shaneee

Shaneee

    AMD Dev Tester

  • Retired
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.

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?

#990
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

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 :D http://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.

#991
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,691 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
Maybe we should get out and push X-)
I wish I knew what it was...
I'm at a loss here...

#992
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

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

#993
Shaneee

Shaneee

    AMD Dev Tester

  • Retired
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
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

#994
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

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.

#995
Shaneee

Shaneee

    AMD Dev Tester

  • Retired
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
What main files are used in the kernel source? I'm installing a clean ML on my laptop to try learn what I can =]

#996
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

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.opensourc...50.18.24.tar.gz
10.7.5: http://www.opensourc...699.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.

:)

#997
Shaneee

Shaneee

    AMD Dev Tester

  • Retired
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
I mean what files get edited, there are loads in the source folder for i386 and x86_64 etc

#998
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

I mean what files get edited, there are loads in the source folder for i386 and x86_64 etc


Get edited? :D

#999
Shaneee

Shaneee

    AMD Dev Tester

  • Retired
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
Erm what files are changed to attempt to get it to run on AMD. Like the files that a diff patches...

#1000
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh

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:
Spoiler


You can ignore all .DS_Store etc. files.





Also tagged with one or more of these keywords: Mountain Lion, AMD, legacy kernel, x64_86, ssse3, ssse3 emulator


2 user(s) are reading this topic

1 members, 1 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy