Voodooprojects
Chameleon => General Discussion => Topic started by: stig_dk on July 15, 2009, 07:55:13 PM
-
Hi All
FYI, I just managed to wake my MSI Wind U100 w. 2GB memory from deep sleep. I've only spend 30min doing this fix, so it might not be... healthy :-p
I downloaded the RC1 r431 source and had a look at i386/boot2/resume.c
Ok, wake from deep sleep bailes out on this check (l. 122):
if ((long long)mem_base+allocSize<1024*bootInfo->extmem+0x100000)
{
printf ("Not enough space to restore image. Press any key to proceed with normal boot.\n");
getc ();
return;
}
allocSize = imageSize, the size of the sleep image, so should this not be?:
if (!((long long)mem_base+allocSize<1024*bootInfo->extmem+0x100000))
{
printf ("Not enough space to restore image. Press any key to proceed with normal boot.\n");
getc ();
return;
}
I would think so, but you could also just comment out the block (dirty hack) :-p
Anyways, after rebuilding Chameleon (make pkg) and copying sym/i386/boot to /boot, I am able to wake my Wind from deep sleep.
I'm not saying that this is the correct way to go, but it might do the trick untill the final Chameleon 2.0 gets released.
My "boot" file is attached.
Sleep well
/Stig
-
Ok, just did a slight cosmetic fix. Now Chameleon does not drop back to text mode with the Wake Kernel!! message after loading the boot image. Looks better, but worse for debugging ;-)
cheers
/Stig
-
Please post a diff not a binary.
Thank you!
-
Hi
Ok. Was not sure that everybody who comes here knew what to do with a diff?
cheers
/Stig
-
works for me ! thanks a lot.
booting from OsX partition. seems to works on EFI booting partition too.
isn't it possible to leave the boot file here? many people doesn't know how to compile and furthermore, use a diff file :-)
maybe a new chameleon release with this patch is on the way?
anyway, the file is posted here : http://forums.msiwind.net/post114726.html#p114726 (http://forums.msiwind.net/post114726.html#p114726)
-
Thank you, this will be eventually checked and applied.
-
Glad to help, hope the fix is not completely bollocks ;-)
cheers
/Stig
-
Tested working perfectly with EFI booting on the MSI Wind U100.
-
Hi
Can somebody say me how to compile Chameleon source, I tried to search but I didn't find anything Xcode doesn't want Makefile.
Thanks.
-
Yes, you do it from the commandline with "make". "make pkg".
Xcode... *cough* *crap* *cough*.... ;-)
/Stig
-
What did you change to make it use a resume image instead od the Wake Kernel! text?
-
The method that wakes the kernel droped back in text mode, I just commented it out. It's in the diff ;-)
-
Okay so far I've made the changes to the code in the Chameleon 2 RC2 sources, but I'm having trouble getting it to compile.
-
EDIT: nvm, I forgot that I've reinstalled since the last time I installed Xcode and the Developers Tools. lol
-
On RC3, this breaks graphical boot completly
-
You can find the solution on my other post (thanks to Zef).
http://forum.voodooprojects.org/index.php/topic,732.0.html