netkas.org

PCEFI V9, updated

This is new bootloader with few nice features, it’s n0w based on Chameleon codebase.

so, it supports all what Chameleon supports ( including /Extra)

and it has few new patches applied:

1) dsdt overwrite patch from mackerintel

2) resume from hibernate(aka deep sleep) support from me

(-nowake boot option to bypass resume, if u dont want it on current boot)

3) 64-bit kernel loading support from me  ( -x64 boot option to tell it to boot 64-bit kernel (only snow leo kernel has 64-bit part)

4) it supports new Extension.mkext location as in new snow leo

Now few words about hibernate, to activate it u can use e.g. this widget – deepsleep.free.fr

Bootloader will check /var/vm/sleepimage, and if it has proper signature, it will try to resume system

Now about problems, some systems fails to go to deepsleep state(e.g. gigabyte, asus), it’s caused by RTC bug in dsdt

to fix it – use fassl’s dsdt patcher, it will create proper dsdt.aml, rename it to DSDT.aml and put it in root of your partition

Find it here – http://forum.insanelymac.com/index.php?showtopic=133683

Also on radeon hd cards, after waking up from deepsleep, you will have only 1/4 of screen visible.

Bootloader – Bootloader

Improved messages about problems in sleepimage and will not try to resume with encrypted sleepimage(uncheck “use secure virtaual memory” in system preferences to fix it)

You also can use this bootloader with chameleon’s boot0/boot1h just fine.

as for source patch – as soon as I will clean it.

notice – if pc goes to regular sleep instead of deep sleep, and rtc dsdt fix didnt help – then probably deep sleep will not work on ur machine.

Comments

  1. blowmegud
    November 16th, 2008 | 2:32 pm

    Nice ! i’l give it a try

  2. November 16th, 2008 | 2:43 pm

    Good work, gonna try it, but…

    Where is the download link? :)

  3. B612
    November 16th, 2008 | 2:46 pm

    You mean it supports even munky’s boot from EFI partition, with all its features?

  4. November 16th, 2008 | 3:02 pm

    Once again, an excellent release from netkas!

    you rock :-)

  5. netkas
    November 16th, 2008 | 3:06 pm

    >You mean it supports even munky’s boot from EFI partition, with all its features?

    no

  6. raidenii
    November 16th, 2008 | 3:22 pm

    thanks for the work.
    it could boot, but show “bad hibernate image signature”
    what does that mean?

  7. netkas
    November 16th, 2008 | 4:01 pm

    it means either – u didnt put pc to deep sleep, then this message is normal
    or it means – pc failed to make proper sleepimage, then u need to fix rtc.

  8. moshe
    November 16th, 2008 | 4:06 pm

    First of all, thanks for all your great work.
    Second, i didn’t understand really what the advantages so if someone can simplify it to me it will be great.
    The last thing that i wanted to ask that if i have radeon hd card that means that this v9 isn’t for me, right?

  9. onfoo
    November 16th, 2008 | 4:26 pm

    Works! Kudos!

  10. root2
    November 16th, 2008 | 4:40 pm

    I’ll try this on Asus eee PC 1000h

  11. ivik
    November 16th, 2008 | 6:08 pm

    It doesn’t work on travelmate 2490. S3 sleep works perfectly. I have patched DSDT (i can also load AppleIntelCPUPowerMana*.kext without crash).
    Log:
    11/16/08 6:01:07 PM kernel System Sleep
    11/16/08 6:01:11 PM kernel System Wake
    11/16/08 6:01:13 PM kernel MAC AUTH succeeded
    11/16/08 6:01:13 PM kernel AirPort: Link Up on en0
    11/16/08 6:01:28 PM ntpd[13] time reset -0.236121 s
    11/16/08 6:03:30 PM com.apple.launchd[1] (com.apple.backupd-wake[241]) Exited with exit code: 1

  12. Chrysaor
    November 16th, 2008 | 6:13 pm

    Deep sleep doesn’t work with M1530 with 4GB RAM and patched DSDT, goes to regular S3 sleep.

  13. mitch_de
    November 16th, 2008 | 6:19 pm

    Can someone tell me how to install that boot file over my chameleon ?
    Or should i simple put the boot into Systemvolumes ROOT ?

  14. November 16th, 2008 | 6:23 pm

    [...] deep sleep. You can download the bootloader here (mirror). For netkas’s original post see here. digg_url = ‘http://pcwizcomputer.com/blog/?p=451′; digg_title = ‘PC-EFI v9 by netkas Released!’; [...]

  15. frantisheq
    November 16th, 2008 | 6:52 pm

    dell xps410 – gives me bad sleepimage error even after applying dsdt patch so no deep sleep but sleep works

  16. npwski
    November 16th, 2008 | 7:00 pm

    Deep sleep (suspend-to-disk) works perfectly. Asus P5W-Dh-Dlx. Thanks, Netkas! Спасибо :)

  17. roisoft
    November 16th, 2008 | 7:15 pm

    It works fine on Leo & Snow. Great work. thx :)

  18. wingrunr21
    November 16th, 2008 | 7:29 pm

    netkas,

    I have noticed a slight problem. If you put your machine into deep sleep and then use the “-nowake” flag upon next boot, then reboot the machine, it will once again try and resume from hibernate. That doesn’t seem like the correct behavior. The “-nowake” flag should clear the previous hibernate image. This is a problem because, for me on my XPS 1330, resume from hibernate doesn’t work, it says:

    encryptedStart (shoud be zero) – 7b3450

    Wake Kernel!

    And then sits there.

    However, the machine will create a “good” hibernate image meaning every time I cold boot it will try and resume from hibernate and then do nothing.

  19. netkas
    November 16th, 2008 | 7:58 pm

    wingrunr21

    normally os itself should change sleepimage’s signature, to a bad one, after waking up

    and encryptedStart != zero means ur sleepimage is encrypted, it maybe cause ny encrypted swap, we cant resume from ecnrypted images yet because aes key for it saves into nvram, and no nvram on hacks

  20. Ton
    November 16th, 2008 | 8:59 pm

    Thanks :D , would I be able to upgrade from v8 to v9?

  21. frantisheq
    November 16th, 2008 | 9:11 pm

    i have tried updated version and it gave me this:
    starting hibernate
    Sleepimage has garbage (bad hibernate image signature was more understandable to me :)
    hibernate failed
    Loading Darwin/x86

  22. November 16th, 2008 | 9:40 pm

    >>You mean it supports even munky’s boot from EFI partition, with all its features?
    >no
    Looks like raid boot doesn’t work too. Sadly.

  23. Stellarola
    November 16th, 2008 | 10:01 pm

    Issue: Creates good deep sleep image. When I press the power button to get back in, the bios has totally reset itself. So once I fix that, I can load back into OS X with the hibernate image. I’ll do more testing when I get a chance. It might be causes from me overclocking my cpu.

    Motherboard – DFI Lanparty DK P35-T2RS

    -Stell :)

  24. kaz
    November 16th, 2008 | 10:15 pm

    Netkas! I love you!!

  25. netkas
    November 16th, 2008 | 11:07 pm

    it damages cmos on gigabytes too, i noticed with 10.5.6 it wasnt doing it, sttrange.

  26. Stellarola
    November 16th, 2008 | 11:28 pm

    Well as long as it works on 10.5.6+. I’m happy as can be. Thanks netkas.

  27. netkas
    November 17th, 2008 | 12:36 am

    sleepimage has grabage means – it has nor valid signature, neither invalid signature.

    usualy means system fails to go to deep sleep state

  28. djmastera2000
    November 17th, 2008 | 3:29 am

    Hello netkas,

    can you tell me how i can verify DSDT.aml is loaded by v9?

    btw: If i wakeup my cmos is also resettet(samsung notebook)…no wakeup then :(

  29. thegreatdeceiver
    November 17th, 2008 | 3:44 am

    when I send it to sleep it does what it’s supposed to do, it seems to write the image to disk, goes to sleep, but then wakes up with a blank screen. Just like before from there on. I think it’s still waking up on mode 3 and my darn gma950 is probably giving all kinds of other problems. I also made sure that secure VM is checked off in system settings and am using mode 1 to only write to disk. any hints?

    —–
    Dell Inspiron E1505(6400) / Core 2 Duo 2GHz / 2 GB PC5300 / 200 GB, 7.2k HD / GMA950 / 8X DVD / Dell 1390 Wireless / OSX 10.5.5 : Vista Ultimate SP1 dual boot / no mouse artifacts / only display sleep / both cores working flawlessly via boot arg; tscsync by OUI /

  30. blowmegud
    November 17th, 2008 | 4:07 am

    if it boot, then v9 is loading the dsdt.aml

  31. djmastera2000
    November 17th, 2008 | 10:55 am

    Sure, but are we able to verify this or can we see it?

  32. cVad
    November 17th, 2008 | 12:55 pm

    To activate hibernate (deepsleep), u can use next terminal command:

    activate:
    sudo pmset -a hibernatemode 1

    deactivate:
    sudo pmset -a hibernatemode 3

  33. edo
    November 17th, 2008 | 2:21 pm

    yes….my wind now support deepsleep, u’re always create unique app for hackintosh.
    Just keep your good job
    Thanks netkas

  34. November 17th, 2008 | 4:06 pm

    Thanks netkas this is working for me i have regular sleep and deep sleep on my p5w dh deluxe with out patching my dsdt so Thank You. Just one problem my wifi card doesn’t work when i boot using PCEFI v9 even before i go into sleep just says no device in my wifi app.. any ideas????

  35. noname
    November 17th, 2008 | 5:05 pm

    thank you, thank you, thank you. Working great on AsRock ConRoe 1333

  36. pizzaboy75
    November 17th, 2008 | 5:17 pm

    hello netkas!

    somehow profiler now shows “Modelname: Mac” although i have applesmbiosefi installed which should show MacBookAir1,1 – i need this identifier for Remote Disk access on my netbook.

    ist there a way i can change the Model?

  37. Fujilives
    November 17th, 2008 | 8:30 pm

    Hi!

    I am wondering if there is anything on the ATI Mobility 3650 working in Snow Leopard. I’d like to try and install snow and test myself, but I’m very burnt out on osx testing at the moment. As it turns out, you are also the source of much ATI progress, so do you happen to know if there is any forward motion there?

  38. onfoo
    November 17th, 2008 | 9:22 pm

    Remove AppleEFIRuntime.kext to avoid CMOS damge message

  39. Stellarola
    November 18th, 2008 | 12:28 am

    Got it working, thanks onfoo. However, my front panel usb won’t wake back up. Very strange. I’ll do some more testing.

  40. onfoo
    November 18th, 2008 | 12:56 am

    Here too, all ports controlled by: AppleUSBUHCI after wake up are powered but those controled by AppleUSBEHCI are ok.

  41. onfoo
    November 18th, 2008 | 1:01 am

    edit: ports controlled by AppleUSBUHCI are powered down after wake up…

  42. djmastera2000
    November 18th, 2008 | 1:04 am

    After removing AppleEFIRuntime.kext cmos is untouched! Thanks onfoo. But why?

    And: Safe Sleep doesn’T wakeup, Hibernate ok? Any idea?

  43. November 18th, 2008 | 1:40 am

    [.... Pues eso, Netkas se sigue moviendo y sacando cosas interesantes.
    PCEFI V9 (Updated)..]

  44. ac3bcn
    November 18th, 2008 | 1:14 pm

    Onfoo , I solved this issue making two changes, I use DSDT override, when compiling DSDT with DSDT patcher you have to choose the emulating mode 0Darwin 1WinXp or 2 WinVista, i choose WinXP mode instead of Darwin, the second change i did was to define Hibernate mode 3, instead of 0

  45. November 18th, 2008 | 2:46 pm

    just an idea but is there any chance that modified AppleACPIPlatform.kext could enable deep sleep instead of sleep only? i have tried pmset -a hibernatemode 0 to 10 without any difference, it just entered the sleep mode. one more thing: after i replaced powermanagement.bundle with some patched version for laptops pmset was giving me an error about creating sleepimage creation but the file was created though.

  46. MACita
    November 18th, 2008 | 6:55 pm

    Dunno if it will help but if the BIOS has this future on USB settings: USB EHCI Handoff, enable it!

  47. olmirror
    November 18th, 2008 | 7:50 pm

    Here’s sharing my experience and hoping for some feedback: Gigabyte p35 ds4, installed everything according to the posts, compiled the DSDT file, placed the new boot file from netkas in the root directory and at first glance all boots fine. Deep sleep works, but when waking usb devices, like mouse and keyboard not working, having to hard boot back into my system. Tried both OS and Vista emulation, – XP won’t work. Strange. Also with the AppleIntelCPUPowerManagement.kext installed I still get HPET at 0 error, ending in a kernel panic. Tried lifting the AppleEFIRuntime.kext, no change. Seems others are having the same problems. Anyone with this motherboard have success they want to share, or any other ideas?

    Thanks

  48. newbie
    November 19th, 2008 | 1:49 am

    how in hell to do you install it? I can’t find any howto

  49. thegreatdeceiver
    November 19th, 2008 | 3:25 am

    ok, got it working on an Inspiron E1505 with C2D, 2Gb ram and Intel GMA950. Completely reinstalled with boot 132 and retail dvd and then used your bootloader. goes to deep sleep and wakes up again. fantastic!!! I completely gave up on the gma950 but you made it work anyway. thank you.

  50. macluv
    November 19th, 2008 | 8:21 pm

    hi, netkas thanks for your good work.
    do deepsleep can work with retail version only?
    anyone can work with amd procc?

  51. November 21st, 2008 | 1:00 pm

    I am running OS X multiboot with Ubuntu using Grub as my primary bootloader (so Grub loads PC EFI). Hibernate is not working (I get the “hibernatefile has garbage” message). There is no /var/vm/sleepimage. I’ve done the “pmset -a hibernatemode 1″. Any ideas? Could it be that Grub and PCEFI see my Linux /boot as their root, while OS X sees its own root?

    Running on an Acer Aspire ONE.

  52. Goron
    November 21st, 2008 | 10:32 pm

    Same Prob here. Can´t verify DSDT is loaded, without CPUPMDisabler i get KP, what do i miss ??

  53. mtrr
    November 22nd, 2008 | 10:46 am

    Hi netkas,

    any chance in incorporating this stuff “http://forum.insanelymac.com/index.php?s=&showtopic=137112&view=findpost&p=970344″?

    cheers

  54. pkarza
    November 24th, 2008 | 10:39 pm

    Ok – I’m blind – where is the download link?

  55. Dorin
    November 25th, 2008 | 10:48 am

    Just this: Thanks !

  56. Ugo
    November 25th, 2008 | 11:01 pm

    Oh, God!!!
    You did it again, cool!!
    Netkas, makerintel, fassl all toghether…

  57. Piranha
    November 27th, 2008 | 10:21 pm

    Can I use the Chameleon bootloader? When I load it up, it shows all the hibernation stuff (which wasn’t there before), and boots..

    Just wondering since chameleon has its own EFI implementation.

  58. Common Sense
    November 28th, 2008 | 9:42 am

    I can’t find the instructions on how to install the bootloader. I remember it was dd if twice then startupfiletool. Can anyone post the instructions?

  59. Common Sense
    November 28th, 2008 | 11:22 am

    Nevermind I figured it out, just found chameleon install instructions, just need to follow them and copy the file boot from netkas to the root in the boot partition.

  60. whityini
    December 3rd, 2008 | 12:11 pm

    I have installed correctly new bootloader but when I boot the system I get this error message:

    bad sleepimage header signature

    What could be reason?
    Thanks in advance

  61. xbomber2002
    December 16th, 2008 | 1:27 pm

    read that :

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

    how can i save the issue please ?

  62. Andrea De Micheli
    December 16th, 2008 | 10:20 pm

    It is written:

    Build Date: 2008-11-16 17:37:29

    Do i have the correct version? PC EFI v9?

    I’m using grub to boot, how can i DSDP patch? The “boot” file is not located on the root of mac os x.

    Thanks.

  63. December 20th, 2008 | 8:10 pm

    Hello. What about releasing the promised source code?
    Thanks
    mackerintel

  64. December 20th, 2008 | 9:29 pm

    I got boot0: error after i install PC EFI v9 & Chameleon v1.0.12 Bootloader.

    i am running GA-P35-DS4 Bios v 14c

    any help appreciated.

  65. Barrett
    December 21st, 2008 | 8:49 am

    Sorry I am double posting this, Netkas, but I think it might help some people:

    I used to use iATKOS 2.0i’s bootloader installation since it worked in a fail-proof manner with my four-partition MBR setup with one of the partitions having an encapsulated GUID partition. (only Disk Utility and MacDrive understand this) Vista just sees the MBR partitions, and Linux has a bipolar disorder: it can’t understand how the two are going on at once.

    Anyway, to upgrade to 10.5.6, I needed EFI V9, so I used Pacifist to examine the iATKOS install CD. (note that iATKOS 4i and Chameleon installers did not work) I discovered that I needed to use startupfiletool. Despite the fact that I have a paper due later this week and risked hosing my production machine, I went ahead anyway. Here’s what I did:

    Put the EFIv9 boot file in the root of my Mac drive along with startupfiletool, booted up in single user mode, and installed. I had some issues with AppleIntelCPUPowerManagement causing kernel panics until I installed the disabler. Also, the DSDT only compiled without errors (only 2 warnings) after both the OS upgrade and having the AppleIntel kext present.

    After install, my tablet functionality was broken, and also PC Card, but those should be easy to fix. Audio via SFX strings also broke, but that was to be expected. Alternatively, I think I can only enable my microphone without SFX.

    I will also note that I now have benign disk errors when I check my disk in Disk Utility, and they can’t be repaired. I that’s because I couldn’t eject the disk or unmount the partition since the boot file and startupfiletool were on the root partition. I recommend booting from an install DVD and storing the files on a flash drive to avoid this problem.

    NighTalon
    New Haven and NYC

  66. mh
    December 26th, 2008 | 8:48 pm

    Hi,netkas,thanx for your hard work,can u tell me if the v9 supports Sempron SSE3? Sempron get instant reboot upon v8 installed.

    Thanx!

  67. Soylent
    December 28th, 2008 | 10:14 pm

    Any chance of also including the SMB enabler portion that has been patched for Chameleon (that also includes DSDT patch) ?

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

    Superhai has already announced their smbios enabler is being retired in favor of this method.

    http://www.superhai.com/forum/viewtopic.php?f=9&t=76

  68. Rui
    January 4th, 2009 | 11:17 pm

    I can´t make AppleHDA.kext load from /Extra/Extensions folder. Any idea?

  69. Jon
    January 7th, 2009 | 6:13 pm

    So do we have a definitive answer to the CMOS crashing from Gigabytes? (mine is GA-P35-DS3L)

    if we need to remove AppleEFIRuntime.kext, can we include that in Disabler.kext?
    Should the DSDT patch be on Darwin or XP? (I see conflicting posts)
    do we need to issue the command pmset -a hibernatemode 3?
    and Issues with USB, anyone found a work around?

    Thanks

  70. January 11th, 2009 | 10:20 pm

    Great work! Thanks a lot. Спасибо!

  71. WheelJack
    January 12th, 2009 | 6:44 am

    What does the PC EFI V9 Installer actually do (ie, what files/partitions/boot sectors does it touch)?

  72. noname
    January 13th, 2009 | 4:58 pm

    Just discovered that after a BIOS update, wake from sleep didn’t work any more: Crashed and rebooted at “Waking kernel” phase. I then changed in BIOS “Enhanced Halt State” and “No-Execute Memory Protection” to ENABLED and it works again. Hope this helps someone. This is on an AsRock ConRoe 1333 board.

  73. noname
    January 13th, 2009 | 5:00 pm

    Actually the crash was at “Starting hibernate” but it’s solved now. (see above post)

  74. January 14th, 2009 | 6:16 pm

    And again: what about releasing the promised source code??

  75. thanks
    January 25th, 2009 | 5:03 am

    got boot0: error after i install PC EFI v9 & Chameleon v1.0.12 Bootloader.

    i am running GA-P35-DS4 Bios v 14c

    any help appreciated.

    My mob too, after this shit, tanks

  76. Fjtorsol
    January 30th, 2009 | 7:16 pm

    I have a very strange issue with graphics acceleration, all desktop effects (dashboard transitions, dock stacks effects, etc) work slow unless I launch any app that uses OpenGL 3D graphics (or even turning on iTunes Visualizer), but after restoring the computer from Sleep state everithign works normaly (as fast as real mac).
    My Software Specs:
    10.5.6 (with all original kexts)
    Added kexts: NVDarwin 256 MB, AppleAzaliaAudio, AppleDecrypt (2.0.3), OpenHaltRestart, AppleACPIPS2Nub, ApplePS2Controller and AppleSMBIOSEFI (itdoesn’t replace AppleSMBIOS)
    DSDT patch applied using DSDTPatcherGUI 1.0 (DSDT.aml)
    My Hadware Specs:
    Notebook: AMILO XI 2528
    Processor: Core 2 DUO T5750 (2GHz FSB 667 MHz)
    RAM: 3072 MB DDR 667 MHz
    GPU: NVIDIA GeForce 8600M GS (PCIe 16x)
    Motherboard: Fujitsu
    I think is something AppleDecrypt related, using version 2.0.1 the desktop effects will go slower instantly after closing OpenGL instances but with 2.0.3 desktop effects get slower progresively after closing OpenGL instances.

  77. drew
    February 12th, 2009 | 3:47 pm

    Hi,

    I’m trying to run the latest 10.6 seed with a 64-bit kernel on a real Apple MacPro (first generation) for driver testing/development. This machine will not boot the 64-bit kernel because its EFI is too old, and is only 32-bit. Amusingly, it runs Linux, Solaris, etc, just fine in x86_64 mode.

    At any rate, should it be possible to boot the 64-bit kernel using PCEFI V9? I’ve tried to get it working (installed via grub on my linux partition) and I’m not having any luck booting MacOSX at all (even in 32-bit mode). Has anybody ever used this on a real MacPro like I’m trying to do?

    Thanks,

    Drew

  78. noname
    March 15th, 2009 | 1:35 pm

    Deep Sleep is DANGEROUS. I had a crash, started with -nowake, rebooted, and the computer woke up from sleep (despite that I had worked with the machine since it went to sleep last time!). But at the next restart, my volume was DAMAGED. So I guess there should be additional timestamp checks to 100% ensure that the computer doesn’t try to wake up if the sleepfile is older than the latest log entry.

  79. Andy Vandijck
    March 20th, 2009 | 2:17 am

    Too bad it doesn’t include my patches (see AnV Chameleon on InsanelyMac forum) and SSDT override…
    Besides that: great work…
    If it where to have these I would switch…
    Keep up the good work.

  80. macthetiger
    March 25th, 2009 | 4:15 am

    Can PC EFI be used to boot / install from factory DVD and install? I don’t see an ISO here to do that. Also, boot from XP via EasyBCD bootloader loads Darwin v5.0.132, Chameleon v1.0.12. Some message flashes by from EFI v9 about fail to hibernate or some such and proceeds to boot OS. Attempts to update OS results in the lovely installing message requiring reboot, and reboot doesn’t really reboot but proceedes to install with a lock up about 15% into the install. Suggestions?

  81. Bungo
    May 29th, 2009 | 11:53 am

    Hi Netkas,
    Where can I find complete list boot flags of your EFI9 and how-to use it?
    Thanks

    ////Alll standart flags + -x64 for 64-bit kernel, -nowake to bypass reading sleepimage.

  82. vlzhukov
    June 11th, 2009 | 10:55 pm

    Hi Netkas!
    It is difficult to refine pc_efi_v9_4, to 64-bit kernel is loaded by default, or working only 64-bit mode (-x64) without manual input key?
    (applelife, or IRC, or e-mail please)
    Thanks!

  83. August 7th, 2009 | 6:54 pm

    [...] Note*: Some OSX86 users may encounter errors using OSX86 Tool. I for my Asus eee pc 1005ha I had to use PC EFI v9, which worked fine. You can grab it here. [...]

  84. mr_kite
    May 29th, 2010 | 11:36 pm

    I installed it but it doesn’t even boot at all… no menu nothing just blinking cursor. I wish they’d make a one click install of new chameleon v4. I have 5 drives and can’t figure it out at all. V2 was so easy and worked great. I’m stuck with stupid boot CD and have to take out when I boot normal Leopard. So frustrating. Was really hoping this would do the trick. Not much support for this either. is this it?

  85. awfTES
    May 28th, 2012 | 12:04 pm

    Thanks!

Leave a reply