PDA

View Full Version : Legacy kernel 10.6.8 with custom dyld and new SSE3 emulator and VIA Nano cpu support


Pages : [1] 2

andyvand
08-10-2011, 11:45 AM
The full package included, as usual.
I've also added support for VIA (Nano) cpu's (the cpuid of those can be modified by a few rdmsr/wrmsr instructions).
Furthermore I included the new SSE3 emulator as default (thanks for the person who supplied it, I forgot his name, credits go to him).
It also includes the custom dyld.
BTW: Sorry for the late entry but at work my workstation wouldn't allow rapidshare so I had to bring along my netbook (to link it to the corporate WLAN network, then it worked).

Download including sources:
https://rapidshare.com/files/2811076327/voodoobuild-AnV-0.4.1.zip

wastez
08-10-2011, 12:27 PM
Hello,

Did you fix the problem with the fsb detection for amd if the bootloader detect itīs fsb correct?
Because the old fsb "fix" take the default fsb and multiply it x2.

Thank you.

jackokk
08-10-2011, 04:10 PM
Thank you very much. You are my hero!!!

andyvand
08-11-2011, 07:41 AM
Hello,

Did you fix the problem with the fsb detection for amd if the bootloader detect itīs fsb correct?
Because the old fsb "fix" take the default fsb and multiply it x2.

Thank you.
No, I haven't done that yet.
Haven't updated the FSB algo's (just added there support for Via Nano, which is mostly Intel compatible).
BTW: If you could point me to the patch I may be able to add it.

Unrealized
08-11-2011, 09:12 AM
What about Lion? Could your diff work for Lion's kernel?

andyvand
08-11-2011, 11:17 AM
What about Lion? Could your diff work for Lion's kernel?
Not without modifications.
Somebody (some geekXXXX) made a patch for Lion to run on 32bit kernel.
With my diff it wouldn't work for 32bit so I need his patch too before I can make a new diff for Lion.
If somebody could contact him (I believe you can find him on InsanelyMac forum somewhere) and ask him the diff + get it to me I could get to work...
I allready compiled up a test kernel from within Snow Leopard in case of Lion and I can make one from within my environment (untill I can get the final version of Lion + suitable kernel).
I just need his diff...
EDIT: Oh yeah, if anybody could upload me the final version of the Mac OS X 10.7.sdk (from under /Developer/SDKs) I would be very grateful. it will be used for the new custom dyld.

Unrealized
08-11-2011, 11:31 AM
Nice, gonna look on InsanelyMac if I can find him and ask for the diff. Lion on AMD/Via Nano would be so awesome. ;)
From what I've understood, Lion requires a "full 64-bit mode" ?

It's like finding a needle in a haystack, but I think it's worth it. Not sure if I can find him though..

andyvand
08-11-2011, 02:51 PM
Nice, gonna look on InsanelyMac if I can find him and ask for the diff. Lion on AMD/Via Nano would be so awesome. ;)
From what I've understood, Lion requires a "full 64-bit mode" ?

It's like finding a needle in a haystack, but I think it's worth it. Not sure if I can find him though..
Yes but that guy, geek (with a number behind it) would have a kernel that works in 32bit mode too.
If we can get our hands on that patch, we can make the legacy kernel also available for 32bit booting.
If we can't, it's gonna require 64bit cpu's (64bit Intel/AMD/Via).

m28ew
08-11-2011, 03:12 PM
Yes but that guy, geek (with a number behind it) would have a kernel that works in 32bit mode too.


is that him ?


http://img696.imageshack.us/img696/3284/lionkernel.png


http://www.insanelymac.com/forum/index.php?showtopic=263074

akimoa
08-11-2011, 03:14 PM
the only guy with a lion 32bit kernel is smartie77 all he did is he compiled one from the sources but he didn't involve any patching talked to him about that and exualy the rest without one boots it with arch=i386 so why would it need a patch if it boots already in 32bit mode ? vanilla offcourse only

fumoboy007
08-11-2011, 04:39 PM
Yes but that guy, geek (with a number behind it) would have a kernel that works in 32bit mode too.
If we can get our hands on that patch, we can make the legacy kernel also available for 32bit booting.
If we can't, it's gonna require 64bit cpu's (64bit Intel/AMD/Via).

Aren't all of Lion's apps 64-bit only? So what's the point of making the Lion kernel available for 32-bit?

Unrealized
08-11-2011, 07:03 PM
Wow, I guess this will be a lot of work for kernel developers. ;)

Aren't all of Lion's apps 64-bit only? So what's the point of making the Lion kernel available for 32-bit?

I think it's like Snow Leopard, when using a 32-bit kernel you can still run 64-bit apps (hybrid mode).

fumoboy007
08-11-2011, 07:46 PM
I think it's like Snow Leopard, when using a 32-bit kernel you can still run 64-bit apps (hybrid mode).

I know about 32-bit kernel + 64-bit userland mode. What I'm wondering is...if Finder is a 64-bit only app, 32-bit processors won't be able to run it. So what's the point of making a 32-bit kernel?

wastez
08-12-2011, 07:01 AM
I would say it isnīt sure that the 64 Bit Kernel will run on AMD without problems.
Because on snow there are also problems with the 32 bit apps if 64 bit kernel is running.

andyvand
08-12-2011, 11:46 AM
I know about 32-bit kernel + 64-bit userland mode. What I'm wondering is...if Finder is a 64-bit only app, 32-bit processors won't be able to run it. So what's the point of making a 32-bit kernel?
Ok, if all Lion apps are 64bit only I'll construct the current kernel as I will make it.
It'll only work on 64bit computers then too... ;)

andyvand
08-12-2011, 11:48 AM
the only guy with a lion 32bit kernel is smartie77 all he did is he compiled one from the sources but he didn't involve any patching talked to him about that and exualy the rest without one boots it with arch=i386 so why would it need a patch if it boots already in 32bit mode ? vanilla offcourse only
Then you have a point.
I've tried it with Atom (32bit only) but it didn't work...
If he only compiled the sources there won't be any additional additions.
Legacy kernel as current work thus... ;)

akimoa
08-12-2011, 11:51 AM
he made me a list how he succeeded makin one thats what he included

Xcode 4.1 GM ,10.7 GM


bootstrap_cmds-79

dtrace-90

kext_tools-180.2.1

cxxfilt-9

+xnu source offcourse



cause it gave me many errors when trying with 10.6.8 using Xcode 3.26 and the SL build tools then i came along his thread and he pointed that out and it ran thru

These are the small tools i zipped them up since wastez was trying to get them these morning and he wasn't able to
these includes

bootstrap_cmds-79

dtrace-90

kext_tools-180.2.1

http://cl.ly/0A050O2V2D3K0U223o2J

the bigger cxxfilt-9 is still the old version and is still there

just incase u need them

Unrealized
08-12-2011, 12:52 PM
Ok, if all Lion apps are 64bit only I'll construct the current kernel as I will make it.
It'll only work on 64bit computers then too... ;)

Well, 32-bit machines are kinda slow to even run Lion, so It's a good point anyway. ;)

fumoboy007
08-12-2011, 05:04 PM
Ok, if all Lion apps are 64bit only I'll construct the current kernel as I will make it.
It'll only work on 64bit computers then too... ;)

Well actually, I'm just speculating...I don't know for sure that all of Lion's apps are 64-bit only. I'll check tonight on my new MacBook Air. :)

Imkantus
08-13-2011, 03:09 AM
Ok, if all Lion apps are 64bit only I'll construct the current kernel as I will make it.
It'll only work on 64bit computers then too... ;)

As you should know, Finder (and some other stuff) is 64-Bit only since Lion DP2 (and any later release).
I have tried Lion GM using your DP1 Kernel on Atom N230, apart from not having Finder, there were problems caused by launchd not working properly... it was kinda eating up my 1GB RAM :p - so I gave up on that... ;)

So a 64-Bit capable CPU is definitely required for running Lion & a Kernel running 32-Bit legacy mode only would be practical useless.

Anyway a 32-Bit Kernel capable of booting Lion on AMD / VIA / old Intel forced into 64-Bit mode would be a great success at this point - as even if you cannot make a custom dyld at the moment, we could bin-patch the Apple one manually like been done on Snow Leopard earlier... :)

How did you manage to compile Lion Kernel in Snow Leopard? ;)

fumoboy007
08-16-2011, 06:02 AM
As you should know, Finder (and some other stuff) is 64-Bit only since Lion DP2 (and any later release).

Confirmed. Time to make legacy kernel 11.0 64-bit exclusive. :)

wastez
08-16-2011, 12:32 PM
@anv

I saw on appleīs open source that there is the source for the libunwind for lion.
Should be perfect for a custom dyld i think!!!

nightf4ll
08-16-2011, 12:41 PM
Is there any way i can fix H.264 and Quicktime in 64 bit mode on an AMD procesor?? Anything i can do with amd_insn_patcher or should i just give up and go back to 32 bit mode??

fumoboy007
08-16-2011, 03:46 PM
Is there any way i can fix H.264 and Quicktime in 64 bit mode on an AMD procesor?? Anything i can do with amd_insn_patcher or should i just give up and go back to 32 bit mode??

You will need to run QuickTime in 32-bit mode if your processor does not have SSSE3 support.

nightf4ll
08-16-2011, 05:45 PM
You will need to run QuickTime in 32-bit mode if your processor does not have SSSE3 support.

I have an AMD Athlon 64 X2 just like you, and they support sse3.. I have no idea why quictime crashes when playing .mov and .mp4 files, but only in 64 bit mode..

I ve read somewhere that i need to manually patch quicktimecomponents and h264scalar, thats why i m asking if some1 else managed to get it to work?

I wish i bought that intel processor instead AMD :-|

Imkantus
08-16-2011, 06:13 PM
Is there any way i can fix H.264 and Quicktime in 64 bit mode on an AMD procesor?? Anything i can do with amd_insn_patcher or should i just give up and go back to 32 bit mode??

SSE3 != SSSE3
The amd_insn_patcher just removes those nasty SYSENTER traps, code signatutres... that prevent 32-Bit only Apps to work on 64-Bit mode AMD systems.
It is not going to emulate any Intel exclusive instructions.
You do not have to lunch the -legacy mode again, just run Quiktime 32-Bit only.

btw: VLC rules. :)

nightf4ll
08-16-2011, 08:45 PM
SSE3 != SSSE3
The amd_insn_patcher just removes those nasty SYSENTER traps, code signatutres... that prevent 32-Bit only Apps to work on 64-Bit mode AMD systems.
It is not going to emulate any Intel exclusive instructions.
You do not have to lunch the -legacy mode again, just run Quiktime 32-Bit only.

btw: VLC rules. :)

Thx for clearing that up and i have VLC already, thats first thing i dowloaded :P One more question.. I ve removed 64 bit part from quicklookd and now it loads only in 32 bit and doesnt crash, but how can i fix preview crash??

P.S. the instructions for that are here (http://www.insanelymac.com/forum/index.php?showtopic=243273&pid=1629261&mode=threaded&start=#entry1629261) if some1 needs them

davisin666
08-17-2011, 09:53 PM
Thx for clearing that up and i have VLC already, thats first thing i dowloaded :P One more question.. I ve removed 64 bit part from quicklookd and now it loads only in 32 bit and doesnt crash, but how can i fix preview crash??

P.S. the instructions for that are here (http://www.insanelymac.com/forum/index.php?showtopic=243273&pid=1629261&mode=threaded&start=#entry1629261) if some1 needs them

To fix preview crash, you need to remove the x86_64 part of Finder, so, open terminal and type:

sudo cp /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder_bak
sudo ditto -arch i386 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder_i386
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder_i386 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder


Works f****ing good :cool:

nightf4ll
08-18-2011, 12:29 AM
To fix preview crash, you need to remove the x86_64 part of Finder, so, open terminal and type:

sudo cp /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder_bak
sudo ditto -arch i386 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder_i386
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder_i386 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder


Works f****ing good :cool:

Ok I did all of that, rebootet and everything works fine.. :D Now which kernel should i use on my Athlon 64 X2?? Whats the difference between Nawcom's Legacy kernel and Andy's? Should I use mach_kernel or mach_kernel atom? They both work for me..

wastez
08-18-2011, 07:52 AM
Ok I did all of that, rebootet and everything works fine.. :D Now which kernel should i use on my Athlon 64 X2?? Whats the difference between Nawcom's Legacy kernel and Andy's? Should I use mach_kernel or mach_kernel atom? They both work for me..


The difference between nawcom and andys kernel is the custom dyld for on the fly cpuid patching.
But you can also disable the the custom dyld with flag std_dyld=Yes.

If you have a atom cpu you have to choose the mach_kernel atom and if not you have to take the other one.

RayFlower
08-19-2011, 01:02 PM
Uhm am i the only one that desires a ssse3 emulator for snow leopard? :)

fumoboy007
08-19-2011, 02:45 PM
Uhm am i the only one that desires a ssse3 emulator for snow leopard? :)

No, you are not. :)

Imkantus
08-22-2011, 01:34 PM
Uhm am i the only one that desires a ssse3 emulator for snow leopard? :)

Latest AMD Fusion Mobile & Embedded cores have SSSE3 implementation & I think we will see Desktop CPUs with SSSE3 support end of this year.

There are some Mini-ITX boards using AMD Zacate (Brazos) cores - some less then 100€ (like the E350IS-E45 just 88€, 1.6 GHz Dualcore, up to 8GB DDR3).
If those would work with patched XNU, they'd be a real budget friendly alternative to the feeble & expensive Intel Atom platforms... :)

Anyway working Lion Kernel would be most wanted currently... :cool:

RayFlower
08-23-2011, 09:53 AM
Latest AMD Fusion Mobile & Embedded cores have SSSE3 implementation & I think we will see Desktop CPUs with SSSE3 support end of this year.

There are some Mini-ITX boards using AMD Zacate (Brazos) cores - some less then 100€ (like the E350IS-E45 just 88€, 1.6 GHz Dualcore, up to 8GB DDR3).
If those would work with patched XNU, they'd be a real budget friendly alternative to the feeble & expensive Intel Atom platforms... :)

Anyway working Lion Kernel would be most wanted currently... :cool:

Hum, time to upgrade then.
A lion kernel would be nice indeed but it would also be nice to have a fully working snow leopard kernel too.
I would like to avoid buying intel the next time i build a new computer but there isn't even power management for AMD yet so I'll stick with my pehom II x4 a bit longer:)

andyvand
08-23-2011, 11:29 AM
As you should know, Finder (and some other stuff) is 64-Bit only since Lion DP2 (and any later release).
I have tried Lion GM using your DP1 Kernel on Atom N230, apart from not having Finder, there were problems caused by launchd not working properly... it was kinda eating up my 1GB RAM :p - so I gave up on that... ;)

So a 64-Bit capable CPU is definitely required for running Lion & a Kernel running 32-Bit legacy mode only would be practical useless.

Anyway a 32-Bit Kernel capable of booting Lion on AMD / VIA / old Intel forced into 64-Bit mode would be a great success at this point - as even if you cannot make a custom dyld at the moment, we could bin-patch the Apple one manually like been done on Snow Leopard earlier... :)

How did you manage to compile Lion Kernel in Snow Leopard? ;)
With some minor code modifications.
Mods for custom dyld (for Lion) are complete, custom dyld for Lion builds now.
Mods for xnu are coming along (I just worked the entire night yesterday, I think it compiles allready for 32bit but requires some minor fixes for 64bit (warning fixes)... work continues).
I'll release all my work once it's done, somebody with Xcode 4.1 could recompile the kernel in order to make it fully Lion compiled.
Compiling the kernel under Snow Leopard (with Xcode 3.2.6/4.0) is possible with some minor code fixes (variables used uninitialized, just set them to 0 on the beginning of the defines).
Also Apple didn't change much on their decryption algo's, current implementation should work, however I had to rewrite amd_insn_patcher (and also add the changes to the kernel) because of a new 6 byte (instead of 8) _sysenter_trap routine.
Code mods on that part are complete and it puts it into it as it was doing with 10.6 (but uses a uint32_t as first and uint16_t as second code wrapper).
I've left the patcher for Snow Leopard's _sysenter trap into it, it just checks which precise _sysenter_trap is used and patches accordingly.
The change was just a nopl (%eax) to nop... (3B -> 1B).
I guess it will take at most a week to get the code wrapped up completely (and fixed for Lion), it'll work on all 64bit machines, even though having SSSE3 is really recommended since Lion.
I've checked for any SSSE3 checks in the kernel, there where none, it just catalogs the available instruction sets so if there would be any messages, they aren't coming from the kernel.
I should really check how these SSSE3 instructions (it aren't that many) work so I can devise a solution for them.
But first... the kernel ofcourse...
BTW: On InsanelyMac I uploaded Rev2 of the V8 (10.8.0) kernel with some minor fixes for AMD K10 FSB (as latest chameleon fixes that) with the option to double the FSB on those AMD models with -doublefsb boot arg.
I also did some minor changes for Via Nano, it now gets the CPU frequency through EFI booter.
Besides that it includes the custom dyld built with Apple's libunwind-30 code (which compiles fine on Snow Leopard too) but it didn't fully fix some apps crashing.
pbs still gave me some issues (unless I upxed it with my custom upx, then it worked fine).
I'll look into a solution for this as most crashes come from libauto.dylib (Auto::Zone::Zone).
QuickDraw (QD) also gave for some apps a crash.
Too bad we haven't got Apple's libCoreSymbolication library (with matching header) or we would be able to fix the last issues with the custom dyld.
Work continues thus and new solutions are sure to surface (I'm thinking hard for improvements/expansions).
I'll keep you posted... ;)

akimoa
08-23-2011, 11:57 AM
BTW: On InsanelyMac I uploaded Rev2 of the V8 (10.8.0) kernel with some minor fixes for AMD K10 FSB (as latest chameleon fixes that) with the option to double the FSB on those AMD models with -doublefsb boot arg.

Works like a charm Thanx for that !

andyvand
08-23-2011, 01:05 PM
I have one more request.
Could somebody please zip and upload the dyld from Lion GM?
I need it because it checks for code signatures and I need to devise a patch against it.
It is required because if you patch the stock dyld (and/or libSystem.dylib) the code signatures won't be valid anymore.
If I have the stock dyld I can disassemble my custom one (which has this code excluded) and the stock one and check the differences.
If I find this difference I can make a patch (using amd_insn_patcher) which also nops out the code that does the actual code signature check in dyld.
It'll then work with the stock Apple Lion dyld too.
It's important because we need to get these things working 100% for AMD under Lion.
Thanks in advance ;-)
BTW: Don't use rapidshare/mediafire/upload.to/etc as my works internet blocks these in the proxy, upload directly here or on InsanelyMac please.
EDIT: Anyone? Please do it ASAP as I would like to devise a patch against it today... Just zip /usr/lib/dyld please + upload...

m28ew
08-23-2011, 01:33 PM
I have one more request.
Could somebody please zip and upload the dyld from Lion GM?


Here's the file mate :)

MD5: 14acaee6a4e4f19b2cb1392bcebfaebb

akimoa
08-23-2011, 01:33 PM
Here ya go :)

andyvand
08-23-2011, 01:45 PM
Here ya go :)
Thanks a lot guys...
It'll help in making good patches... ;)

wastez
08-23-2011, 01:47 PM
@ anv

I could compile the kernel on Lion if you want to?!
Just need the source to do that.

andyvand
08-23-2011, 02:06 PM
@ anv

I could compile the kernel on Lion if you want to?!
Just need the source to do that.
Ok, when I finish with the final revisions I'll send you the version to compile under Lion.
You could allready compile the LLVM library for i386 + x86_64... you need it to build the tools... :D

wastez
08-23-2011, 02:12 PM
I already did that.
Compiled the source a few days ago.

andyvand
08-23-2011, 02:38 PM
I already did that.
Compiled the source a few days ago.
Ok no worries then ;)
I'll put in an extra script in case the voodoobuild.sh does everything but the kernel (extra script to build kernel after build halt, do after building dyld + patching dyld + rebasing dyld + injections in xnu when it's patched).
We'll get there soon... and it'll work great... :cool:

$The-King$
08-23-2011, 03:01 PM
Ok no worries then ;)
I'll put in an extra script in case the voodoobuild.sh does everything but the kernel (extra script to build kernel after build halt, do after building dyld + patching dyld + rebasing dyld + injections in xnu when it's patched).
We'll get there soon... and it'll work great... :cool:
promising work :D
thanks for your efforts

davisin666
08-23-2011, 06:05 PM
Ok no worries then ;)
I'll put in an extra script in case the voodoobuild.sh does everything but the kernel (extra script to build kernel after build halt, do after building dyld + patching dyld + rebasing dyld + injections in xnu when it's patched).
We'll get there soon... and it'll work great... :cool:

What about libunwind and the custom dyld, will be fixed the issues with that???

Thanks for the kernel :D

andyvand
08-24-2011, 06:47 AM
What about libunwind and the custom dyld, will be fixed the issues with that???

Thanks for the kernel :D
No, unfortunetely probably not.
There are still some libraries which we don't have (libCoreSymbolication for example).
It works better but there are still some apps which don't work with the custom dyld.

andyvand
08-24-2011, 10:56 AM
I finished making the kernel patches yesterday.
The code compiles well, now just some minor changes to the build script and we'll be on our way.
I'll build the sources under Snow, upload sources and built product, then wastez can build it with Xcode 4.1 GM and then I'll patch those built products also up for Atom... ;)
I'll probably finish the building (and adapting) this evening, uploading the sources and built products tomorrow. :D

wastez
08-24-2011, 01:21 PM
Ok thatīs really fine.

Just tell me if you have finished it.

andyvand
08-25-2011, 11:09 AM
Ok thatīs really fine.

Just tell me if you have finished it.
I modified the script for building the Lion dyld + kernel.
It's currently building on my netbook (@ work).
I'll upload it when the build finishes.
It'll be uploaded @ insanelymac in my current legacy kernel thread (I'll post the link here).
I've also made a compile_kernel.sh script to start the build in an allready patched + injected xnu-xxx directory.
Both will need to be runned from within the voodoobuild-AnV-0.5.1 folder.

akimoa
08-25-2011, 11:12 AM
awesome job m8 WE all Love you ;)

davisin666
08-25-2011, 03:11 PM
I modified the script for building the Lion dyld + kernel.
It's currently building on my netbook (@ work).
I'll upload it when the build finishes.
It'll be uploaded @ insanelymac in my current legacy kernel thread (I'll post the link here).
I've also made a compile_kernel.sh script to start the build in an allready patched + injected xnu-xxx directory.
Both will need to be runned from within the voodoobuild-AnV-0.5.1 folder.

One more question, the kernel is for 10.7.0 or 10.7.1???

Thanks for the kernel! I'm anxious to try it XD :D

andyvand
08-25-2011, 03:23 PM
One more question, the kernel is for 10.7.0 or 10.7.1???

Thanks for the kernel! I'm anxious to try it XD :D
It will be the xnu 11.0.0 for 10.7.0.
Apple hasn't released the 10.7.1 sources yet... :-/

nightf4ll
08-25-2011, 03:40 PM
hmm... ok i m preparing Xmove and install partition XD lets pray to god this kernel works ;)
even if it doesnt, still thank you for the hard work..

andyvand
08-25-2011, 04:06 PM
hmm... ok i m preparing Xmove and install partition XD lets pray to god this kernel works ;)
even if it doesnt, still thank you for the hard work..
We'll know tomorrow.
My battery ran flat before I could get the kernel compiled so this evening I'm compiling the kernel (with dyld injected).
I'll upload the sources and binaries tomorrow thus.
NOTE: The sources will need to be recompiled by Wastez in order to be completely perfect (currently compiling under Snow Leopard, also doing tests of using dyld-195.5 on Snow Leopard by using Snow Leopard libc libraries and new dyld with some mods to it... keep you posted on this as well).

kocoman
08-25-2011, 09:31 PM
For 10.6.8, has anyone test this kernel with sse2 only cpu? does it still beachball?

for Lion, does anyone know how one can emulate ssse3 ?

wastez
08-26-2011, 06:14 AM
Did you activate the sse3 emulator for 10.6.8?

There is no ssse3 emulator until now but the lion kernel is also not available now.

But today the lion kernel is gona to release. :D

andyvand
08-26-2011, 06:46 AM
Did you activate the sse3 emulator for 10.6.8?

There is no ssse3 emulator until now but the lion kernel is also not available now.

But today the lion kernel is gona to release. :D
http://www.insanelymac.com/forum/index.php?showtopic=265181&st=0&gopid=1740211&#entry1740211
It's released... last post when I started it... ;)
Recompile it for me please and send me the results (and prefereably upload them).
I compiled it under 10.6.8 but Wastez will compile for the rest.
NOTE: Wastez: I forgot to change in the voodoobuild.sh script the patch to LibcXXX instead of LibcXXX_SL
Change it please and recompile (it's a case of adding a # and removing one)

akimoa
08-26-2011, 07:12 AM
it doesnt seem that it wants to boot on the SL Build but still investigating !

both Builds aint Booting so far don't even get to verbose mode same as in SL with native 64 bit

wastez
08-26-2011, 07:57 AM
Ok... Compiled the kernel.

But it created 2 mach_kernel.
One in the root from voodoo build folder and one in the source in /build/sym.

The one in the root has 15,4 mb and the one in the source has 18.7 mb.

Which one is the right one?

andyvand
08-26-2011, 08:03 AM
Ok... Compiled the kernel.

But it created 2 mach_kernel.
One in the root from voodoo build folder and one in the source in /build/sym.

The one in the root has 15,4 mb and the one in the source has 18.7 mb.

Which one is the right one?
You need the one in BUILD/dst
it copies automatically in voodoobuild-AnV-0.5.1 (with running ./compile_kernel.sh).
Make sure you have done ./voodoobuild.sh first.

wastez
08-26-2011, 08:40 AM
Ok....
Then itīs the one with 15.4 mb.
I also edited the voodoobuild file.

Akimoa tested it on his amd but it doesnīt work --> instant reboot.

Could the be the same problem like on snow in pure 64 mode?

andyvand
08-26-2011, 08:59 AM
Ok....
Then itīs the one with 15.4 mb.
I also edited the voodoobuild file.

Akimoa tested it on his amd but it doesnīt work --> instant reboot.

Could the be the same problem like on snow in pure 64 mode?
Probably: yes
Unfortuntely I have no idea of what precisely changed that doesn't allow 32bit only boot.
Otherwise I could track it down...

$The-King$
08-26-2011, 09:01 AM
this 11.0 kernel do like 10.8 kernel on lion just reboot without entering verbose mode :-/

wastez
08-26-2011, 09:11 AM
I uploaded the compiled kernel, so that everyone can try it.

Itīs compiled with xcode 4.1.

Here the link for it: https://rapidshare.com/files/2989752953/mach_kernel.zip

$The-King$
08-26-2011, 09:17 AM
i think that the problem may be from thing anther kernel as 10.8 & 11.0 have the same result
will make some tests and return

wastez
08-26-2011, 09:18 AM
I think itīs over for amd with lion if nobody can create a 32 bit kernel.
It was also not possible to run amd in 64 kernel mode in snow leopard.

scififan68
08-26-2011, 09:25 AM
It won't even load in full 64bit on AMD in lion, I just tried and got a reboot. But it loads on my 64bit Pentium 4 in 32bit mode but then kps(Lack of ssse3 maybe?). @ wastez it is possible to run full 64bit mode in Snow Leopard, but no 32bit apps work. proof: http://public.bay.livefilestore.com/y1pbpsLLD6e10NLAqQJhsrTCIkpmT8DUhONm73CKdHg9ZIH-uLkvidvuYeZMVQmOMUY_e9aPQ6koa9kRtXhMH6n2w/AMD64bit10.6pbl.png

Imkantus
08-26-2011, 09:40 AM
I think itīs over for amd with lion if nobody can create a 32 bit kernel.
It was also not possible to run amd in 64 kernel mode in snow leopard.

The Kernel you compiled should be multiple architecture.file ./mach_kernelshould look like this:./mach_kernel: Mach-O universal binary with 2 architectures
./mach_kernel (for architecture x86_64): Mach-O 64-bit executable x86_64
./mach_kernel (for architecture i386): Mach-O executable i386
So there is still a 32-Bit Kernel on Lion. Just the "-legacy" mode is no longer supported. So we need to boot the -force64 way on Lion... :)

$The-King$
08-26-2011, 09:41 AM
i think it may be bootlaoder problem

akimoa
08-26-2011, 09:46 AM
The Kernel you compiled should be multiple architecture.file ./mach_kernelshould look like this:./mach_kernel: Mach-O universal binary with 2 architectures
./mach_kernel (for architecture x86_64): Mach-O 64-bit executable x86_64
./mach_kernel (for architecture i386): Mach-O executable i386
So there is still a 32-Bit Kernel on Lion. Just the "-legacy" mode is no longer supported. So we need to boot the -force64 way on Lion... :)

Ok that what i was just wondering myself but it seems in the voodooscript the 32bit part didnt got adressed at all or am i missing something

and it doesn't boot in userland 64 either with or without custom dyld

scififan68
08-26-2011, 10:04 AM
How about a bootloader that patches the kernel to allow non-supported Intel and AMD support for lion. Kind of like the Intel atom patch but for more cpus?

Imkantus
08-26-2011, 10:24 AM
Keep patient guys - we had to wait till 10.5.4 for the Voodoo XNU to be released - we had to wait until 10.6.5 till Andy had figured a fully working Kernel patch for Snow Leopard. :cool:
Btw: Mac OS X 10.7.1 source code has been released today.

it seems in the voodooscript the 32bit part didnt got adressedWell I do not see, what should be the problem with the build script...

Anyway has someone yet tried to patch using "patch -p0 -i legacy_kernel-1699.22.73-v1.diff" and compile the Kernel using make? Just wondering...

andyvand
08-26-2011, 10:30 AM
Ok that what i was just wondering myself but it seems in the voodooscript the 32bit part didnt got adressed at all or am i missing something

and it doesn't boot in userland 64 either with or without custom dyld
try -force64 (patches come from Snow Leopard so...)

akimoa
08-26-2011, 10:34 AM
all tried no luck !

Imkantus
08-26-2011, 10:35 AM
try -force64 (patches come from Snow Leopard so...)
It is still instant reboot after Chameleon says "Staring Darwin x86"
I have also tried stripping the Kernel with lipo in order to be ensure booting i386 Kernel...

akimoa
08-26-2011, 10:38 AM
what i just did too recompiled it only i386 .....

same as above

andyvand
08-26-2011, 10:50 AM
Ok that what i was just wondering myself but it seems in the voodooscript the 32bit part didnt got adressed at all or am i missing something

and it doesn't boot in userland 64 either with or without custom dyld

It is still instant reboot after Chameleon says "Staring Darwin x86"
I have also tried stripping the Kernel with lipo in order to be ensure booting i386 Kernel...
Damn... I have no idea what it could be...
It probably still needs some work thus... :(

$The-King$
08-26-2011, 10:52 AM
used valv branch (not support lion)
using 10.8 kernel and platform kexrs it enter verbose and stuck at kexts not loaded
using 11.0 kernel restart

using latest trunk bootloader (support lion )
using 10.8 kernel and platform kexts restart
using 11.0 kernel restart

:-/

akimoa
08-26-2011, 11:06 AM
Anyway has someone yet tried to patch using "patch -p0 -i legacy_kernel-1699.22.73-v1.diff" and compile the Kernel using make? Just wondering...

Yes
Same Result !

wastez
08-26-2011, 11:14 AM
This time itīs gona to be funny for amdīs.
Last time there was time to get a solution until get 64 bit Userland working.
Now it wonīt work without it.

@$The-King$
The problem isnīt the boot loader for sure.

@anv
Did you change something on the 32 Bit Kernel this time, or did you just edit the 64 bit kernel?

andyvand
08-26-2011, 11:26 AM
This time itīs gona to be funny for amdīs.
Last time there was time to get a solution until get 64 bit Userland working.
Now it wonīt work without it.

@$The-King$
The problem isnīt the boot loader for sure.

@anv
Did you change something on the 32 Bit Kernel this time, or did you just edit the 64 bit kernel?
I added the code of the patch for both 32 and 64bit kernel.
I think Apple removed some routines which are required for AMD or changed some code which is giving the issues.
I diffed SL 10.6.8 versus 10.7.0 and there are a lot of differences (for example the commpage is a lot more empty).
It's like looking for a needle in a haystack :-|

akimoa
08-26-2011, 11:51 AM
the filesize difference between the 2 released xnu sources (10.7 and 10.7.1)

is huge

just tried the diff (without custom dyld and sse3emu etc.) on the latest source -> same result sadly

any way to debug this ?

andyvand
08-26-2011, 12:09 PM
the filesize difference between the 2 released xnu sources (10.7 and 10.7.1)

is huge

just tried the diff (without custom dyld and sse3emu etc.) on the latest source -> same result sadly

any way to debug this ?
I wish... somebody with a vanilla capable cpu should test it to see if it at least boots there...
I'm continuing looking for a solution (but it won't be easy...)

akimoa
08-26-2011, 12:11 PM
k and if it Boots there what would u need in logs to dig in

kernel.log ? or any other one ?

scififan68
08-26-2011, 12:12 PM
It didn't reboot on my 64bit Pentium 4 HT, but it crashed later in the boot. I can take a picture of the kp.

wastez
08-26-2011, 12:19 PM
Yes but a P4 is also not Vanilla compatible. ;)

andyvand
08-26-2011, 12:30 PM
k and if it Boots there what would u need in logs to dig in

kernel.log ? or any other one ?
Unfortunetely the logs don't contain what I need.
I need to know which instruction causes the reset in case of the kernel in order to know what to do against it.

andyvand
08-26-2011, 12:30 PM
It didn't reboot on my 64bit Pentium 4 HT, but it crashed later in the boot. I can take a picture of the kp.
Good idea, it might help...

wastez
08-26-2011, 12:53 PM
On a vanilla compatible cpu the kernel is working.
32 Bit + 64 Bit.

andyvand
08-26-2011, 01:01 PM
On a vanilla compatible cpu the kernel is working.
32 Bit + 64 Bit.
So it's not the code that's present... it's the code that's absent... :-/
I'll continue to develop this... ;)

Since You have a vanilla cpu could you test the AMD patching routines by booting with the following boot args:
arch=<i386/x86_64> patcher_opts=48 -amd -force64 -v

scififan68
08-26-2011, 01:22 PM
http://dl.dropbox.com/u/38348368/100_1824i386.JPG kp in 32bit mode
http://dl.dropbox.com/u/38348368/100_1827x86_64.JPG in 64bit mode
This is with andy's kernel complied in Snow Leopard.
The one complied in Lion just gives me a black screen.

andyvand
08-26-2011, 01:24 PM
http://dl.dropbox.com/u/38348368/100_1824i386.JPG kp in 32bit mode
http://dl.dropbox.com/u/38348368/100_1827x86_64.JPG in 64bit mode
This is with andy's kernel complied in Snow Leopard.
The one complied in Lion just gives me a black screen.
I can't look it up, my workplace bans dropbox using the proxy. :(
Please upload them here on the forum.

andyvand
08-26-2011, 01:25 PM
So it's not the code that's present... it's the code that's absent... :-/
I'll continue to develop this... ;)

Since You have a vanilla cpu could you test the AMD patching routines by booting with the following boot args:
arch=<i386/x86_64> patcher_opts=48 -amd -force64 -v
ASAP please... ;)
If it boots succesfully the auto-patcher works... including the dyld (even though I'm not sure the stock one will work...)

akimoa
08-26-2011, 01:32 PM
well we have someone that tests for us ... where would he see if the routines go thru ?

andyvand
08-26-2011, 01:39 PM
well we have someone that tests for us ... where would he see if the routines go thru ?
If you want verbose patching you need the following after patcher_opts:
49
Then it will output everything it loads (and patches) and output to console.
It will warn about decryption failing in the beginning untill DSMOS arrives...
If it all works and the system boots we at least have the patcher right (including the new sysenter trap working)

scififan68
08-26-2011, 01:48 PM
Is there another site I could upload them to that isn't blocked, since my images are too large to upload on the forums.

andyvand
08-26-2011, 01:50 PM
Is there another site I could upload them to that isn't blocked, since my images are too large to upload on the forums.
Can't you compress them to a png or so?
If you can't make it smaller, upload it to a webspace or so (free webspace from a provider or so).
All upload sites are blocked over here so no go there...

scififan68
08-26-2011, 01:58 PM
Well how about I post them on my own website, http://cefso.doesntexist.org/temp/100_1824i386.JPG
http://cefso.doesntexist.org/temp/100_1827x86_64.JPG

akimoa
08-26-2011, 02:02 PM
it booted all the way thru and apps worked with the vanilla machine

when testing patching routine

andyvand
08-26-2011, 02:05 PM
Well how about I post them on my own website, http://cefso.doesntexist.org/temp/100_1824i386.JPG
http://cefso.doesntexist.org/temp/100_1827x86_64.JPG
Should be fine... :)

andyvand
08-26-2011, 02:06 PM
it booted all the way thru and apps worked with the vanilla machine

when testing patching routine
And patcher patched up the apps?
Did you boot verbosely?
If so at least that allready works... ;)

akimoa
08-26-2011, 02:16 PM
well the apps would not have worked if not rite ???... he did boot verbosly but not recognizable he will hopefully test again and will get a dmesg out if that helps

andyvand
08-26-2011, 02:26 PM
well the apps would not have worked if not rite ???... he did boot verbosly but not recognizable he will hopefully test again and will get a dmesg out if that helps
Even with the increased message buffer it won't be enough to store the 49 option.
It will do for a 48 though...

akimoa
08-26-2011, 02:45 PM
It doesnt seem to me that this will help ya but here it is with 48

andyvand
08-26-2011, 02:50 PM
It doesnt seem to me that this will help ya but here it is with 48
You're right it doesn't.
If you boot with patcher_opts=49 -amd does it show the libraries it loads?
Because I see no reference to any libraries...
EDIT: Could it be that the boot arguments aren't handled correctly? It seems weird -force64 typed didn't work... it seems we have a bug in Chameleon...

akimoa
08-26-2011, 03:08 PM
here is anything he could get out with 49

akimoa
08-26-2011, 03:40 PM
so would a bootloader debug clue u in on that possibility ?:-d

andyvand
08-26-2011, 06:09 PM
here is anything he could get out with 49
Damn... it didn't set the boot args...
Editing /Extra/com.apple.Boot.plist may help but it's still with risk...
Which bootloader are you using?

davisin666
08-26-2011, 06:18 PM
Shit, instant reboot, but I will try with blank HDD and chameleon usb.

akimoa
08-26-2011, 06:34 PM
he used r1460 on vanilla
and i tried on amd 1095 and 1457 .....wastez tried cparm boot also on amd

acermac3
08-26-2011, 07:29 PM
I'm interested in helping test your kernel. I have three partitions.

Chameleon bootloader
part0 10.6.8 (my fulltime workstation)
part1 10.6.5 (repair)
part2 10.7.0 GM installed from macpro using ccc

Snow Leopard is running on an AM2+ Phenom x4 9650 2.3 ghz. DAO78l Acer Mainboard with nforce 780a chipset. This is a cheap setup and I believe an excellent candidate for testing the kernel with 4gb of ram. Lion of course does not boot (just blackscreen reboot after chameleon bootloader.) I'm running two other systems with same specs without the Lion partition, snow leopard runs on all three very well. One running osx server.

Should I install the Boot beta or will Chameleon work with your new kernel?

wastez
08-26-2011, 08:13 PM
In the moment the kernel is not working until now.

You can download a few pages before but as i said it is not working.
I posted it on Page 7, it is compiled with xcode 4.1 but if you want to you can download the source on insanelymac and compile it by yourself.

andyvand
08-26-2011, 09:00 PM
I found the routines that do code signature checks on the pages + through dyld syscall.
I modified the code slightly so it will verify all code signature kernel checks as valid.
This means we can use stock dyld too...
I also noticed the panic.
It panics on map_text_segment_sys (that's where the trap gets called).
I modified the code slightly for the new syscall format (it shouldn't panic anymore).
I'll post the results soon, please test on that P4... ;)

davisin666
08-26-2011, 10:00 PM
I tried running in a modded bootcd but it restarts after the message

Starting Darwin x86

Seems like can't boot on i386, even with arch=i386 -force64, extracting i386 part also doesn't work

$The-King$
08-27-2011, 02:00 AM
http://opensource.apple.com/release/mac-os-x-1071/

good luck :)

jblparisi
08-27-2011, 02:33 AM
Garageband crashes on my AMD x2 cpu, any suggestions?

Thanks

Here is part of the crash log:



Process: GarageBand [950]
Path: /Applications/GarageBand.app/Contents/MacOS/GarageBand
Identifier: com.apple.garageband
Version: 6.0.4 (427.84)
Build Info: GarageBand_App-4278400~1
Code Type: X86 (Native)
Parent Process: launchd [102]

Date/Time: 2011-08-26 21:34:08.338 -0400
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6

Interval Since Last Report: 458742 sec
Crashes Since Last Report: 51
Per-App Interval Since Last Report: 72 sec
Per-App Crashes Since Last Report: 6
Anonymous UUID: 21CC8BE4-B7A4-44C8-8A4A-57425D706890

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

davisin666
08-27-2011, 02:50 AM
Garageband crashes on my AMD x2 cpu, any suggestions?

Thanks

Here is part of the crash log:



Process: GarageBand [950]
Path: /Applications/GarageBand.app/Contents/MacOS/GarageBand
Identifier: com.apple.garageband
Version: 6.0.4 (427.84)
Build Info: GarageBand_App-4278400~1
Code Type: X86 (Native)
Parent Process: launchd [102]

Date/Time: 2011-08-26 21:34:08.338 -0400
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6

Interval Since Last Report: 458742 sec
Crashes Since Last Report: 51
Per-App Interval Since Last Report: 72 sec
Per-App Crashes Since Last Report: 6
Anonymous UUID: 21CC8BE4-B7A4-44C8-8A4A-57425D706890

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Add std_dyld=Yes to your boot flags :)

jblparisi
08-27-2011, 03:21 AM
Add std_dyld=Yes to your boot flags :)



I thought the whole point of the custom dyld kernel was to avoid that? Or am i missing something, lol

akimoa
08-27-2011, 05:03 AM
I found the routines that do code signature checks on the pages + through dyld syscall.
I modified the code slightly so it will verify all code signature kernel checks as valid.
This means we can use stock dyld too...
I also noticed the panic.
It panics on map_text_segment_sys (that's where the trap gets called).
I modified the code slightly for the new syscall format (it shouldn't panic anymore).
I'll post the results soon, please test on that P4... ;)

Just give me a Shout when u Updated it will recompile it on lion :-d

davisin666
08-27-2011, 03:08 PM
Installer partition is awaiting :)

Good luck with the kernel :D

RoseMan
08-27-2011, 09:54 PM
I've been following this thread with great interest. I currently run SL quite happily on a Pentium D system. I'm really excited about the possibility of getting Lion to go on my old system. I have tried to install Lion from a USB key. With the real Lion kernel I just get a black screen after the kexts have loaded. With the kernel compiled by Wastez (in Post #65, length 15,400,176) I get the same black screen after loading kexts. With AnV's kernel (posted on I.M. length 19,678,036) the boot does go further but I get the same KP as reported by scififan68 in Post #92. I'm using Chameleon v2.0-RC5 r1083 on the USB key. One other note: when I try AnV's atom kernel (mach_kernel_dp4_atom_apic) the boot proceeds past the kext loading, but stops/hangs after the "BSD root:" line instead of KPing.

We're all rooting for you AnV!! Thanks for your efforts.

acermac3
08-28-2011, 01:37 PM
Hey Roseman,
Because I am experimenting too, I was curious if you have booted in -s single user mode, or -x safe mode with the ANV mach_kernel_dp4_atom_apic kernel? Have you gotten any further in the boot process? In the past I have disabled just about everything with regards to kexts and startup items and found I wasn't having a kernel problem but other system files weren't playing well with each other. I was able to use older files to at least get booted in safe mode. Just wondering about your troubleshooting efforts so I don't duplicate over here. -thx

kocoman
08-28-2011, 03:20 PM
Can someone split or rename this thread to "Lion on AMD"?

RoseMan
08-28-2011, 06:01 PM
The only other thing I had tried was to remove AppleIntelCPUPowerManagement.kext from S/L/E and it made no visible difference. Just now I tried -s & -x in various combinations on the different kernels and found no changes in behavior. One funny little thing I did notice, though, is that when trying the atom kernel, after it stops/hangs following the "BSR root:" line there is still some process running that echos what I type on my (PS/2) keyboard to the screen.

Hey Roseman,
Because I am experimenting too, I was curious if you have booted in -s single user mode, or -x safe mode with the ANV mach_kernel_dp4_atom_apic kernel? Have you gotten any further in the boot process? In the past I have disabled just about everything with regards to kexts and startup items and found I wasn't having a kernel problem but other system files weren't playing well with each other. I was able to use older files to at least get booted in safe mode. Just wondering about your troubleshooting efforts so I don't duplicate over here. -thx

acermac3
08-28-2011, 06:19 PM
I have not experienced this result. I don't know if this has any significance, but did you try to issue any commands while it was in the hang state?
ls
cd ..
while it echoed your keyboard output?

RoseMan
08-29-2011, 03:22 PM
acermac3: You seem to have PM's disabled, my reply to your PM is below:

I'm not sure what/when you mean "before the kexts loaded". I get the keyboard echoed to the screen after Chameleon says it has loaded a particular kernel, then the names of lots of kexts scroll by, then the system changes (text mode) resolution and starts to initialize various things. I think I see the Firewire get setup, and the keyboard, and near the end of what is shown is a listing of my usb key as the boot device, then there is a line that says"BSD root: disk....." (I'm not at my test system right now, so I'm just going from memory). Then the system just sits there. If I type stuff it appears on screen, but I get no response or prompts. I don't see the disks run or anything. I did try entering some commands, but didn't see anything happen. Whatever is echoing the keystrokes though it does take my pressing 'Enter' as both a Carriage Return and a New Line. That is, if I type something and then hit enter, the next things I type will appear at the begining of the next line on the screen. When I get a chance tonight I will compare this behavior to what I get if I boot my SL installer into Single User mode (-s). Also, tonight I will let you know what is in my /extra directory.

davisin666
08-31-2011, 01:49 AM
Any progress with the new legacy kernel??? :)

Good luck , Andy! ^_^

kocoman
08-31-2011, 07:47 PM
I tried both atom and non-atom kernel (on first post) on sse2 only cpu, but I get panic "invalid kernel ip"

http://img832.imageshack.us/img832/6962/unled2ix.th.png (http://imageshack.us/photo/my-images/832/unled2ix.png/)

Uploaded with ImageShack.us (http://imageshack.us)

while at a sse3 supported cpu, it boots fine

both laptops is USB booting, so I didn't change anything expect the kernel

blackknight
09-04-2011, 03:24 AM
Problem with dyld patcher where Outlook 2011 and Quicken Essentials both will not open. I tried to manually patch both with the amd instruction patch tool, but no luck. Then I tried going back to the 10.6.8 legacy kernel from nawcom, which doesn't have the corrected AMD FSB detection, and sure enough, it worked perfectly. Any ideas on how this can be fixed? I had to manually put FSB=200000000 like back in the 10.6.2 days when I added my FSB patcher to the old kernel. I haven't yet found the source to the nawcom kernel in order to try reversing my patch now that Chameleon has it.

akimoa
09-04-2011, 06:06 AM
blackknight with anvs kernel u used the bootflag std_dyld=yes ?

wich disables the integrated dyld and uses the standard one (i guess patching the bins doesnt help when they dont get detected cause they switched off

also with anvs kernel u can use doublefsb=Yes to set your fsb rite when its messed up

blackknight
09-04-2011, 06:10 AM
blackknight with anvs kernel u used the bootflag std_dyld=yes ?

wich disables the integrated dyld and uses the standard one (i guess patching the bins doesnt help when they dont get detected cause they switched off

also with anvs kernel u can use doublefsb=Yes to set your fsb rite when its messed up

Thanks for the bootflag for std_dyld, I couldn't remember what it was. Also, the FSB is correct with AnV's kernel, it's nawcom's that doesn't get it right, though it does apparently use the std_dyld.

akimoa
09-04-2011, 06:18 AM
Yap after meklort fixed the workaround in Chameleon its there double time once with the kernel and with the bootloader and then things get messed up like sound and stuff by the the time that was done nawcom was off due to illness and didnt fix it in his latest legacy version


btw did u see netkas got the 6970 working last nite ;P

Your welcome:-d

blackknight
09-04-2011, 07:11 AM
That was just what I needed. It works great and now that I can use AnV's kernel without hardcoding the FSB, sound doesn't skip anymore.

Yeah, I did see that netkas got 6970 working. I have a 6950 unlocked to 6970 that I'd love to get working, but I can't yet run Lion since I'm on AMD. I guess once we get a working kernel, I'll get a chance to try it.

akimoa
09-04-2011, 07:20 AM
Oops didnt read the top line ....my bad

todesto
09-07-2011, 12:36 AM
Hello, newbie here
What do you with all the files you downloaded? First post link leads to 37MB file and I see boot files and whole bunch of other stuffs. I guess it's the source for dyld.
Do I just replace the kernel only with the one i downloaded?


Can someone lead me to the right direction on what to do with this?

Thanks in advance.

akimoa
09-12-2011, 07:11 AM
Any Progress in the Lion Legacy Mission m8 ?:-d

andyvand
09-12-2011, 09:44 AM
Any Progress in the Lion Legacy Mission m8 ?:-d
No, not yet but I've taken a different approach.
I've diffed the standard SL kernel against the standard Lion kernel (to find out what was changed).
Lots of code to go through.
I've also disassembled the Lion DP1 kernel as well as the GM one and have written a little program to strip of the addresses.
I've diffed these together to get instruction changes in the diff.
Studying both may reveal a solution. ;)
I'll upload the diff later.

andyvand
09-20-2011, 06:52 AM
I've posted the assembly diffs between 10.7.0 DP1 and 10.7.0 GM
I hope somebody can help me identify which instructions enable 32bit (and thus also AMD) support.
They can be found here:
http://www.insanelymac.com/forum/index.php?showtopic=265181&st=40&gopid=1750568&#entry1750568
I also included my custom otx tool
NOTE: There is a 64bit part to otx but it is untested. If trouble, run it in 32bit, it also needs Xcode

akimoa
09-20-2011, 08:04 AM
a needle in a haystack looks more sexy ;)



wondering if these compare programms would help us in searching by comparing the 2 files next to each other and find our needle .... just wondering

andyvand
09-20-2011, 08:09 AM
a needle in a haystack looks more sexy ;)



wondering if these compare programms would help us in searching by comparing the 2 files next to each other and find our needle .... just wondering
yeah, I agree, I've been trying for weeks.
Currently I'm designing a custom 10.7.0 kernel with 10.6.8 osfmk directory (requires a lot of adjustments).
I'll keep you posted if it works, then we at least know where to look. ;)

hans88
09-20-2011, 04:42 PM
AnV heard that you were on the LION kernel for AMD...was just wondering if you were still on it, cause didn't hear you for a while???!!!
Thanks.

akimoa
09-20-2011, 05:02 PM
but u did read the topic before u posted did ya ? because that would have made things a little clearer and the question would have answered all itself

andyvand
09-21-2011, 07:00 AM
AnV heard that you were on the LION kernel for AMD...was just wondering if you were still on it, cause didn't hear you for a while???!!!
Thanks.
Looooots of work on getting it done... haven't isolated the problem yet...

wastez
09-21-2011, 08:01 AM
@ AnV
Is there a possibility to run the Lion GM with the 32 bit kernel of the DP Version?
And if it work would it be possible to create an modified version?

andyvand
09-21-2011, 10:32 AM
@ AnV
Is there a possibility to run the Lion GM with the 32 bit kernel of the DP Version?
And if it work would it be possible to create an modified version?
Yes DP1 kernel and some other files (like Finder and finder cache), it'll only work on Atom / Yonah though.
Look on the internet (google ;)) for more info.

wastez
09-21-2011, 01:16 PM
Did not think on it that there is no source from dp.

Iīm also starring at the kernel txt file since yesterday and itīs gona to drive me crazy.

andyvand
09-21-2011, 02:10 PM
Did not think on it that there is no source from dp.

Iīm also starring at the kernel txt file since yesterday and itīs gona to drive me crazy.
Yeah, I also wish Apple had released their xnu-1699.21.x sources (instead of 1699.22 ones).
With a bit of work they at least would have worked just fine on AMD.

hans88
09-21-2011, 09:34 PM
Looooots of work on getting it done... haven't isolated the problem yet...

Thank you a lot guys and keep it up, I know there's lots of hard work ahead before getting it done...:).
Also, looks like nawcom too is on it, but didn't really heard lots of him since he came back.
May be you guys can rock together and get it done...:)

hans88
09-21-2011, 09:35 PM
but u did read the topic before u posted did ya ? because that would have made things a little clearer and the question would have answered all itself
I know that this question should have been asked in the 10.7 forum, its just on a hurry that I forgot.

blackknight
09-26-2011, 09:08 PM
I'm curious if with the new AMD fusion processors supporting SSSE3 instructions if they will support full 64-bit mode on Lion and SL. I'm looking to get one of the new AMD FX processors when they release and they effectively support all of the intel instructions. What do you think Andy?

andyvand
09-28-2011, 01:38 PM
I'm curious if with the new AMD fusion processors supporting SSSE3 instructions if they will support full 64-bit mode on Lion and SL. I'm looking to get one of the new AMD FX processors when they release and they effectively support all of the intel instructions. What do you think Andy?
Snow Leopard: no doubt
Lion: Maybe, if they don't cause instant reset... :eek:
We need to test them to be sure...

akimoa
09-30-2011, 02:50 PM
bah new processor s

id like to see the old ones working 1st ;)

blackknight
09-30-2011, 04:21 PM
Well, the new processors support all the intel instructions, whereas the old ones need emulators. Emulators that need to be written. I'm hoping that these new processors won't require much work.

akimoa
10-13-2011, 03:40 PM
10.7.2 Sources are out FYI

:D

i compiled it with only patching it with the old diff from 10.7 no changes made to it patching went tru fine so i thought i compile it with xcode 4.1 maybe someone is eager to test it i havent yet

its compiled only in 32 bit

well here it is
10.7.2
http://cl.ly/0F0A3n3o0j2K3p3N0u02

m28ew
10-13-2011, 06:48 PM
10.7.2 Sources are out FYI

:D

i compiled it with only patching it with the old diff from 10.7 no changes made to it patching went tru fine so i thought i compile it with xcode 4.1 maybe someone is eager to test it i havent yet

its compiled only in 32 bit

well here it is
10.7.2
http://cl.ly/0F0A3n3o0j2K3p3N0u02


it gave the similar KP on my AMD PII-X4 965

http://i27.lulzimg.com/bbfb283a32.gif

davisin666
10-13-2011, 07:51 PM
it gave the similar KP on my AMD PII-X4 965

http://i27.lulzimg.com/bbfb283a32.gif

map_text_segment_sys, maybe there is something wrong with the decryption algorithm or Apple encrypted more binaries.

Remembers me from Snow Leopard

Decryption hasn't succeeded yet (probably will retry)
patch_exec_obj_segment failed
map_segment failed

Damn, I want Lion :(

andyvand
10-14-2011, 01:31 PM
map_text_segment_sys, maybe there is something wrong with the decryption algorithm or Apple encrypted more binaries.

Remembers me from Snow Leopard

Decryption hasn't succeeded yet (probably will retry)
patch_exec_obj_segment failed
map_segment failed

Damn, I want Lion :(
I checked the way Lion decrypts, it's the same way.
I should try to add a few patches and drop custom dyld and auto-patcher support.
Without the map_text_segment_sys syscall replacement (syscall 8) it might work...
Keeps you posted...

akimoa
10-14-2011, 01:35 PM
sounds promising atleast a bit

just post the diff ready to compile :-d whenever u are

todesto
10-14-2011, 06:53 PM
this major update from apple with iCloud service, it seems Lion is essential....

Can't wait for the AMD kernel. ;)

don't want to buy Intel system just for that.

maceshka
10-19-2011, 08:33 PM
What about that (http://www.insanelymac.com/forum/index.php?s=&showtopic=265181&view=findpost&p=1759003)?

davisin666
10-19-2011, 08:35 PM
I could boot Snow Leopard with arch=x86_64 (V2 10.6.8 kernel), but all apps were crashing after the desktop appeared.

Bootargs in org.chameleon.Boot.plist: arch=i386 -force64 std_dyld=Yes npci=0x2000

Setting -v arch=x86_64 at chameleon boot prompt worked, as appeared in the boot log, Kernel is LP64

Process: Finder [2974]
Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
Identifier: Finder
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [125]

Date/Time: 2011-10-19 16:11:25.199 -0300
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread: 0

Thread 0 Crashed:
0 dyld 0x8fe2b7bf _sysenter_trap + 3
1 dyld 0x8fe2d5ea mach_init + 47
2 dyld 0x8fe01766 dyldbootstrap::start(macho_header const*, int, char const**, long) + 448
3 dyld 0x8fe01057 _dyld_start + 39

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0xffffffe4 ebx: 0x8fe2d4ac ecx: 0xbffffa4c edx: 0x8fe2dcf2
edi: 0x00000000 esi: 0x00000000 ebp: 0xbffffa98 esp: 0xbffffa4c
ss: 0x00000023 efl: 0x00010286 eip: 0x8fe2b7bf cs: 0x0000001b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x00000000
cr2: 0x8fe2b7bc

Binary Images:
0x8fe00000 - 0x8fe4163b dyld 132.1 (???) <4CDE4F04-0DD6-224E-ACE5-3C06E169A801> /usr/lib/dyld

My finder is 32 bit only
Slowpoke

andyvand
10-21-2011, 09:16 AM
This weekend I can put some time aside for making a new Lion kernel...
Keep you posted. ;)

$The-King$
10-21-2011, 10:00 AM
This weekend I can put some time aside for making a new Lion kernel...
Keep you posted. ;)

<B

i hope you do it ;)

davisin666
10-21-2011, 02:36 PM
This weekend I can put some time aside for making a new Lion kernel...
Keep you posted. ;)

<B

Dale compadre, que la fuerza te acompaņe :D
Buena suerte!

akimoa
10-21-2011, 03:49 PM
---- yeah ! Do it ;)

<B

davisin666
10-26-2011, 06:18 PM
Andy, I booted with arch=x86_64 with your latest legacy_kernel for Snow Leopard (With x64 Finder).

I can't run any 32 bit / Rosetta app, only in force64 mode I can run 32 bit apps.
My libSystem.b is patched too.

The dmesg from my pc is in the attached file.

Cheers :D

wastez
10-28-2011, 08:49 AM
The problem is that there is no solution to run 32 bit apps on an amd with the 64 bit kernel.
Itīs just possible to run 32 bit kernel in 64 bit userland.
Sorry dude.

Here something different:
I would have a look on these kexts, because there appears a error on your machine during the startup:
Kext com.PaztalomTechnologiez.nVmon - library kext com.apple.NVDAResman not found.
Can't load kext com.PaztalomTechnologiez.nVmon - failed to resolve library dependencies.
Kext com.PaztalomTechnologiez.nVmon failed to load (0xdc00800e).
Failed to load kext com.PaztalomTechnologiez.nVmon (error 0xdc00800e).

akimoa
10-28-2011, 12:51 PM
Hows it going on the project guess alot people have that question in mind thats why im asking it ?!

andyvand
10-28-2011, 02:18 PM
Hows it going on the project guess alot people have that question in mind thats why im asking it ?!
Working on it.
I studied the kernel some more and saw csops routine.
It's a syscall used by dyld which checks code signing (and in dyld code it halts execution if incorrect).
Guess there are a few more corpses that need burying lol. ;)
This weekend I should have a solution...

davisin666
10-28-2011, 06:54 PM
The problem is that there is no solution to run 32 bit apps on an amd with the 64 bit kernel.
Itīs just possible to run 32 bit kernel in 64 bit userland.
Sorry dude.

Here something different:
I would have a look on these kexts, because there appears a error on your machine during the startup:
Kext com.PaztalomTechnologiez.nVmon - library kext com.apple.NVDAResman not found.
Can't load kext com.PaztalomTechnologiez.nVmon - failed to resolve library dependencies.
Kext com.PaztalomTechnologiez.nVmon failed to load (0xdc00800e).
Failed to load kext com.PaztalomTechnologiez.nVmon (error 0xdc00800e).

Hahahahahaha, nvmon is from FakeSMC, is for temperature monitoring, since I've bought a Thermaltake DuOrb is really not needed, I'm gonna delete that kext.


Working on it.
I studied the kernel some more and saw csops routine.
It's a syscall used by dyld which checks code signing (and in dyld code it halts execution if incorrect).
Guess there are a few more corpses that need burying lol. ;)
This weekend I should have a solution...

Nice to hear that Andy, good luck! Waiting the halloween_kernel hahahahaha

akimoa
10-31-2011, 07:48 AM
Well i am Curious ;) and eager to get my hands on its almost like a kid in a candystore :-d

wastez
10-31-2011, 04:58 PM
Hello Anv,

Is there something new about the lion kernel?
Hope youīll get it soon.

Thx

nightf4ll
10-31-2011, 05:41 PM
Hello Anv,

Is there something new about the lion kernel?
Hope youīll get it soon.

Thx

ANV ignores us :'(

andyvand
11-02-2011, 09:20 AM
Hello Anv,

Is there something new about the lion kernel?
Hope youīll get it soon.

Thx
Still working on it but I don't have a lot of time (lots of work@work :-p)
I'll post results as soon as I can.

bassie86
11-04-2011, 11:54 AM
Hello All,

I am from dutch hackintosh.nl see you my Topic
http://www.hackintosh.nl/snow-leopard-10-6-x/12327-msi-790fx-gd70-en-amd-phenom-ii-x2-550be.html

Working all good.

Only having problem!! All APPS work only Outlook 2011 cannot open
and Premier CS5.5 cannot open.

I having AMD Patcher al ANV and my boot chameloen


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Flags</key>
<string>-v npci=0x2000</string>
<key>Timeout</key>
<string>5</string>
<key>busratio</key>
<string>16</string>
<key>EthernetBuiltIn</key>
<string>Yes</string>
</dict>
</plist>


Thanks

nightf4ll
11-04-2011, 03:59 PM
Hello All,

I am from dutch hackintosh.nl see you my Topic
http://www.hackintosh.nl/snow-leopard-10-6-x/12327-msi-790fx-gd70-en-amd-phenom-ii-x2-550be.html

Working all good.

Only having problem!! All APPS work only Outlook 2011 cannot open
and Premier CS5.5 cannot open.

Thanks

Hmm, I dont think you can run Premiere CS5.5 on amd cpu. I guess Outlook can be fixed, but premiere and latest version of final cut use probably SSE4 instructions for codecs and this might cause them to crash. I had Premiere running, but as soon as i opened a video file it would crash. And now for some reason it crashes right away... You will probably have to run it on Windows -.-

bassie86
11-05-2011, 01:04 PM
No Legacy_kernel in turn works with Outlook and 4GB Premier CS5.5;-).
Mach_kernel works with 8GB support almost everything except Outlook and Premier CS5.5

This is not strange in outlook and premier cs5.5 can not kernel mach_kernel
where I had MAXMEM = 4086 = 4096 MAXMEM or both can not mach_kernel so wrong outlook remains cs5.5 and Prime! Then I turn to only 4GB Legacy_kernel's great and not 8GB.

Mach_kernel with 8GB work After Effects CS5.5 and Photoshop CS5.5 and Word, Excell, Acces, Publisher working
Only this Outlook en Premiere Pro CS5.5 not work

Edihigh
11-05-2011, 04:25 PM
could anybody understand what he sad?^_^

akimoa
11-05-2011, 05:05 PM
nope not a word

Sn0wStorm
11-06-2011, 09:06 PM
Still working on it but I don't have a lot of time (lots of work@work :-p)
I'll post results as soon as I can.

Please let me know if i can help you with searching, comparing code or anything, ive got:
AMD Phenom II X4 955
Gigabyte GA-MA-770T-UD3P
Snow Leopard 10.6.8

I would really appreciate having Lion running on my System :)

bassie86
11-06-2011, 11:34 PM
I had always used legacy_kernel 8GB, which can not rotate so all apps do not work with 4GB but the super twist.
I came up against in your topic I have tried as I did order that work be given to 8GB mach_kernel there turn now almost everything works except APPS

Working: (mach_kernel and 8GB)

Firefox
Safari
Itunes
AppStore
After Effect
Photoshop
Illusrator
Word
Excell
Powerpoint
Rush
Zen Bound 2
Plants VS Zombies

Not Working Working: (mach_kernel and 8GB)
Outlook 2011
Premier Pro

Working: (legacy_kernel and 4GB)
Working All

Working: (legacy_kernel and 8GB)
Not working all

hans88
11-07-2011, 06:22 AM
I'm using legacy_kernel on msi 790fx-gd70 with 8GB and everything works fine. Try to clean the kernel cache and delete any other kernel like legacy_kernel.old and mach_kernel and reinstall the nawcom's 10.6.8 legacy_kernel it should work.

andyvand
11-08-2011, 09:34 PM
I finished the work on the patches.
@Akimoa: Please compile and test both patches (AutoPatcher + NoAutoPatcher).
I also included a new amd_insn_patcher for use with SL / Lion (sysenter trap is slightly different on Lion, needed for dyld and libSystem.B.dylib).
Test it out please and let me know the results. ;)
Also: It will say something like /Users/andyvand/Downloads/10.7.0/voodoobuild-AnV-0.5.1/xnu-1699.22.73/bsd/sys/make_symbol_aliasing.sh: line 85: /usr/local/libexec/availability.pl: No such file or directory
Because the script availability.pl is not available, ignore it, it will compile just fine. :)

akimoa
11-08-2011, 09:55 PM
still testing !!

compiled them just waiting for andy to reply if i went the rite way

andyvand
11-08-2011, 10:38 PM
@Akimoa: I just finished doing some fixes (compiling it too) and I fixed up some warnings and 1 error which let it fail.
Uploaded correct versions.

akimoa
11-08-2011, 10:46 PM
indeed that went thru better

andyvand
11-08-2011, 10:46 PM
@Akimoa: Another correction, this one for noautopatch-v1.diff. ;)
I forgot to remove the syscall mod for this one...
Normally it should work fine with this one...

andyvand
11-08-2011, 10:47 PM
indeed that went thru better
Don't forget to use the new one for noautopatch version.

akimoa
11-08-2011, 10:51 PM
I will still building 1st

and here they are :

Legacy Kernel 10.7 No Autopatch

http://cl.ly/0G0R152u09332z0i3E10

Legacy Kernel 10.7 Autopatch

http://cl.ly/0X0w3s300U002z0W0K3t



theres always both i386 and x86_64 Version of it

i wont be testing them now since its to late but will do 1st thing tomorrow

Have fun

andyvand
11-08-2011, 10:59 PM
I will still building 1st
It's extremely important to use the last one I uploaded because syscall 8 may not be modified on the noautopatch version.

davisin666
11-08-2011, 11:07 PM
---- yeah! Someone confirm that if is working, so I can install Lion now :D, thanks Andy for your hard work :D

akimoa
11-08-2011, 11:22 PM
i did use it :)

andyvand
11-08-2011, 11:32 PM
I will still building 1st

and here they are :

Legacy Kernel 10.7 No Autopatch

http://cl.ly/0G0R152u09332z0i3E10

Legacy Kernel 10.7 Autopatch

http://cl.ly/1z3j321i2a0g1i171819



theres always both i386 and x86_64 Version of it

i wont be testing them now since its to late but will do 1st thing tomorrow

Have fun
Has anybody tested these? :)

akimoa
11-08-2011, 11:39 PM
Yes Busy ! with it

Instant Reboot on NoPatch i386

andyvand
11-08-2011, 11:49 PM
Yes Busy ! with it

Instant Reboot on NoPatch i386
And the others (including the x86_64 version)?
I'm also compiling a kernel (using Xcode 3.2.6).
I will post download link when ready ;)

akimoa
11-08-2011, 11:55 PM
Same on Patched i386

will test the others aswell and im also doubting on my system if it is set up proper since it was messed with it alot so

i wont take myself as the best reference

davisin666
11-08-2011, 11:55 PM
http://cl.ly/1z3j321i2a0g1i171819

In this download is missing the Autopatch x86_64

Sn0wStorm
11-09-2011, 12:06 AM
Instant Reboot for me too :(
do we have to use special boot flags on the No Autopatch Kernel, or is it just for dyld patching?

andyvand
11-09-2011, 12:12 AM
Instant Reboot for me too :(
do we have to use special boot flags on the No Autopatch Kernel, or is it just for dyld patching?
Try booting with -force64 boot flag (may work but not sure).
dyld patching on the no autopatch version is done with the new amd_insn_patcher (This works, I tested it).
Soon I'll post my compiled version of the no autopatch kernel (cross the fingers that Xcode 3.2.6 makes a difference).
If this doesn't work I'm out of ideas (same goes for creating a new kernel patch).