Chameleon

Issue 160: charm Branch not compatible with Xcode 4.1

Reported by Cyrus The Great, Aug 28, 2011

hi i get the latest source from charm branch and complied using 
Xcode 4.1 but its hang in loading chameleon message in boot time.
then i use the old one from Xcode 3.2 and it work.
plz update the branch 
its the only branch that can load extra *.AML table
thanks

Comment 1 by Evan Lojewski, Aug 28, 2011

Owner: cparm

Comment 2 by armel cadet-petit, Aug 30, 2011

hi, for now smbiosgetters and the gui are not compatible with Xcode4 
(see readme), you can use smbiospatcher as an alternative to 
smbiosgetters, but for now no gui with xcode4 sorry ....

feel free to report any other bug that you may find with xcode4.

cparm

Comment 3 by armel cadet-petit, Aug 30, 2011

Status: Accepted

Comment 4 by Cyrus The Great, Sep 14, 2011

hi cparm plz can you add compatibality with xcode 4.1 for this two 
smbiosgetters and the gui
becuase in lion xcode 3xx not work
thanks

Comment 5 by armel cadet-petit, Sep 14, 2011

hi,
for now i haven't found a suitable solution, but:

if you still have a SL partition with xcode3 installed, just open 
the xcode3 app (from Lion), it will ask you if you want to update 
java, and voila ...

if not, and if you have a processor > to a C2D you can try to 
search all occurrences of -march=pentium4 and change them by 
-march=core2 , you can also add those features -msse3 -mssse3 
-msse4.1 -msse4.2 -msse4 -msse4a depending on the features that your 
cpu really have 

it work for me at least with smbiosgetters 

don't forget that you can build smbiosgetters and the gui with 
xcode3 and the rest with xcode4, it will work fine :-) ...

i have attached smbiosgetters and gui compiled with Xcode3

Comment 6 by Cyrus The Great, Sep 15, 2011

thanks its work.
but another question i comiled the latest source but i can see any 
resolution module in sym directory?!!!

Comment 7 by Cosmosis Jones, Sep 15, 2011

cparm.. the trunk compiles fine on xcode 4.1 

what is in your branch that doesn't work??

Comment 8 by armel cadet-petit, Sep 15, 2011

glad to hear that it works, but please tell me what you have done 
exactly, have you changed -march=pentium4 to -march=core2, have you 
used the xcode3 app from a lion partition, or have you used the 
pre-compiled modules that i have attached ? 


for resolution module, i have deactivated it simply because it don't 
work for most of us, but if you want to test it just add 
"Resolution" in the file i386/modules/Makefile, as follow 
(and don't forget to report any success or failure ;) ):

-BEFORE-:
.
.
.
VPATH = $(OBJROOT):$(SYMROOT)

# The order of building is important.
SUBDIRS = KernelPatcher GUI GraphicsEnabler HPET USBFix Memory 
Networking ACPICodec ACPIPatcher NetbookInstaller CPUfreq Keymapper 
RamDiskLoader HibernateEnabler SMBiosPatcher SMBiosGetters 
YellowIconFixer HelloWorld SeaBios
all embedtheme tags debug install installhdrs:
.
.
.


-AFTER-:
.
.
.
VPATH = $(OBJROOT):$(SYMROOT)

# The order of building is important.
SUBDIRS = KernelPatcher Resolution GUI GraphicsEnabler HPET USBFix 
Memory Networking ACPICodec ACPIPatcher NetbookInstaller CPUfreq 
Keymapper RamDiskLoader HibernateEnabler SMBiosPatcher SMBiosGetters 
YellowIconFixer HelloWorld SeaBios
all embedtheme tags debug install installhdrs:
.
.
.

cparm.

Comment 9 by armel cadet-petit, Sep 15, 2011

hi cosmo, 

the only problem with Xcode4.x and my branch is that the 
smbiosgetters and the gui modules just stop without any error or 
warning:

i suspect a ring 0 error, 
or a allocation error (in this case maybe i should try to implement 
heap allocation),
or interrupt issue (i tried implemented an interrupt handler to see 
if i can see an error, but it seems that my implementation don't 
work for now)
or maybe some symbols shared by /boot can't be found by those 
modules

for now i have no idea why those modules don't work when built with 
xcode4.x

cparm

Comment 10 by Cyrus The Great, Sep 15, 2011

thanks Cparm
for GUI and smbiosgetters i use the precompiled one that you posted 
and it work.
for resolution after adding the path to make file it compiled and 
now work perfect.
---------------------------------------------------------
for p-state and c-state i am using the ssdt table but when add 
generat c and p state to org.chameleon.... it generat incorrect 
value my hight cpu freq is 2394(266*9)but the loader set highest 
p-state to 2128(8*266).
thanks .
---------------------------------------------------------
and a question when add UpdateACPI flag, it update table to acpi 4?

Comment 11 by armel cadet-petit, Sep 15, 2011

hi akbar moradi, 

what kind of cpu have you got ?

do you use acpicodec or acpipatcher ?

can you upload a complete bdmesg ?

about UpdateACPI : yes :) , credit goes to my friend Andy Vandijck

Comment 12 by Cyrus The Great, Sep 15, 2011

HI CPARM
my system is hp dv6 1125 with intel C2D 2400(266*6-9)
i use acpicodec .
and this is screen from smc monitor and bdmesg
thanks

Comment 13 by Cyrus The Great, Sep 15, 2011

sorry the terminal saved output is empty
this is correct one

Comment 14 by Cyrus The Great, Sep 16, 2011

HI AGAIN;
i using the resolution module for a day some time it set the correct 
resolution and some time it can't.but the resolution module in trunk 
work always .
plz replace the resolution module in your branch with one from 
trunk.
thanks

Comment 15 by armel cadet-petit, Sep 19, 2011

hi akbar moradi, do you have an email address?

Comment 16 by Cyrus The Great, Sep 19, 2011

Hi:
Akbarmoradi@live.com

Comment 17 by Cosmosis Jones, May 5, 2012

Status: Invalid

Created: 6 years 24 days ago by Cyrus The Great

Updated: 5 years 4 months ago

Status: Invalid

Owner: armel cadet-petit

Followed by: 2 persons

Labels:
Priority:Medium
Type:Defect