Jump to content

How to boost the OS X boot process...


  • Please log in to reply
1109 replies to this topic

#121
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK

What I will do is to attach a ZIPped version of Revolution 630 so that (more) people can start testing it. The intermediate updates, like the diff file in my previous post, will still have to be applied manually.
../snip/..
You may expect the ZIP attachment later today.

Thank you - I'll keep my eye out for it.

but I need to go away and get my new dress (fixed) for our Christmas dinners.

No problem. That's more important ;)

#122
dgsga

dgsga

    I've seen things you people wouldn't believe...

  • Members
  • PipPipPip
  • 155 posts
  • Gender:Male

You may expect the ZIP attachment later today, but I need to go away and get my new dress (fixed) for our Christmas dinners.


Good to see you've got your priorities right! Will test latest changes and am most pleased about the target drive function as I have only one internal system drive and the waiting for root volume error is a hassle to fix... May have a fix for the overclocking issue, will report back if successful.

#123
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK

I decided to make a few more changes so that compiling Revolution would be a snap. Switched CPU and SMBIOS gathering / patching to dynamically (by default) and changed the ACPI patcher in a way that you can set directives, without having to mess with the source code.

Thanks for the consideration, as anything that makes this more accessible to everyone is surely a good thing.

#124
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK

(still learning from the pro's here).

So am I - the pro's know a lot. :)

EDIT: Just seen the upload - Thanks very much - I'll have a look when I can.

#125
dgsga

dgsga

    I've seen things you people wouldn't believe...

  • Members
  • PipPipPip
  • 155 posts
  • Gender:Male
Thanks for making revolution easier to compile, especially the acpi_patcher. Have done some initial testing with dynamic cpu and acpi, static smbios but unfortunately I get the dreaded no go sign over the apple logo meaning that it's still waiting for the root device. Also found that pressing the v key to get verbose didn't seem to work. The endlessly spinning throbber may be to do with the fact that my system drive is a RAID 0 pair attached to a Rocketraid controller card, not directly to the mobo SATA ports. Rev 630 worked great, though?? Will continue to fiddle. There are so many good things happening in the different chameleon branches it's hard to know where to start first, I'll concentrate on the overclocking for now until that one's fixed

#126
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK
I've managed to grab 10 minutes to test out Revolution 633.

Okay.. noob hour alert!

make ended with:
smbios_patcher.c:11:35: error: ../../../private_data.h: No such file or directory

Looking back to previous posts here I see DHP added all personal data to this file to keep everything in one place and separate from the main sources. This is a good idea, however, I don't have a private_data.h so is there a template I can use to create one?

Then once I have one, I guess I replace the path in the source to where I have it saved?

#127
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK

Dang. See attachments.

The path I use is: ~/Projects/private_data.h where the source code of Revolution resides in: ~/Projects/Revolution-NNN

Thanks - I'll go and try it again.

Yep - That builds now.. Thanks.
However, I am not at my hack so I won't be able to test if it boots until tonight.

Next noob question.
SMBIOS DATA? Can I find the required information of how to fill this in, in this topic?

EDIT - found it here

#128
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK

Yup. The file is also part of the releases (in the SMBIOS folder). Compiler instructions can be found at the top of this file aka:

cc -I . smbios2struct.c -o smbios2struct -Wall -framework IOKit -framework CoreFoundation

Thanks for that, but I'll just stick with the binary posted in the previous link for now and come back to that later.

I've experimented adding the required info in to private_data.h but I'll have to wait until I get back to my hack before adding the correct data. However my girlfriend has her nieces staying tonight so I don't think there'll be any time for me to play with this.. and then it's Christmas Eve tomorrow and so on, so I'll just have to comeback to this when I can.

So thanks for your help DHP and if I don't return here before Christmas then I wish you a Merry Christmas now. ;)

#129
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK
The nieces are watching a movie.. he he.. so I've grabbed some quick play time ;)

I have built a bootable revolution USB stick and have tried booting.. I get to see the grey screen with the Apple logo, but I don't see the kernel spinner at all. Then after maybe two or three seconds I see a scambled screen at which point the machine has frozen. So I'm getting somewhere :P

I've attached a screenshot.
Attached File  ScreenFreeze.jpg   123.4KB   6 downloads

EDIT:
I applied the diff.txt posted above and now the system doesn't freeze, in that I can still use the keyboard to ctrl-alt-delete to reset. But I still don't get to see the throbber / spinner when at the grey screen with Apple logo. Am I right from reading dgsga's post above that I should be able to press v at boot to enter verbose mode?

#130
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK

Let's start with the USB-stick.

1.) What format is it? GUID Partition Table (Mac OS Extended Journaled)?
2.) The checkbox with the text: "Ignore ownership on this volume" (Get Info dialog) is not be ticked?
3.) You have the files I mentioned in post #135?
- Make sure to include S*/L*/C*/c*/S*/Extensions.mkext (the OS X one) and to have com.apple.Boot.plist in the right spot.
4.) Have you checked the group/ownership of the files?
5.) Do you have: /Extra/ACPI/dsdt.aml or can you normally boot without it?

Note: See also post #64

And yes. Verbose mode from keyboard is broken (if you look at boot2/options.c you'll understand why). Sorry. Use Kernel Flags in com.apple.Boot.plist for now.

Hi DHP - Thanks for you reply.
Yep - I've done all those things but can you check my settings from the attached zip archive?
I'll also PM you my private_data.h file as maybe that's the issue?

Attached File  blackosx_report_For_DHP.zip   243.89KB   12 downloads

#131
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK

Hi blackosx,

I just received your private_data.h and looked at it, and like I replied to you per PM, your SMBIOS data structure appears to be invalid – two first lines. That will make it break.

Hi dutchhockeypro

Thanks for the reply and well spotted with the first line of the SMBIOS data, yep that's my error as I left it in to remind me to add the backslash at the end of each line.. I'll remove that.

and yes, the PUT_YOUR_STATIC_ACPI_BASE_ADDRESS_HERE value. I'm not sure about where to find that so I just used your value.. maybe that's one key cause for me not having a successful boot?

Notes to everyone: Start with the dynamic CPU, SMBIOS and ACPI patching first, and then continue with the far more restrictive way of forwarding your data since the slightest error will make it break.

Dynamic patching? how does that work exactly? - I guess it's noob hour again :)
do I just remove the SMBIOS data from my private_data.h ?

But thinking about me not seeing the spinner / throbber - I guess it means the booter is not finding the kernel, even though it's on my USB?

#132
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK
Thanks for the details.

Normally yes (I think) but why don't you boot in verbose mode to see what is going on?

I added -v to the kernel flags in my com.apple.boot.plist but it made no difference and all I saw was the grey screen with the Apple Logo. I'll try it again when I get a chance.

But no problems - there's no immediate rush with this.. and as you've said it's Christmas Eve today so in about an hour I'll be leaving work and not touching my computers for a short period.. :)

#133
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,083 posts
  • Gender:Male
  • Location:UK

Oh that settles it. It can't even locate com.apple.Boot.plist Must be the way your USB-stick is setup, or should I say the very very restrictive way of Revolution dealing with stuff like this – written to become the in-BIOS version, eventually.

Lol.. Yeah - I've probably done something wrong with my setup. But the process is simple and straightforward for you as you're familiar with it, though for me I'm still wandering about in the dark..

I'll re-visit it another time, but for now let's enjoy our Christmas :)

#134
Aivarz

Aivarz

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
I see different numbers in kernel.log.

For example:
Aug 20 18:26:52 localhost kernel[0]: vm_page_bootstrap: 964981 free pages and 83595 wired pages

And today:
Dec 25 01:47:34 localhost kernel[0]: vm_page_bootstrap: 1021899 free pages and 18485 wired pages

Though it is with different flavours of Chameleon.
"Waiting for DSMOS..." sometimes is there, sometimes not.

Dec 25 01:52:47 Macintosh kernel[0]: Waiting for DSMOS...
Dec 25 01:52:54 Macintosh kernel[0]: DSMOS has arrived

Note that there is other host name when "Waiting for DSMOS..." line is present.

#135
Aivarz

Aivarz

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
Well, I can't remember what it was back then, maybe it was AsereBLN or AnVAL, maybe something else. Now I'm using latest official trunk with hardcoded checksum of kernel cache as there's still no solution to get it on the fly. IMHO Adler32 is not getting right values to work with, should be "boot-device-path" and "boot-file" according to Apple sources.
http://www.opensourc...extcache_main.c
Sadly I'm not a coder ;)
As for Geekbench score, it's always +/- the same, drops only if power management is not working and CPU speed locks at 2GHz.

#136
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

Though it is with different flavours of Chameleon.
"Waiting for DSMOS..." sometimes is there, sometimes not.

Dec 25 01:52:47 Macintosh kernel[0]: Waiting for DSMOS...
Dec 25 01:52:54 Macintosh kernel[0]: DSMOS has arrived

Note that there is other host name when "Waiting for DSMOS..." line is present.

I used to have "Waiting for DSMOS" message appear on Console, which had disappeared after adding OSBundleLibraries to my legacy ACPI_SMC_PlatformPlugin.

Recently, I updated to the latest version of AnVAL and started to have this message back but after repair permission it is now gone. I only have "DSMOS has arrived".

#137
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

Which usually means that your CPU was running a lot slower, and possibly very hot too. I had the same problem, but I'm not using MC's legacy kext – the Geekbench score dropped on the HP from 4040 to a low 1600 and was running very hot.

And you used "Safe Boot" like IOPlatformPluginFamily.kext and ACPI_SMC_PlatformPlugin.kext? Now try Safe Boot (-x) mode :D

Not really. It didn't affect the functionality or the performance as far as the Geekbench scores and temperature are concerned. Most of the time, it delayed the boot. Actually, my temperatures values, which are floating between 46-55 on load, are almost the same with or without Legacy ACPI_SMC_PlatformPlugin, especially after the most recent version of AnVaL.

For a very long time I had MacbookPro5,4 as my mac model but with the new features of AnVaL, I have to use MacbookPro5,5 as otherwise I lose stability. Also, I used SMbiosproduct key to override motherboard of the mac model, which increased my Geekbench score alongside with a surprise by Apple offering me efi firmware upgrade (: This showed me that putting just mac model to smbios.plist might not be enough.

I can't speak with a scientific mind but all I can say about this CPU thing is that while using OSX on battery mode, it seems to me that CPU can goes into deeper states than it does on AC Power. So, I think although I have C-States working I doubt that I have all of them enabled.

#138
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,064 posts
  • Gender:Male
  • Location:Brazil

I used SMbiosproduct key to override motherboard of the mac model, which increased my Geekbench score alongside with a surprise by Apple offering me efi firmware upgrade

You can "fix" this by using the correct SMC version key in fakesmc.kext. You need to find out what the latest SMC version is for the MacbookPro5,5.
If you use Apple's plist editor, enable "view raw keys/values" to see the version number in FakeSMC's info.plist.
http://prasys.info/2...diting-fakesmc/

#139
dgsga

dgsga

    I've seen things you people wouldn't believe...

  • Members
  • PipPipPip
  • 155 posts
  • Gender:Male
Hi All

Back after the Christmas break, hope you've had a good one! Have tried 633 from a USB stick with correct file structure but all I get is the boot graphics loading, no throbbing spinner. DHP, I also found that 630 works on my internal (RAID) drive but not on my external USB backup drive. Here I get the waiting for root device error. I have never used any boot-uuid flag in com.apple.boot.plist. I haven't a clue about why these things are happening, I'm relying on your infinite wisdom!

#140
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

You can "fix" this by using the correct SMC version key in fakesmc.kext. You need to find out what the latest SMC version is for the MacbookPro5,5.
If you use Apple's plist editor, enable "view raw keys/values" to see the version number in FakeSMC's info.plist.
http://prasys.info/2...diting-fakesmc/

I'd already done that by changing the default one to 0.147f2 with the help of above-mentioned guide.

Let me add a handy link for that.

Here's mine for the MacBookPro6,1 (as a reference):

{"SMbiosversion",	 "MBP61.88Z.0057.B0C.1007261552" },
	{"SMbiosdate",		"07/26/2010"					},
...
// smc-version: 1.58f15 / EFI: 1.9.0027.0
Note the date, which is part of SMBiosversion.

p.s. I didn't knew what to do until today. After reading this info. Inspired me to give it a try and stop the annoying EFI 1.9 update offerings, but I had to change the SMBIOS values. I've taken care of it now. Sweet. Learning something new again. Thanks!

Update: The checksum generation (Adler32) bug appears to be fixed and generates the same value as kextcache. Should be fine now.

In my case, it appears that the problem was the outdated Boot ROM Version which was MBP55.88Z.00AC.B02.0905060849. I changed it to MBP55.88Z.00AC.B03.0905060849 which is the most recent version I could find. I did select to hide the efi upgrade before so I don't know if this change did any effect on it.

@dutchhockeypro, are there any problems with the followings that might need fixing. Speed up the process etc.
Dec 27 20:10:43 localhost kernel[0]: From path: "uuid", 
Dec 27 20:10:43 localhost kernel[0]: Waiting for boot volume with UUID ***
Dec 27 20:10:43 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
Dec 27 20:10:43 localhost kernel[0]: Can't get kextd port.
AppleRTL8169Ethernet: phyWaitForAutoNegotiation TIMEOUT

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