-
Notifications
You must be signed in to change notification settings - Fork 595
examples/elf: add possibility to create romfs image #3062
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
Conversation
[Experimental Bot, please feedback here] Yes, this PR appears to meet the NuttX requirements, although some minor improvements could be made. Strengths:
Areas for Improvement:
Conclusion: The PR is well-structured and provides the necessary information. Adding an associated issue and slightly expanding the technical details and "before" test explanation would strengthen it further. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Laczen very nice feature!! :-)
Some trivial code formatting to be fixed (https://nuttx.apache.org/docs/latest/contributing/coding_style.html).
Would it be possible to add nuttx/documentation in this area please? :-)
I didn't realize the coding_style was also valid for the Regarding the documentation, is it correct to add sample documentation for nuttx-apps in the NuttX/documentation? This seems very fragile and risks to get out of sync. |
The coding standard is both for NuttX and the Apps, so we have all clean, thanks :-)
Yes, docs are in nuttx repo, also for the apps part, with smaller updates in the code coupled with the documentation updates we should be able to keep things in sync :-) Thus my question to document this nice feature I am sure there are other folks that may find it useful :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just fix the compilation issues add Documentation
Add the possibility to create a romfs image for an "external" file system. The romfs.img can directly be written to a configurable mtdblock device. Signed-off-by: Laczen JMS <[email protected]>
…he#3062 in nuttx-apps Update the documentation to align with apache/nuttx-apps#3062 Signed-off-by: Laczen JMS <[email protected]>
…in nuttx-apps Update the documentation to align with apache/nuttx-apps#3062 Signed-off-by: Laczen JMS <[email protected]>
Add the possibility to create a
romfs
image for an "external" file system. Theromfs.img
can directly be written to a configurablemtdblock
device.Summary
The elf loader can also be used to generate a
romfs.img
that contains applications. Thisromfs.img
can be written directly to a internalmtdblock
device. The example then provides a method to illustrate how to separatekernel
from applications and allows recompilation and update of theromfs
without a kernel update.Impact
None, it is an extra sample configuration.
Testing
Tested on
esp32_devkitc:elf
. The example configuration is:After compilation the romfs.img is copied to mtdblock0 using (0x180000 is the start of mtdblock0):
The test is then performed as: