Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
brxxthe

Lion DP2 - OSInstall.mpkg checks

18 posts in this topic

Recommended Posts

I thought I would start a thread for those of us installing Lion DP2 and running into issues modifying the Distribution script inside OSInstall.mpkg

 

I will post any progress that I make here as this seems to be a common issue with DP2. There is no more PlatformSupport file in S/L/Core Services.

 

I first attempted removing lines in the script regarding checks but I would hit the "Could not install" note in the installer stating Javascript errors.

 

UPDATE: I have succeeded by only changing a few of the return false lines to return true. I only changed them in regards to CPU check, ram check, and board ID. I'm installing now and I can provide more detail on what I changed shortly.

 

here is a tutorial on extractive the said mpkg

http://hints.macworld.com/article.php?stor...071026083746346

Share this post


Link to post
Share on other sites

So what did you change? and are you using [url="http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/"]#####[/url] or xpc?

Share this post


Link to post
Share on other sites

here is a list of changes that I made to the Distribution file within OSInstall.mpkg

 

The first group of changes was within SupportedPlatform function entry.

 

function isSupportedPlatform(){

var platformSupportValues=["Mac-F2268DC8","Mac-F22C86C8","Mac-F22587C8","Mac-F2218FA9","Mac-F2218EA9","Mac-F42D86A9","Mac-F22C8AC8","Mac-F22586C8","Mac-942B59F58194171B","Mac-F226BEC8","Mac-F4218FC8","Mac-942459F5819B171B","Mac-F4218EC8","Mac-F2208EC8","Mac-F22C89C8","Mac-F22587A1","Mac-F221DCC8","Mac-F42388C8","Mac-F223BEC8","Mac-F4238CC8","Mac-F222BEC8","Mac-F227BEC8","Mac-F4208AC8","Mac-F22788A9","Mac-F4238BC8","Mac-F221BEC8","Mac-F2238AC8","Mac-F4208EAA","Mac-F22788C8","Mac-F22589C8","Mac-F4228EC8","Mac-F22788AA","Mac-F42C86C8","Mac-F4208CA9","Mac-942C5DF58193131B","Mac-F2238BAE","Mac-F42289C8","Mac-F2268CC8","Mac-F4208DC8","Mac-F2218FC8","Mac-F2218EC8","Mac-F4208DA9","Mac-F42D89C8","Mac-F4208CAA","Mac-F42D89A9","Mac-F2268AC8","Mac-F42C89C8","Mac-942452F5819B1C1B","Mac-F42786A9","Mac-F42D88C8","Mac-F42187C8","Mac-94245B3640C91C81","Mac-F42D86C8","Mac-F2268EC8","Mac-F2268DAE","Mac-F42C8CC8","Mac-F42C88C8","Mac-94245A3940C91C80","Mac-F42386C8","Mac-942B5BF58194151B","Mac-F42189C8"];
var boardID = system.ioregistry.fromPath('IOService:/')['board-id'];

if( !boardID || platformSupportValues.length ==0 ) {
	return [color="#FF0000"]false[/color]
}
for( var i = 0; i < platformSupportValues.length; i++ ){
 	if( boardID == platformSupportValues[i] ){
			return true;
  	}	
}

return [color="#FF0000"]false[/color];
}

 

Next I made changes inside InstallCheckScript function entry.

 

function installCheckScript(){

		try{
			var machineType = system.ioregistry.fromPath('IODeviceTree:/')['compatible'];

			if (typeof(isFNI) == "undefined" && typeof(hwbeInstallCheck) != "undefined") {
				if (!hwbeInstallCheck()) {
					return[color="#FF0000"] false[/color];
				}
			} 

			if(!hasAtLeastRam(minRam)){
				my.result.message = system.localizedStringWithFormat('IC_RAM_message');
				my.result.type = 'Fatal';
				return[color="#FF0000"] false[/color];
			}

			if(!is64bit()){
				my.result.message = system.localizedStringWithFormat('IC_Cannot_Install');
				my.result.type = 'Fatal';
				return [color="#FF0000"]false[/color];
			}

			if (system.compareVersions(system.version.ProductVersion, '10.7') < 0 && system.env.COMMAND_LINE_INSTALL) {
				my.result.message = system.localizedStringWithFormat('IC_Command_Line_message', '10.7');
				my.result.type = 'Fatal';
				return [color="#FF0000"]false[/color];
			}

			if(!isSupportedPlatform()){
				my.result.message = system.localizedStringWithFormat('IC_Cannot_Install');
				my.result.type = 'Fatal';
				return [color="#FF0000"]false[/color];
			}


			if (typeof(findBJPrinters) != "undefined") findBJPrinters();

		} catch (e) {
			system.log('installCheckScript threw exception ' + e);
		}

		return true;
}

 

That was it. The rest of the script deals with Upgrade versions and Languages, etc. All the falses highlighted in RED I changed to true. This led to an install from [url=&quot;http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/&quot;]#####[/url] 1.4 - i'm still dealing with board ID issues during boot of the install however.

 

I'll also add that I set my BIOS settings for the CPU to defaults (no O/C) and Removed 2 sticks of RAM to make 4GB in order to fix the spinning red ball issue during the installer.

Share this post


Link to post
Share on other sites

dp2 actually does create the platformsupport.plist after you install so don't forget to delete it.

 

I've got it up and running but it's super slow and beachballs all the time. Has anyone actually gotten netkas's new pcefi to work?

 

Update: Switched from boot to the new pcefi and it's now silky smooth

Share this post


Link to post
Share on other sites

wow you're right about the platformsupport.plist in S/L/C - I must have got confused looking for it in Base System. This is probably why I'm getting a board Id error during boot. gonna try tomorrow thanks for this. DP1 ran okay - lots of crashes in safari and memory issues (even with 6gb?) hoping this will run better.

Share this post


Link to post
Share on other sites

Use latest Netkas's boot, it has a built-in bouard-ID-checking patch,

so no need to mess up with modifying OSInstall.mpkg anymore :wacko:

 

The new bootloader does it all for us, all thank Netkas for this !

Share this post


Link to post
Share on other sites
Use latest Netkas's boot, it has a built-in bouard-ID-checking patch,

so no need to mess up with modifying OSInstall.mpkg anymore :P

 

The new bootloader does it all for us, all thank Netkas for this !

Hi,

how you have used the netkas's bootloader?

I tried to use it but it not work, probably i wrong something.

 

thank you

Share this post


Link to post
Share on other sites

I stuck with [url=&quot;http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/&quot;]#####[/url] and seem to be up and running now. Patching OSInstall was not difficult for me.

Share this post


Link to post
Share on other sites

Any help what to do ?

 

I ran Lion DP1 and want to update to DP2 (no server installed)...

I use Chameleon + Netkas' EFI file to boot up.

 

 

post-55980-1301858444_thumb.png

Share this post


Link to post
Share on other sites

brxxthe

 

you have to patch OSInstall before or after the installation?

 

Would it be possible to upload an already patched OSInstall.mpkg?

 

Thanks

Share this post


Link to post
Share on other sites

DP 2 is way buggier than DP 1, Installed it on my MBP and had to get rid of it. Oh and that iCal "theme" is stupid.

Share this post


Link to post
Share on other sites
brxxthe

 

you have to patch OSInstall before or after the installation?

 

Would it be possible to upload an already patched OSInstall.mpkg?

 

Thanks

 

hola, this is a patched osinstall (mac os lion lastest build)

patched

 

there is a boot file too

Share this post


Link to post
Share on other sites
hola, this is a patched osinstall (mac os lion lastest build)

patched

 

there is a boot file too

many thanks i'll give it a try

I have to replace the original one, isn't it?

Share this post


Link to post
Share on other sites
hola, this is a patched osinstall (mac os lion lastest build)

patched

 

there is a boot file too

 

 

The >patched< works for me. Installed DP2 on a separate GUID HD using [url=&quot;http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/&quot;]#####[/url] 1.5a. But it gives me sluggish behavior and beachballs. That could be related to the missing Realtek implementation and and malfunctioning Wi-Fi.

I would love to check out Netkas new booter but I'm unable to compile it from the sources (the normal RC3 did not word for me)

 

>there is a boot file too< a DL link would be appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.



×