Fix #486, Update location of simulated EEPROM file path#487
Fix #486, Update location of simulated EEPROM file path#487dmolock-NASA wants to merge 5 commits into
Conversation
jphickey
left a comment
There was a problem hiding this comment.
Can we add some commentary about why this change is needed? This file is just for testing (a real target would presumably have a real eeprom) and its not clear to me in this PR or in the original ticket what was wrong that prompted this change
@jphickey I noticed this issue on QNX and it depends on how/where the cFS processes are started. On QNX the cFS process was started from the root directory which doesn't have permissions to write/create files. This also happens when cFS is started by another process and cFS doesn't have write permissions for the launching directory. This change will ensure that the EEPROM.DAT file is always located in the CF directory which the cFS process should have full read/write access. |
I'm not so sure about that actually -- there are some deployments where |
@jphickey I updated simulated EEPROM to use a new PSP CONFIG parameter for file path. |
Checklist (Please check before submitting)
Describe the contribution
Fixes #486 by updating the location of the simulated EEPROM.DAT file to always be created/opened based on PSP_CONFIG_SIMULATED_EEPROM_FILE_PATH parameter.
Testing performed
Steps taken to test the contribution:
Expected behavior changes
The cFS applications operates as normal but now the simulated EEPROM.DAT file is located in directory specified by PSP_CONFIG_SIMULATED_EEPROM_FILE_PATH parameter.
System(s) tested on
Additional context
N/A
Third party code
N/A
Contributor Info - All information REQUIRED for consideration of pull request
Dwaine Molock, NASA/GSFC, Code 534