overdue-scratch

Author Topic: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?  (Read 7876 times)

0 Members and 1 Guest are viewing this topic.

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« on: June 01, 2011, 02:46:30 AM »
Code: [Select]
Chameleon 2.0-RC5 (svn-r931) [2011-05-31 21:26:05]
msr(295): ia32_perf_stat 0x06004922
max: 9.5 current: 9.5
CPU: Vendor/Model/ExtModel: 0x756e6547/0x17/0x1
CPU: Family/ExtFamily:      0x6/0x0
CPU: MaxCoef/CurrCoef:      0x9/0x9
CPU: MaxDiv/CurrDiv:        0x1/0x1
CPU: TSCFreq:               3172MHz
CPU: FSBFreq:               333MHz
CPU: CPUFreq:               3172MHz
CPU: NoCores/NoThreads:     2/2
CPU: Features:              0x0000025f
Attempting to read GPT
Read GPT
Reading GPT partition 1, type C12A7328-F81F-11D2-BA4B-00A0C93EC93B
Reading GPT partition 2, type 48465300-0000-11AA-AA11-00306543ECAC
Reading GPT partition 3, type 48465300-0000-11AA-AA11-00306543ECAC
Reading GPT partition 4, type 48465300-0000-11AA-AA11-00306543ECAC
Read HFS+ file: [hd(0,1)/Extra/com.apple.Boot.plist] 918 bytes.
Invalid mach magic 0x2
(...)

Anybody knows what that is?

I'd like any magic that goes on in my Hackintosh to be valid if possible.
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

meklort

  • VoodooLabs
  • Posts: 65
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #1 on: June 01, 2011, 04:12:26 AM »
That's the module system saying it can't load up a dylib / the embeded symbols. This'll usually happen if you are multibooting chameleon from something else (such as grub). Basically, it means you can't use modules at the moment (until I fix multiboot).

If you aren't using multiboot, then it's some other issue and needs to be tracked down.
return c ? c : !c;

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #2 on: June 01, 2011, 05:05:49 AM »
Hi mek.

No, it's a "standard" installation of Chameleon to the EFI partition (see link in my signature). I don't use GRUB or EasyBCD or anything else.
My PC boots my Windows 7 hard drive by default. When I want to run OS X I use the BIOS (F8 key) boot device selector to select my OS X hard drive. The drive was partitioned and formatted with Disk Utility.

I don't know if it matters but I use an older version of fdisk from 2008 when installing Chameleon, the new one throws a permission error or something, I can't recall exactly. I never put any work into finding out why that is since I don't need to worry about Windows when using fdisk anyway.

If there's anything I can do or anything else you need to know about my configuration just ask.
 

 
« Last Edit: June 01, 2011, 06:50:30 PM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

meklort

  • VoodooLabs
  • Posts: 65
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #3 on: June 01, 2011, 04:14:58 PM »
What boot file are you using / how did you compile it (xcode version) etc. can you send me a copy of it as well so that I can test some things out.

return c ? c : !c;

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #4 on: June 01, 2011, 04:48:05 PM »
svn trunk, I use xcode 3.2.6, on 64-bit 10.6.7.

I've attached r939, it still does the same thing.

fdisk440 finally works for me, did you do something to it?  :)

/EDIT
I get it, commit 920:
"Added fdisk440 to utils dir. Compile enabled by default, can be changed with make config."
Very convenient, thanks.
« Last Edit: June 01, 2011, 06:20:28 PM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

meklort

  • VoodooLabs
  • Posts: 65
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #5 on: June 01, 2011, 09:21:57 PM »
Would you also post a full bdmesg output?
return c ? c : !c;

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
« Last Edit: July 05, 2011, 05:15:02 AM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

meklort

  • VoodooLabs
  • Posts: 65
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #7 on: June 02, 2011, 03:26:26 AM »
Thanks, I'll look into it in a bit.
return c ? c : !c;

cosmo1t

  • VoodooLabs
  • Posts: 25
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #8 on: June 03, 2011, 05:46:02 AM »
but if u hit enter it goes away right?

we had seen that before and htought it fixed

He did say "standard installation to EFI" which is not really standard..

so i dont' know if thats the issue or what

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #9 on: June 03, 2011, 06:38:25 AM »
No, it doesn't stop at that message or anything, I only see it through bdmesg or if I add wait=y. From my understanding of what meklort said earlier it's completely harmless on my installation (I'm not using the module system or multibooting) and I was just wondering what it meant.
Now I'm just glad that I seem to have accidentally found an actual bug.

I used the word standard in the context of an EFI partition install, maybe it's not "standard" to install Chameleon to the EFI partition in general but the way I have installed it to the EFI partition is "standard".

So now you've made me curious, what do you consider a standard installation of Chameleon then?
« Last Edit: June 03, 2011, 06:42:04 AM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

cosmo1t

  • VoodooLabs
  • Posts: 25
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #10 on: June 03, 2011, 06:57:23 PM »
to me a standard installation is
boot0 to /dev/rdiskx
boot1h to /dev/rdiskXsY (Y for me being the only partition other than the EFI partition) so i usually use 2.
boot on the root of os install.


so i guess u put boot1h on the EFI
and /Extra in the EFI.

either way that shouldn't make a difference... have u created an issue on forge.voodooprojects.org?

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #11 on: June 03, 2011, 07:56:17 PM »
Yeah that's how I install Chameleon, the "Munky" method. Except "boot" also goes on the EFI partition.
More details if you follow the link in my signature.

I didn't open an issue because Meklort is already looking into it.
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #12 on: June 12, 2011, 11:01:45 PM »
I've installed svn r1003 and the invalid mach magic message is gone.

Now this appears in the same place:

Module 'Symbols.dylib' by 'Chameleon' Loaded.
   Description: Chameleon symbols for linking
   Version: 0
   Compat:  0
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

meklort

  • VoodooLabs
  • Posts: 65
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #13 on: June 19, 2011, 07:07:19 AM »
That's a good message, it means everything is working as far as the module system is concerned.
return c ? c : !c;

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: 2.0 RC5 trunk r931 "invalid mach magic 0x2" ?
« Reply #14 on: June 22, 2011, 03:31:48 AM »
It's back - svn r1033 - svn r1111
Code: [Select]
Invalid mach magic 0x2
Module 'Symbols.dylib' by 'Chameleon' Loaded.
Description: Chameleon symbols for linking
Version: 0
Compat:  0
« Last Edit: July 05, 2011, 05:14:14 AM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131