Jump to content

Chameleon 2.2svn Official PKG Installer & Binaries

Bootloader Chameleon

  • Please log in to reply
2424 replies to this topic

#2421
ekica

ekica

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 252 posts
  • Gender:Male
  • Location:Serbia,Zaječar,Salaš

What the problem is what happens?

LINK



#2422
slim.jim

slim.jim

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
  • Gender:Male
  • Location:Maryland

Anyone give DP3 a try yet?



#2423
Bit Shoveler

Bit Shoveler

    InsanelyMac Geek

  • Coders
  • 112 posts
  • Gender:Male
  • Location:Six blocks from AMD HQ
  • Interests:Hackable Macs

I finally found a workaround to my linker woes of a couple months ago: remove the '-x' option from the offending 'ld' command.

 

Working under latest XCode on 10.9.4. 'svn diff' below shows the change.

hackintosh_eth0:trunk chucko$ svn diff i386/modules/MakeInc.dir
Index: i386/modules/MakeInc.dir
===================================================================
--- i386/modules/MakeInc.dir	(revision 2390)
+++ i386/modules/MakeInc.dir	(working copy)
@@ -126,7 +126,7 @@
 	@ld -arch i386 \
 	-alias _$(MODULE_START) start \
 	-dylib -read_only_relocs suppress \
-	-S -x -Z -dead_strip_dylibs \
+	-S -Z -dead_strip_dylibs \
 	-no_uuid \
 	-current_version $(MODULE_VERSION) -compatibility_version $(MODULE_COMPAT_VERSION) \
 	-final_output $(MODULE_NAME) \
hackintosh_eth0:trunk chucko$ 

Well, grump. I hadn't tried to build Chameleon in a while and updated from the SVN repo. First the build barfed on unused functions. So I #ifdef'd them out. Then the linker blew up in uClibcxx.

 

Turns out the problem is Apple's custom version of ld. If code is compiled with Link Time Optimization, and the linker is set to do dead code stripping, the linker fails. Apple is aware of the problem but doesn't seem to have a fix yet.

 

If you have the latest XCode 5.1 installed on Mavericks 10.9.2, how do you build Chameleon?!

 



#2424
xing108

xing108

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
  • Gender:Male
  • Location:Taiwan

My GA-EP43-UD3L(775) use crazybirday  Chameleon_2.2svn_r2380_10.10_CBv2 , working fine on Yosemite DP1~DP3



#2425
Pike R. Alpha

Pike R. Alpha

    InsanelyMac Geek

  • Developers
  • 159 posts
  • Gender:Male

Q: Anyone here wants black boot mode to function in Chameleon?

 

Use my patch from here and add this to bootstruct.h

#ifndef kBootArgsFlagRebootOnPanic
#define kBootArgsFlagRebootOnPanic (1 << 0)
#endif

#ifndef kBootArgsFlagHiDPI
#define kBootArgsFlagHiDPI (1 << 1)
#endif

#ifndef kBootArgsFlagBlack
#define kBootArgsFlagBlack (1 << 2)
#endif

#ifndef kBootArgsFlagBlackTheme
#define kBootArgsFlagBlackTheme (1 << 6)
#endif 

and this to: bootstruct.c

#if REBOOT_ON_PANIC
bootArgs->flags = kBootArgsFlagRebootOnPanic;
#endif

#if UISCALE_2X
bootArgs->flags |= kBootArgsFlagHiDPI;
#endif

#if BLACKMODE
// This sets IODeviceTree:/chosen/IOProgressColorTheme (Number) to 0x1
bootArgs->flags |= (kBootArgsFlagBlack + kBootArgsFlagBlackTheme);
#endif

That's the most important thing you need. Implement like whatever suits you best.








5 user(s) are reading this topic

1 members, 4 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