Jump to content

Waiting for root device when kernel cache used; only with some disks +FIX


  • Please log in to reply
157 replies to this topic

#141
rhcamilex

rhcamilex

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts
  • Gender:Male
  • Location:Barcelona, Venezuela
Hello bcc9 first of all, thanks for your work.

Today I upgraded to 10.8.3 and have tried the latest update of your script.

In the configuration file, i can look:

{
'relocation_offset' => 22475,
'kprintf_arg' => 0,
'kprintf_relocation_index' => '1006 '
'IOSleep_relocation_index' => '490 ',
'osx_version' => '10 .8.3 '
}

But I could not patch, I receive the following error:

Unexpected patch count: 1 (2 expected)
Aborting with IOAHCIBlockStorage NOT patched

Is it related to 'kprintf_arg' => 0?

Thanks in advance for your answer

#142
g0l3m

g0l3m

    InsanelyMac Protégé

  • Members
  • Pip
  • 12 posts
I've made the observation, that the patch isn't neccessary for 10.8.3 anymore on my Gigabyte UD3H B3 Boards with F12 BIOS. Last times after major upgrades (10.8.0, 10.8.1 & 10.8.2) machines didn't boot, this time booting is possible without any problems without patching the kext inside IOAHCIFamily...

#143
Acidfever

Acidfever

    InsanelyMac Protégé

  • Members
  • Pip
  • 41 posts

Hello bcc9 first of all, thanks for your work.

Today I upgraded to 10.8.3 and have tried the latest update of your script.

In the configuration file, i can look:

{
'relocation_offset' => 22475,
'kprintf_arg' => 0,
'kprintf_relocation_index' => '1006 '
'IOSleep_relocation_index' => '490 ',
'osx_version' => '10 .8.3 '
}

But I could not patch, I receive the following error:

Unexpected patch count: 1 (2 expected)
Aborting with IOAHCIBlockStorage NOT patched

Is it related to 'kprintf_arg' => 0?

Thanks in advance for your answer


I was hoping this would fix my Kernel cache issues but sadly I got the same error......
Also, 10.8.3 did not fix the fact that I can only boot my system with -f or -v flags. :(

#144
bcc9

bcc9

    InsanelyMac Legend

  • Coders
  • 1,281 posts
  • Gender:Male

Is it related to 'kprintf_arg' => 0?

Thanks in advance for your answer

Yes, kprintf_arg must not be 0 for this to work. I don't know how you two are getting this to fail. Though I didn't have 10.8.3 when I wrote the script, I tried it last night and it worked for me:
% ./ahci-generate-patch-config.pl
Adding patch for OSX 10.8.3:
$patch = \{
'relocation_offset' => 22475,
'kprintf_arg' => 38002,
'kprintf_relocation_index' => '1006',
'IOSleep_relocation_index' => '490',
'osx_version' => '10.8.3'
};
Maybe you could try again with ahci-generate-patch-config.pl -v -v -v -v
so that we can see what's going on in the failure case.

I was hoping this would fix my Kernel cache issues but sadly I got the same error......
Also, 10.8.3 did not fix the fact that I can only boot my system with -f or -v flags. :(

It's possible that 10.8.3 changed the timing enough that some people no longer need the patch and some people still do. I no longer need the patch in any release as I upgraded my BIOS to a UEFI version and the problem went away. So I need you guys to report back as to whether or not this fix is necessary in some cases.

Did my script work for you in 10.8.2? Did it work for you in 10.8.3? If not in 10.8.3, was it because you didn't have patch-ahci.config updated for 10.8.3?

Here's an updated patch-ahci.config that includes 10.8.3 for those who don't have otool to run ahci-generate-patch-config.pl

Attached Files



#145
Maniac10

Maniac10

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,262 posts
  • Gender:Not Telling

I've made the observation, that the patch isn't neccessary for 10.8.3 anymore on my Gigabyte UD3H B3 Boards with F12 BIOS. Last times after major upgrades (10.8.0, 10.8.1 & 10.8.2) machines didn't boot, this time booting is possible without any problems without patching the kext inside IOAHCIFamily...


Same situation for my Z68AP-D3 since 10.8.3. And I've installed the combo just in case and the kext is indeed the new one.

#146
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 738 posts
  • Gender:Male
  • Location:NC, USA
@bcc9
thanks for posting...

for 10.8.3 i was able to boot without the patch.

but perhaps for those that need it, I too got 0x0 for kprint_arg - here is the output from my system using xcode 4.6.


./ahci-generate-patch-config.pl -v -v -v -v
OS version: 10.8.3
Kext /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
00000000000057a8 pushq %rbp
00000000000057a9 movq %rsp, %rbp
00000000000057ac pushq %r15
00000000000057ae pushq %r14
00000000000057b0 pushq %rbx
00000000000057b1 pushq %rax
00000000000057b2 movq %rsi, %r14
00000000000057b5 movq %rdi, %rbx
00000000000057b8 testb $1, 67937(%rip)
00000000000057bf je 0x57cf
00000000000057c1 leaq 38002(%rip), %rdi
00000000000057c8 xorb %al, %al
00000000000057ca callq 0x57cf
$relocation_offset=0x57cb;
$kprintf_arg=0x0;
IOSleep address: 00002f39
Kprintf address: 000057cb
$IOSleep_relocation_index=490;
$kprintf_relocation_index=1006;
Patch for this OSX version already present in config file

tluck@toms-mac /Extra/10.8.x-build/patch-ahci-mlion
$ ./ahci-generate-patch-config.pl
Patch for this OSX version already present in config file

tluck@toms-mac /Extra/10.8.x-build/patch-ahci-mlion
$ ./ahci-generate-patch-config.pl -v
OS version: 10.8.3
$relocation_offset=0x57cb;
$kprintf_arg=0x0;
$IOSleep_relocation_index=490;
$kprintf_relocation_index=1006;
Patch for this OSX version already present in config file


#147
bcc9

bcc9

    InsanelyMac Legend

  • Coders
  • 1,281 posts
  • Gender:Male

@bcc9
thanks for posting...

for 10.8.3 i was able to boot without the patch.

but perhaps for those that need it, I too got 0x0 for kprint_arg - here is the output from my system using xcode 4.6.

I missed this post or I would have responded before. Thanks for the debug output. Turns out xcode as of 4.6 now is outputting some fields in decimal, some in hexadecimal, with apparently no way to control the output style, whereas xcode 4.5 and earlier used hex operands for pretty much everything.
So that is why the patch update script was failing for some users.

In any case, since nobody seems to be having this problem as of 10.8.3, it looks like the extra automation work was for nothing. Maybe maintainers of some of the other OSX hackintosh binary patches can learn how to automate their release-to-release patch maintenance from this.

Ordinarily I'd fix the script to handle xcode 4.6, but since it's apparently not in use...

#148
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 738 posts
  • Gender:Male
  • Location:NC, USA
@bcc9 - i was ever so grateful for your script when i was on 10.8.0 -> 10.8.2 (i needed a looooooong delay to scan devices). confirming your assessment - as of 10.8.3, the standard kext is working without any patching and now the system boots up in record time! Thanks again.

#149
MacKonsti

MacKonsti

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 233 posts
  • Gender:Male
  • Location:Muppet Show
I would also like to thank again bcc9 for his patch and script (you definitely gained more knowledge than the rest of us!) it was definitely necessary for 10.8.2. Now on my Gigabyte H61N-USB3 both SATA devices boot normally (in speed) with 10.8.3 indeed. But don't abandon it just yet, as 10.8.4 is around the corner and might bring back "old memories" :-) You never know with Apple! Thanks, bcc9

#150
philip_petev

philip_petev

    InsanelyMac Protégé

  • Members
  • PipPip
  • 91 posts
  • Gender:Male
  • Location:Haskovo, Bulgaria

Some feedback for version 0.4 with the latest config file: work like a charm, executed from the ProBook Installer on 10.8.1, updated later to 10.8.2.



#151
MacKonsti

MacKonsti

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 233 posts
  • Gender:Male
  • Location:Muppet Show

Hello philip_petev, I don't see a v0.4 available; in the first post it's still v0.3 by bcc9 and only a patch in this page--unless you consider this as "v0.4". But officially I didn't find a v0.4 from bcc9. What system are you on? Running 10.8.4 and still needing this patch?



#152
philip_petev

philip_petev

    InsanelyMac Protégé

  • Members
  • PipPip
  • 91 posts
  • Gender:Male
  • Location:Haskovo, Bulgaria

Hello philip_petev, I don't see a v0.4 available; in the first post it's still v0.3 by bcc9 and only a patch in this page--unless you consider this as "v0.4". But officially I didn't find a v0.4 from bcc9. What system are you on? Running 10.8.4 and still needing this patch?

It's here, on the previous page. As of 10.8.3, many people don't need it anymore, in my previous post I'm talking about a different kind of tests: I've included the patch in the HP ProBook Installer as an optional component and tested it on fresh 10.8.1 and 10.8.2 installs, so my last post is my feedback



#153
MacKonsti

MacKonsti

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 233 posts
  • Gender:Male
  • Location:Muppet Show

Thank you philip_petev. I am kinda blind :) but it's been some time now that this very useful patch is not needed, as you correctly said, since 10.8.3. Regards.



#154
Demonbane

Demonbane

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 133 posts

is this kext also suitable for Mavericks? this problem also appears when i'm booting with my Haswell Laptop. :( 



#155
bcc9

bcc9

    InsanelyMac Legend

  • Coders
  • 1,281 posts
  • Gender:Male
The problem addressed by this patch has not been reported on OSX releases after 10.8.2.
However the symptom is a general one; if you're seeing the symptom under 10.9 the underlying cause is likely a simple ATA or USB driver misconfig, such as detailed in the FAQ:
http://www.insanelym...or-root-device/

#156
malfunct

malfunct

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts

@bcc9: Could this problem occur with Gigabyte G.1 Killer motherboard?


http://www.gigabyte....e.aspx?pid=3776

 

It's quite strange because I can boot installer from USB and it can install to SATA alright, but I can't use it as a root device, I'm going slightly crazy :'(

 

PS: I last installed on top of existing Mountain Lion with myhack, and that worked. However, the patch cannot be applied, it says it has already been applied....



#157
malfunct

malfunct

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts

After flashing my AWARD BIOS to UEFI (Gigabyte UD3H-D3: F12 => U1h) booting of OS X 10.8.2 is fine without patching the IOAHCIFamiliy.kext!

 

Oh, I should try this right away.

 

PS: There doesn't seem to be a suitable update for my gigabyte g.1 killer board....



#158
bcc9

bcc9

    InsanelyMac Legend

  • Coders
  • 1,281 posts
  • Gender:Male

@bcc9: Could this problem occur with Gigabyte G.1 Killer motherboard?

Good chance; my problem case was a gigabyte motherboard with non-UEFI bios.  However now that the bug is no longer being encountered with current osx, you could just install with a newer version (>= 10.8.3) to avoid the problem.  You might as well just install 10.9 directly at this point.





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