Skip to content
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

Add generic RTEMS tar file system support #1447

Closed
skliper opened this issue Feb 2, 2024 · 2 comments · Fixed by #1350
Closed

Add generic RTEMS tar file system support #1447

skliper opened this issue Feb 2, 2024 · 2 comments · Fixed by #1350
Assignees

Comments

@skliper
Copy link
Contributor

skliper commented Feb 2, 2024

Is your feature request related to a problem? Please describe.
Current PC RTEMS workflow creates a fat32 disk image and QEMU command line drive option for runtime access. See:
https://github.com/nasa/cFS/blob/main/.github/scripts/rtems-test.mk

Flight systems often utilize flat nonvol memory for boot/startup which can be done using RTEMS support for linking a tared filesystem with the executable and populating the root file system from the tar file at startup.

Describe the solution you'd like
Add generic support for RTEMS tar filesystem

Describe alternatives you've considered
EEFS is an alternative simple file system, adding RTEMS tar filesystem support doesn't preclude using other options.

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC

@skliper skliper self-assigned this Feb 2, 2024
skliper pushed a commit to skliper/osal that referenced this issue Feb 2, 2024
skliper added a commit to skliper/osal that referenced this issue Feb 23, 2024
skliper added a commit to skliper/osal that referenced this issue Feb 23, 2024
skliper added a commit to skliper/osal that referenced this issue Feb 23, 2024
skliper pushed a commit to skliper/osal that referenced this issue Feb 23, 2024
skliper added a commit to skliper/osal that referenced this issue Feb 23, 2024
skliper added a commit to skliper/osal that referenced this issue Feb 26, 2024
pepepr08 added a commit to pepepr08/osal that referenced this issue Mar 1, 2024
pepepr08 pushed a commit to pepepr08/osal that referenced this issue Mar 1, 2024
skliper added a commit to skliper/osal that referenced this issue Mar 21, 2024
skliper added a commit to skliper/osal that referenced this issue Mar 21, 2024
skliper added a commit to skliper/osal that referenced this issue Mar 21, 2024
dzbaker added a commit that referenced this issue Mar 28, 2024
Fix #1349 #1447, Break up pc-rtems to support generic configuration and add tarfs support
@DavidEdell
Copy link

How do you utilize this new TARFS support?

I can enable it by setting RTEMS_INCLUDE_TARFS, however that results in a link error because the tar file itself is not generated and linked in. I don't see anything committed that would generate the tar file.
Is there another piece that has not been pushed/merged?

I'm ultimately looking at getting the latest cfe version running on one of our Leon3 boards.

thanks,
-David

@skliper
Copy link
Contributor Author

skliper commented Jun 21, 2024

We are using it on a Leon3. Along with nasa/PSP#376, we added a "tarfs" target to do the last stage. So the process is to build for the leon3 with the following critical settings:

set(RTEMS_DYNAMIC_LOAD      TRUE)
set(RTEMS_INCLUDE_TARFS     TRUE)

Then we just do a cmake TARGET=tarfs prep. It's kludgy at this point since we just needed something that worked for us, but see nasa/cFE@main...skliper:cFE:EXAMPLE-tarfs. Note I just threw this into the cFE sample_defs to share, it relies on gaisler tools, etc so it won't just work out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants