Jump to content

Legacy kernel 10.6.8 with custom dyld and new SSE3 emulator


  • Please log in to reply
60 replies to this topic

#41
wastez

wastez

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 166 posts
  • Gender:Male
There is no solution to run 64 bit kernel on amd.
The only thing what is possible is to run 32 bit kernel in 64 bit userland, which is the best solution.

#42
Slackfag

Slackfag

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

There is no solution to run 64 bit kernel on amd.
The only thing what is possible is to run 32 bit kernel in 64 bit userland, which is the best solution.


Oh, how disappointing. Thanks for letting me know.

#43
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

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

btw is Lion 11.0 darwin legacy kernel possible ?

Attached Files



#44
Devout

Devout

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 182 posts
Do you have anymore information? Does it work? Thanks for your efforts :jester:

#45
AkimoA

AkimoA

    AMD

  • Local Moderators
  • 221 posts
  • Gender:Male
  • Location:Black Forest (GER)
the above is only a dump from dp1 and gm kernel to find the diffrence between them in 32 bit instructions

#46
indramohan

indramohan

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
I have new problem now, my CD ROM is ejecting once every minute ( kind of frustrating), with Nawcom everything was fine, since he recommended it i used it but this is really strange i see this in kernel log which I never saw before.

"IOATAController device blocking bus".

Update: Now even my Time Machine crashes ( this happened with default Kernel but when i used Nawcom is worked like charm). please advise.

#47
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,019 posts
  • Gender:Male
  • Location:Moscow
Thank you Andy for providing the biggest collection of kernel's patches. I used it for my investigations.
Some notice:
1. AppleIntelClock is obsolete. It was used at 10.4.4 era.
2. Do not disable AppleIntelCPUPM for good CPU.
3. Do not set legacy for 32bit mode. With the patch I can't launch 64bit apps with 32bit kernel. While with vanilla can.
4. SSE3 emulator implementation is wrong. The new emulator occupies 2 pages while you allocated only one.
+		printf("Enabling SSE3 emulator...");
+		/* Install into commpage.  Actual patching of master_idt happens in start.s */
+		/* ASSERT(sse3emu_size == PAGE_SIZE); */
+		commpage_stuff2(_COMM_PAGE_SSE3EMU, &sse3emu_data, sse3emu_size, TRUE);
+		printf("done.\n");
Should be like
if (!(_cpu_capabilities & kHasSSE3)) {
		printf("enabling %s emulator...", "SSE3");
			// Install into commpage.  Actual patching of master_idt happens elsewhere
		
		commpage_stuff2(_COMM_PAGE_SSE2EMU, &sse3emu_ffff4000, sizeof(sse3emu_ffff4000), legacy);
		commpage_stuff2(_COMM_PAGE_SSE2EMU2, &sse3emu_ffff5000, sizeof(sse3emu_ffff5000), legacy);	
		printf("OK!\n");
	}
5. LAPIC_NMI patch must be optional. It freezes on my config.

I am not interesting in AMD so I will not make the same kernel. I hope my notes will be useful for someone.

#48
drule

drule

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 147 posts
Still wondering what the differences between Anv.0.4.1 and V8_R2 versions of this kernel, linked in first post. And which would be best for my Pentium D? :)

#49
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,019 posts
  • Gender:Male
  • Location:Moscow

Still wondering what the differences between Anv.0.4.1 and V8_R2 versions of this kernel, linked in first post. And which would be best for my Pentium D? :)

Try this one
Attached File  mach_kernel.8.zip   4.63MB   212 downloads

#50
Funky frank

Funky frank

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 328 posts
Should I use AnVal's legacy kernel also with a Core2Quad? I have sleep issues on my machine since 10.6.8 using Vanilla.


I mean it has SSE3, so this kernel would not benefit from the processor's SSE3 support?


EDIT:

What does this mean in the bootlog:
warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelMeromProfile
warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelNehalemProfile
warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelPenrynProfile
ACPI_SMC_PlatformPlugin::start - waitForService(resourceMatching(AppleIntelCPUPowerManagement) timed out
ACPI_SMC_PlatformPlugin::gatherCStateOverrides - failed to set c-state demotion data: -1


#51
Unknоwn

Unknоwn

    InsanelyMac Protégé

  • Members
  • PipPip
  • 74 posts
  • Gender:Male
You should not use AnV's one (valv with his crpwr bootloader has nothing to do with the legacy kernel) because your CPU is natively supported. But you can try Slice's kernel for Intel CPUs.

It's disabler blocking the loading of AICPUPM => SpeedStep will not work.

#52
Funky frank

Funky frank

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 328 posts

But you can try Slice's kernel for Intel CPUs.

Where to find this kernel?

#53
Unknоwn

Unknоwn

    InsanelyMac Protégé

  • Members
  • PipPip
  • 74 posts
  • Gender:Male

Where to find this kernel?

Above your first reply.

#54
Funky frank

Funky frank

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 328 posts
I tried Slice's kernel, but there is no change. Still reboot when waking up... Any ideas?

#55
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,019 posts
  • Gender:Male
  • Location:Moscow

I tried Slice's kernel, but there is no change. Still reboot when waking up... Any ideas?

Depends on bootloader, MacModel and PlatformPlugin.

#56
Funky frank

Funky frank

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 328 posts
Slice,

what Mac model should I use then for Core2Quad 2,5, ICH10 and ATI HD 5570? imac10,1?

And what is a platformplugin?

#57
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida

Slice,

what Mac model should I use then for Core2Quad 2,5, ICH10 and ATI HD 5570? imac10,1?

And what is a platformplugin?


try them all (from lion usb install thread)

iMac9,1 / Core2Duo
Posted Image Extra_iMac9_1.zip ( 343.57K )

iMac11,1 / Core i 1156
Posted Image Extra_iMac11_1.zip ( 342.27K )

iMac12,1 / Core i 1155
Posted Image Extra_iMac12_1.zip ( 342.28K )

MacPro3,1 / Core2Quad
Posted Image Extra_MacPro3_1.zip ( 343.58K )

MacPro4,1 / Core i 1366
Posted Image Extra_MacPro4_1.zip ( 343.57K )

the extra folders

#58
buoo

buoo

    The Prodigal Son

  • Moderators
  • 4,536 posts
  • Gender:Male
  • Location:Italy
The system seems to be working in my case, but I get this:

Feb 22 21:13:18 localhost kernel[0]: warning: kernel was not built with custom dyld blob
Feb 22 21:13:18 localhost kernel[0]: warning: using standard dyld with patcher enabled
Feb 22 21:13:40 Alessios-Mac-Pro kernel[0]: Decryption hasn't succeeded yet (probably will retry)
Feb 22 21:13:40 Alessios-Mac-Pro kernel[0]: patch_exec_obj_segment failed
Feb 22 21:13:40 Alessios-Mac-Pro kernel[0]: map_segment failed
Feb 22 21:13:42 Alessios-Mac-Pro kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelMeromProfile
Feb 22 21:13:42 Alessios-Mac-Pro kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelNehalemProfile
Feb 22 21:13:42 Alessios-Mac-Pro kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelPenrynProfile
Feb 22 21:13:42 Alessios-Mac-Pro kernel[0]: warning: skipping personalities in blacklisted kext com.apple.driver.AppleIntelYonahProfile

Do you know how to fix it?

Thanks :)

#59
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,942 posts
  • Gender:Male
Is it an AMD system? Or legacy Intel? In both cases you give the new full 64-bit with built-in ssse3 (yeah, 3 s) emulator kernel a go.

But why staying with SL? For legacy intel, the latest kernels of the AMD Development forum will work just fine. For AMD, the latest Bronzovka 32/64-bit hybrid is nice and trustworthy.

Best regards!

#60
buoo

buoo

    The Prodigal Son

  • Moderators
  • 4,536 posts
  • Gender:Male
  • Location:Italy
yep, AMD system.

Thanks





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