Jump to content

Chameleon RC5 Meklort's Branch


  • Please log in to reply
81 replies to this topic

#1
aikidoka25

aikidoka25

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 356 posts
Ciao!

I started this thread, so we can discuss and give feedback on Meklort's branch of Chameleon RC5.
I am using his branch because the netbook I have uses Atom CPU, hence it is important for the booter to support it so a vanilla kernel can be used.

You can get the latest revision by using svn and compile it on your machine
svn co http://forge.voodooprojects.org/svn/chameleon/branches/meklort


Please help by keeping the thread in topic! Thanks!



meklort,

here is the detail about rev 669 doesn't generate P-States.
according to slice, there was a change in ACPI patcher in the trunk, and it was for Nehalem CPU's min divider.

i wonder if it is possible to have a backward compatibility with Atom, what do you think?

excerpt of bdmesg
...
Actual model name is 'HP Mini 311-1000'
Read HFS+ file: [hd(0,2)/Extra/DSDT.aml] 38885 bytes.
ACPI table not found: SSDT.aml
FADT: Restart Fix applied!
FADT: Using custom DSDT!
Found ACPI CPU: CPU0
Found ACPI CPU: CPU1
Found ACPI CPU: CPU2
Found ACPI CPU: CPU3
SSDT with CPU C-States generated successfully
Unsupported CPU: P-States not generated !!!
RSDT: Added 1 SSDT table(s)
FADT: Restart Fix applied!
FADT: Using custom DSDT!
Unsupported CPU: P-States not generated !!!
Added 1 SSDT table(s) into XSDT
...

ioregexplorer reported less P-States array
Attached File  Screen_shot_2010_12_14_at_6.14.49_PM.png   175.95KB   581 downloads

compared to revision 653
Attached File  Screen_shot_2010_12_14_at_6.19.18_PM.png   182.16KB   365 downloads

#2
meklort

meklort

    InsanelyMac Geek

  • Developers
  • 136 posts
  • Gender:Male
I checked the source code and it should already support the Intel Atom cpu. Would you please post the complete boot log (say, to pastbin). I have also modified it to print out the cpuid if it thinks the cpu isn't supported, run the new version and let me know what it says the cpuid is.

#3
aikidoka25

aikidoka25

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 356 posts

I checked the source code and it should already support the Intel Atom cpu. Would you please post the complete boot log (say, to pastbin). I have also modified it to print out the cpuid if it thinks the cpu isn't supported, run the new version and let me know what it says the cpuid is.


here is bdmesg using rev 670
Attached File  bdmesg_r670_aikidoka25.txt   6.06KB   75 downloads

#4
meklort

meklort

    InsanelyMac Geek

  • Developers
  • 136 posts
  • Gender:Male
Should be fixed now, give it a try.

#5
aikidoka25

aikidoka25

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 356 posts

Should be fixed now, give it a try.


it works, P-States are generated by rev 671, thx! ;)

#6
Carstiman

Carstiman

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 116 posts
  • Gender:Male
where to download ? i like to give it a try :P

#7
humph

humph

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 146 posts

where to download ? i like to give it a try :)

See post #1. ;)

#8
Carstiman

Carstiman

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 116 posts
  • Gender:Male

See post #1. ;)


yes, shure, but i can´t do it by myself.

#9
sweaty

sweaty

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts

yes, shure, but i can´t do it by myself.


Go on have a go: http://prasys.info/2...owto/#more-2396

#10
Eps

Eps

    InsanelyMac Protégé

  • Members
  • PipPip
  • 84 posts
Thanks Meklort for the netbook's Chameleon bootloader.
I have a HP mini 2140 and used your bootloader for a while.
When bootloader goes with modules and I found something not work very well.
Resolution.dylib looks like only worked in verbose mode.
I have an 808627AE GMA 950 graphic and KextPatcher.dylib never got to worked.
I boot my SL from SD card and leave HDD in totally vanilla.
I don't know booting from SD card is the point make them not worked well.
And I don't use DSDT file.
I give my log file for you to reference.

Attached File  671log.zip   2.25KB   27 downloads

#11
meklort

meklort

    InsanelyMac Geek

  • Developers
  • 136 posts
  • Gender:Male

Thanks Meklort for the netbook's Chameleon bootloader.
I have a HP mini 2140 and used your bootloader for a while.
When bootloader goes with modules and I found something not work very well.
Resolution.dylib looks like only worked in verbose mode.
I have an 808627AE GMA 950 graphic and KextPatcher.dylib never got to worked.
I boot my SL from SD card and leave HDD in totally vanilla.
I don't know booting from SD card is the point make them not worked well.
And I don't use DSDT file.
I give my log file for you to reference.

Attached File  671log.zip   2.25KB   27 downloads


In order for the kext patcher to work, the kext must be inside of an mkext loaded by the bootloader, the easiest way is to run sudo kextcache -system-mkext. I also wrote a kext (included in nbi) that changes the behavior to include all kexts by default. The log you posted tells me that the mkext doesn't have the GMA950 kext in it, so that's why it's not patched.

I haven't had any issues with the resolution module, what are you sing when not in verbose mode. I'll add some logging so that when you use bdmesg it'll tell you what resolution it determined was the best / what resolution it's using.

SD card shouldn't effect anything.

#12
Time2Retire

Time2Retire

    Retired

  • Retired Developers
  • 1,012 posts
  • Gender:Female
  • Location:anonymouse.eu

I also wrote a kext (included in nbi) that changes the behavior to include all kexts by default.

Huh? Why not use: sudo kextcache -system-mkext -local-root Isn't that what people want?

Want to slim down things? Add option: -arch=<i386/x86_64>. Hope this helps.

#13
meklort

meklort

    InsanelyMac Geek

  • Developers
  • 136 posts
  • Gender:Male

Huh? Why not use: sudo kextcache -system-mkext -local-root Isn't that what people want?

Want to slim down things? Add option: -arch=<i386/x86_64>. Hope this helps.


I *want* to include all kexts in the kext, if you *don't*, the kext patcher won't be able to find certain kexts (like the GMA950 ones, because they *don't* exist). The kext that I wrote modifies the default behavior and strips out the local root flag so that when kextcache is run automatically (say, after a system update or when a user touches /S/L/E), it includes *all* off the kexts.

#14
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,871 posts
  • Gender:Male
  • Location:Moscow

Resolution.dylib looks like only worked in verbose mode.

Yes, something wrong.
I modify gui.c to see what is happen with gui resolution
if(is_module_loaded("Resolution.dylib"))
	{
		getResolution(&screen_params[0], &screen_params[1], &screen_params[2]);
		msglog("GUI module screen width=%d height=%d\n",(int)screen_params[0], (int)screen_params[1]);
	}
	if (((int)screen_params[0]<800) || ((int)screen_params[1]<600))
	{
		if (getIntForKey("screen_width", &val, &bootInfo->themeConfig) && val > 0)
		{
			screen_params[0] = val;
		}
		if (getIntForKey("screen_height", &val, &bootInfo->themeConfig) && val > 0)
		{
			screen_params[1] = val;
		}		
		msglog("GUI theme screen width=%d height=%d\n",screen_params[0], screen_params[1]);		
	}
And bdmesg
GUI module screen width=-96 height=-124
GUI theme screen width=1024 height=768
Looks like getResolution() is not worked. (IntelX3100 devID=2a02)

#15
Carstiman

Carstiman

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 116 posts
  • Gender:Male

Go on have a go: http://prasys.info/2...owto/#more-2396


hello, thx a lot, now i have some more to play around ;)
i tried it with the latest trunk and with the one from kabyl and it works. (by the way, with Kaby i get false CPU Mhz output in smck-Sat)

So i tried it with the Meklort and Slice branch. Both boot well but at the end of boot i get kernel panic. would you like a kernel log ?
if you´ve got some more tips or a readme it would be great. iám a noob but i like to test your work :)

#16
aikidoka25

aikidoka25

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 356 posts

...
So i tried it with the Meklort and Slice branch. Both boot well but at the end of boot i get kernel panic. would you like a kernel log ?
if you´ve got some more tips or a readme it would be great. iám a noob but i like to test your work :)


post it here, and indicate from which booter (meklort or slice)
i will try to see why it went kp, if i couldn't help you i guess others can.

#17
VMonHeros

VMonHeros

    InsanelyMac Protégé

  • Members
  • PipPip
  • 79 posts
  • Gender:Male
  • Location:Toulouse, France
Hi,

I use this chameleon version with an Asus 1201N and it works great :censored2:. I activate the P-States and C-States generation without any issue (after having remove everything linked in DSDT for sure). And with the last version of Chameleon, memory informations can be access in "About this Mac", "More Info", "Memory". Previously I'd got an error reading here.

However, the memory detection as "some issues" (please, note that I removed all memory information in SMBIOS.plist, that only contains for me "Macbook" Air 2.1 information).

It detects 4 DIMM slots but we have only 2 in the netbook.


BANK0/DIMM0 :

Taille : 2 Go
Type : DDR2 SDRAM
Vitesse : 800 MHz
État : OK
Fabricant : N/A
Numéro de pièce : N/A
Numéro de série : N/A

BANK1/DIMM1 :

Taille : Vide
Type : Vide
Vitesse : Vide
État : Vide
Fabricant : Vide
Numéro de pièce : Vide
Numéro de série : Vide

BANK2/DIMM2 :

Taille : 2 Go
Type : DDR2 SDRAM
Vitesse : 800 MHz
État : OK
Fabricant : N/A
Numéro de pièce : N/A
Numéro de série : N/A

BANK3/DIMM3 :

Taille : Vide
Type : Vide
Vitesse : Vide
État : Vide
Fabricant : Vide
Numéro de pièce : Vide
Numéro de série : Vide

For sure, it is only cosmetic, and I'm very happy with the last progress that provide us native power management (and if Meklort can include what is doing LegacyAGPM as an Chameleon plugin, it would be a dream :)).

Thanks for your hard work !!!!

#18
meklort

meklort

    InsanelyMac Geek

  • Developers
  • 136 posts
  • Gender:Male

For sure, it is only cosmetic, and I'm very happy with the last progress that provide us native power management (and if Meklort can include what is doing LegacyAGPM as an Chameleon plugin, it would be a dream :wacko:).

Thanks for your hard work !!!!



I generally don't work on the memory code myself.

If you point me in the right direction for LegacyAGPM, I'll see what I can do.

#19
VMonHeros

VMonHeros

    InsanelyMac Protégé

  • Members
  • PipPip
  • 79 posts
  • Gender:Male
  • Location:Toulouse, France
Ok, thanks, I will post the question on the other Chameleon thread :wacko:.

LegacyAGPM seems to be an "simple" injector to activate the power management on the Nvidia chip. It seems that we declare inside the different "P-States" of the chip with other needed information.

For me it "seems" near to what is done on the last release of Chameleon for the CPU detection.

Sorry, I'm not a specialist, I'm just a guy that integrate all your work to deal with it hackintosh.

However, thanks for your hard work, I really appreciate it ;).

Merry Christmas to all of you !!!

P.S.: I tried to compile the last version rev 689 and I've got this error. What I did wrong ?

make[2]: *** No rule to make target `/Users/VMonHeros/meklort/sym/i386/libklibc.a', needed by `boot'. Stop.
make[1]: *** [embedtheme] Error 2
make: *** [embedtheme] Error 2

Attached Files



#20
aikidoka25

aikidoka25

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 356 posts
Meklort,

Were there any special changes on the latest revision?
The old ways of copying only boot and modules files was not working anymore.
When started, the machine complained cannot find Symbols.dylib

From the make log, I could see Symbols.dylib was compiled, but it cannot be found in sym/i386

================= Compiling Symbols.dylib =================
	[LD] Symbols.dylib
	[LD] boot_embeded.sys
================= Embedding Symbols.dylib =================
	[MACHOCONV] boot
IOHibernatePrivate.h Makefile Symbols.c WKdm.h WKdmDecompress.c appleClut8.h bmdecompress.c boot.c boot.h boot2.s drivers.c drivers.h graphics.c graphics.h lzss.c mboot.c mboot.h modules.c modules.h modules_support.s multiboot.h options.c options.h prompt.c ramdisk.c ramdisk.h resume.c Patching at 108904 IOHibernatePrivate.h Makefile Symbols.c WKdm.h WKdmDecompress.c appleClut8.h bmdecompress.c boot.c boot.h boot2.s drivers.c drivers.h graphics.c graphics.h lzss.c mboot.c mboot.h modules.c modules.h modules_support.s multiboot.h options.c options.h prompt.c ramdisk.c ramdisk.h resume.c
	[MACHOCONV] boot_embeded






0 user(s) are reading this topic

0 members, 0 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