netkas.org

About Chameleon and Lion

PCEFI 10.6 can be compiled just fine with new boot.h from Lion’s SDK, it allows it to boot lion’s kernel just fine, pass kexts to it and etc, but then kernel has double fault, in one of its many threads, so its very hard to track down.

Here is the sorry, wrong file, will uplaod proper one in a few if you want, but keep in mind, it DOES NOT WORK with snow leopard.

Not sharing sources because its same as 10.6.

Now about possible reasons for panic, it’s:

  • Not new format of passing kext/mkext to kernel, I compiled snow leopard kernel with new boot.h (so new boot_args, everything else is old), new boot.efi can boot it just fine, as well as booter I posted before.
  • Not new devicetree format, same reason as above.

There is actualy not much reason which can cause double fault, so feel free to investigate 😛

Thanks to cparm for idea about kernelcache, here is booter for lion which will use kernelcache if u specify option -usecache

They way you will be able to boot Lion, but double fault seems to happen sometimes still (like if you use Wait=y argument, it will DF)

Binary and Sources (fixed kernelcache/prelink detection)

No /Extra mkext/kexts if kernelcache used. and this booter doesnt work with snowleopard

If getting DF – try to boot Snow with old chameleon, then reboot and boot lion with new, sometimes helps

device-properties doesn’t seem to work.

Comments

  1. loll
    March 8th, 2011 | 11:59 pm

    For people who can’t see Lion on their PC, a nice review to pass time about new features in french but should be translate thru google clouds w/o problem. http://www.macbidouille.com/articles/379/page1

    (I have no link with macBidouille)

  2. youminbuluo
    March 9th, 2011 | 3:49 am

    I use this new boot with legacy grub and kernel /boot command. However this boot file will give me wrong multiboot magic error and auto reboot. If I replaced it with my original boot file, it is OK.

  3. pdicamillo
    March 9th, 2011 | 5:21 am

    The fact that switching the power supply off makes a difference suggests that the boot process is reading memory locations where Chameleon didn’t store anything (what would be called an uninitialized variable in a programming language.) Turning off the power supply almost certainly changes what’s in memory, most likely setting more of it to zeros. I wish I had a solution, but that’s the problem I would look for.

  4. Dr. Bretto
    March 9th, 2011 | 8:42 am

    Lion is running smooth with iBoot. Does anybody know how to enable audio? How to patch AppleHDA Binary in Lion using hexedit?

    Many Thanks.

  5. Nandor690
    March 9th, 2011 | 11:57 am

    I can say now that ever since I turned my power supply off for 10 seconds and back on I have never gotten a double panic since. I didn’t change anything and have rebooted multiple times.

  6. zascok
    March 9th, 2011 | 1:13 pm

    2 youminbuluo
    I have same problem with netkas’s boot.
    So I took boot from Chameleon_v2.0_RC5_Lion.zip
    No wrong multiboot magic error and auto reboot but still DP.

  7. netkas
    March 9th, 2011 | 2:28 pm

    >The fact that switching the power supply off makes a difference suggests that the boot process is reading memory locations where Chameleon didn’t store anything

    Not really, just booted Lion off a cold start.

  8. LoLL
    March 9th, 2011 | 3:40 pm

    can’t boot lion.
    Still DP with “can’t perform kext scan”…
    I feel sad…

    @Nandor690
    The key “Kernel Cashe” is a mistype ? “Kernel Cache” should be read ??

  9. Seroquel
    March 9th, 2011 | 4:01 pm

    I installed lion without any problem by using iBOOT, my 6850 and wireless card worked OOB seamlessly. Shutdown works OOB also. For sound and IDE i used 10.6 kexts and they starting working too. So far my easiest OSX installation. I don’t have fast graphics and/or RTC, USB issues too. I have Asus P5Q PRO board and C2D E7200

  10. Seroquel
    March 9th, 2011 | 4:04 pm

    @Dr. Bretto i just used my snow leo applehda kext and it started working.

  11. Nandor690
    March 9th, 2011 | 4:12 pm

    @LoLL
    You are correct. Sorry for the typo.

  12. March 9th, 2011 | 4:15 pm

    No luck either with power supply off.

  13. March 9th, 2011 | 4:54 pm

    […] […]

  14. artur-pt
    March 10th, 2011 | 3:08 am

    hi netkas , i boot lion several times with cpu i5, but can’t install it , because my sistem profiler always say i have a dual core xeon, fix several times smbios.plist imac 11.1 macbookpro and always dual core intel xeon . and i can’ t install lion, no problems in booting…. any ideas help help anyone

    thanks

  15. N3
    March 10th, 2011 | 8:46 am

    Never have a chance to boot into lion again. Thousands of tries, 0 success. It’s strange for such non-determisticity.

  16. rene
    March 10th, 2011 | 10:09 am

    @ arthur-pt

    10.7 identifies your System with the Serialnumber.

    chosse right serialnumber and Board-ID, e.g. F-227BEC8, so it will be working.

    use google, to Look for a smbios.plist file and insert this in Library/Preferences/SystemConfiguration

  17. rene
    March 10th, 2011 | 10:21 am

    @ N3, asapreta

    my System now Boots and is Lear perfect… pppfffff

    hold bzw. klick the Cursor-Down Button several times after the System (Chameleon) is JUST begin to Booting the System…

    Have Set the Lion-Partition in com.apple.Boot.plist (Folder Extra) like Default Partition -> hd(x,x) and use the Chameleon V2.0 RC5 Bootloader (found at http://www.root86.org).
    Set Quiet Boot -> Yes and Graphics Enabler -> YES in Boot.plist too.

    So, After Bios ist started and comes up “Loading Operating System” and the Cursor is spinnig, hold or press Cursor-Down.

    So my System here (GA-P55-USB3) with DSDT.aml from Tonymacs is just Booting fine. Change the ID for my Graphic-Card in NVDANV50HAL.kext to my ones 9600GT (to 0x062210de… from 0x060110de…) brings me full reolution (changeable and with QE/CI).
    Needed Kexts in S/L/E: FakeSMC, NullCPUPowerm, AppleHDA und HDAEnabler from 10.6 System give Audio too.

  18. rene
    March 10th, 2011 | 10:22 am

    sorry, had to disable the automatic Text correction!

  19. crc
    March 10th, 2011 | 3:19 pm

    installed chameleon 2 RC 3 – and used netkas boot file

    strange thing – i get no kp but it just do a reboot – endless

    tried different kernel flags – nothing works

    has anyone an idea how to solve

    thanks

  20. rene
    March 10th, 2011 | 4:54 pm

    @ crc

    have a look at the setting, do you boot zhe right Partition? (where you have Lion installed?)

    The Bootloader reboots on SnowLeo, maybe the cause?

  21. Ezhoon
    March 11th, 2011 | 6:06 am

    With Chameleon 2 rc3 installed on a Lion partition..it’s always third time is a charm. First and second boot result in kp..weird 😀

  22. rene
    March 11th, 2011 | 6:34 am

    @ Ezhoon

    Not here, only the Booter with RC5 works here, and only with the exact Timimg from showing Lion-Partition in Bootmanager to Press the “Return”-Key, not the “Enter” one… just about 3/4 Second here.. counting (einundzw.. in german)

    funny…

  23. N3
    March 11th, 2011 | 6:53 am

    @ rene It’s difficult to understand why the timing matters. and cutting off power supply, or booting snowleo ahead of lion don’t work here.
    on my laptop rc3 works well in the beginning, from installation to booting the system for the first few times (50% chance of successful boot). But now I only get 1 boot out of 70 tries.
    It should be a problem of memory address. on successful boot(still kp but caused by something else) the first line of address is 0xffffff80xxxxbd30 : 0xffffff8000220412, but it is 0xffffff80xxxxbd20 : 0xffffff8000220412 whenever I get DF

  24. N3
    March 11th, 2011 | 7:19 am

    @rene And I find the memory address varies if you press the arrow keys!!!
    Maybe the key press uses some buffer and changes address?

  25. rene
    March 11th, 2011 | 7:22 am

    @ N3,

    i do not know why this happens,
    but my experiense is that it is a timing problem here..

    try booting with the RC5-Booter posted on root86, this one works here like as i had described it.

    like posted before, the RC3-Loader did not work here,after trying 50x Times to boot, i gave up and was looking for an other solution.

  26. rene
    March 11th, 2011 | 7:24 am

    @ N3, post 7.19 am

    Maybe? i dont know…

  27. atlee
    March 11th, 2011 | 11:05 am

    try iboot 1.4 stable, seems to get me further loading install but i still get a cpu panic and reset.

  28. atleeit
    March 11th, 2011 | 12:02 pm

    iboot 1.4, copy fakesmc and nullcpupowermanagement to S/L/E to the base install drive, Installed Lion successfully and booted perfectly. No errors, no KP’s, perfect!

  29. March 11th, 2011 | 9:52 pm

    У меня получилось добиться 90% загрузки хама rc3, если в момент таймаута перед загрузкой системы выбрать раздел со львом и подождать 5 секунд. затем энтер.

    может кому поможет.

  30. ugokind
    March 15th, 2011 | 1:47 pm

    dear atleeit and russians..
    ok fakesmc from 2.5 to 3.1.0 are fine
    i’ve tested from pcefi 10.5 to 10.6.. chamaleon 2 rc3 v431 to 2.0 rc5 pre8.. with or wothout the boot file above
    no way.. no way to boot !
    always a restart!!
    tested into 2 OOTB motherboards.. with MCP79a chipset and Intel board.

  31. pdicamillo
    March 15th, 2011 | 2:28 pm

    The only way I got booting to work some of the time was to remove my DSDT.aml file. It doesn’t seem to be the contents of the DSDT, because I tried using an unmodified one and still never booted. It seems that what Chameleon does to load the DSDT breaks booting on my machine (GA-X58A-UDR3 MB, Core i7 950.) Of course no DSDT causes other problems. I think I’m going to need at least NullCPUPowerManagement.

  32. rolf
    March 15th, 2011 | 3:52 pm

    still the same problem as ugokind has 🙁
    tried everything but always reboot

  33. zhou
    March 18th, 2011 | 9:49 am

    why the source is rc3? i replace the boot, but it’s shows rc3 ?
    anyone can send me a new version thanks. zt2620zt@163.com

  34. 第一给力组
    March 19th, 2011 | 2:22 am

    The new XPC (18.03.2011) is 相当给力.
    Works great on notebook. Loads DSDT without problem just like pcefi does!

    pcefi always give me double fault, I can only use xpc for this time; otherwise, I like chameleon over xpc because xpc loads slow.

  35. slipttees
    March 19th, 2011 | 2:58 pm

    DP here (intel DG35EC).

  36. hfw
    March 21st, 2011 | 7:04 pm

    http://www.imgplace.com/viewimg153/1779/31img0059.jpg

    FPU panic here =/ not seen that one before xD

    GA-EX58-UD5

  37. March 22nd, 2011 | 11:06 pm

    When using XPC the activity monitor is only showing 3.25gb ram? (i have 8gb)
    Does anyone know why?
    It is happening in 32/64bit in both Snow and Lion.

    When booting in Chameleon in Snow it shows 8gb.
    Cant get Lion to boot in Chameleon though. 😛

  38. pechspilz
    March 27th, 2011 | 8:27 pm

    Yo double panickers, check out this post here:
    http://trick77.com/2011/03/27/asus-p6t-mac-os-x-lion-10-7-dev-preview-using-xpc-boot-loader/

    I got rid of the DP using this UEFI XPC boot loader. Maybe it works on your computer too, give it a try.

  39. March 28th, 2011 | 8:14 pm

    LION 10.7
    My Geforce 9800 GTX + Worked fine after I added the device id 0x061210de & 0xffe0ffff in NVDANV50Hal.kext/Contents/Info.plist with NVEnabler.kext
    boot netkess lion

  40. hbp112358
    March 28th, 2011 | 8:50 pm

    Hello everyone who is getting the double Panic. READ the POST!!! USE RC3 not RC5 the modded boot file has been altered to accept your core i3,i5,i7,i9 and other current intel chips. I know, I was in a DP loop until I installed the RC3 loaded too.

    @netkas, it might be easier for some if you shot a link to the RC3 installer below the boot file in the first post.

    hbp112358

  41. darkera13
    March 30th, 2011 | 7:39 am

    @hbp112358: can you share your rc3 installer?

  42. fc_candido
    March 31st, 2011 | 10:00 pm

    in / Library / Preferences / SystemConfiguration / com.apple.Boot.plist
    busratio cpus = 4 = 21 arch = x86_64-v-useCache
    increased by 70% after the boot put these flags
    deleted any kernel flags in / Extra / com.apple.Boo.plist leaving only kernel flags em/Library/Preferences/SystemConfiguration/com.apple.Boot.plistbash-3.2 # cat / Library / Preferences / SystemConfiguration / com.apple. Boot.plist

    Kernel Flags
    busratio cpus = 4 = 21 arch = x86_64-v-useCache

  43. fc_candido
    March 31st, 2011 | 10:02 pm

    cpus=4 busratio=21 arch=x86_64 -v -usecache

  44. hbp112358
    March 31st, 2011 | 11:46 pm

    kexts dot com is your friend, go to boot loaders and search RC3

  45. fc_candido
    April 2nd, 2011 | 12:29 am

    If I is not talking nonsense, it would not be possible to compile the EFI Boot XPC http://irc.netsplit.de/channels/details.php?room 23UEFI =% = & net-boot MoofSpeak
    for the native BSD MAC OS? EFI BOOT XPC works so well on FAT32
    EFI BOOT XPC is light years ahead of the chameleon boot loader. without kernel panic.

  46. SMooC
    September 12th, 2011 | 9:50 am

    Hi Netkas,

    Your boot file works great on a LV-677. However if I build this one from source on Lion, I do get the double fault. I’d like to build from source as somehow it is misinjecting the smbios vars. I’m also wondering what this does differently than the current Chameleons as they keep me on “waiting for dsmos”

    Cheers.

    ////dunno what’s wrong, the fix for double fault is in boot2/boot.c, the place where it masks interrupts before launching kernel.

Leave a reply