I ask for your help in solving a puzzle regarding how to minimize RAM in a set top box.
After boot the set top box has about 32 MB of RAM left. After boot we download a media player from a server. Our media player is 15 MB so we create a 15 MB RAM disk and download to it. We run the media player and immediately run out of RAM since the media player wants to allocate an additional 15 MB of buffers. If only we could load the program into memory, free the RAM disk, and then allocate the buffers from the freed RAM. We have all source code.
THE QUESTIONS:
- Do you know of a way to load a program into memory so that the open file to the executable can be closed allowing the unmounting of the file system?
- The video codec only has drivers for the 2.2 kernel. Do you know if CRAMFS and execute-in-place will work with a 2.2 kernel?
Thanks in advance Bob Smith