Jump to content

Lion kernel testing on AMD (don't ask help here: use the Help Topic)


  • Please log in to reply
605 replies to this topic

#101
Deltac0

Deltac0

    InsanelyMac Sage

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

64-bit kernel, Delta?

Maybe it's just the dyld indeed... that would be good news.


64-bit Sinetek. Also tried with AnV 10.6.8 legacy custom dyld -> Input/output error?
No idea what it means, but it still doesn't run.
Haven't tested Nawcom's kernel.

#102
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,591 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
Has anyone tried with SL dyld?

#103
Deltac0

Deltac0

    InsanelyMac Sage

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

Has anyone tried with SL dyld?


Maybe... Can't remember. I'll test with it soon! :)

And here is a picture proofing that the kernel does try to launch the launchd (in this case tiny, and it fails on AMD).
You can see pid 1 exited(signal 0, exit 42) there!

And the tiny returns 42! :D

Posted Image

#104
Deltac0

Deltac0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 263 posts
  • Gender:Male
  • Location:Finland
  • Interests:Caffeine, OS X, AMD Hackintosh
We have more info now!

The problem isn't in the kernel anymore! (hoping so...)

Kernel can launch & execute the "tiny" test program, even when compiled as 64-bit and coded in C (dyld needed).
So... problem is maybe in dyld, launchd itself (SSSE3, cpuid?) or the SSSE3 emulator.

I'll try to boot with the SL dyld now. If it gets stuck @ same point, wouldn't that mean that dyld (or some part of it) is out of calculations?

#105
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,591 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
Not necessarily...
It could be apple added features to dyld...
Not checked sources yet though...

#106
Deltac0

Deltac0

    InsanelyMac Sage

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

Not necessarily...
It could be apple added features to dyld...
Not checked sources yet though...


Yep, still stuck after Kernel is LP64. The problem seems to be in launchd (cpuids) or the emulator. The kernel can launch "tiny" compiled with gcc 64-bit.
And dyld should be used to launch it:

sh-3.2# otool -L tiny
tiny:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)


#107
Deltac0

Deltac0

    InsanelyMac Sage

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

Hi,

there has been an unprecedented demand for the patchset, so here it is,
http://www.sendspace.com/file/8x74vl

There are some parts missing, but the important bits for x86_64 should be in there.
Additionally, you will need to apply the patches for CPUID patching otherwise the famous hang after "Kernel is LP64" occurs.
More to come.

-- Sinetek

I knew I forgot something, here are the sources to the opcode emulator.
It might require more work...

http://www.sendspace.com/file/p5fz8o


Shouldn't this be in SL topic? 1504 is 10.6.x?

#108
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,788 posts
  • Gender:Male
Hello, people!

Well, our experiments of yesterday kind of pointed at launchd as the culprit for our troubles booting Lion on AMD, and ruled out dyld. Why does it fail to run properly? Is it something inside launchd itself, or something the kernel fails to provide for it? I tend to the first answer, and intend to focus on fix launchd.

The problem is, i'm having hard times compiling: the sources available at www.opensource.apple.com come bundled as a Xcode project, and this project fails to boot, whatever version of Xcode i use. Something related to Core Foundations dependencies, and it seems these dependencies aren't available for download anywhere. Any help here would be much appreciated.

Best regards!

#109
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,591 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
Fails to provide for it: maybe but unlikely as the kernel works on Intel...
It must be something else...
Why doesn't apple just introduce a driver called AppleSabotage.kext lol X-)

#110
Deltac0

Deltac0

    InsanelyMac Sage

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

Fails to provide for it: maybe but unlikely as the kernel works on Intel...
It must be something else...
Why doesn't apple just introduce a driver called AppleSabotage.kext lol X-)


:D Something else than kernel? SSSE3 emu (test with Pentium 4 or old Celeron)? Launchd / CPUID

#111
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,591 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...
We could try it... 64bit non SSSE3 cpu Intel for the test...

#112
Deltac0

Deltac0

    InsanelyMac Sage

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

We could try it... 64bit non SSSE3 cpu Intel for the test...


I can try to find one... I have thousands of old computers around my house... :D
Most AMD, few Intel (netbook, but Atom with SSSE3)... Maybe in some of my closets I can find a celeron or pentium 4 machine. :)

EDIT: sorry, but I can't find any bootable ones... All broken or something... :/

#113
Shaneee

Shaneee

    AMD Dev Tester

  • Local Moderators
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
You need someone with a Pentium 4 for testing? I have a Dell Optiplex GX280 with a P4 :)

#114
Deltac0

Deltac0

    InsanelyMac Sage

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

You need someone with a Pentium 4 for testing? I have a Dell Optiplex GX280 with a P4 :)


Great! :) Can you try to boot Lion (10.7.5 maybe, myHack USB is fine), with my kernel?
lion-test-23 should be fine... http://www.solidfile...m/d/9d673a70ae/

#115
Shaneee

Shaneee

    AMD Dev Tester

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

Great! :) Can you try to boot Lion (10.7.5 maybe, myHack USB is fine), with my kernel?
lion-test-23 should be fine... http://www.solidfile...m/d/9d673a70ae/


Will make MyHack USB and test now. Will report back :)

#116
Deltac0

Deltac0

    InsanelyMac Sage

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

Will make MyHack USB and test now. Will report back :)


Good. If it gets stuck after "Kernel is LP64", and on the same messages as with AMD, it is something NOT related to CPUIDs (someone confirm this... ?),
but something like the SSSE3 or other general things that prevent it working right.

We have ruled out dyld and kernel problems. The problem must be in somewhere else...
Hopefully it will work on P4 (which would mean CPUIDs?).

#117
Shaneee

Shaneee

    AMD Dev Tester

  • Local Moderators
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
Well here it is on the Pentium 4 :(

Attached File  IMG_0002.JPG   314.35KB   49 downloads

#118
Deltac0

Deltac0

    InsanelyMac Sage

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

Well here it is on the Pentium 4 :(

Attached File  IMG_0002.JPG   314.35KB   49 downloads


Nicely mirrored pic xD...

Here is corrected version, so the others don't need to flip it... :D

Attached Files

  • Attached File  p.png   895.51KB   57 downloads


#119
Shaneee

Shaneee

    AMD Dev Tester

  • Local Moderators
  • 1,002 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Web Design. OS X. Music.
Still testing it out to see if it stays booted etc and will then post the kernel =]

Stayed booted stable for 40 minutes. Still some graphics problems for nVidia but I'm not sure how to fix that.

All the credit goes to Bronzovka, Andy and Sinetek. I just merged the diff's and built the kernel :)

Boot using -nossse3bit as it need Andy's part of the kernel ;)

Attached File  Lion.png   171.12KB   206 downloads

Attached File  legacy_kernel.zip   3.23MB   636 downloads

Attached File  x86_64_Lion.patch.zip   5.96MB   446 downloads

#120
ham4ever

ham4ever

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 296 posts
  • Gender:Male

Still testing it out to see if it stays booted etc and will then post the kernel =]

Stayed booted stable for 40 minutes. Still some graphics problems for nVidia but I'm not sure how to fix that.

All the credit goes to Bronzovka, Andy and Sinetek. I just merged the diff's and built the kernel :)

Boot using -nossse3bit as it need Andy's part of the kernel ;)

Attached File  Lion.png   171.12KB   206 downloads

Attached File  legacy_kernel.zip   3.23MB   636 downloads

Attached File  x86_64_Lion.patch.zip   5.96MB   446 downloads


this kernel is full 64 bits in Lion ?
no need for 32 bit finder ?





0 user(s) are reading this topic

0 members, 0 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