Quote:
Originally Posted by helmi_c
hmm... I dont think using ramdisk is necessary and also finding the address for ramdisk for apache is a bit hard, maybe U better use Extended_ROM as disk on first boot, this can be easily made by some change to boot part from ROM xip that will make ur extended_rom as a disk. but this will hv side effect, it'll make messaging attachment to Storage (extended_rom not SD) a little bit mesh if u hv more then 10mb attachment... and also u lost the ability to automatically install aplication from extended_rom after first boot (hard reaset) but this can be solved if we set/move/modify the rom to locate the extended_rom/autoconfig.txt/autorun.exe to SD card...
|
You'd be correct in that attempting to get the persistent RamDisk would be very difficult. However, the non-persistent RamDisk can be set up pretty easily. The problem is that it uses the same 32 MB that the rest of the operating system, Today DLLs, SIP DLLs, etc. use, so it's difficult to have a RamDisk of any appreciable size if you have other things running. I was trying to have the RamDisk allocate memory outside of that 32 MB by attempting to use VirtualAlloc() instead of LocalAlloc(), but I probably missed something, since when I tried it out, it didn't work for me...
If anybody around here knows more about Windows Mobile programming than I do, I'd be happy to try and help get it to work (I'm more of a Unix programmer than a Windows programmer!), since I'd love to have all of my caching on a RamDisk than this slow flash memory stuff.