i have a few questions about the "read-only-rootfs" feature from the yocto project, the documentation is not that helpful unfortunately.
So adding that to the EXTRA_IMAGE_FEATURES makes the yocto fs read only, but in:
5.15.3. Areas With Write Access
With the read-only-rootfs feature enabled, any attempt by the target to
write to the root filesystem at runtime fails. Consequently, you must make
sure that you configure processes and applications that attempt these types
of writes do so to directories with write access (e.g. /tmp or /var/run).
they say that some areas could be made rw, but they are not providing extra information about this.
What i want to achieve is all of the operations, processes and stuff to be loaded in RAM and the SD-Card should remain untouched, as if it was after flasing, not writing a single bit on it. But the user should have the possibility to turn a specific folder(memory area) on the sd-card rw when ever he wants and write something, then turn the system read-only again.
Does someone did this by any chance? you will be helping me a lot.
By default Yocto should create all needed RW mounts as tmpfs. These are located in the RAM and therefore volatile (deleted at shutdown/reboot).
To store data persistently I've implemented following approach:
base-files_*.bbappend
.There may be other approaches to accomplish the same, but this solution is working without difficulty for years now ;-)