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