InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #11  
Old 01-24-2011, 03:45 AM
Imkantus Imkantus is offline
 
Join Date: Jul 2009
Location: Germany
Posts: 779
Quote:
Originally Posted by fumoboy007 View Post
I think everyone with more than 4GB of RAM cannot boot into 32-bit userspace without fsck crashing.
Thanks for pointing that out.

Quote:
Originally Posted by andyvand View Post
Binary decryption works (after "DSMOS has arrived" message) but I will add SystemUIServer, Finder and also VLC to the "no-patch list".
Well OK then, I just have thought that non working decryption would have been the reason, for me having lot's of "patch_text_segment failed" errors in dmesg after "DSMOS has arrived" and the system was up as well...
Looking forward to try the next build.

Would you mind to answer some questions to me?
First I wonder what's the purpose of libunwind - I know it is required for building dyld and that this hasn't been the case on Leopard. (That's what even zero-coder like me can understand when looking at the src.^^)
I guess missing libunwind is the reason for having to use upx on some binary - is it?
Do you think you can port libunwind for Snow Leopard?

Quote:
Originally Posted by davisin666 View Post
Nawcom kernel is the fix xD
1. Who do you think has added all the important code, for us AMD users to what you use to call "Nawcom kernel"?!
Without the efforts of Andyvand you would still be using sort of pure legacy mode kernel / without any 64-Bit capability.

2. What sentence in the first post don't you understand?! "I updated the latest patch to include a custom dyld." or "This dyld is beta"???

3. Even if you don't know the meaning of some words, it should be possible to understand that this is a) about keeping development going, and b) no final release, what usually means that testers are wanted.
If even getting that is beyond your scope of mind, you should better hold your tongue instead of posting provocative shit into technical topics.

AMD Phenom II X4 955 - ASRock AM3A770DE - 8GB DDR3-1333 - Radeon HD 5570 1GB passiv - BCM4318 802.11b/g - Snow Leopard Retail
+++
AMD Phenom X3 8450 - ASRock AM2NF6G-VSTA (BIOS L2.39) - 4GB DDR2-800 - Radeon HD 4650 512MB - Snow Leopard Retail (retired) / OpenBSD
Reply With Quote
  #12  
Old 01-24-2011, 12:40 PM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
Quote:
Originally Posted by davisin666 View Post
Nawcom kernel is the fix xD
Nawcom's kernel package doesn't yet have a custom dyld built in.
It's actually the same as booting this kernel with the following boot argument:
std_dyld=Yes
...
Don't worry, development is proceeding on the dyld.
I'm going to reverse engineer the Apple libunwind procedures from Apple's dyld (i386 and x86_64 dyld part).
I'll keep you posted if I succeed
Reply With Quote
  #13  
Old 01-24-2011, 12:46 PM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
Quote:
Originally Posted by Imkantus View Post
Would you mind to answer some questions to me?
First I wonder what's the purpose of libunwind - I know it is required for building dyld and that this hasn't been the case on Leopard. (That's what even zero-coder like me can understand when looking at the src.^^)
I guess missing libunwind is the reason for having to use upx on some binary - is it?
Do you think you can port libunwind for Snow Leopard?
Yeah, we need to pack some binaries with upx for this reason.
I'm going to reverse engineer the routines used in Apple's dyld though (32bit + 64bit Intel part).
I think this will fix the last little issues with the dyld and that it then will be the first dyld release.
Reply With Quote
  #14  
Old 01-24-2011, 12:56 PM
wastez's Avatar
wastez wastez is offline
Panther
 
Join Date: Oct 2010
Posts: 182
Hello,

Can anyone tell me how to compile ucl & upx so that i can use the kernel?!
Would be really nice too know because i never compiled anything.

Thx & Greetz
Reply With Quote
  #15  
Old 01-25-2011, 06:29 AM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
Quote:
Originally Posted by wastez View Post
Hello,

Can anyone tell me how to compile ucl & upx so that i can use the kernel?!
Would be really nice too know because i never compiled anything.

Thx & Greetz
I found mine on InsanelyMac, precompiled and working great...
Reply With Quote
  #16  
Old 01-25-2011, 06:32 AM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
I am also working on a new dyld.
Latest attempt is replacing the used exception code from the libunwind.a code to the libgcc_eh.a code.
Currently done (as it's also used this way on iOS I only needed to change a certain #if)
I also changed some other code so it shouldn't crash on load of System Profiler, etc...
I also updated the voodoobuild script so that it uses rebase_dyld to rebase the address of the dyld (i386 and x86_64, for security purposes...) and pre-patched the dyld sysenter trap so that the kernel doesn't need to look for it each time over again... this is faster...
Work in progress thus, I'll let you guys know if it works.

Last edited by andyvand; 01-25-2011 at 06:34 AM.
Reply With Quote
  #17  
Old 01-25-2011, 07:23 AM
wastez's Avatar
wastez wastez is offline
Panther
 
Join Date: Oct 2010
Posts: 182
Quote:
I found mine on InsanelyMac, precompiled and working great...
Would it be enough if i download an compiled upx and copy it to /usr/bin or do i need ucl too?

Greetz & Thx for your reply
Reply With Quote
  #18  
Old 01-25-2011, 08:53 AM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
Quote:
Originally Posted by wastez View Post
Would it be enough if i download an compiled upx and copy it to /usr/bin or do i need ucl too?

Greetz & Thx for your reply
Just download a compiled copy and use it like this from within Terminal:
sudo upx --best /System/Library/CoreServices/pbs
Reply With Quote
  #19  
Old 01-25-2011, 08:55 AM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
[quote name='sfx.' date='Jan 25 2011, 07:04 AM' post='1628889']
Waiting patiently Fingers crossed.
[/quote]
I've achieved a lot more success.
Right now every app runs stable without upx (except for /System/Library/CoreServices/pbs, pack this with upx).
If you use Vodafone Mobile Connect, pack this too...

Fixed:
- SystemUIServer crashes on Finder icons
- Disk Utility, System Profiler, etc... all work without packing
- dyld speed issues solved
- On-The-Fly patching works for all

It's stable enough to use on a SL install DVD as main patcher.

Download full package:
http://rapidshare.com/files/44441607...-AnV-0.4.1.zip

Let me know what you think of it so far...

For fellow developers:
When Finder should fail (for the moment after a file copy, folder copy, zip action, probably others :wacko: ) it always crashes on GetDYLDEntry.
If somebody could debug and trace this for me so I can fix this last little issue.
This was after a file copy...
Other than that it's fine, so please, lend me your eyes, devs so we can together close this chapter down.
Reply With Quote
  #20  
Old 01-25-2011, 01:06 PM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
Could somebody who has a 64 bit processor (Intel / AMD)

For AMD:
boot up with arch=i386 -force64

For Intel:
boot up with arch=i386 patcher_opts=49 -amd -force64

and see if the 64bit Finder (not a decrypted one from Marvin's Utility) runs without those issues.
I am beginning to suspect that the rebasing of the dyld may have something to do with the last bug.
I also think that they are i386 dyld related (not x86_64 dyld)...
I am currently rebuilding a kernel with sysenter trap pre-patched in dyld but not rebased to see if this is the case.
I have also made a decrypt of "Finder" (32bit only though), removed the code signature and packed it with upx to test in case this doesn't work.
Working hard on a final solution...
Please, somebody who can, do me a lot of fun and test it... all for the sake of progress...



💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers.

Reply With Quote
Reply