-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS - externalize cfe_fs_decompress #291
Comments
Imported from trac issue 260. Created by cdknight on 2018-12-11T16:57:03, last modified: 2019-07-03T12:32:27 |
Trac comment by cdknight on 2018-12-11 16:58:45: Much discussion on the mailing list early December 2018, initiated by a user finding a bug in the decompression code. My recommendation is as the ticket describes, externalize the code. One suggestion is to use the "ExternalProject" capability in the latest CMake: |
Trac comment by jhageman on 2019-07-03 12:25:14: From @acudmore: LZMA compression SDK: We used this on MMS/RTEMS, and Dellingr/FreeRTOS for the elf loader we created. The development host tool optionally compresses the code and data segments, then the flight loader decompresses the segments. The embedded decompress code consists of a single header and single C file. The license is public domain and should be compatible with Apache 2.0. |
Trac comment by jhageman on 2019-07-03 12:32:27: Or zlib or similar. Preference from cFE would be to provide an interface where one or more of these open source solutions could be easily plugged in. I suggest not building anything in by default. |
Externalization question @acudmore @CDKnightNASA @jphickey: There is functionality that doesn't link to any requirements within ES, where an app file or library file that ends in ".gz" is uncompressed before loading that depends on this code. In context of externalizing decompress, what approach should we take? Do we take out this functionality in ES so that decompress can be moved to a standard cFS library (distributions could still 2-step loading apps that are compressed using FM to decompress and then ES to load, but the core set would need to be uncompressed)? Any other externalization approach I can think of just leads to more complexity, and/or configurations that will fail (adding an unimplemented "module" option will just fail, so it seems like the core needs to include at least one functional decompress if the unrequired capability needs to become fully supported), or dependency on non-flight libraries. Definitely open to suggestions. |
I think this is an area where the specific use cases of this feature need to be identified to figure out what is really the "right" way to do it. This seems to be related to systems that have very limited storage space but ample RAM, as it trades persistent storage space to store the files for increased RAM usage at runtime (as it decompresses to a RAM disk). I can say that the GRC deployments do not use or require this feature at all. I believe JSC in the past has said that they require it, however. |
Removes untraced capabilities to decompress libraries or apps on load. For non-startup apps, FS can be used. For startup, recommendation is to compress/decompress as part of boot/startup vs individual applications/libs at load. Also fixes nasa#291, by deprecating decompress it can be moved to the FS app. Also makes nasa#135 N/A, static code analysis issues in decompress
Removes untraced capabilities to decompress libraries or apps on load. For non-startup apps, FS can be used. For startup, recommendation is to compress/decompress as part of boot/startup vs individual applications/libs at load. Also fixes nasa#291, by deprecating decompress it can be moved to the FS app. Also makes nasa#135 N/A, static code analysis issues in decompress
Removes untraced capabilities to decompress libraries or apps on load. For non-startup apps, FS can be used. For startup, recommendation is to compress/decompress as part of boot/startup vs individual applications/libs at load. Also fixes nasa#291, by deprecating decompress it can be moved to the FS app. Also makes nasa#135 N/A, static code analysis issues in decompress
The decompression code should be removed and compile-time hooks to connect in an external decompression library should be provided.
The text was updated successfully, but these errors were encountered: